public function __construct($input_output_type, Config $config = null) { parent::__construct($input_output_type, $config); if ($input_output_type === 'output') { $this->setFormat('mp4'); } // both enable meta data injection and then force $this->forceQtFastStartSuccess(); $this->enableQtFastStart(); }
public function __construct($input_output_type = Format::OUTPUT, Config $config = null) { parent::__construct($input_output_type, $config); if ($input_output_type === 'output') { $this->setFormat('mp4'); } $this->forceQtFastStartSuccess(); // determine if we are using qtfaststart from the config object. // remember doing so puts any save into blocking mode so if you are using ProgressHandlerPortable // you must access the $process->getPortableId() before calling save or saveNonBlocking. if ($config->force_enable_qtfaststart === true) { $this->enableQtFastStart(); } }