onRemoteVideoStateChanged property
FutureOr<void> Function(String streamId, StreamInfo streamInfo, RemoteVideoState state, RemoteVideoStateChangeReason videoStateReason)?
onRemoteVideoStateChanged
getter/setter pair
@detail callback @author shenpengliang @brief 远端视频流的状态发生改变时,房间内订阅此流的用户会收到该事件。 @param streamId 远端流 ID @param streamInfo 远端流信息, 详见 StreamInfo{@link #StreamInfo} @param videoState 远端视频流状态,参看 RemoteVideoState{@link #RemoteVideoState} @param videoStateReason 远端视频流状态改变原因,参看 RemoteVideoStateChangeReason{@link #RemoteVideoStateChangeReason} @note 本回调仅适用于主流,不适用于屏幕流。
Implementation
FutureOr<void> Function(
String streamId,
StreamInfo streamInfo,
RemoteVideoState state,
RemoteVideoStateChangeReason videoStateReason)? onRemoteVideoStateChanged;