Agora Java API Reference for Android
Public Attributes | List of all members
agora::rtc::ChannelMediaRelayConfiguration Struct Reference

#include <AgoraBase.h>

Public Attributes

ChannelMediaInfosrcInfo
 
ChannelMediaInfodestInfos
 
int destCount
 

Detailed Description

The definition of ChannelMediaRelayConfiguration.

Member Data Documentation

◆ srcInfo

ChannelMediaInfo* agora::rtc::ChannelMediaRelayConfiguration::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

ChannelMediaInfo* agora::rtc::ChannelMediaRelayConfiguration::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.