for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the PHP-FFmpeg-video-streaming package.
*
* (c) Amin Yazdanpanah <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Streaming;
use Streaming\Exception\InvalidArgumentException;
use Streaming\Filters\Filter;
use Streaming\Filters\StreamToFileFilter;
class StreamToFile extends Export
{
* @var array
private $params = [];
* @param array $params
* @return StreamToFile
public function setParams(array $params): StreamToFile
$this->params = $params;
return $this;
}
* @return array
public function getParams(): array
return $this->params;
* @return string
protected function getPath(): string
return implode(".", [$this->getFilePath(), $this->path_info["extension"] ?? "mp4"]);
* @return Filter
protected function getFilter(): Filter
if ($this->uri) {
throw new InvalidArgumentException("It is not possible to live this file");
return new StreamToFileFilter($this);