Track Box is a container box for a single track of a presentation. * A presentation consists of one or more tracks. Each track is independent of * the other tracks in the presentation and carries its own temporal and spatial * information. Each track will contain its associated {@link ISO14496_Box_MDIA * Media Box}. * * Tracks are used for two purposes: * (a) to contain media data (media tracks) and * (b) to contain packetization information for streaming protocols * (hint tracks). * There shall be at least one media track within an ISO file, and all the media * tracks that contributed to the hint tracks shall remain in the file, even if * the media data within them is not referenced by the hint tracks; after * deleting all hint tracks, the entire un-hinted presentation shall remain. * * @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_TRAK extends ISO14496_Box { /** * 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->constructBoxes(); } }