|
Agora Java API Reference for Android
|
Configuration of cross channel media relay. More...
Public Member Functions | |
| ChannelMediaRelayConfiguration () | |
| void | setSrcChannelInfo (ChannelMediaInfo srcInfo) |
| void | setDestChannelInfo (String channelName, ChannelMediaInfo destInfo) |
| void | removeDestChannelInfo (String channelName) |
| ChannelMediaInfo | getSrcChannelMediaInfo () |
| Map< String, ChannelMediaInfo > | getDestChannelMediaInfos () |
Configuration of cross channel media relay.
| io.agora.rtc2.video.ChannelMediaRelayConfiguration.ChannelMediaRelayConfiguration | ( | ) |
The configuration of the channel media relay.
| void io.agora.rtc2.video.ChannelMediaRelayConfiguration.setSrcChannelInfo | ( | ChannelMediaInfo | srcInfo | ) |
Sets the information of the source channel.
| srcInfo | The information of the source channel: ChannelMediaInfo. It contains the following members:
|
| void io.agora.rtc2.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. It contains the following members:
|
| void io.agora.rtc2.video.ChannelMediaRelayConfiguration.removeDestChannelInfo | ( | String | channelName | ) |
Removes the destination channel.
| channelName | The name of the destination channel. |
1.8.18