public final class RTPHeader extends Object
Modifier and Type | Field and Description |
---|---|
static int |
length
the length in byte of a RTP header
|
boolean |
marker
the marker status
|
byte |
payload
the type of payload
|
short |
sequence_no
the sequence number of the RTP packet
|
int |
source_id
the source id of the RTP packet
|
int |
timestamp
the timestamp of the RTP packet
|
Constructor and Description |
---|
RTPHeader()
Build a new uninitialized RTP header
|
RTPHeader(UnMarshaller msg)
Build a new RTP header from an input message
|
Modifier and Type | Method and Description |
---|---|
void |
decode(UnMarshaller msg)
Initialize a RTP header from an input message
|
void |
encode(byte[] array)
Marshalls the RTP header into an output message
|
String |
toString()
Returns a string describing the contents of the RTP header
|
public static int length
public byte payload
public boolean marker
public short sequence_no
public int timestamp
public int source_id
public RTPHeader()
public RTPHeader(UnMarshaller msg) throws org.objectweb.jonathan.apis.kernel.JonathanException
msg
- the input message from which the RTP header will be extractedorg.objectweb.jonathan.apis.kernel.JonathanException
- thrown if the unmarshalling failspublic void decode(UnMarshaller msg) throws org.objectweb.jonathan.apis.kernel.JonathanException
msg
- the input message from which the RTP header will be extractedorg.objectweb.jonathan.apis.kernel.JonathanException
- thrown if the unmarshalling failspublic void encode(byte[] array) throws org.objectweb.jonathan.apis.kernel.JonathanException
msg
- an array of bytes at least of size 12 where the RTP header
should be encodedorg.objectweb.jonathan.apis.kernel.JonathanException
- if an error occurs.