onRemoteVideoStateChanged method

FutureOr<void> onRemoteVideoStateChanged(
  1. String streamId,
  2. StreamInfo streamInfo,
  3. RemoteVideoState videoState,
  4. RemoteVideoStateChangeReason videoStateReason,
)

@detail callback @author shenpengliang @brief When the state of a remote video stream changes, users in the room who subscribe to this stream receive the event. @param streamId Remote stream ID @param streamInfo Remote Stream Information. See StreamInfo{@link #StreamInfo} @param videoState Remote video stream status. See RemoteVideoState{@link #RemoteVideoState} @param videoStateReason Remote video stream status change reason. See RemoteVideoStateChangeReason{@link #RemoteVideoStateChangeReason} @note The callback works for video stream captured by the camera, not for screen stream.

Implementation

FutureOr<void> onRemoteVideoStateChanged(
    String streamId,
    StreamInfo streamInfo,
    RemoteVideoState videoState,
    RemoteVideoStateChangeReason videoStateReason) async {}