|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.neomedia.RTPConnectorImpl
public class RTPConnectorImpl
| Constructor Summary | |
|---|---|
RTPConnectorImpl(StreamConnector connector)
Initializes a new RTPConnectorImpl which is to use a given pair of datagram sockets for RTP and RTCP traffic specified in the form of a StreamConnector. |
|
| Method Summary | |
|---|---|
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 RTPConnectorInputStream |
createControlInputStream()
Creates the RTCP packet input stream to be used by RTPManager. |
protected RTPConnectorOutputStream |
createControlOutputStream()
Creates the RTCP packet output stream to be used by RTPManager. |
protected RTPConnectorInputStream |
createDataInputStream()
Creates the RTP packet input stream to be used by RTPManager. |
protected 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. |
DatagramSocket |
getControlSocket()
Gets the UDP Socket this instance uses to send and receive RTCP packets. |
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. |
DatagramSocket |
getDataSocket()
Gets the UDP socket this instance uses to send and receive RTP packets. |
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 |
setReceiveBufferSize(int size)
Provides a dummy implementation to RTPConnector.setReceiveBufferSize(int). |
void |
setSendBufferSize(int size)
Provides a dummy implementation to RTPConnector.setSendBufferSize(int). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RTPConnectorImpl(StreamConnector connector)
connector - the pair of datagram sockets for RTP and RTCP traffic
the new instance is to use| Method Detail |
|---|
public void addTarget(javax.media.rtp.SessionAddress target)
throws IOException
target - Destination target address
IOException - if there was a socket-related error while adding the
specified targetpublic void close()
close in interface javax.media.rtp.RTPConnector
protected RTPConnectorInputStream createControlInputStream()
throws IOException
IOException - if an error occurs during the creation of the RTCP
packet input stream
protected RTPConnectorOutputStream createControlOutputStream()
throws IOException
IOException - if an error occurs during the creation of the RTCP
packet output stream
protected RTPConnectorInputStream createDataInputStream()
throws IOException
IOException - if an error occurs during the creation of the RTP
packet input stream
protected 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 stream
protected 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, false
IOException - if creating the PushSourceStream fails
public RTPConnectorOutputStream getControlOutputStream()
throws IOException
getControlOutputStream in interface javax.media.rtp.RTPConnectorIOException - if an error occurs during the creation of the RTCP
packet output stream
protected 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, false
IOException - if creating the OutputDataStream failspublic DatagramSocket getControlSocket()
public RTPConnectorInputStream getDataInputStream()
throws IOException
getDataInputStream in interface javax.media.rtp.RTPConnectorIOException - if an error occurs during the creation of the RTP
packet input stream
protected 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, false
IOException - if creating the PushSourceStream fails
public RTPConnectorOutputStream getDataOutputStream()
throws IOException
getDataOutputStream in interface javax.media.rtp.RTPConnectorIOException - if an error occurs during the creation of the RTP
public 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, false
IOException - if creating the OutputDataStream failspublic DatagramSocket getDataSocket()
public 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.
IOException
public void setSendBufferSize(int size)
throws IOException
RTPConnector.setSendBufferSize(int).
setSendBufferSize in interface javax.media.rtp.RTPConnectorsize - ignored.
IOException
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||