remoteSubscribeFallbackToAudioOnly property
Occurs when the remote media stream falls back to audio-only stream due to poor network conditions or switches back to video stream after the network conditions improve.
If you call RtcEngine.setRemoteSubscribeFallbackOption and set option as StreamFallbackOptions.AudioOnly, this callback is triggered when the remote media stream falls back to audio-only mode due to poor uplink conditions, or when the remote media stream switches back to the video after the uplink network condition improves.
Note
- Once the remote media stream is switched to the low stream due to poor network conditions, you can monitor the stream switch between a high and low stream in the RtcEngineEventHandler.remoteVideoStats callback.
The FallbackWithUidCallback
typedef includes the following parameters:
- int:
uid
: ID of the remote user sending the stream. - bool
isFallbackOrRecover
: Whether the published stream fell back to audio-only or switched back to the video: --true
: The published stream fell back to audio-only due to poor network conditions. --false
: The published stream switched back to the video after the network conditions improved.
Implementation
FallbackWithUidCallback? remoteSubscribeFallbackToAudioOnly;