audioPublishStateChanged property
StreamPublishStateCallback?
audioPublishStateChanged
getter/setter pair
Occurs when the audio publishing state changes.
@since v3.1.2.
This callback indicates the publishing state change of the local audio stream.
The StreamPublishStateCallback
typedef includes the following parameters:
- String
channel
: The channel name. - StreamPublishState
oldState
: The previous publishing state. See StreamPublishState. - StreamPublishState
newState
: The current publishing state. See StreamPublishState. - int
elapseSinceLastState
: The time elapsed (ms) from the previous state to the current state.
Implementation
StreamPublishStateCallback? audioPublishStateChanged;