public class RTPJitterBuffer
extends java.lang.Object
Constructor and Description |
---|
RTPJitterBuffer(int size)
Creates a new RTPJitterBuffer
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Buffer data)
Adds a buffer of data to the buffer
|
long |
peekFollowingTimeStamp()
Returns the timestamp of the next element in the buffer array without removing it.
|
long |
peekTimeStamp()
Returns the timestamp of first buffer sequence in the queue without removing it.
|
Buffer |
remove()
Removes the first buffer from the queue
|
void |
setStatistics(RTPReceptionStats statistics)
Sets the statistics to be added to by this buffer
|
int |
size()
Returns the current number of elements on the queue.
|
public RTPJitterBuffer(int size)
size
- The size of the bufferpublic void setStatistics(RTPReceptionStats statistics)
statistics
- The statistics to add topublic boolean add(Buffer data)
data
- The data to addpublic Buffer remove()
public long peekTimeStamp()
public long peekFollowingTimeStamp()
public int size()