videoPublishStateChanged property
StreamPublishStateCallback?
videoPublishStateChanged
getter/setter pair
Occurs when the video publishing state changes.
This callback indicates the publishing state change of the local video 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
///
/// This callback indicates the publishing state change of the local video 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.
StreamPublishStateCallback? videoPublishStateChanged;