* @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_URL extends ISO14496_Box_Full { /** @var string */ private $_location; /** * Indicates that the media data is in the same file as the Movie Box * containing this data reference. */ const SELFCONTAINED = 1; /** * 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, &$options = array()) { parent::__construct($reader, $options); $this->_location = $this->_reader->read ($this->getOffset() + $this->getSize() - $this->_reader->getOffset()); } /** * Returns the location. * * @return string */ public function getLocation() { return $this->_location; } }