onStreamSubscribed property

FutureOr<void> Function(SubscribeState stateCode, String userId, SubscribeConfig info)? onStreamSubscribed
getter/setter pair

@platform android @detail callback @author shenpengliang @brief Callback on subscription status of media streams @param stateCode Subscription status of media streams, see SubscribeState{@link #SubscribeState}. @param userId The ID of the user who published the stream. @param info Configurations of stream subscription, see SubscribeConfig{@link #SubscribeConfig}. @note Local users will receive this callback: After calling subscribeStreamVideo{@link #RTCRoom#subscribeStreamVideo} to change the subscription status of remote media streams captured by camera/microphone.

Implementation

FutureOr<void> Function(
        SubscribeState stateCode, String userId, SubscribeConfig info)?
    onStreamSubscribed;