switchHlsAudioRendition method

Future<void> switchHlsAudioRendition({
  1. required dynamic auidoInfoId,
})

Switching audio tracks during HLS playback, if the passed audioInfoId does not exist, do not switch.

Implementation

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