onWTNVideoSubscribeStateChanged method

FutureOr<void> onWTNVideoSubscribeStateChanged(
  1. String streamId,
  2. WTNSubscribeState stateCode,
  3. WTNSubscribeStateChangeReason reason
)

@detail callback @valid since 3.60. Since version 3.60, this callback replaces onPlayPublicStreamResult for reporting the subscription status changes of WTN video streams. If you have upgraded to version 3.60 or later and are still using this method, please migrate to this callback. @author hanchenchen @brief Callback for the change of WTN video stream's subscription status
You will be informed of the result of subscribing to the WTN video stream by this callback after calling subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream}. @param streamId ID of the WTN video stream @param stateCode Video stream state code. See WTNSubscribeState{@link #WTNSubscribeState} for specific indications. @param reason The reason why subscription state changes. See WTNSubscribeStateChangeReason{@link #WTNSubscribeStateChangeReason}. @order 2

Implementation

FutureOr<void> onWTNVideoSubscribeStateChanged(
    String streamId,
    WTNSubscribeState stateCode,
    WTNSubscribeStateChangeReason reason) async {}