NERtc Windows SDK  V5.5.40
Public 属性 | 所有成员列表
nertc::NERtcChannelMediaRelayConfiguration结构体 参考

#include <nertc_engine_defines.h>

Public 属性

NERtcChannelMediaRelayInfosrc_infos
 
NERtcChannelMediaRelayInfodest_infos
 
int dest_count
 

详细描述

跨房间媒体流转发相关参数配置。

类成员变量说明

◆ dest_count

int nertc::NERtcChannelMediaRelayConfiguration::dest_count

目标房间数量。默认为 0。

◆ dest_infos

NERtcChannelMediaRelayInfo* nertc::NERtcChannelMediaRelayConfiguration::dest_infos

目标房间信息,包括:

  • channelName:目标房间的房间名。
  • channel_token:可以加入目标房间的 Token。
  • uid:标识目标房间中的转发媒体流的 UID。请确保不要将该参数设为目标房间的主播的 UID,并与目标房间中的 所有 UID 都不同。

◆ src_infos

NERtcChannelMediaRelayInfo* nertc::NERtcChannelMediaRelayConfiguration::src_infos

源房间信息,包括:

  • channel_name:源房间名。默认值为 nil,表示 SDK 填充当前的房间名。
  • channel_token:能加入源房间的 Token。
  • uid:标识源房间中的转发媒体流的 UID。

该结构体的文档由以下文件生成: