videoPublishStateChanged property
StreamPublishStateCallback?
videoPublishStateChanged
getter/setter pair
Occurs when the video publishing state changes.
@since v3.1.2.
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
StreamPublishStateCallback? videoPublishStateChanged;