onWTNAudioSubscribeStateChanged$state$reason method
FutureOr<void>
onWTNAudioSubscribeStateChanged$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 音频流订阅状态变化回调
通过 subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe} 订阅 WTN 音频流后,可以通过本回调获取订阅结果。
@param streamId WTN 音频流的 ID
@param state 音频流状态码,参看 ByteRTCWTNSubscribeState{@link #ByteRTCWTNSubscribeState}。
@param reason 订阅状态发生变化的原因,参看 ByteRTCWTNSubscribeStateChangeReason{@link #ByteRTCWTNSubscribeStateChangeReason}。
@order 2
Implementation
FutureOr<void> onWTNAudioSubscribeStateChanged$state$reason(
NSString streamId,
ByteRTCWTNSubscribeState state,
ByteRTCWTNSubscribeStateChangeReason reason) async {}