onWTNAudioSubscribeStateChanged property

FutureOr<void> Function(String streamId, WTNSubscribeState state, WTNSubscribeStateChangeReason reason)? onWTNAudioSubscribeStateChanged
getter/setter pair

@detail callback @valid since 3.60. Since version 3.60, this callback replaces onPlayPublicStreamResult for reporting the subscription status changes of WTN audio 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 audio stream's subscription status
You will be informed of the result of subscribing to the WTN audio stream by this callback after calling subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream}. @param streamId ID of the WTN audio stream @param stateCode Audio 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> Function(String streamId, WTNSubscribeState state,
    WTNSubscribeStateChangeReason reason)? onWTNAudioSubscribeStateChanged;