fix: Enforce convert mode
So it can't be used by adding "&audio=on" manually
This commit is contained in:
parent
70475f83d4
commit
1edd623c7f
1 changed files with 2 additions and 2 deletions
|
@ -331,7 +331,7 @@ class FrontController
|
||||||
|
|
||||||
$this->video = new Video($url, $this->defaultFormat, $password);
|
$this->video = new Video($url, $this->defaultFormat, $password);
|
||||||
|
|
||||||
if ($request->getQueryParam('audio')) {
|
if ($this->config->convert && $request->getQueryParam('audio')) {
|
||||||
return $this->getAudioResponse($request, $response);
|
return $this->getAudioResponse($request, $response);
|
||||||
} else {
|
} else {
|
||||||
return $this->getVideoResponse($request, $response);
|
return $this->getVideoResponse($request, $response);
|
||||||
|
@ -379,7 +379,7 @@ class FrontController
|
||||||
private function getStream(Request $request, Response $response)
|
private function getStream(Request $request, Response $response)
|
||||||
{
|
{
|
||||||
if (isset($this->video->entries)) {
|
if (isset($this->video->entries)) {
|
||||||
if ($request->getQueryParam('audio')) {
|
if ($this->config->convert && $request->getQueryParam('audio')) {
|
||||||
$stream = new ConvertedPlaylistArchiveStream($this->video);
|
$stream = new ConvertedPlaylistArchiveStream($this->video);
|
||||||
} else {
|
} else {
|
||||||
$stream = new PlaylistArchiveStream($this->video);
|
$stream = new PlaylistArchiveStream($this->video);
|
||||||
|
|
Loading…
Reference in a new issue