audioSubscribeStateChanged property

StreamSubscribeStateCallback? audioSubscribeStateChanged
getter/setter pair

Occurs when the audio subscribing state changes.

This callback indicates the subscribing state change of a remote audio stream.

The StreamSubscribeStateCallback typedef includes the following parameters:

Implementation

///
/// This callback indicates the subscribing state change of a remote audio stream.
///
/// The `StreamSubscribeStateCallback` typedef includes the following parameters:
/// - [String] `channel`: The channel name.
/// - [StreamSubscribeState] `oldState`: The previous publishing state. See [StreamPublishState].
/// - [StreamSubscribeState] `newState`: The current publishing state. See [StreamPublishState].
/// - [int] `elapseSinceLastState`: The time elapsed (ms) from the previous state to the current state.
StreamSubscribeStateCallback? audioSubscribeStateChanged;