onVideoSubscribeStateChanged method

FutureOr<void> onVideoSubscribeStateChanged(
  1. String streamId,
  2. StreamInfo streamInfo,
  3. SubscribeState state,
  4. SubscribeStateChangeReason reason,
)

@detail callback @valid since 3.60. Since version 3.60, this callback replaces onStreamStateChanged and onStreamSubscribed for reporting the state changes of the subscription to camera-video streams. If you have upgraded to SDK version 3.60 or later and are still using this two methods, please migrate to this callback. @brief Callback on state changes of the subscription to camera-video streams. @param streamId The ID of the stream, used to identify a specific video stream. @param streamInfo The stream information structure, containing detailed information such as room ID and user ID. See StreamInfo{@link #StreamInfo}. @param state Room state code. See SubscribeState{@link #SubscribeState} for more. @param reason See SubscribeStateChangeReason{@link #SubscribeStateChangeReason} for more. @note You will receive this callback after calling subscribeStreamVideo{@link #RTCRoom#subscribeStreamVideo}.

Implementation

FutureOr<void> onVideoSubscribeStateChanged(
    String streamId,
    StreamInfo streamInfo,
    SubscribeState state,
    SubscribeStateChangeReason reason) async {}