setRemoteSubscribeFallbackOption method

  1. @override
Future<void> setRemoteSubscribeFallbackOption(
  1. StreamFallbackOptions option
)

Sets the fallback option for the remotely subscribed video stream based on the network conditions.

If option is set as StreamFallbackOptions.VideoStreamLow or StreamFallbackOptions.AudioOnly, the SDK automatically switches the video from a high-stream to a low-stream, or disables the video when the downlink network condition cannot support both audio and video to guarantee the quality of the audio. The SDK monitors the network quality and restores the video stream when the network conditions improve. When the remotely subscribed video stream falls back to audio only, or the audio-only stream switches back to the video, the SDK triggers the RtcEngineEventHandler.remoteSubscribeFallbackToAudioOnly callback.

Parameter option Sets the fallback option for the remotely subscribed video stream. See StreamFallbackOptions.

Implementation

@override
Future<void> setRemoteSubscribeFallbackOption(StreamFallbackOptions option) {
  return _invokeMethod('setRemoteSubscribeFallbackOption',
      {'option': StreamFallbackOptionsConverter(option).value()});
}