updateForwardStreamToRooms method
@detail api
@author shenpengliang
@brief Update information of the rooms where you want to relay the media stream to after calling startForwardStreamToRooms{@link #RTCRoom#startForwardStreamToRooms}.
Adding and removing rooms by calling this method will trigger onForwardStreamStateChanged{@link #IRTCRoomEventHandler#onForwardStreamStateChanged} on the local.
@param forwardStreamInfos Information of the rooms where you want to relay the media stream to. Refer to ForwardStreamInfo{@link #ForwardStreamInfo} for more information.
@return
- 0: Success.
- < 0: Failure. See ReturnStatus{@link #ReturnStatus} for more details.
@note
Users in the room which is added or removed from the target list by calling this method will receive onUserJoined{@link #IRTCRoomEventHandler#onUserJoined}, onUserPublishStreamVideo{@link #IRTCRoomEventHandler#onUserPublishStreamVideo}, onUserPublishStreamAudio{@link #IRTCRoomEventHandler#onUserPublishStreamAudio}.
Implementation
FutureOr<int> updateForwardStreamToRooms(
List<ForwardStreamInfo> forwardStreamInfos) async {
return await nativeCall('updateForwardStreamToRooms', [forwardStreamInfos]);
}