localPublishFallbackOption property Null safety

StreamFallbackOptions? localPublishFallbackOption
read / write

Sets the fallback option for the locally published video stream based on the network conditions.

Note: Agora does not recommend using this method for CDN live streaming, because the remote CDN live user will have a noticeable lag when the locally published video stream falls back to audio only. 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? localPublishFallbackOption;