◆ srcInfo
源频道信息 ChannelMediaInfo ,包含如下成员:
channelName
: 源频道名。默认值为 null
,表示 SDK 填充当前的频道名。
uid
: 标识源频道中的转发媒体流的 UID。默认值为 0,表示 SDK 随机分配一个 uid
。请确保设为 0。
token
: 能加入源频道的 token
。由你在 srcInfo
中设置的 channelName
和 uid
生成。
- 如未启用 App Certificate,可直接将该参数设为默认值
null
,表示 SDK 填充 App ID。
- 如已启用 App Certificate,则务必填入使用
channelName
和 uid
生成的 token
,且其中的 uid
必须为 0。
◆ destInfos
目标频道信息: ChannelMediaInfo ,包含如下成员:
channelName
: 目标频道的频道名。
uid
: 标识目标频道中的转发媒体流的 UID。取值范围为 0 到(232-1),请确保与目标频道中的所有 uid
不同。默认值为 0,表示 SDK 随机分配一个 uid
。请确保不要将该参数设为目标频道的主播的 UID,并与目标频道中的所有 UID 都不同。
token
: 能加入目标频道的 token
。由你在 destInfos
中设置的 channelName
和 uid
生成。
- 如未启用 App Certificate,可直接将该参数设为默认值
null
,表示 SDK 填充 App ID。
- 如已启用 App Certificate,则务必填入使用
channelName
和 uid
生成的 token
。
◆ destCount
int agora_gaming_rtc.ChannelMediaRelayConfiguration.destCount |