remoteSubscribeFallbackOption property

StreamFallbackOptions? remoteSubscribeFallbackOption
getter/setter pair

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.

Parameter StreamFallbackOptions

  • StreamFallbackOptions.AudioOnly: Under unreliable uplink network conditions, the published video stream falls back to audio only. Under unreliable downlink network conditions, the remote video stream first falls back to the low-stream (low resolution and low bitrate) video; and then to an audio-only stream if the network condition deteriorates.
  • StreamFallbackOptions.Disabled: No fallback behavior for the local/remote video stream when the uplink/downlink network condition is unreliable. The quality of the stream is not guaranteed.
  • StreamFallbackOptions.VideoStreamLow: Under unreliable downlink network conditions, the remote video stream falls back to the low-stream (low resolution and low bitrate) video. You can only set this option in the remoteSubscribeFallbackOption method. Nothing happens when you set this in the localPublishFallbackOption method.

Implementation

StreamFallbackOptions? remoteSubscribeFallbackOption;