目标频道信息:ChannelMediaInfo
,包含如下成员:
channelName
:目标频道的频道名。uid
:标识转发流到目标频道的主播 ID。取值范围为 0 到(232-1),请确保与目标频道中的所有 UID 不同。默认值为 0,表示 SDK 随机分配一个 UID。token
:能加入目标频道的 token。由你在 destInfo
中设置的 channelName
和 uid
生成。channelName
和 uid
生成的 token,且其中的 uid
必须为 0。源频道信息:ChannelMediaInfo
,包含如下成员:
channelName
:源频道名。默认值为 null,表示 SDK 填充当前的频道名。uid
:标识源频道中想要转发流的主播 ID。默认值为 0,表示 SDK 随机分配一个 UID。请确保设为 0。token
:能加入源频道的 token。由你在 srcInfo
中设置的 channelName
和 uid
生成。channelName
和 uid
生成的 token,且其中的 uid
必须为 0。
配置跨频道媒体流转发的 ChannelMediaRelayConfiguration 类。