com.coremedia.iso.boxes
Class TrackBox

java.lang.Object
  extended by com.googlecode.mp4parser.AbstractBox
      extended by com.googlecode.mp4parser.AbstractContainerBox
          extended by com.coremedia.iso.boxes.TrackBox
All Implemented Interfaces:
Box, ContainerBox

public class TrackBox
extends AbstractContainerBox

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
static String TYPE
           
 
Fields inherited from class com.googlecode.mp4parser.AbstractContainerBox
boxes, boxParser
 
Fields inherited from class com.googlecode.mp4parser.AbstractBox
type
 
Constructor Summary
TrackBox()
           
 
Method Summary
 MediaBox getMediaBox()
           
 SampleTableBox getSampleTableBox()
          Gets the SampleTableBox at mdia/minf/stbl if existing.
 TrackHeaderBox getTrackHeaderBox()
           
 
Methods inherited from class com.googlecode.mp4parser.AbstractContainerBox
_parseDetails, addBox, getBoxes, getBoxes, getBoxes, getContent, getContentSize, getNumOfBytesToFirstChild, parse, parseChildBoxes, removeBox, setBoxes, toString, writeChildBoxes
 
Methods inherited from class com.googlecode.mp4parser.AbstractBox
getBox, getIsoFile, getParent, getSize, getType, getUserType, isParsed, setDeadBytes, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.coremedia.iso.boxes.ContainerBox
getIsoFile, getParent
 
Methods inherited from interface com.coremedia.iso.boxes.Box
getBox, getSize, getType, setParent
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

TrackBox

public TrackBox()
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()


Copyright © 2012. All Rights Reserved.