All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.media.rtp.RTPHeader Maven / Gradle / Ivy

There is a newer version: 1.0.2-jitsi
Show newest version
package javax.media.rtp;

/**
 * Standard JMF class -- see this class in the JMF Javadoc. Coding complete.
 *
 * @author Ken Larson
 *
 */
public class RTPHeader implements java.io.Serializable
{
    public static final int VALUE_NOT_SET = -1;

    private boolean extensionPresent;
    private int extensionType = VALUE_NOT_SET;
    private byte[] extension;

    public RTPHeader()
    {
        super();
    }

    public RTPHeader(boolean extensionPresent, int extensionType,
            byte[] extension)
    {
        this.extensionPresent = extensionPresent;
        this.extensionType = extensionType;
        this.extension = extension;
    }

    public RTPHeader(int marker)
    { // TODO: none of the properties seem to be affected by this.
    }

    public byte[] getExtension()
    {
        return extension;
    }

    public int getExtensionType()
    {
        return extensionType;
    }

    public boolean isExtensionPresent()
    {
        return extensionPresent;
    }

    public void setExtension(byte[] e)
    {
        this.extension = e;
    }

    public void setExtensionPresent(boolean p)
    {
        this.extensionPresent = p;
    }

    public void setExtensionType(int t)
    {
        this.extensionType = t;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy