public static class ColibriConferenceIQ.Channel extends ColibriConferenceIQ.ChannelCommon
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DIRECTION_ATTR_NAME
The name of the XML attribute of a channel which represents
its direction.
|
static java.lang.String |
ELEMENT_NAME
The XML element name of a channel of a content of a
Jitsi Videobridge conference IQ.
|
static java.lang.String |
HOST_ATTR_NAME
Deprecated.
The attribute is supported for the purposes of
compatibility with legacy versions of Jitsi and Jitsi Videobridge.
|
static java.lang.String |
LAST_N_ATTR_NAME
The XML name of the last-n attribute of a video
channel which specifies the maximum number of video RTP
streams to be sent from Jitsi Videobridge to the endpoint associated
with the video channel.
|
static java.lang.String |
PACKET_DELAY_ATTR_NAME
The XML name of the packet-delay attribute of
a channel of a content of a conference IQ
which represents the value of the
packetDelay property of
ColibriConferenceIQ.Channel. |
static java.lang.String |
RECEIVING_SIMULCAST_LAYER
The XML name of the receive-simulcast-layer attribute of a
video Channel which specifies the target quality of the
simulcast substreams to be sent from Jitsi Videobridge to the
endpoint associated with the video Channel.
|
static java.lang.String |
RTCP_PORT_ATTR_NAME
Deprecated.
The attribute is supported for the purposes of
compatibility with legacy versions of Jitsi and Jitsi Videobridge.
|
static java.lang.String |
RTP_LEVEL_RELAY_TYPE_ATTR_NAME |
static java.lang.String |
RTP_PORT_ATTR_NAME
Deprecated.
The attribute is supported for the purposes of
compatibility with legacy versions of Jitsi and Jitsi Videobridge.
|
static java.lang.String |
SIMULCAST_MODE_ATTR_NAME
The XML name of the simulcast-mode attribute of a video
channel.
|
static java.lang.String |
SSRC_ELEMENT_NAME
The name of the XML element which is a child of the <channel>
element and which identifies/specifies an (RTP) SSRC which has been
seen/received on the respective Channel.
|
static java.lang.String |
TYPE_ATTR_NAME
The name of the "type" attribute.
|
CHANNEL_BUNDLE_ID_ATTR_NAME, ENDPOINT_ATTR_NAME, EXPIRE_ATTR_NAME, EXPIRE_NOT_SPECIFIED, ID_ATTR_NAME, INITIATOR_ATTR_NAME
Constructor and Description |
---|
Channel()
Initializes a new Channel instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addPayloadType(PayloadTypePacketExtension payloadType)
Adds a payload-type element defined by XEP-0167: Jingle RTP
Sessions to this channel.
|
void |
addRtpHeaderExtension(RTPHdrExtPacketExtension ext)
Adds an rtp-hdrext element defined by XEP-0294: Jingle RTP
Header Extensions Negotiation to this Channel.
|
boolean |
addSource(SourcePacketExtension source)
Adds a SourcePacketExtension to the list of sources of this
channel.
|
boolean |
addSourceGroup(SourceGroupPacketExtension sourceGroup)
Adds a SourceGroupPacketExtension to the list of source
groups of this channel.
|
boolean |
addSSRC(int ssrc)
Adds a specific (RTP) SSRC to the list of SSRCs seen/received on this
Channel.
|
org.jitsi.service.neomedia.MediaDirection |
getDirection()
Gets the direction of this Channel.
|
java.lang.String |
getHost()
Deprecated.
The method is supported for the purposes of compatibility
with legacy versions of Jitsi and Jitsi Videobridge.
|
java.lang.Integer |
getLastN()
Gets the maximum number of video RTP streams to be sent from Jitsi
Videobridge to the endpoint associated with this video
Channel.
|
java.lang.Integer |
getPacketDelay()
Returns an Integer which stands for the amount of delay
added to the RTP stream in a number of packets.
|
java.util.List<PayloadTypePacketExtension> |
getPayloadTypes()
Gets a list of payload-type elements defined by XEP-0167:
Jingle RTP Sessions added to this channel.
|
java.lang.Integer |
getReceivingSimulcastLayer()
Gets the target quality of the simulcast substreams to be sent from
Jitsi Videobridge to the endpoint associated with this video
Channel.
|
int |
getRTCPPort()
Deprecated.
The method is supported for the purposes of compatibility
with legacy versions of Jitsi and Jitsi Videobridge.
|
java.util.Collection<RTPHdrExtPacketExtension> |
getRtpHeaderExtensions()
Gets a list of rtp-hdrext elements defined by XEP-0294:
Jingle RTP Header Extensions Negotiation added to this
channel.
|
RTPLevelRelayType |
getRTPLevelRelayType()
Gets the type of RTP-level relay (in the terms specified by RFC 3550
"RTP: A Transport Protocol for Real-Time Applications" in
section 2.3 "Mixers and Translators") used for this
Channel.
|
int |
getRTPPort()
Deprecated.
The method is supported for the purposes of compatibility
with legacy versions of Jitsi and Jitsi Videobridge.
|
SimulcastMode |
getSimulcastMode()
Gets the value of the 'simulcast-mode' flag.
|
java.util.List<SourceGroupPacketExtension> |
getSourceGroups()
Gets the list of SourceGroupPacketExtensionss which
represent the source groups of this channel.
|
java.util.List<SourcePacketExtension> |
getSources()
Gets the list of SourcePacketExtensionss which represent the
sources of this channel.
|
int[] |
getSSRCs()
Gets (a copy of) the list of (RTP) SSRCs seen/received on this
Channel.
|
protected boolean |
hasContent()
Indicates whether there are some contents that should be printed as
child elements of this IQ.
|
protected void |
printAttributes(java.lang.StringBuilder xml)
Derived class implements this method in order to print additional
attributes to main XML element.
|
protected void |
printContent(java.lang.StringBuilder xml)
Implement in order to print content child elements of this IQ using
given StringBuilder.
|
boolean |
removePayloadType(PayloadTypePacketExtension payloadType)
Removes a payload-type element defined by XEP-0167: Jingle
RTP Sessions from this channel.
|
void |
removeRtpHeaderExtension(RTPHdrExtPacketExtension ext)
Removes a rtp-hdrext element defined by XEP-0294: Jingle
RTP Header Extensions Negotiation from this channel.
|
boolean |
removeSource(SourcePacketExtension source)
Removes a SourcePacketExtension from the list of sources of
this channel.
|
boolean |
removeSSRC(int ssrc)
Removes a specific (RTP) SSRC from the list of SSRCs seen/received on
this Channel.
|
void |
setDirection(org.jitsi.service.neomedia.MediaDirection direction)
Sets the direction of this Channel
|
void |
setHost(java.lang.String host)
Deprecated.
The method is supported for the purposes of compatibility
with legacy versions of Jitsi and Jitsi Videobridge.
|
void |
setLastN(java.lang.Integer lastN)
Sets the maximum number of video RTP streams to be sent from Jitsi
Videobridge to the endpoint associated with this video
Channel.
|
void |
setPacketDelay(java.lang.Integer packetDelay)
Configures channel's packet delay which tells by how many packets
the RTP streams will be delayed.
|
void |
setReceivingSimulcastLayer(java.lang.Integer simulcastLayer)
Sets the target quality of the simulcast substreams to be sent from
Jitsi Videobridge to the endpoint associated with this video
Channel.
|
void |
setRTCPPort(int rtcpPort)
Deprecated.
The method is supported for the purposes of compatibility
with legacy versions of Jitsi and Jitsi Videobridge.
|
void |
setRTPLevelRelayType(RTPLevelRelayType rtpLevelRelayType)
Sets the type of RTP-level relay (in the terms specified by RFC 3550
"RTP: A Transport Protocol for Real-Time Applications" in
section 2.3 "Mixers and Translators") used for this
Channel.
|
void |
setRTPLevelRelayType(java.lang.String s)
Sets the type of RTP-level relay (in the terms specified by RFC 3550
"RTP: A Transport Protocol for Real-Time Applications" in
section 2.3 "Mixers and Translators") used for this
Channel.
|
void |
setRTPPort(int rtpPort)
Deprecated.
The method is supported for the purposes of compatibility
with legacy versions of Jitsi and Jitsi Videobridge.
|
void |
setSimulcastMode(SimulcastMode simulcastMode)
Sets the value of the 'simulcast-mode' flag.
|
void |
setSSRCs(int[] ssrcs)
Sets the list of (RTP) SSRCs seen/received on this Channel.
|
getChannelBundleId, getEndpoint, getExpire, getID, getTransport, isInitiator, setChannelBundleId, setEndpoint, setExpire, setID, setInitiator, setTransport, toXML
public static final java.lang.String DIRECTION_ATTR_NAME
public static final java.lang.String ELEMENT_NAME
@Deprecated public static final java.lang.String HOST_ATTR_NAME
public static final java.lang.String LAST_N_ATTR_NAME
public static final java.lang.String SIMULCAST_MODE_ATTR_NAME
public static final java.lang.String RECEIVING_SIMULCAST_LAYER
public static final java.lang.String PACKET_DELAY_ATTR_NAME
packetDelay
property of
ColibriConferenceIQ.Channel.@Deprecated public static final java.lang.String RTCP_PORT_ATTR_NAME
public static final java.lang.String RTP_LEVEL_RELAY_TYPE_ATTR_NAME
@Deprecated public static final java.lang.String RTP_PORT_ATTR_NAME
public static final java.lang.String SSRC_ELEMENT_NAME
public static final java.lang.String TYPE_ATTR_NAME
public boolean addPayloadType(PayloadTypePacketExtension payloadType)
payloadType
- the payload-type element to be added to
this channeljava.lang.NullPointerException
- if the specified payloadType is
nullpublic void addRtpHeaderExtension(RTPHdrExtPacketExtension ext)
ext
- the payload-type element to be added to
this channeljava.lang.NullPointerException
- if the specified ext is
nullpublic boolean addSource(SourcePacketExtension source)
source
- the SourcePacketExtension to add to the list
of sources of this channelpublic boolean addSourceGroup(SourceGroupPacketExtension sourceGroup)
sourceGroup
- the SourcePacketExtension to add to the
list of sources of this channelpublic boolean addSSRC(int ssrc)
ssrc
- the (RTP) SSRC to be added to the list of SSRCs
seen/received on this Channelpublic org.jitsi.service.neomedia.MediaDirection getDirection()
@Deprecated public java.lang.String getHost()
public java.lang.Integer getLastN()
public SimulcastMode getSimulcastMode()
public java.lang.Integer getPacketDelay()
public java.util.List<PayloadTypePacketExtension> getPayloadTypes()
public java.util.Collection<RTPHdrExtPacketExtension> getRtpHeaderExtensions()
public java.lang.Integer getReceivingSimulcastLayer()
@Deprecated public int getRTCPPort()
public RTPLevelRelayType getRTPLevelRelayType()
@Deprecated public int getRTPPort()
public java.util.List<SourceGroupPacketExtension> getSourceGroups()
public java.util.List<SourcePacketExtension> getSources()
public int[] getSSRCs()
protected boolean hasContent()
ColibriConferenceIQ.ChannelCommon
ColibriConferenceIQ.ChannelCommon.printContent(StringBuilder)
method will be called when
XML representation of this IQ is being constructed.hasContent
in class ColibriConferenceIQ.ChannelCommon
protected void printAttributes(java.lang.StringBuilder xml)
ColibriConferenceIQ.ChannelCommon
printAttributes
in class ColibriConferenceIQ.ChannelCommon
xml
- protected void printContent(java.lang.StringBuilder xml)
ColibriConferenceIQ.ChannelCommon
ColibriConferenceIQ.ChannelCommon.hasContent()
returns true.printContent
in class ColibriConferenceIQ.ChannelCommon
xml
- the StringBuilder to which the XML
String representation of this Channel
is to be appended.public boolean removePayloadType(PayloadTypePacketExtension payloadType)
payloadType
- the payload-type element to be removed
from this channelpublic void removeRtpHeaderExtension(RTPHdrExtPacketExtension ext)
ext
- the rtp-hdrext element to be removed
from this channelpublic boolean removeSource(SourcePacketExtension source)
source
- the SourcePacketExtension to remove from the
list of sources of this channelpublic boolean removeSSRC(int ssrc)
ssrc
- the (RTP) SSRC to be removed from the list of SSRCs
seen/received on this Channelpublic void setDirection(org.jitsi.service.neomedia.MediaDirection direction)
direction
- the MediaDirection to set the
direction of this Channel to.@Deprecated public void setHost(java.lang.String host)
host
- a String value which represents the IP address
of the host on which the channel represented by this
instance has been allocatedpublic void setLastN(java.lang.Integer lastN)
lastN
- the maximum number of video RTP streams to be sent from
Jitsi Videobridge to the endpoint associated with this video
Channelpublic void setPacketDelay(java.lang.Integer packetDelay)
packetDelay
- an Integer value which stands for
the packet delay that will be set or null to leave undefinedpublic void setSimulcastMode(SimulcastMode simulcastMode)
simulcastMode
- the value to set.public void setReceivingSimulcastLayer(java.lang.Integer simulcastLayer)
simulcastLayer
- the target quality of the simulcast substreams
to be sent from Jitsi Videobridge to the endpoint associated with
this video Channel.@Deprecated public void setRTCPPort(int rtcpPort)
rtcpPort
- the port which has been allocated to this
channel for the purposes of transmitting RTCP packetspublic void setRTPLevelRelayType(RTPLevelRelayType rtpLevelRelayType)
rtpLevelRelayType
- the type of RTP-level relay used for
this Channelpublic void setRTPLevelRelayType(java.lang.String s)
s
- the type of RTP-level relay used for this Channel@Deprecated public void setRTPPort(int rtpPort)
rtpPort
- the port which has been allocated to this
channel for the purposes of transmitting RTP packetspublic void setSSRCs(int[] ssrcs)
ssrcs
- the list of (RTP) SSRCs to be set as seen/received on
this Channel
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.