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\Filters\HLSFilter;
use Streaming\Traits\Representation as Representations;
use Streaming\Filters\Filter;
class HLS extends Export
{
use Representations;
/** @var string */
private $hls_time = 5;
/** @var bool */
private $hls_allow_cache = true;
private $hls_key_info_file = "";
* @param string $hls_time
* @return HLS
public function setHlsTime(string $hls_time): HLS
$this->hls_time = $hls_time;
return $this;
}
* @return string
public function getHlsTime(): string
return $this->hls_time;
* @param bool $hls_allow_cache
public function setHlsAllowCache(bool $hls_allow_cache): HLS
$this->hls_allow_cache = $hls_allow_cache;
* @return bool
public function isHlsAllowCache(): bool
return $this->hls_allow_cache;
* @param string $hls_key_info_file
public function setHlsKeyInfoFile(string $hls_key_info_file): HLS
$this->hls_key_info_file = $hls_key_info_file;
public function getHlsKeyInfoFile(): string
return $this->hls_key_info_file;
* @return Filter
protected function getFilter(): Filter
return $this->filter;
* @return mixed|void
protected function setFilter()
$this->filter = new HLSFilter($this);