onRemoteSubscribeFallbackToAudioOnly method Null safety
Occurs when the subscribed remote media stream falls back to audio-only stream due to poor network conditions or switches back to the audio and video stream after the network conditions improve. If you call NERtcEngine.setRemoteSubscribeFallbackOption and set the option to NERtcStreamFallbackOptions.audioOnly , this callback is triggered when the subscribed remote media stream falls back to audio-only mode due to poor downstream network conditions, or when the subscribed remote media stream switches back to the audio and video stream after the downstream network conditions improve.
isFallback indicates that the subscribed remote media stream falls back to audio-only stream or switches back to the audio and video stream.
true: The subscribed remote media stream falls back to audio-only stream due to poor downstream network conditions.false: The subscribed remote media stream switches back to the audio and video stream after the downstream network conditions improve.
/// uid ID of a remote user. streamType indicates the type of a video stream, such as mainstream or substream. For more information, see NERtcVideoStreamType
Implementation
void onRemoteSubscribeFallbackToAudioOnly(
int uid, bool isFallback, int streamType);