Package org.mp4parser.muxer.tracks
Class SilenceTrackImpl
- java.lang.Object
-
- org.mp4parser.muxer.tracks.SilenceTrackImpl
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Track
public class SilenceTrackImpl extends Object implements Track
This is just a basic idea how things could work but they don't.
-
-
Constructor Summary
Constructors Constructor Description SilenceTrackImpl(Track ofType, long ms)
-
Method Summary
Modifier and Type Method Description void
close()
List<CompositionTimeToSample.Entry>
getCompositionTimeEntries()
long
getDuration()
The duration of the track in track timescale.List<Edit>
getEdits()
String
getHandler()
String
getName()
A name for identification purposes.List<SampleDependencyTypeBox.Entry>
getSampleDependencies()
long[]
getSampleDurations()
Each samples is covers a small time span in a video.List<SampleEntry>
getSampleEntries()
Map<GroupEntry,long[]>
getSampleGroups()
List<Sample>
getSamples()
The list of all samples.SubSampleInformationBox
getSubsampleInformationBox()
long[]
getSyncSamples()
TrackMetaData
getTrackMetaData()
-
-
-
Constructor Detail
-
SilenceTrackImpl
public SilenceTrackImpl(Track ofType, long ms)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getSampleEntries
public List<SampleEntry> getSampleEntries()
- Specified by:
getSampleEntries
in interfaceTrack
-
getSampleDurations
public long[] getSampleDurations()
Description copied from interface:Track
Each samples is covers a small time span in a video. This method returns the duration for each sample in track timescale. The array must contain exactly as many samples asTrack.getSamples()
contains.- Specified by:
getSampleDurations
in interfaceTrack
- Returns:
- an array of ticks
-
getDuration
public long getDuration()
Description copied from interface:Track
The duration of the track in track timescale. It's the sum of all samples' duration and does NOT include any edits.- Specified by:
getDuration
in interfaceTrack
- Returns:
- the track's duration
-
getTrackMetaData
public TrackMetaData getTrackMetaData()
- Specified by:
getTrackMetaData
in interfaceTrack
-
getHandler
public String getHandler()
- Specified by:
getHandler
in interfaceTrack
-
getSamples
public List<Sample> getSamples()
Description copied from interface:Track
The list of all samples.- Specified by:
getSamples
in interfaceTrack
- Returns:
- this track's samples
-
getSubsampleInformationBox
public SubSampleInformationBox getSubsampleInformationBox()
- Specified by:
getSubsampleInformationBox
in interfaceTrack
-
getCompositionTimeEntries
public List<CompositionTimeToSample.Entry> getCompositionTimeEntries()
- Specified by:
getCompositionTimeEntries
in interfaceTrack
-
getSyncSamples
public long[] getSyncSamples()
- Specified by:
getSyncSamples
in interfaceTrack
-
getSampleDependencies
public List<SampleDependencyTypeBox.Entry> getSampleDependencies()
- Specified by:
getSampleDependencies
in interfaceTrack
-
getName
public String getName()
Description copied from interface:Track
A 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:
getSampleGroups
in interfaceTrack
-
-