Data Reference Box 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. * * This box may either contain {@link ISO14496_Box_URN urn} or * {@link ISO14496_Box_URL url} boxes. * * @package php-reader * @subpackage ISO 14496 * @author Sven Vollbehr * @copyright Copyright (c) 2008 The PHP Reader Project Workgroup * @license http://code.google.com/p/php-reader/wiki/License New BSD License * @version $Rev: 92 $ */ final class ISO14496_Box_DREF extends ISO14496_Box_Full { /** * Constructs the class with given parameters and reads box related data from * the ISO Base Media file. * * @param Reader $reader The reader object. */ public function __construct($reader = null, &$options = array()) { parent::__construct($reader, $options); $this->setContainer(true); if ($reader === null) return; $this->_reader->skip(4); $this->constructBoxes(); } /** * Returns the box raw data. * * @return string */ public function __toString($data = "") { return parent::__toString(Transform::toUInt32BE(count($this->_boxes))); } }