public abstract class AbstractStreamingTrack extends Object implements StreamingTrack
| Modifier and Type | Field and Description |
|---|---|
protected BlockingQueue<StreamingSample> |
samples |
protected SampleDescriptionBox |
stsd |
protected TrackHeaderBox |
tkhd |
protected HashMap<Class<? extends TrackExtension>,TrackExtension> |
trackExtensions |
| Constructor and Description |
|---|
AbstractStreamingTrack() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTrackExtension(TrackExtension trackExtension) |
SampleDescriptionBox |
getSampleDescriptionBox() |
BlockingQueue<StreamingSample> |
getSamples() |
<T extends TrackExtension> |
getTrackExtension(Class<T> clazz) |
TrackHeaderBox |
getTrackHeaderBox()
Returns the original TrackHeaderBox.
|
boolean |
hasMoreSamples()
Returns false if and only if the BlockingQueue returned by getSamples() is empty
and the streams source is depleted.
|
void |
removeTrackExtension(Class<? extends TrackExtension> clazz) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHandler, getLanguage, getTimescaleprotected BlockingQueue<StreamingSample> samples
protected TrackHeaderBox tkhd
protected SampleDescriptionBox stsd
protected HashMap<Class<? extends TrackExtension>,TrackExtension> trackExtensions
public BlockingQueue<StreamingSample> getSamples()
getSamples in interface StreamingTrackpublic boolean hasMoreSamples()
StreamingTrackhasMoreSamples in interface StreamingTrackpublic TrackHeaderBox getTrackHeaderBox()
StreamingTrackgetTrackHeaderBox in interface StreamingTrackpublic SampleDescriptionBox getSampleDescriptionBox()
getSampleDescriptionBox in interface StreamingTrackpublic <T extends TrackExtension> T getTrackExtension(Class<T> clazz)
getTrackExtension in interface StreamingTrackpublic void addTrackExtension(TrackExtension trackExtension)
addTrackExtension in interface StreamingTrackpublic void removeTrackExtension(Class<? extends TrackExtension> clazz)
removeTrackExtension in interface StreamingTrackCopyright © 2016. All rights reserved.