Beispiel #1
0
 /**
  * Constructor
  *
  * @author 	Tommy Lacroix <*****@*****.**>
  * @param	int				$totalSize
  * @param	int				$boxType
  * @param	file|string		$f
  * @param	MP4Info_Box		$parent
  * @access 	public
  */
 public function __construct($totalSize, $boxType, $f, $parent = false)
 {
     $this->totalSize = $totalSize;
     $this->boxType = $boxType;
     $this->boxTypeStr = pack('N', $boxType);
     $this->data = self::getDataFrom3rd($f, $totalSize);
     $this->parent = $parent;
     if ($parent != false) {
         $parent->addChild($this);
     }
 }