onVideoPublishStateChanged property

void Function(VideoSourceType source, String channel, StreamPublishState oldState, StreamPublishState newState, int elapseSinceLastState)? onVideoPublishStateChanged
final

Callback for video publishing state change.

  • channel Channel name.
  • source Type of video source. See VideoSourceType.
  • oldState Previous publishing state. See StreamPublishState.
  • newState Current publishing state. See StreamPublishState.
  • elapseSinceLastState Interval between the two state changes (ms).

Implementation

final void Function(
    VideoSourceType source,
    String channel,
    StreamPublishState oldState,
    StreamPublishState newState,
    int elapseSinceLastState)? onVideoPublishStateChanged;