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, wait
getHandler, getLanguage, getTimescale
protected BlockingQueue<StreamingSample> samples
protected TrackHeaderBox tkhd
protected SampleDescriptionBox stsd
protected HashMap<Class<? extends TrackExtension>,TrackExtension> trackExtensions
public BlockingQueue<StreamingSample> getSamples()
getSamples
in interface StreamingTrack
public boolean hasMoreSamples()
StreamingTrack
hasMoreSamples
in interface StreamingTrack
public TrackHeaderBox getTrackHeaderBox()
StreamingTrack
getTrackHeaderBox
in interface StreamingTrack
public SampleDescriptionBox getSampleDescriptionBox()
getSampleDescriptionBox
in interface StreamingTrack
public <T extends TrackExtension> T getTrackExtension(Class<T> clazz)
getTrackExtension
in interface StreamingTrack
public void addTrackExtension(TrackExtension trackExtension)
addTrackExtension
in interface StreamingTrack
public void removeTrackExtension(Class<? extends TrackExtension> clazz)
removeTrackExtension
in interface StreamingTrack
Copyright © 2017. All rights reserved.