switchHlsVideoBitrate method

Future<void> switchHlsVideoBitrate({
  1. required int bitrate,
})

Switching HLS video quality during playback, if the passed bitrate level does not exist, select the closest available quality level.

Implementation

Future<void> switchHlsVideoBitrate({required int bitrate}) async {
  if (bitrate <= 0) {
    return;
  }
  await engineInstanceMethodChannel.invokeMethod('switchHlsVideoBitrate', bitrate);
}