|
|
|
|
@ -64,6 +64,8 @@ public class ColibriConferenceIQ
|
|
|
|
|
*/
|
|
|
|
|
public Recording recording = null;
|
|
|
|
|
|
|
|
|
|
private RTCPTerminationStrategy rtcpTerminationStrategy = null;
|
|
|
|
|
|
|
|
|
|
/** Initializes a new <tt>ColibriConferenceIQ</tt> instance. */
|
|
|
|
|
public ColibriConferenceIQ()
|
|
|
|
|
{
|
|
|
|
|
@ -141,6 +143,10 @@ public String getChildElementXML()
|
|
|
|
|
content.toXML(xml);
|
|
|
|
|
if (recording != null)
|
|
|
|
|
recording.toXML(xml);
|
|
|
|
|
|
|
|
|
|
if (rtcpTerminationStrategy != null)
|
|
|
|
|
rtcpTerminationStrategy.toXML(xml);
|
|
|
|
|
|
|
|
|
|
xml.append("</").append(ELEMENT_NAME).append('>');
|
|
|
|
|
}
|
|
|
|
|
return xml.toString();
|
|
|
|
|
@ -253,6 +259,16 @@ public void setID(String id)
|
|
|
|
|
this.id = id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public RTCPTerminationStrategy getRTCPTerminationStrategy()
|
|
|
|
|
{
|
|
|
|
|
return rtcpTerminationStrategy;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setRTCPTerminationStrategy(RTCPTerminationStrategy rtcpTerminationStrategy)
|
|
|
|
|
{
|
|
|
|
|
this.rtcpTerminationStrategy = rtcpTerminationStrategy;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class contains common code for both <tt>Channel</tt> and
|
|
|
|
|
* <tt>SctpConnection</tt> IQ classes.
|
|
|
|
|
@ -515,6 +531,33 @@ public void toXML(StringBuilder xml)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class RTCPTerminationStrategy
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public static final String ELEMENT_NAME = "rtcp-termination-strategy";
|
|
|
|
|
public static final String NAME_ATTR_NAME = "name";
|
|
|
|
|
|
|
|
|
|
private String name;
|
|
|
|
|
|
|
|
|
|
public void setName(String name)
|
|
|
|
|
{
|
|
|
|
|
this.name = name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getName()
|
|
|
|
|
{
|
|
|
|
|
return name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void toXML(StringBuilder xml)
|
|
|
|
|
{
|
|
|
|
|
xml.append('<').append(ELEMENT_NAME);
|
|
|
|
|
xml.append(' ').append(NAME_ATTR_NAME).append("='")
|
|
|
|
|
.append(name).append('\'');
|
|
|
|
|
xml.append("/>");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Represents a <tt>channel</tt> included into a <tt>content</tt> of a Jitsi
|
|
|
|
|
* Videobridge <tt>conference</tt> IQ.
|
|
|
|
|
|