|
Voice SDK v3.7.1 API Reference for Unity
|
Public Attributes |
|
| ChannelMediaInfo | srcInfo |
| ChannelMediaInfo | destInfos |
| int | destCount |
The definition of ChannelMediaRelayConfiguration.
| int agora_gaming_rtc.ChannelMediaRelayConfiguration.destCount |
The number of destination channels. The default value is 0, and the value range is
[0,4]. Ensure that the value of this parameter corresponds to the number of
ChannelMediaInfo
structs you define in destInfos.
| ChannelMediaInfo agora_gaming_rtc.ChannelMediaRelayConfiguration.destInfos |
The information of the destination channel: ChannelMediaInfo. It contains the following members:
channelName: The name of the destination channel.uid: The unique ID to identify the relay stream in the destination
channel. The value ranges from 0 to (232-1). To avoid UID conflicts, this
uid must be different from any other UIDs in the destination channel. The
default value is 0, which means the SDK generates a random UID. Do not set this
parameter as the uid of the host in the destination channel, and ensure
that this uid is different from any other uid in the
channel.
token: The token for joining the destination channel. It is generated
with the channelName and uid you set in
destInfos.
null, which means the SDK applies the App ID.
token generated with the channelName and
uid.
| ChannelMediaInfo agora_gaming_rtc.ChannelMediaRelayConfiguration.srcInfo |
The information of the source channel: ChannelMediaInfo. It contains the following members:
channelName: The name of the source channel. The default value is
null, which means the SDK applies the name of the current channel.
uid: The unique ID to identify the relay stream in the source channel.
The default value is 0, which means the SDK generates a random UID. You must set it as
0.
token: The token for joining the source channel. It is generated with the
channelName and uid you set in srcInfo.
null, which means the SDK applies the App ID.
token generated with the channelName and
uid, and the uid must be set as 0.