com.mp4parser.streaming.StreamingTrack Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of isoparser Show documentation
Show all versions of isoparser Show documentation
A generic parser and writer for all ISO 14496 based files (MP4, Quicktime, DCF, PDCF, ...)
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 extends TrackExtension> clazz);
}