|
|
|
|
@ -542,6 +542,14 @@ public static class Channel
|
|
|
|
|
public static final String RECEIVING_SIMULCAST_LAYER
|
|
|
|
|
= "receive-simulcast-layer";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The XML name of the <tt>packet-delay</tt> attribute of
|
|
|
|
|
* a <tt>channel</tt> of a <tt>content</tt> of a <tt>conference</tt> IQ
|
|
|
|
|
* which represents the value of the {@link #packetDelay} property of
|
|
|
|
|
* <tt>ColibriConferenceIQ.Channel</tt>.
|
|
|
|
|
*/
|
|
|
|
|
public static final String PACKET_DELAY_ATTR_NAME = "packet-delay";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The XML name of the <tt>rtcpport</tt> attribute of a <tt>channel</tt>
|
|
|
|
|
* of a <tt>content</tt> of a <tt>conference</tt> IQ which represents
|
|
|
|
|
@ -612,6 +620,11 @@ public static class Channel
|
|
|
|
|
*/
|
|
|
|
|
private SimulcastMode simulcastMode;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The amount of delay added to the RTP stream in a number of packets.
|
|
|
|
|
*/
|
|
|
|
|
private Integer packetDelay;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The <tt>payload-type</tt> elements defined by XEP-0167: Jingle RTP
|
|
|
|
|
* Sessions associated with this <tt>channel</tt>.
|
|
|
|
|
@ -892,6 +905,18 @@ public SimulcastMode getSimulcastMode()
|
|
|
|
|
return simulcastMode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns an <tt>Integer</tt> which stands for the amount of delay
|
|
|
|
|
* added to the RTP stream in a number of packets.
|
|
|
|
|
*
|
|
|
|
|
* @return <tt>Integer</tt> with the value or <tt>null</tt> if
|
|
|
|
|
* unspecified.
|
|
|
|
|
*/
|
|
|
|
|
public Integer getPacketDelay()
|
|
|
|
|
{
|
|
|
|
|
return packetDelay;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets a list of <tt>payload-type</tt> elements defined by XEP-0167:
|
|
|
|
|
* Jingle RTP Sessions added to this <tt>channel</tt>.
|
|
|
|
|
@ -1081,6 +1106,14 @@ protected void printAttributes(StringBuilder xml)
|
|
|
|
|
.append("='").append(adaptiveSimulcast).append('\'');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// packet-delay
|
|
|
|
|
Integer packetDelay = getPacketDelay();
|
|
|
|
|
if (packetDelay != null)
|
|
|
|
|
{
|
|
|
|
|
xml.append(' ').append(PACKET_DELAY_ATTR_NAME).append("='")
|
|
|
|
|
.append(packetDelay).append('\'');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// simulcastMode
|
|
|
|
|
SimulcastMode simulcastMode = getSimulcastMode();
|
|
|
|
|
|
|
|
|
|
@ -1313,6 +1346,17 @@ public void setAdaptiveSimulcast(Boolean adaptiveSimulcast)
|
|
|
|
|
this.adaptiveSimulcast = adaptiveSimulcast;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Configures channel's packet delay which tells by how many packets
|
|
|
|
|
* the RTP streams will be delayed.
|
|
|
|
|
* @param packetDelay an <tt>Integer</tt> value which stands for
|
|
|
|
|
* the packet delay that will be set or <tt>null</tt> to leave undefined
|
|
|
|
|
*/
|
|
|
|
|
public void setPacketDelay(Integer packetDelay)
|
|
|
|
|
{
|
|
|
|
|
this.packetDelay = packetDelay;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the value of the 'simulcast-mode' flag.
|
|
|
|
|
* @param simulcastMode the value to set.
|
|
|
|
|
|