Original Format Box contains the four-character-code of the * original un-transformed sample description. * * @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_FRMA extends ISO14496_Box { /** @var string */ private $_dataFormat; /** * 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->_dataFormat = $this->_reader->read(4); } /** * Returns the four-character-code of the original un-transformed sample entry * (e.g. mp4v if the stream contains protected MPEG-4 visual material). * * @return string */ public function getDataFormat() { return $this->_dataFormat; } }