Class TrackReferenceTypeBox

  • All Implemented Interfaces:
    Box, ParsableBox

    public class TrackReferenceTypeBox
    extends AbstractBox
    This box provides a reference from the containing track to another track in the presentation. These references are typed. A 'hint' reference links from the containing hint track to the media data that it hints. A content description reference 'cdsc' links a descriptive or metadata track to the content which it describes. The 'hind' dependency indicates that the referenced track(s)may contain media data required for decoding of the track containing the track reference. The referenced tracks shall be hint tracks. The 'hind' dependency can, for example, be used for indicating the dependencies between hint tracks documenting layered IP multicast over RTP. Exactly one Track Reference Box can be contained within the Track Box. If this box is not present, the track is not referencing anyother track in any way. The reference array is sized to fill the reference type box.
    • Constructor Detail

      • TrackReferenceTypeBox

        public TrackReferenceTypeBox​(String type)
    • Method Detail

      • getContent

        protected void getContent​(ByteBuffer byteBuffer)
        Description copied from class: AbstractBox
        Write the box's content into the given ByteBuffer. This must include flags and version in case of a full box. byteBuffer has been initialized with getSize() bytes.
        Specified by:
        getContent in class AbstractBox
        Parameters:
        byteBuffer - the sink for the box's content
      • _parseDetails

        protected void _parseDetails​(ByteBuffer content)
        Description copied from class: AbstractBox
        Parse the box's fields and child boxes if any.
        Specified by:
        _parseDetails in class AbstractBox
        Parameters:
        content - the box's raw content beginning after the 4-cc field.
      • getTrackIds

        public long[] getTrackIds()
      • setTrackIds

        public void setTrackIds​(long[] trackIds)