rtcRoom$onStreamAdd method

FutureOr<void> rtcRoom$onStreamAdd(
  1. ByteRTCRoom rtcRoom,
  2. id<ByteRTCStream> stream
)

@deprecated since 3.45 and will be deleted in 3.51, use rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish}instead. @detail callback @author shenpengliang @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 ByteRTCRoom object. @param stream Stream property. See ByteRTCStream{@link #ByteRTCStream}.

Implementation

FutureOr<void> rtcRoom$onStreamAdd(
    ByteRTCRoom rtcRoom, id<ByteRTCStream> stream) async {}