FileDocCategorySizeDatePackage
DataReferenceBox.javaAPI Docmp4parser 1.0-RC-172206Wed Dec 19 20:10:38 GMT 2012com.coremedia.iso.boxes

DataReferenceBox

public class DataReferenceBox extends com.googlecode.mp4parser.FullContainerBox
The data reference object contains a table of data references (normally URLs) that declare the location(s) of the media data used within the presentation. The data reference index in the sample description ties entries in this table to the samples in the track. A track may be split over several sources in this way. If the flag is set indicating that the data is in the same file as this box, then no string (not even an empty one) shall be supplied in the entry field. The DataEntryBox within the DataReferenceBox shall be either a DataEntryUrnBox or a DataEntryUrlBox.
see
com.coremedia.iso.boxes.DataEntryUrlBox
see
com.coremedia.iso.boxes.DataEntryUrnBox

Fields Summary
public static final String
TYPE
Constructors Summary
public DataReferenceBox()


      
        super(TYPE);

    
Methods Summary
public void_parseDetails(java.nio.ByteBuffer content)

        parseVersionAndFlags(content);
        content.get(new byte[4]); // basically a skip of 4 bytes signaling the number of child boxes
        parseChildBoxes(content);
    
protected voidgetContent(java.nio.ByteBuffer byteBuffer)

        writeVersionAndFlags(byteBuffer);
        IsoTypeWriter.writeUInt32(byteBuffer, getBoxes().size());
        writeChildBoxes(byteBuffer);
    
protected longgetContentSize()

        return super.getContentSize() + 4;