|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjlibrtp.DataFrame
public class DataFrame
Data structure to hold a complete frame if frame reconstruction is enabled, or the data from an individual packet if it is not It also contains most of the data from the individual packets that it is based on.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |