public class DataFrame
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
firstSeqNum
The first sequence number in this frame
|
protected int |
lastSeqNum
The last sequence number in this frame
|
protected int |
noPkts
The number of packets expected for a complete frame
|
Modifier | Constructor and Description |
---|---|
protected |
DataFrame(PktBufNode aBufNode,
Participant p,
int noPkts)
The usual way to construct a frame is by giving it a PktBufNode,
which contains links to all the other pkts that make it up.
|
Modifier and Type | Method and Description |
---|---|
int |
complete()
Checks whether the difference in sequence numbers corresponds
to the number of packets received for the current timestamp,
and whether this value corresponds to the expected number of
packets.
|
long[] |
csrcs()
The SSRCs that contributed to this frame
|
byte[] |
getConcatenatedData()
Returns a concatenated version of the data from getData()
It ignores missing sequence numbers, but then isComplete()
will return false provided that RTPAppIntf.frameSize()
provides a non-negative number for this payload type.
|
byte[][] |
getData()
Returns a two dimensial array where the first dimension represents individual
packets, from which the frame is made up, in order of increasing sequence number.
|
boolean |
marked()
Returns true if any packet in the frame was marked.
|
boolean[] |
marks()
Returns an array whose values, for the same index, correpond to
whether the data was marked or not.
|
int |
payloadType()
Returns the payload type of the packets
|
long |
rtpTimestamp()
Returns the RTP timestamp of all the packets in the frame.
|
int[] |
sequenceNumbers()
Returns an array whose values, for the same index, correpond to the
sequence number of the packet from which the data came.
|
long |
ssrc()
The SSRC associated with this frame.
|
long |
timestamp()
If two SR packet have been received jlibrtp will attempt to calculate
the local UNIX timestamp (in milliseconds) of all packets received.
|
protected int lastSeqNum
protected int firstSeqNum
protected int noPkts
protected DataFrame(PktBufNode aBufNode, Participant p, int noPkts)
public byte[][] getData()
public byte[] getConcatenatedData()
public long timestamp()
public long rtpTimestamp()
public int payloadType()
public int[] sequenceNumbers()
public boolean[] marks()
public boolean marked()
public long ssrc()
public long[] csrcs()
public int complete()