public abstract class AbstractRTPConnector extends Object implements javax.media.rtp.RTPConnector
| Modifier and Type | Field and Description |
|---|---|
protected StreamConnector |
connector
The pair of datagram sockets for RTP and RTCP traffic that this instance
uses in the form of a StreamConnector.
|
| Constructor and Description |
|---|
AbstractRTPConnector(StreamConnector connector)
Initializes a new AbstractRTPConnector which is to use a given
pair of datagram sockets for RTP and RTCP traffic specified in the form
of a StreamConnector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTarget(javax.media.rtp.SessionAddress target)
Add a stream target.
|
void |
close()
Closes all sockets, stream, and the StreamConnector that this
RTPConnector is using.
|
protected abstract RTPConnectorInputStream<?> |
createControlInputStream()
Creates the RTCP packet input stream to be used by RTPManager.
|
protected abstract RTPConnectorOutputStream |
createControlOutputStream()
Creates the RTCP packet output stream to be used by RTPManager.
|
protected abstract RTPConnectorInputStream<?> |
createDataInputStream()
Creates the RTP packet input stream to be used by RTPManager.
|
protected abstract RTPConnectorOutputStream |
createDataOutputStream()
Creates the RTP packet output stream to be used by RTPManager.
|
StreamConnector |
getConnector()
Gets the StreamConnector which represents the pair of datagram
sockets for RTP and RTCP traffic used by this instance.
|
RTPConnectorInputStream<?> |
getControlInputStream()
Returns the input stream that is handling incoming RTCP packets.
|
protected RTPConnectorInputStream<?> |
getControlInputStream(boolean create)
Gets the PushSourceStream which gives access to the RTCP data
received from the remote targets and optionally creates it if it does not
exist yet.
|
RTPConnectorOutputStream |
getControlOutputStream()
Returns the input stream that is handling outgoing RTCP packets.
|
protected RTPConnectorOutputStream |
getControlOutputStream(boolean create)
Gets the OutputDataStream which is used to write RTCP data to be
sent to from the remote targets and optionally creates it if it does not
exist yet.
|
RTPConnectorInputStream<?> |
getDataInputStream()
Returns the input stream that is handling incoming RTP packets.
|
protected RTPConnectorInputStream<?> |
getDataInputStream(boolean create)
Gets the PushSourceStream which gives access to the RTP data
received from the remote targets and optionally creates it if it does not
exist yet.
|
RTPConnectorOutputStream |
getDataOutputStream()
Returns the input stream that is handling outgoing RTP packets.
|
RTPConnectorOutputStream |
getDataOutputStream(boolean create)
Gets the OutputDataStream which is used to write RTP data to be
sent to from the remote targets and optionally creates it if it does not
exist yet.
|
int |
getReceiveBufferSize()
Provides a dummy implementation to
RTPConnector.getReceiveBufferSize() that always returns -1. |
double |
getRTCPBandwidthFraction()
Provides a dummy implementation to
RTPConnector.getRTCPBandwidthFraction() that always returns -1. |
double |
getRTCPSenderBandwidthFraction()
Provides a dummy implementation to
RTPConnector.getRTCPSenderBandwidthFraction() that always returns
-1. |
int |
getSendBufferSize()
Provides a dummy implementation to
RTPConnector.getSendBufferSize() that always returns -1. |
void |
removeTarget(javax.media.rtp.SessionAddress target)
Removes a target from our session.
|
void |
removeTargets()
Remove all stream targets.
|
void |
setDirection(MediaDirection direction)
Configures this AbstractRTPConnector to allow RTP in the
specified direction.
|
void |
setReceiveBufferSize(int size)
Provides a dummy implementation to
RTPConnector.setReceiveBufferSize(int). |
void |
setSendBufferSize(int size)
Provides a dummy implementation to
RTPConnector.setSendBufferSize(int). |
protected final StreamConnector connector
public AbstractRTPConnector(StreamConnector connector)
connector - the pair of datagram sockets for RTP and RTCP traffic
the new instance is to usepublic void addTarget(javax.media.rtp.SessionAddress target)
throws IOException
target - Destination target addressIOException - if there was a socket-related error while adding the
specified targetpublic void close()
close in interface javax.media.rtp.RTPConnectorprotected abstract RTPConnectorInputStream<?> createControlInputStream() throws IOException
IOException - if an error occurs during the creation of the RTCP
packet input streamprotected abstract RTPConnectorOutputStream createControlOutputStream() throws IOException
IOException - if an error occurs during the creation of the RTCP
packet output streamprotected abstract RTPConnectorInputStream<?> createDataInputStream() throws IOException
IOException - if an error occurs during the creation of the RTP
packet input streamprotected abstract RTPConnectorOutputStream createDataOutputStream() throws IOException
IOException - if an error occurs during the creation of the RTP
packet output streampublic final StreamConnector getConnector()
public RTPConnectorInputStream<?> getControlInputStream() throws IOException
getControlInputStream in interface javax.media.rtp.RTPConnectorIOException - if an error occurs during the creation of the RTCP
packet input streamprotected RTPConnectorInputStream<?> getControlInputStream(boolean create) throws IOException
create - true to create the PushSourceStream which
gives access to the RTCP data received from the remote targets if it does
not exist yet; otherwise, falseIOException - if creating the PushSourceStream failspublic RTPConnectorOutputStream getControlOutputStream() throws IOException
getControlOutputStream in interface javax.media.rtp.RTPConnectorIOException - if an error occurs during the creation of the RTCP
packet output streamprotected RTPConnectorOutputStream getControlOutputStream(boolean create) throws IOException
create - true to create the OutputDataStream which
is to be used to write RTCP data to be sent to the remote targets if it
does not exist yet; otherwise, falseIOException - if creating the OutputDataStream failspublic RTPConnectorInputStream<?> getDataInputStream() throws IOException
getDataInputStream in interface javax.media.rtp.RTPConnectorIOException - if an error occurs during the creation of the RTP
packet input streamprotected RTPConnectorInputStream<?> getDataInputStream(boolean create) throws IOException
create - true to create the PushSourceStream which
gives access to the RTP data received from the remote targets if it does
not exist yet; otherwise, falseIOException - if creating the PushSourceStream failspublic RTPConnectorOutputStream getDataOutputStream() throws IOException
getDataOutputStream in interface javax.media.rtp.RTPConnectorIOException - if an error occurs during the creation of the RTPpublic RTPConnectorOutputStream getDataOutputStream(boolean create) throws IOException
create - true to create the OutputDataStream which
is to be used to write RTP data to be sent to the remote targets if it
does not exist yet; otherwise, falseIOException - if creating the OutputDataStream failspublic int getReceiveBufferSize()
RTPConnector.getReceiveBufferSize() that always returns -1.getReceiveBufferSize in interface javax.media.rtp.RTPConnectorpublic double getRTCPBandwidthFraction()
RTPConnector.getRTCPBandwidthFraction() that always returns -1.getRTCPBandwidthFraction in interface javax.media.rtp.RTPConnectorpublic double getRTCPSenderBandwidthFraction()
RTPConnector.getRTCPSenderBandwidthFraction() that always returns
-1.getRTCPSenderBandwidthFraction in interface javax.media.rtp.RTPConnectorpublic int getSendBufferSize()
RTPConnector.getSendBufferSize() that always returns -1.getSendBufferSize in interface javax.media.rtp.RTPConnectorpublic void removeTarget(javax.media.rtp.SessionAddress target)
target - Destination target to be removedpublic void removeTargets()
public void setReceiveBufferSize(int size)
throws IOException
RTPConnector.setReceiveBufferSize(int).setReceiveBufferSize in interface javax.media.rtp.RTPConnectorsize - ignored.IOExceptionpublic void setSendBufferSize(int size)
throws IOException
RTPConnector.setSendBufferSize(int).setSendBufferSize in interface javax.media.rtp.RTPConnectorsize - ignored.IOExceptionpublic void setDirection(MediaDirection direction)
direction - Specifies how to configure the data streams of this
AbstractRTPConnector. The input stream will be enabled or
disabled depending on whether direction allows receiving. The
output stream will be enabled or disabled depending on whether
direction allows sending.Copyright © 2021 jitsi.org. All rights reserved.