public class RTPHeader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
RTPHeader(byte[] data,
int offset,
int length)
Creates a new RTPHeader
|
RTPHeader(java.net.DatagramPacket packet)
Creates a new RTPHeader
|
Modifier and Type | Method and Description |
---|---|
int |
getFlags()
Returns the flags of the header
|
void |
print()
Prints the header
|
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
public RTPHeader(java.net.DatagramPacket packet) throws java.io.IOException
packet
- The packet to parse the header fromjava.io.IOException
- I/O Exceptionpublic 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 fromjava.io.IOException
- I/O Exception