Class 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 Details

  • Constructor Details

    • TrackBox

      public TrackBox()
  • Method Details

    • 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()
    • setBoxes

      public void setBoxes(List<? extends Box> boxes)
      Description copied from interface: Container
      Sets all boxes and removes all previous child boxes.
      Specified by:
      setBoxes in interface Container
      Overrides:
      setBoxes in class BasicContainer
      Parameters:
      boxes - the new list of children