enableMultiPlaybackQuality method

void enableMultiPlaybackQuality(
  1. bool enable
)

Implementation

void enableMultiPlaybackQuality(bool enable) {
  try {
    Map<String, dynamic> params = {'enable': enable};

    Map<String, dynamic> jsonObject = {
      'api': 'enableMultiPlaybackQuality',
      'params': params,
    };

    String jsonString = jsonEncode(jsonObject);
    TUIRoomEngine.sharedInstance().invokeExperimentalAPI(jsonString);
  } catch (e) {
    LiveKitLogger.error('Error enableMultiPlaybackQuality');
  }
}