|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.fmj.media.rtp.RTPHeader
public class RTPHeader
Represents the header of an RTP packet
| Field Summary | |
|---|---|
static int |
MAX_PAYLOAD
The maximum payload type |
static int |
MAX_SEQUENCE
The maximum RTP sequence |
static int |
SIZE
The size of the RTP Header |
static long |
UINT_TO_LONG_CONVERT
Unsigned int to long conversion mask |
static int |
VERSION
The current RTP Header Version |
| Constructor Summary | |
|---|---|
RTPHeader(byte[] data,
int offset,
int length)
Creates a new RTPHeader |
|
RTPHeader(java.net.DatagramPacket packet)
Creates a new RTPHeader |
|
| Method Summary | |
|---|---|
int |
getFlags()
Returns the flags of the header |
void |
print()
Prints the header |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int VERSION
public static final int MAX_PAYLOAD
public static final int SIZE
public static final int MAX_SEQUENCE
public static final long UINT_TO_LONG_CONVERT
| Constructor Detail |
|---|
public RTPHeader(java.net.DatagramPacket packet)
throws java.io.IOException
packet - The packet to parse the header from
java.io.IOException - I/O Exception
public RTPHeader(byte[] data,
int offset,
int length)
throws java.io.IOException
offset - the offset after which the header startslength - the total lengthdata - The packet to parse the header from
java.io.IOException - I/O Exception| Method Detail |
|---|
public int getFlags()
public void print()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||