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

javax.media.Track Maven / Gradle / Ivy

The newest version!
package javax.media;

/**
 * Standard JMF class -- see this class in the JMF Javadoc.
 *
 * Complete.
 *
 * @author Ken Larson
 *
 */
public interface Track extends Duration
{
    public static int FRAME_UNKNOWN = Integer.MAX_VALUE;

    public static Time TIME_UNKNOWN = Time.TIME_UNKNOWN;

    public Format getFormat();

    public Time getStartTime();

    public boolean isEnabled();

    public Time mapFrameToTime(int frameNumber);

    public int mapTimeToFrame(Time t);

    /**
     * TODO: the API is not clear as to what readFrame should do in the case of
     * an error, like an IOException.
     */
    public void readFrame(Buffer buffer);

    public void setEnabled(boolean t);

    public void setTrackListener(TrackListener listener);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy