RTPHeaderpublic class RTPHeader extends Object implements SerializableThis class describes the RTP header of the RTP packet coming in
from the network. This class defines fields as defined in the RTP
Header of the RTP Internet draft |
Fields Summary |
---|
public static final int | VALUE_NOT_SET | private boolean | extensionPresenttrue if there is an extension header present after the main 12
byte RTP header. | private int | extensionTypeIf the extensionPresent bit was set, this is reserved for the
type of extension present or a identification number for the
extension. In the RTP extension header, this is a 2 byte id to be
defined by the extension profile. | private byte[] | extension |
Constructors Summary |
---|
public RTPHeader()
extensionPresent = false;
extensionType = VALUE_NOT_SET;
extension = null;
| public RTPHeader(int marker)
extensionPresent = false;
extensionType = VALUE_NOT_SET;
extension = null;
| public RTPHeader(boolean extensionPresent, int extensionType, byte[] extension)Constructor for RTPHeader
this.extensionPresent = extensionPresent;
this.extensionType = extensionType;
this.extension = extension;
|
Methods Summary |
---|
public byte[] | getExtension()
return extension;
| public int | getExtensionType()If the extensionPresent bit was set, this is reserved for the
type of extension present or a identification number for the
extension. In the RTP extension header, this is a 2 byte id to be
defined by the extension profile.This method returns this extension type
return extensionType;
| public boolean | isExtensionPresent()Returns true if there is an extension header present after the main 12
byte RTP header.
return extensionPresent;
| public void | setExtension(byte[] e)
extension = e;
| public void | setExtensionPresent(boolean p)
extensionPresent = p;
| public void | setExtensionType(int t)If the extensionPresent bit was set, this is reserved for the
type of extension present or a identification number for the
extension. In the RTP extension header, this is a 2 byte id to be
defined by the extension profile.This method returns this extension type
extensionType = t;
|
|