Developer Center
Video Call
API Reference
Agora C++ API Reference for All Platforms
Agora C++ API Reference for All Platforms
◆ ChannelMediaRelayConfiguration()
agora::rtc::ChannelMediaRelayConfiguration::ChannelMediaRelayConfiguration |
( |
| ) |
|
|
inline |
◆ srcInfo
Pointer to the source channel: ChannelMediaInfo.
- Note
uid
: ID of the user whose media stream you want to relay. We recommend setting it as 0, which means that the SDK relays the media stream of the current broadcaster.
- If you do not use a token, we recommend using the default values of the parameters in ChannelMediaInfo.
- If you use a token, set uid as 0, and ensure that the token is generated with the uid set as 0.
◆ destInfos
Pointer to the destination channel: ChannelMediaInfo. If you want to relay the media stream to multiple channels, define as many ChannelMediaInfo structs (at most four).
- Note
uid
: ID of the user who is in the source channel.
◆ destCount
int agora::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
.