fix: Don't use the $url property
It is not reliable
This commit is contained in:
parent
ebed2cea88
commit
226f1b8380
2 changed files with 4 additions and 4 deletions
|
@ -361,7 +361,7 @@ class Video
|
||||||
],
|
],
|
||||||
$this->getRtmpArguments(),
|
$this->getRtmpArguments(),
|
||||||
[
|
[
|
||||||
'-i', $this->url,
|
'-i', $this->getUrl(),
|
||||||
'-f', $filetype,
|
'-f', $filetype,
|
||||||
'-b:a', $audioBitrate.'k',
|
'-b:a', $audioBitrate.'k',
|
||||||
],
|
],
|
||||||
|
@ -432,7 +432,7 @@ class Video
|
||||||
[
|
[
|
||||||
$this->config->avconv,
|
$this->config->avconv,
|
||||||
'-v', $this->config->avconvVerbosity,
|
'-v', $this->config->avconvVerbosity,
|
||||||
'-i', $this->url,
|
'-i', $this->getUrl(),
|
||||||
'-f', $this->ext,
|
'-f', $this->ext,
|
||||||
'-c', 'copy',
|
'-c', 'copy',
|
||||||
'-bsf:a', 'aac_adtstoasc',
|
'-bsf:a', 'aac_adtstoasc',
|
||||||
|
@ -503,7 +503,7 @@ class Video
|
||||||
],
|
],
|
||||||
$this->getRtmpArguments(),
|
$this->getRtmpArguments(),
|
||||||
[
|
[
|
||||||
'-i', $this->url,
|
'-i', $this->getUrl(),
|
||||||
'-f', $this->ext,
|
'-f', $this->ext,
|
||||||
'pipe:1',
|
'pipe:1',
|
||||||
]
|
]
|
||||||
|
|
|
@ -397,7 +397,7 @@ class FrontController
|
||||||
$client = new Client();
|
$client = new Client();
|
||||||
$stream = $client->request(
|
$stream = $client->request(
|
||||||
'GET',
|
'GET',
|
||||||
$this->video->url,
|
$this->video->getUrl(),
|
||||||
[
|
[
|
||||||
'stream' => true,
|
'stream' => true,
|
||||||
'headers' => ['Range' => $request->getHeader('Range')],
|
'headers' => ['Range' => $request->getHeader('Range')],
|
||||||
|
|
Loading…
Reference in a new issue