Class AdtsAacStreamingTrack
- java.lang.Object
-
- org.mp4parser.streaming.input.AbstractStreamingTrack
-
- org.mp4parser.streaming.input.aac.AdtsAacStreamingTrack
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Callable<Void>,StreamingTrack
public class AdtsAacStreamingTrack extends AbstractStreamingTrack implements Callable<Void>
-
-
Field Summary
-
Fields inherited from class org.mp4parser.streaming.input.AbstractStreamingTrack
sampleSink, tkhd, trackExtensions
-
-
Constructor Summary
Constructors Constructor Description AdtsAacStreamingTrack(InputStream is, long avgBitrate, long maxBitrate)
-
Method Summary
Modifier and Type Method Description Voidcall()voidclose()StringgetHandler()StringgetLanguage()SampleDescriptionBoxgetSampleDescriptionBox()longgetTimescale()Gets the time scale of the track.booleanisClosed()voidsetLanguage(String lang)StringtoString()-
Methods inherited from class org.mp4parser.streaming.input.AbstractStreamingTrack
addTrackExtension, getTrackExtension, removeTrackExtension, setSampleSink
-
-
-
-
Constructor Detail
-
AdtsAacStreamingTrack
public AdtsAacStreamingTrack(InputStream is, long avgBitrate, long maxBitrate)
-
-
Method Detail
-
isClosed
public boolean isClosed()
-
getSampleDescriptionBox
public SampleDescriptionBox getSampleDescriptionBox()
- Specified by:
getSampleDescriptionBoxin interfaceStreamingTrack
-
getTimescale
public long getTimescale()
Description copied from interface:StreamingTrackGets the time scale of the track. Typically called by the SampleSink. Might throw IllegalStateException if called before the first sample has been pushed into the SampleSink.- Specified by:
getTimescalein interfaceStreamingTrack- Returns:
- the track's time scale
-
getHandler
public String getHandler()
- Specified by:
getHandlerin interfaceStreamingTrack
-
getLanguage
public String getLanguage()
- Specified by:
getLanguagein interfaceStreamingTrack
-
setLanguage
public void setLanguage(String lang)
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-