onAudioSubscribeStateChanged property
void Function(String channel, int uid, StreamSubscribeState oldState, StreamSubscribeState newState, int elapseSinceLastState)?
onAudioSubscribeStateChanged
final
Occurs when the audio subscribing state changes.
channelThe channel name.uidThe user ID of the remote user.oldStateThe previous subscribing status, see StreamSubscribeState for details.newStateThe current subscribing status, see StreamSubscribeState for details.elapseSinceLastStateThe time elapsed (ms) from the previous state to the current state.
Implementation
final void Function(
String channel,
int uid,
StreamSubscribeState oldState,
StreamSubscribeState newState,
int elapseSinceLastState)? onAudioSubscribeStateChanged;