NERtc iOS SDK  V4.4.301
构造函数 | 属性 | 所有成员列表
NERtcChannelMediaRelayConfiguration类 参考

#import <NERtcEngineBase.h>

类 NERtcChannelMediaRelayConfiguration 继承关系图:

构造函数

(BOOL) - setDestinationInfo:forChannelName:
 Set the information of the destination room for media stream relay across rooms. 更多...
 
(BOOL) - removeDestinationInfoForChannelName:
 Delete the information of the destination room for media stream relay across rooms. 更多...
 

属性

NSDictionary< NSString *, NERtcChannelMediaRelayInfo * > *_Nullable destinationInfos
 The settings of the destination room where the media stream is relayed. 更多...
 
NERtcChannelMediaRelayInfosourceInfo
 Information about the source room. 更多...
 

函数文档

◆ removeDestinationInfoForChannelName:

- (BOOL) removeDestinationInfoForChannelName: (NSString *_Nonnull)  channelName

Delete the information of the destination room for media stream relay across rooms.

参数
channelNameThe 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.

参数
destinationInfoDestination room information. For more information, see NERtcChannelMediaRelayInfo.
channelNameThe 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

- (NSDictionary<NSString *, NERtcChannelMediaRelayInfo *>* _Nullable) destinationInfos
readnonatomicstrong

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

- (NERtcChannelMediaRelayInfo*) sourceInfo
readwritenonatomicstrong

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.

该类的文档由以下文件生成: