/** * Save frame, video or audio. * * @param string $filename The target filename * @param array $options */ public function saveAs($filename, $options = array()) { if ($filename === null || substr(mimetype($filename, true), 0, 6) === 'image/') { return parent::saveAs($filename, $options); } $this->process($filename, $options); }