remoteSubscribeFallbackToAudioOnly property

FallbackWithUidCallback? remoteSubscribeFallbackToAudioOnly
getter/setter pair

Occurs when the remote media stream falls back to the audio-only stream due to poor network conditions or switches back to the video stream after the network conditions improve. If you call setRemoteSubscribeFallbackOption and set option as AudioOnly, the SDK triggers this callback when the remote media stream falls back to audio-only mode due to poor downlink conditions, or when the remote media stream switches back to the video after the downlink network condition improves. Once the remote media stream switches to the low-quality stream due to poor network conditions, you can monitor the stream switch between a high-quality and low-quality stream in the remoteVideoStats callback.

Param uid The user ID of the remote user.

Param isFallbackOrRecover true: The remotely subscribed media stream falls back to audio-only due to poor network conditions. false: The remotely subscribed media stream switches back to the video stream after the network conditions improved.

Implementation

FallbackWithUidCallback? remoteSubscribeFallbackToAudioOnly;