Package org.jitsi.impl.neomedia
Class RTPConnectorUDPImpl
- java.lang.Object
-
- org.jitsi.impl.neomedia.AbstractRTPConnector
-
- org.jitsi.impl.neomedia.RTPConnectorUDPImpl
-
- All Implemented Interfaces:
javax.media.rtp.RTPConnector
- Direct Known Subclasses:
RTPTransformUDPConnector
public class RTPConnectorUDPImpl extends AbstractRTPConnector
RTPConnector implementation for UDP.- Author:
- Sebastien Vincent
-
-
Field Summary
-
Fields inherited from class org.jitsi.impl.neomedia.AbstractRTPConnector
connector
-
-
Constructor Summary
Constructors Constructor Description RTPConnectorUDPImpl(StreamConnector connector)Initializes a new RTPConnectorUDPImpl which is to use a given pair of datagram sockets for RTP and RTCP traffic specified in the form of a StreamConnector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RTPConnectorInputStream<?>createControlInputStream()Creates the RTCP packet input stream to be used by RTPManager.protected RTPConnectorOutputStreamcreateControlOutputStream()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 RTPConnectorOutputStreamcreateDataOutputStream()Creates the RTP packet output stream to be used by RTPManager.DatagramSocketgetControlSocket()Gets the UDP Socket this instance uses to send and receive RTCP packets.DatagramSocketgetDataSocket()Gets the UDP socket this instance uses to send and receive RTP packets.-
Methods inherited from class org.jitsi.impl.neomedia.AbstractRTPConnector
addTarget, close, getConnector, getControlInputStream, getControlInputStream, getControlOutputStream, getControlOutputStream, getDataInputStream, getDataInputStream, getDataOutputStream, getDataOutputStream, getReceiveBufferSize, getRTCPBandwidthFraction, getRTCPSenderBandwidthFraction, getSendBufferSize, removeTarget, removeTargets, setDirection, setReceiveBufferSize, setSendBufferSize
-
-
-
-
Constructor Detail
-
RTPConnectorUDPImpl
public RTPConnectorUDPImpl(StreamConnector connector)
Initializes a new RTPConnectorUDPImpl which is to use a given pair of datagram sockets for RTP and RTCP traffic specified in the form of a StreamConnector.- Parameters:
connector- the pair of datagram sockets for RTP and RTCP traffic the new instance is to use
-
-
Method Detail
-
getDataSocket
public DatagramSocket getDataSocket()
Gets the UDP socket this instance uses to send and receive RTP packets.- Returns:
- the UDP socket this instance uses to send and receive RTP packets
-
getControlSocket
public DatagramSocket getControlSocket()
Gets the UDP Socket this instance uses to send and receive RTCP packets.- Returns:
- the UDP Socket this instance uses to send and receive RTCP packets
-
createControlInputStream
protected RTPConnectorInputStream<?> createControlInputStream() throws IOException
Creates the RTCP packet input stream to be used by RTPManager.- Specified by:
createControlInputStreamin classAbstractRTPConnector- Returns:
- a new RTCP packet input stream to be used by RTPManager
- Throws:
IOException- if an error occurs during the creation of the RTCP packet input stream
-
createControlOutputStream
protected RTPConnectorOutputStream createControlOutputStream() throws IOException
Creates the RTCP packet output stream to be used by RTPManager.- Specified by:
createControlOutputStreamin classAbstractRTPConnector- Returns:
- a new RTCP packet output stream to be used by RTPManager
- Throws:
IOException- if an error occurs during the creation of the RTCP packet output stream
-
createDataInputStream
protected RTPConnectorInputStream<?> createDataInputStream() throws IOException
Creates the RTP packet input stream to be used by RTPManager.- Specified by:
createDataInputStreamin classAbstractRTPConnector- Returns:
- a new RTP packet input stream to be used by RTPManager
- Throws:
IOException- if an error occurs during the creation of the RTP packet input stream
-
createDataOutputStream
protected RTPConnectorOutputStream createDataOutputStream() throws IOException
Creates the RTP packet output stream to be used by RTPManager.- Specified by:
createDataOutputStreamin classAbstractRTPConnector- Returns:
- a new RTP packet output stream to be used by RTPManager
- Throws:
IOException- if an error occurs during the creation of the RTP packet output stream
-
-