onRemoteSubscribeFallbackToAudioOnly
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.
public void onRemoteSubscribeFallbackToAudioOnly(int uid, boolean isFallbackOrRecover) {}
If you call setRemoteSubscribeFallbackOption and set option as STREAM_FALLBACK_OPTION_AUDIO_ONLY, the SDK triggers this callback 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 downlink network condition improves.
Attention: 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 onRemoteVideoStats callback.
Parameters
- uid
- The user ID of the remote user.
- 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.