org.objectweb.jonathan.protocols.rtp
Class RTPHeader
public final class RTPHeader
RTPHeader is a utility class representing a RTP header
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
|
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
|
length
public static int length
the length in byte of a RTP header
marker
public boolean marker
the marker status
payload
public byte payload
the type of payload
sequence_no
public short sequence_no
the sequence number of the RTP packet
source_id
public int source_id
the source id of the RTP packet
timestamp
public int timestamp
the timestamp of the RTP packet
RTPHeader
public RTPHeader()
Build a new uninitialized RTP header
RTPHeader
public RTPHeader(UnMarshaller msg)
throws JonathanException
Build a new RTP header from an input message
msg
- the input message from which the RTP header will be extracted
decode
public void decode(UnMarshaller msg)
throws JonathanException
Initialize a RTP header from an input message
msg
- the input message from which the RTP header will be extracted
encode
public void encode(byte[] array)
throws JonathanException
Marshalls the RTP header into an output message
toString
public String toString()
Returns a string describing the contents of the RTP header
- String a string describing the contents of the RTP header