onWTNVideoSubscribeStateChanged$state$reason method
- NSString streamId,
- ByteRTCWTNSubscribeState state,
- ByteRTCWTNSubscribeStateChangeReason reason
@detail callback
@valid since 3.60. Since version 3.60, this callback replaces rtcEngine:onPlayPublicStreamResult:errorCode: 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:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe}.
@param streamId ID of the WTN video stream
@param state video stream state code. See ByteRTCWTNSubscribeState{@link #ByteRTCWTNSubscribeState} for specific indications.
@param reason The reason why subscription state changes. See ByteRTCWTNSubscribeStateChangeReason{@link #ByteRTCWTNSubscribeStateChangeReason}.
@order 2
Implementation
FutureOr<void> onWTNVideoSubscribeStateChanged$state$reason(
NSString streamId,
ByteRTCWTNSubscribeState state,
ByteRTCWTNSubscribeStateChangeReason reason) async {}