onRemoteVideoStateChanged method
FutureOr<void>
onRemoteVideoStateChanged(
- String streamId,
- StreamInfo streamInfo,
- RemoteVideoState videoState,
- RemoteVideoStateChangeReason videoStateReason,
@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> onRemoteVideoStateChanged(
String streamId,
StreamInfo streamInfo,
RemoteVideoState videoState,
RemoteVideoStateChangeReason videoStateReason) async {}