updateForwardStreamToRooms method

FutureOr<int> updateForwardStreamToRooms(
  1. NSArray<ByteRTCForwardStreamConfiguration> configurations
)

@detail api @author shenpengliang @brief Updates information of the rooms where you want to relay the media stream to after calling startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms}.
Adding and removing rooms by calling this method will trigger rtcRoom:onForwardStreamStateChanged:{@link #ByteRTCRoomDelegate#rtcRoom:onForwardStreamStateChanged} on the local. @param configurations Information of the rooms where you want to relay the media stream to. Refer to ByteRTCForwardStreamConfiguration{@link #ByteRTCForwardStreamConfiguration} for more information. @return - 0: Success. - < 0: Failure. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details. @note Users in the room which is added or removed from the target list by calling this method will receive rtcRoom:onUserJoined:{@link #ByteRTCRoomDelegate#rtcRoom:onUserJoined}, rtcRoom:onUserPublishStreamVideo:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamVideo:info:isPublish}, rtcRoom:onUserPublishStreamAudio:info:isPublish:{@link #ByteRTCRoomDelegate#rtcRoom:onUserPublishStreamAudio:info:isPublish}.

Implementation

FutureOr<int> updateForwardStreamToRooms(
    NSArray<ByteRTCForwardStreamConfiguration> configurations) async {
  return await nativeCall('updateForwardStreamToRooms:', [configurations]);
}