didRemoteSubscribeFallbackToAudioOnly
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.
- (void)rtcEngine:(AgoraRtcEngineKit * _Nonnull)engine didRemoteSubscribeFallbackToAudioOnly:(BOOL)isFallbackOrRecover byUid:(NSUInteger)uid;
If you call setRemoteSubscribeFallbackOption and set option as AgoraStreamFallbackOptionAudioOnly, 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 remoteVideoStats callback.
Parameters
- engine
- AgoraRtcEngineKit object.
- uid
- The user ID of the remote user.
- isFallbackOrRecover
-
YES
: The remotely subscribed media stream falls back to audio-only due to poor network conditions.NO
: The remotely subscribed media stream switches back to the video stream after the network conditions improved.