onVideoPublishStateChanged property
void Function(VideoSourceType source, String channel, StreamPublishState oldState, StreamPublishState newState, int elapseSinceLastState)?
onVideoPublishStateChanged
final
Occurs when the video publishing state changes.
channel
The channel name.source
The capture type of the custom video source. See VideoSourceType .oldState
For the previous publishing state, see StreamPublishState .newState
For the current publishing state, see StreamPublishState.elapseSinceLastState
The time elapsed (ms) from the previous state to the current state.
Implementation
final void Function(
VideoSourceType source,
String channel,
StreamPublishState oldState,
StreamPublishState newState,
int elapseSinceLastState)? onVideoPublishStateChanged;