Class WebVttTrack
- java.lang.Object
-
- org.mp4parser.muxer.AbstractTrack
-
- org.mp4parser.muxer.tracks.webvtt.WebVttTrack
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Track
public class WebVttTrack extends AbstractTrack
-
-
Constructor Summary
Constructors Constructor Description WebVttTrack(InputStream is, String trackName, Locale locale)
-
Method Summary
Modifier and Type Method Description void
close()
String
getHandler()
long[]
getSampleDurations()
Each samples is covers a small time span in a video.List<SampleEntry>
getSampleEntries()
List<Sample>
getSamples()
The list of all samples.TrackMetaData
getTrackMetaData()
-
Methods inherited from class org.mp4parser.muxer.AbstractTrack
getCompositionTimeEntries, getDuration, getEdits, getName, getSampleDependencies, getSampleGroups, getSubsampleInformationBox, getSyncSamples
-
-
-
-
Constructor Detail
-
WebVttTrack
public WebVttTrack(InputStream is, String trackName, Locale locale) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getSampleEntries
public List<SampleEntry> getSampleEntries()
-
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.- Returns:
- an array of ticks
-
getTrackMetaData
public TrackMetaData getTrackMetaData()
-
getHandler
public String getHandler()
-
getSamples
public List<Sample> getSamples()
Description copied from interface:Track
The list of all samples.- Returns:
- this track's samples
-
close
public void close() throws IOException
- Throws:
IOException
-
-