updateForwardStreamToRooms method

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

@detail api @author shenpengliang @brief 更新跨房间媒体流转发信息。
通过 startForwardStreamToRooms:{@link #ByteRTCRoom#startForwardStreamToRooms} 发起媒体流转发后,可调用本方法增加或者减少目标房间,或更新房间密钥。
调用本方法增加或删减房间后,将在本端触发 rtcRoom:onForwardStreamStateChanged:{@link #ByteRTCRoomDelegate#rtcRoom:onForwardStreamStateChanged} 回调,包含发生了变动的目标房间中媒体流转发状态。 @param configurations 跨房间媒体流转发目标房间信息。参看 ByteRTCForwardStreamConfiguration{@link #ByteRTCForwardStreamConfiguration}。 @return - 0: 成功。 - < 0: 失败。查看 ByteRTCReturnStatus{@link #ByteRTCReturnStatus} 获得更多错误说明。 @note 增加或删减目标房间后,新增目标房间中的用户将接收到本地用户进房 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]);
}