public class Mp4TrackImpl extends AbstractTrack
Constructor and Description |
---|
Mp4TrackImpl(String name,
TrackBox trackBox,
IsoFile... fragments)
Creates a track from a TrackBox and potentially fragments.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
List<CompositionTimeToSample.Entry> |
getCompositionTimeEntries() |
String |
getHandler() |
List<SampleDependencyTypeBox.Entry> |
getSampleDependencies() |
SampleDescriptionBox |
getSampleDescriptionBox() |
long[] |
getSampleDurations()
Each samples is covers a small time span in a video.
|
List<Sample> |
getSamples()
The list of all samples.
|
SubSampleInformationBox |
getSubsampleInformationBox() |
long[] |
getSyncSamples() |
TrackMetaData |
getTrackMetaData() |
getDuration, getEdits, getName, getSampleGroups
public Mp4TrackImpl(String name, TrackBox trackBox, IsoFile... fragments)
name
- a name for the track for better identificationtrackBox
- the TrackBox
describing the track.fragments
- additional fragments if located in more than a single filepublic void close() throws IOException
IOException
public List<Sample> getSamples()
Track
public long[] getSampleDurations()
Track
Track.getSamples()
contains.public SampleDescriptionBox getSampleDescriptionBox()
public List<CompositionTimeToSample.Entry> getCompositionTimeEntries()
getCompositionTimeEntries
in interface Track
getCompositionTimeEntries
in class AbstractTrack
public long[] getSyncSamples()
getSyncSamples
in interface Track
getSyncSamples
in class AbstractTrack
public List<SampleDependencyTypeBox.Entry> getSampleDependencies()
getSampleDependencies
in interface Track
getSampleDependencies
in class AbstractTrack
public TrackMetaData getTrackMetaData()
public String getHandler()
public SubSampleInformationBox getSubsampleInformationBox()
getSubsampleInformationBox
in interface Track
getSubsampleInformationBox
in class AbstractTrack
Copyright © 2017. All rights reserved.