switchHlsVideoBitrate method
播放中切换hls视频档位,如传入的bitrate档位不存在,选择最接近的档位
Implementation
Future<void> switchHlsVideoBitrate({required int bitrate}) async {
if (bitrate <= 0) {
return;
}
await engineInstanceMethodChannel.invokeMethod('switchHlsVideoBitrate', bitrate);
}