audioSubscribeStateChanged property
StreamSubscribeStateCallback?
audioSubscribeStateChanged
getter/setter pair
Occurs when the audio subscribing state changes.
@since v3.1.2.
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.
Implementation
StreamSubscribeStateCallback? audioSubscribeStateChanged;