audioPublishStateChanged property
Occurs when the audio publishing state changes.
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;