com.coremedia.iso.boxes
Class TrackBox
java.lang.Object
com.coremedia.iso.boxes.AbstractBox
com.coremedia.iso.boxes.AbstractContainerBox
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.
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 |
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
TrackBox
public TrackBox()
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 parsesize
- expected size of the boxboxParser
- creates inner boxeslastMovieFragmentBox
- latest of previously found moof boxes
- Throws:
IOException
- in case of an I/O error.
getIsoBufferWrapper
public IsoBufferWrapper getIsoBufferWrapper()
Copyright © 2011. All Rights Reserved.