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, getSyncSamplespublic 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
XPathExpressionExceptionpublic SampleDescriptionBox getSampleDescriptionBox()
public long[] getSampleDurations()
TrackTrack.getSamples() contains.public TrackMetaData getTrackMetaData()
public String getHandler()
public List<Sample> getSamples()
Trackpublic SubSampleInformationBox getSubsampleInformationBox()
getSubsampleInformationBox in interface TrackgetSubsampleInformationBox in class AbstractTrackpublic void close()
throws IOException
IOExceptionCopyright © 2016. All rights reserved.