onWTNVideoSubscribeStateChanged$state$reason method
FutureOr<void>
onWTNVideoSubscribeStateChanged$state$reason(
- NSString streamId,
- ByteRTCWTNSubscribeState state,
- ByteRTCWTNSubscribeStateChangeReason reason
@detail callback
@valid since 3.60. 自 3.60 起,该回调替代了 rtcEngine:onPlayPublicStreamResult:errorCode: 方法中的 WTN 视频流订阅状态变化通知功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。
@author hanchenchen
@brief WTN 视频流订阅状态变化回调
通过 subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe} 订阅 WTN 视频流后,可以通过本回调获取订阅结果。
@param streamId WTN 视频流的 ID
@param state 视频流状态码,参看 ByteRTCWTNSubscribeState{@link #ByteRTCWTNSubscribeState}。
@param reason 订阅状态发生变化的原因,参看 ByteRTCWTNSubscribeStateChangeReason{@link #ByteRTCWTNSubscribeStateChangeReason}。
@order 2
Implementation
FutureOr<void> onWTNVideoSubscribeStateChanged$state$reason(
NSString streamId,
ByteRTCWTNSubscribeState state,
ByteRTCWTNSubscribeStateChangeReason reason) async {}