FileDocCategorySizeDatePackage
RTPHeader.javaAPI DocJMF 2.1.1e3013Mon May 12 12:20:38 BST 2003javax.media.rtp

RTPHeader

public class RTPHeader extends Object implements Serializable
This 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
extensionPresent
true if there is an extension header present after the main 12 byte RTP header.
private int
extensionType
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.
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 intgetExtensionType()
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 booleanisExtensionPresent()
Returns true if there is an extension header present after the main 12 byte RTP header.

	return extensionPresent;
    
public voidsetExtension(byte[] e)

	extension = e;
    
public voidsetExtensionPresent(boolean p)

	extensionPresent = p;
    
public voidsetExtensionType(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;