rtcEngine$onRemoteVideoStateChanged$info$withVideoState$withVideoStateReason method

FutureOr<void> rtcEngine$onRemoteVideoStateChanged$info$withVideoState$withVideoStateReason(
  1. ByteRTCEngine engine,
  2. NSString streamId,
  3. ByteRTCStreamInfo info,
  4. ByteRTCRemoteVideoState state,
  5. ByteRTCRemoteVideoStateChangeReason reason,
)

@detail callback @author shenpengliang @brief When the state of the remote video stream changes, users in the room who subscribe to this stream will receive the event. @param engine ByteRTCEngine object @param streamId ID of Remote stream. @param info Remote stream information. See ByteRTCStreamInfo{@link #ByteRTCStreamInfo}. @param state The current state of the remote video stream. See ByteRTCRemoteVideoState{@link #ByteRTCRemoteVideoState} @param reason The reason for the change in the state of the remote video stream. See ByteRTCRemoteVideoStateChangeReason{@link #ByteRTCRemoteVideoStateChangeReason} @note This callback is only applicable to the main stream and not applicable to the screen stream.

Implementation

FutureOr<void>
    rtcEngine$onRemoteVideoStateChanged$info$withVideoState$withVideoStateReason(
        ByteRTCEngine engine,
        NSString streamId,
        ByteRTCStreamInfo info,
        ByteRTCRemoteVideoState state,
        ByteRTCRemoteVideoStateChangeReason reason) async {}