Class TrackBox
java.lang.Object
org.mp4parser.BasicContainer
org.mp4parser.support.AbstractContainerBox
org.mp4parser.boxes.iso14496.part12.TrackBox
- All Implemented Interfaces:
Box,Container,ParsableBox
4cc = ""trak""
Tracks are used for two purposes: (a) to contain media data (media tracks) and (b) to contain packetization information for streaming protocols (hint tracks).There shall be at least one media track within an ISO file, and all the media tracks that contributed to the hint tracks shall remain in the file, even if the media data within them is not referenced by the hint tracks; after deleting all hint tracks, the entire un-hinted presentation shall remain.
-
Field Summary
FieldsFields inherited from class org.mp4parser.support.AbstractContainerBox
largeBox, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the SampleTableBox at mdia/minf/stbl if existing.voidSets all boxes and removes all previous child boxes.Methods inherited from class org.mp4parser.support.AbstractContainerBox
getBox, getHeader, getSize, getType, parse, setParentMethods inherited from class org.mp4parser.BasicContainer
addBox, getBoxes, getBoxes, getBoxes, getContainerSize, initContainer, toString, writeContainer
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
TrackBox
public TrackBox()
-
-
Method Details
-
getTrackHeaderBox
-
getSampleTableBox
Gets the SampleTableBox at mdia/minf/stbl if existing.- Returns:
- the SampleTableBox or
null
-
getMediaBox
-
setBoxes
Description copied from interface:ContainerSets all boxes and removes all previous child boxes.- Specified by:
setBoxesin interfaceContainer- Overrides:
setBoxesin classBasicContainer- Parameters:
boxes- the new list of children
-