javax.media.rtp
Class RTPHeader

java.lang.Object
  |
  +--javax.media.rtp.RTPHeader

public class RTPHeader
extends java.lang.Object
implements java.io.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

See Also:
Serialized Form

Field Summary
static int VALUE_NOT_SET
           
 
Constructor Summary
RTPHeader()
           
RTPHeader(boolean extensionPresent, int extensionType, byte[] extension)
          Constructor for RTPHeader
RTPHeader(int marker)
           
 
Method Summary
 byte[] getExtension()
           
 int getExtensionType()
          If the extensionPresent bit was set, this is reserved for the type of extension present or a identification number for the extension.
 boolean isExtensionPresent()
          Returns true if there is an extension header present after the main 12 byte RTP header.
 void setExtension(byte[] e)
           
 void setExtensionPresent(boolean p)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE_NOT_SET

public static final int VALUE_NOT_SET
Constructor Detail

RTPHeader

public RTPHeader()

RTPHeader

public RTPHeader(int marker)

RTPHeader

public RTPHeader(boolean extensionPresent,
                 int extensionType,
                 byte[] extension)
Constructor for RTPHeader
Method Detail

isExtensionPresent

public boolean isExtensionPresent()
Returns true if there is an extension header present after the main 12 byte RTP header.

getExtensionType

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

getExtension

public byte[] getExtension()

setExtensionPresent

public void setExtensionPresent(boolean p)

setExtensionType

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

setExtension

public void setExtension(byte[] e)


Submit a bug or feature
Copyright 1994-2004 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.