onAudioSubscribeStateChanged method
FutureOr<void>
onAudioSubscribeStateChanged(
- String streamId,
- StreamInfo streamInfo,
- SubscribeState state,
- SubscribeStateChangeReason reason,
@detail callback @valid since 3.60. @region 房间管理 @author xuyiling.x10 @brief 音频订阅状态发生改变回调。 @param streamId 流 ID,用于标识特定的音频流。 @param streamInfo 流信息结构体,包含房间 ID、用户 ID 等详细信息,参看 StreamInfo{@link #StreamInfo}。 @param state 订阅状态码,参看 SubscribeState{@link #SubscribeState}。 @param reason 音频订阅状态改变的具体原因,参看 SubscribeStateChangeReason{@link #SubscribeStateChangeReason}。 @note 当调用 subscribeStreamAudio{@link #RTCRoom#subscribeStreamAudio} 后会收到该通知。 @order 0
Implementation
FutureOr<void> onAudioSubscribeStateChanged(
String streamId,
StreamInfo streamInfo,
SubscribeState state,
SubscribeStateChangeReason reason) async {}