setRemoteSubscribeFallbackOption abstract method

Future<void> setRemoteSubscribeFallbackOption(
  1. StreamFallbackOptions option
)

Sets the fallback option for the remotely subscribed video stream based on the network conditions. Unreliable network conditions affect the overall quality of the interactive live streaming. If option is set as VideoStreamLow(1) or AudioOnly(2), the SDK automatically switches the video from a high-quality stream to a low-quality stream or disables the video when the downlink network conditions 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 remote video stream falls back to audio-only or when the audio-only stream switches back to the video, the SDK triggers the remoteSubscribeFallbackToAudioOnly callback. Ensure that you call this method before joining a channel.

Param option The fallback option for the remotely subscribed video stream. The default value is VideoStreamLow(1). See StreamFallbackOptions .

Implementation

Future<void> setRemoteSubscribeFallbackOption(StreamFallbackOptions option);