Package org.mp4parser.muxer
Class AbstractTrack
- java.lang.Object
-
- org.mp4parser.muxer.AbstractTrack
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Track
- Direct Known Subclasses:
AACTrackImpl,AbstractH26XTrack,AC3TrackImpl,Amf0Track,AppendTrack,CencDecryptingTrackImpl,ClippedTrack,DTSTrackImpl,EC3TrackImpl,MP3TrackImpl,Mp4TrackImpl,OneJpegPerIframe,ReplaceSampleTrack,TextTrackImpl,TtmlTrackImpl,WebVttTrack
public abstract class AbstractTrack extends Object implements Track
-
-
Constructor Summary
Constructors Constructor Description AbstractTrack(String name)
-
Method Summary
Modifier and Type Method Description List<CompositionTimeToSample.Entry>getCompositionTimeEntries()longgetDuration()The duration of the track in track timescale.List<Edit>getEdits()StringgetName()A name for identification purposes.List<SampleDependencyTypeBox.Entry>getSampleDependencies()Map<GroupEntry,long[]>getSampleGroups()SubSampleInformationBoxgetSubsampleInformationBox()long[]getSyncSamples()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mp4parser.muxer.Track
getHandler, getSampleDurations, getSampleEntries, getSamples, getTrackMetaData
-
-
-
-
Constructor Detail
-
AbstractTrack
public AbstractTrack(String name)
-
-
Method Detail
-
getCompositionTimeEntries
public List<CompositionTimeToSample.Entry> getCompositionTimeEntries()
- Specified by:
getCompositionTimeEntriesin interfaceTrack
-
getSyncSamples
public long[] getSyncSamples()
- Specified by:
getSyncSamplesin interfaceTrack
-
getSampleDependencies
public List<SampleDependencyTypeBox.Entry> getSampleDependencies()
- Specified by:
getSampleDependenciesin interfaceTrack
-
getSubsampleInformationBox
public SubSampleInformationBox getSubsampleInformationBox()
- Specified by:
getSubsampleInformationBoxin interfaceTrack
-
getDuration
public long getDuration()
Description copied from interface:TrackThe duration of the track in track timescale. It's the sum of all samples' duration and does NOT include any edits.- Specified by:
getDurationin interfaceTrack- Returns:
- the track's duration
-
getName
public String getName()
Description copied from interface:TrackA name for identification purposes. Might return the underlying filename or network address or any other identifier. For informational/debug only. This is no metadata!
-
getSampleGroups
public Map<GroupEntry,long[]> getSampleGroups()
- Specified by:
getSampleGroupsin interfaceTrack
-
-