onVideoPublishStateChanged property
void Function(VideoSourceType source, String channel, StreamPublishState oldState, StreamPublishState newState, int elapseSinceLastState)?
onVideoPublishStateChanged
final
视频发布状态改变回调。
channel频道名。source视频源的类型。详见 VideoSourceType 。oldState之前的发布状态,详见 StreamPublishState 。newState当前的发布状态,详见 StreamPublishState 。elapseSinceLastState两次状态变化时间间隔(毫秒)。
Implementation
final void Function(
VideoSourceType source,
String channel,
StreamPublishState oldState,
StreamPublishState newState,
int elapseSinceLastState)? onVideoPublishStateChanged;