com.coremedia.iso.boxes
Class TrackBox

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

public class TrackBox
extends AbstractContainerBox
implements TrackMetaDataContainer

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.coremedia.iso.boxes.AbstractContainerBox
boxes
 
Fields inherited from class com.coremedia.iso.boxes.AbstractBox
offset, parsed
 
Constructor Summary
TrackBox()
           
 
Method Summary
 String getDisplayName()
          Returns the human readable name of the box.
 IsoBufferWrapper getIsoBufferWrapper()
           
 TrackHeaderBox getTrackHeaderBox()
           
 void parse(IsoBufferWrapper in, long size, BoxParser boxParser, Box lastMovieFragmentBox)
          Pareses the given IsoBufferWrapper and returns the remaining bytes.
 
Methods inherited from class com.coremedia.iso.boxes.AbstractContainerBox
addBox, getBoxes, getBoxes, getBoxes, getContent, getContentSize, getNumOfBytesToFirstChild, removeBox, setBoxes, toString
 
Methods inherited from class com.coremedia.iso.boxes.AbstractBox
addWriteListener, calculateOffset, getBox, getDeadBytes, getHeader, getHeaderSize, getIsoFile, getOffset, getParent, getSize, getType, getUserType, isParsed, setDeadBytes, setParent, setParsed, setUserType, utf8StringLengthInBytes
 
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
calculateOffset, getBox, getOffset, getSize, getType, getUserType, isParsed
 

Field Detail

TYPE

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

TrackBox

public TrackBox()
Method Detail

getDisplayName

public String getDisplayName()
Description copied from class: AbstractBox
Returns the human readable name of the box.

Specified by:
getDisplayName in class AbstractBox
Returns:
a display string

getTrackHeaderBox

public TrackHeaderBox getTrackHeaderBox()

parse

public void parse(IsoBufferWrapper in,
                  long size,
                  BoxParser boxParser,
                  Box lastMovieFragmentBox)
           throws IOException
Description copied from class: AbstractBox
Pareses the given IsoBufferWrapper and returns the remaining bytes.

Overrides:
parse in class AbstractContainerBox
Parameters:
in - the (part of the) iso file to parse
size - expected size of the box
boxParser - creates inner boxes
lastMovieFragmentBox - latest of previously found moof boxes
Throws:
IOException - in case of an I/O error.

getIsoBufferWrapper

public IsoBufferWrapper getIsoBufferWrapper()


Copyright © 2011. All Rights Reserved.