Public Member Functions | |
ChannelMediaRelayConfiguration () | |
void | setSrcChannelInfo (ChannelMediaInfo srcInfo) |
void | setDestChannelInfo (String channelName, ChannelMediaInfo destInfo) |
void | removeDestChannelInfo (String channelName) |
ChannelMediaInfo | getSrcChannelMediaInfo () |
Map< String, ChannelMediaInfo > | getDestChannelMediaInfos () |
Created by TongJiangyong on 31/01/2018. The ChannelMediaRelayConfiguration class.
io.agora.rtc.video.ChannelMediaRelayConfiguration.ChannelMediaRelayConfiguration | ( | ) |
The definition of ChannelMediaRelayConfiguration.
The information of the destination channel: ChannelMediaInfo.
uid
: The user ID in the destination channel.The information of the source channel: ChannelMediaInfo.
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.void io.agora.rtc.video.ChannelMediaRelayConfiguration.setSrcChannelInfo | ( | ChannelMediaInfo | srcInfo | ) |
Sets the information of the source channel.
srcInfo | The information of the source channel: ChannelMediaInfo. |
void io.agora.rtc.video.ChannelMediaRelayConfiguration.setDestChannelInfo | ( | String | channelName, |
ChannelMediaInfo | destInfo | ||
) |
Sets the information of the destination channel.
If you want to relay the media stream to multiple channels, call this method as many times (at most four).
channelName | The name of the destination channel. Ensure that the value of this parameter is the same as that of the channelName member in destInfo . |
destInfo | The information of the destination channel: ChannelMediaInfo. |
void io.agora.rtc.video.ChannelMediaRelayConfiguration.removeDestChannelInfo | ( | String | channelName | ) |
Removes the destination channel.
channelName | The name of the destination channel. |