onRemoteVideoStateChanged property
void Function(RtcConnection connection, int remoteUid, RemoteVideoState state, RemoteVideoStateReason reason, int elapsed)?
onRemoteVideoStateChanged
final
远端视频状态发生改变回调。
频道内的用户(通信场景)或主播(直播场景)人数超过 32 人时,该回调可能不准确。
connectionConnection 信息。详见 RtcConnection 。remoteUid发生视频状态改变的远端用户 ID。state远端视频流状态,详见 RemoteVideoState 。reason远端视频流状态改变的具体原因,详见 RemoteVideoStateReason 。elapsed从本地用户调用 joinChannel 方法到发生本事件经历的时间,单位为毫秒。
Implementation
final void Function(
RtcConnection connection,
int remoteUid,
RemoteVideoState state,
RemoteVideoStateReason reason,
int elapsed)? onRemoteVideoStateChanged;