setDestChannelInfo

Sets the destination channel information.

public void setDestChannelInfo(String channelName, ChannelMediaInfo destInfo)

If you want to relay media streams to multiple channels, you can call this method up to four times.

Parameters

channelName
Name of the destination channel. This value must match the channelName member in destInfo.
destInfo
Information of the destination channel. Includes the following members:
  • channelName: Name of the destination channel.
  • uid: User ID of the host in the destination channel. Range is 0 to (2<sup>32</sup> - 1). To avoid user ID conflicts, this value must differ from other user IDs in the destination channel. Default is 0, meaning the SDK randomly generates a user ID.
  • token: Token required to join the destination channel. This token is generated based on channelName and uid.
    • If App Certificate is not enabled, set this parameter to null, meaning the SDK uses the App ID.
    • If App Certificate is enabled, you must use the token generated based on channelName and uid.
See ChannelMediaInfo.