ChannelMediaRelayConfiguration
跨频道媒体流转发配置信息。
Java
public class ChannelMediaRelayConfiguration {
private ChannelMediaInfo srcInfo = null;
private Map<String, ChannelMediaInfo> destInfos = null;
public ChannelMediaRelayConfiguration() {
destInfos = new HashMap<String, ChannelMediaInfo>();
srcInfo = new ChannelMediaInfo(null, null, 0);
}
public void setSrcChannelInfo(ChannelMediaInfo srcInfo) {
this.srcInfo = srcInfo;
}
public void setDestChannelInfo(String channelName, ChannelMediaInfo destInfo) {
destInfos.put(channelName, destInfo);
}
public void removeDestChannelInfo(String channelName) {
destInfos.remove(channelName);
}
public ChannelMediaInfo getSrcChannelMediaInfo() {
return srcInfo;
}
public Map<String, ChannelMediaInfo> getDestChannelMediaInfos() {
return destInfos;
}
}
方法
setSrcChannelInfo
设置源频道信息。详见 setSrcChannelInfo。
setDestChannelInfo
设置目标频道信息。详见 setDestChannelInfo。
removeDestChannelInfo
删除目标频道信息。详见 removeDestChannelInfo。
getSrcChannelMediaInfo
获取源频道信息。详见 getSrcChannelMediaInfo。
getDestChannelMediaInfos
获取目标频道信息。详见 getDestChannelMediaInfos。