rtcRoom$onUserPublishStreamVideo$info$isPublish method
- ByteRTCRoom rtcRoom,
- NSString streamId,
- ByteRTCStreamInfo info,
- BOOL isPublish,
@detail callback
@valid since 3.60. Since version 3.60, this callback replaces the onUserPublishStream and onUserUnpublishStream 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 remote camera-video streams in the room.
@param rtcRoom ByteRTCRoom object.
@param streamId Stream ID.
@param info Stream information.
@param isPublish Whether the stream is published.
+ true: Published
+ false: Removed
@note You will receive this callback after a remote user successfully published media streams captured by camera/microphone in the room with publishStreamVideo:{@link #ByteRTCRoom#publishStreamVideo}. Then you can choose whether to call subscribeStreamVideo:subscribe:{@link #ByteRTCRoom#subscribeStreamVideo:subscribe} to subscribe to the streams or not.
Implementation
FutureOr<void> rtcRoom$onUserPublishStreamVideo$info$isPublish(
ByteRTCRoom rtcRoom,
NSString streamId,
ByteRTCStreamInfo info,
BOOL isPublish) async {}