public class TtmlTrackImpl extends AbstractTrack
Constructor and Description |
---|
TtmlTrackImpl(String name,
List<Document> ttmls) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected static List<byte[]> |
extractImages(Document ttml) |
protected void |
extractLanguage(List<Document> ttmls) |
protected List<String> |
extractMimeTypes(Document ttml) |
protected long |
firstTimestamp(Document document) |
String |
getHandler() |
static String |
getLanguage(Document document) |
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() |
TrackMetaData |
getTrackMetaData() |
protected long |
lastTimestamp(Document document) |
getCompositionTimeEntries, getDuration, getEdits, getName, getSampleDependencies, getSampleGroups, getSyncSamples
public TtmlTrackImpl(String name, List<Document> ttmls) throws IOException, ParserConfigurationException, SAXException, XPathExpressionException, URISyntaxException
protected static List<byte[]> extractImages(Document ttml) throws XPathExpressionException, URISyntaxException, IOException
protected long firstTimestamp(Document document)
protected long lastTimestamp(Document document)
protected List<String> extractMimeTypes(Document ttml) throws XPathExpressionException
XPathExpressionException
public SampleDescriptionBox getSampleDescriptionBox()
public long[] getSampleDurations()
Track
Track.getSamples()
contains.public TrackMetaData getTrackMetaData()
public String getHandler()
public List<Sample> getSamples()
Track
public SubSampleInformationBox getSubsampleInformationBox()
getSubsampleInformationBox
in interface Track
getSubsampleInformationBox
in class AbstractTrack
public void close() throws IOException
IOException
Copyright © 2017. All rights reserved.