#import <NERtcEngineBase.h>
◆ removeDestinationInfoForChannelName:
- (BOOL) removeDestinationInfoForChannelName: |
|
(NSString *_Nonnull) |
channelName |
|
Delete the information of the destination room for media stream relay across rooms.
- 参数
-
channelName | The name of the destination room where you want to cancel the media stream relay. |
- 返回
- YES: success. NO: failure.
◆ setDestinationInfo:forChannelName:
- (BOOL) setDestinationInfo: |
|
(NERtcChannelMediaRelayInfo *_Nonnull) |
destinationInfo |
forChannelName: |
|
(NSString *_Nonnull) |
channelName |
|
|
| |
Set the information of the destination room for media stream relay across rooms.
If you need to forward the media stream to multiple rooms, you can call this method multiple times to set the NERtcChannelMediaRelayInfo of multiple rooms. This method supports up to 4 rooms.
- 参数
-
destinationInfo | Destination room information. For more information, see NERtcChannelMediaRelayInfo. |
channelName | The name of the destination room where the media stream is relayed. This parameter is required and must be consistent with the channelName in the destinationInfo parameter of the method. |
- 返回
- YES: success. NO: failure.
◆ destinationInfos
The settings of the destination room where the media stream is relayed.
For more information, see NERtcChannelMediaRelayInfo.
- channelName: The name of the destination room. -Token: A token that can be used to join the room.
- uid: Identifies the UID of the media stream in the room. Make sure that this parameter is not set to the UID of the host in the destination room, and all uids are different in the room.
◆ sourceInfo
Information about the source room.
For more information, see NERtcChannelMediaRelayInfo.
-channelName: the name of the source room. -Token: The token that can be added to the source room.
- uid: Identifies the UID of the media stream in the room.
该类的文档由以下文件生成: