public class ControlTransformInputStream extends RTPConnectorUDPInputStream
PACKET_RECEIVE_BUFFER_LENGTH, SO_RCVBUF_PNAME, socket| Constructor and Description |
|---|
ControlTransformInputStream(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, setReceiveBufferSizecreateRawPacket, getTransformer, setTransformeraddDatagramPacketFilter, close, endOfStream, getContentDescriptor, getContentLength, getControl, getControls, getDatagramPacketFilters, getLastActivityTime, getMinimumTransferSize, getNumberOfReceivedBytes, getPacketLoggingService, read, setEnabled, setPriority, setThreadPriority, setTransferHandlerpublic ControlTransformInputStream(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 IOException
read in class RTPConnectorInputStream<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.IOException - if length is less than the size of the
packet.Copyright © 2022 jitsi.org. All rights reserved.