rtcRoom$onStreamAdd method
@deprecated since 3.45 and will be deleted in later version, use rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish}, rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish}, rtcRoom:onUserPublishScreenVideo:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenVideo:uid:isPublish}, and rtcRoom:onUserPublishScreenAudio:uid:isPublish:{@link #ByteRTCGameRoomDelegate#rtcRoom:onUserPublishScreenAudio:uid:isPublish} instead.
@detail callback
@author luomingkang
@brief The following conditions trigger this callback:
- When users in the room post a new audio & video stream, other users in the room will receive this callback notification.
- When the user's original audio and video stream in the room is removed and the audio & video stream is republished, other users in the room will receive this callback notification.
- When the user first joins the room, he receives this callback, including all published streams in the room.
@param rtcRoom ByteRTCGameRoom instance.
@param stream Stream property. See ByteRTCStream{@link #ByteRTCStream}.
Implementation
FutureOr<void> rtcRoom$onStreamAdd(
ByteRTCGameRoom rtcRoom, id<ByteRTCStream> stream) async {}