public class ControlTransformInputStream extends RTPConnectorUDPInputStream
PACKET_RECEIVE_BUFFER_LENGTH, socket
Constructor and Description |
---|
ControlTransformInputStream(java.net.DatagramSocket socket)
Initializes a new ControlTransformInputStream which is to
receive packet data from a specific UDP socket.
|
Modifier and Type | Method and Description |
---|---|
void |
addRTCPFeedbackMessageListener(RTCPFeedbackMessageListener listener)
Adds an RTCPFeedbackMessageListener.
|
protected int |
read(javax.media.Buffer buffer,
byte[] data,
int offset,
int length)
Copies the content of the most recently received packet into
data.
|
void |
removeRTCPFeedbackMessageListener(RTCPFeedbackMessageListener listener)
Removes an RTCPFeedbackMessageListener.
|
doLogPacket, receive, setReceiveBufferSize
createRawPacket, getTransformer, setTransformer
addDatagramPacketFilter, close, endOfStream, getContentDescriptor, getContentLength, getControl, getControls, getDatagramPacketFilters, getMinimumTransferSize, getNumberOfReceivedBytes, getPacketLoggingService, read, setEnabled, setPriority, setThreadPriority, setTransferHandler
public ControlTransformInputStream(java.net.DatagramSocket socket)
socket
- the UDP socket the new instance is to receive data frompublic void addRTCPFeedbackMessageListener(RTCPFeedbackMessageListener listener)
listener
- the RTCPFeedbackMessageListener to addpublic void removeRTCPFeedbackMessageListener(RTCPFeedbackMessageListener listener)
listener
- the RTCPFeedbackMessageListener to removeprotected int read(javax.media.Buffer buffer, byte[] data, int offset, int length) throws java.io.IOException
read
in class RTPConnectorInputStream<java.net.DatagramSocket>
buffer
- an optional Buffer instance associated with the
specified data, offset and length and
provided to the method in case the implementation would like to provide
additional Buffer properties such as flagsdata
- the byte[] that we'd like to copy the content of
the packet to.offset
- the position where we are supposed to start writing in
data.length
- the number of bytes available for writing in
data.java.io.IOException
- if length is less than the size of the
packet.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.