public class RTPAudioDataStream extends RTPDataStream implements PushBufferStream
bitsPerSecond, bytesProcessed, clockRate, controls, format, handler, itsRTPBuffer, jitter, lastTimestamp, packetSize, receptionStats, rtpbufferlen, rtpbufferlenMS, ssrc, thresholdLENGTH_UNKNOWN| Constructor and Description |
|---|
RTPAudioDataStream(long ssrc,
Format format)
Creates a new RTPDataStream
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPacket(RTPHeader header,
byte[] data,
int offset,
int length)
Adds a packet to the buffers
|
void |
read(Buffer buffer)
Reads the data from this stream and returns them in the buffer passed as argument.
|
addFormat, calculateJitter, endOfStream, getContentDescriptor, getContentLength, getControl, getControlComponent, getControls, getFormat, getFormat, getFormatList, getGlobalStats, getJitter, getJitterBufferItemCount, getJitterBufferSize, getReceptionStats, setTransferHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormat, setTransferHandlerendOfStream, getContentDescriptor, getContentLengthgetControl, getControlspublic RTPAudioDataStream(long ssrc,
Format format)
ssrc - the SSRC of this streamformat - The format of the dataprotected void addPacket(RTPHeader header, byte[] data, int offset, int length)
addPacket in class RTPDataStreamheader - The header of the packetdata - The data of the packetoffset - The offset of the packetlength - The length of the packetpublic void read(Buffer buffer) throws java.io.IOException
read in interface PushBufferStreamread in class RTPDataStreambuffer - the buffer in which the data read must be storedjava.io.IOException - I/O Exception