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 remotely subscribed media stream falls back to audio-only mode due to poor uplink conditions, or when the remotely subscribed media stream switches back to the video after the uplink network condition improves.
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;