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

com.mp4parser.streaming.StreamingTrack Maven / Gradle / Ivy

Go to download

A generic parser and writer for all ISO 14496 based files (MP4, Quicktime, DCF, PDCF, ...)

There is a newer version: 1.1.22
Show newest version
package com.mp4parser.streaming;

import com.coremedia.iso.boxes.SampleDescriptionBox;
import com.coremedia.iso.boxes.TrackHeaderBox;
import com.googlecode.mp4parser.authoring.Track;

import java.util.concurrent.BlockingQueue;

public interface StreamingTrack {
    long getTimescale();

    BlockingQueue getSamples();

    /**
     * Returns false if and only if the BlockingQueue returned by getSamples() is empty
     * and the streams source is depleted.
     *
     * @return false if we can stop processing
     */
    boolean hasMoreSamples();

    /**
     * Returns the original TrackHeaderBox. Changes on the returned box should always
     * be visible. Do not return a copy or create on the fly.
     *
     * @return the original TrackHeaderBox
     */
    TrackHeaderBox getTrackHeaderBox();

    String getHandler();

    String getLanguage();

    SampleDescriptionBox getSampleDescriptionBox();

     T getTrackExtension(Class clazz);

    void addTrackExtension(TrackExtension trackExtension);

    void removeTrackExtension(Class clazz);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy