Class TrackBox
- java.lang.Object
-
- org.mp4parser.BasicContainer
-
- org.mp4parser.support.AbstractContainerBox
-
- org.mp4parser.boxes.iso14496.part12.TrackBox
-
- All Implemented Interfaces:
Box,Container,ParsableBox
public class TrackBox extends AbstractContainerBox
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
-
Fields inherited from class org.mp4parser.support.AbstractContainerBox
largeBox, type
-
-
Constructor Summary
Constructors Constructor Description TrackBox()
-
Method Summary
Modifier and Type Method Description MediaBoxgetMediaBox()SampleTableBoxgetSampleTableBox()Gets the SampleTableBox at mdia/minf/stbl if existing.TrackHeaderBoxgetTrackHeaderBox()voidsetBoxes(List<? extends Box> boxes)Sets all boxes and removes all previous child boxes.-
Methods inherited from class org.mp4parser.support.AbstractContainerBox
getBox, getHeader, getSize, getType, parse, setParent
-
Methods inherited from class org.mp4parser.BasicContainer
addBox, getBoxes, getBoxes, getBoxes, getContainerSize, initContainer, toString, writeContainer
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTrackHeaderBox
public TrackHeaderBox getTrackHeaderBox()
-
getSampleTableBox
public SampleTableBox getSampleTableBox()
Gets the SampleTableBox at mdia/minf/stbl if existing.- Returns:
- the SampleTableBox or
null
-
getMediaBox
public MediaBox getMediaBox()
-
-