onUserPublishStreamVideo property

FutureOr<void> Function(String streamId, StreamInfo streamInfo, bool isPublish)? onUserPublishStreamVideo
getter/setter pair

@detail callback @valid since 3.60. Since version 3.60, this callback replaces the onUserPublishStream, onUserUnpublishStream, onUserPublishScreen, and onUserUnpublishScreen methods for the functions described below. If you have upgraded to SDK version 3.60 or later and are still using these methods, please migrate to this callback. @brief Callback on a remote user publishing or stopping publishing video streams in the room. @param streamId The ID of the stream, used to identify a specific video stream. @param streamInfo The stream information structure, containing detailed information such as room ID and user ID. See StreamInfo{@link #StreamInfo}. @param isPublish Whether the remote user has published the video stream. + true: Published. + false: Unpblished. @note You will receive this callback after a remote user publishes or stops publishing video streams in the room with publishStreamVideo{@link #RTCRoom#publishStreamVideo}. Then you can choose whether to call subscribeStreamVideo{@link #RTCRoom#subscribeStreamVideo} to subscribe to or unsubscribe from the streams.

Implementation

FutureOr<void> Function(
        String streamId, StreamInfo streamInfo, bool isPublish)?
    onUserPublishStreamVideo;