diff --git a/classes/Video.php b/classes/Video.php index 1fe1012..a53b344 100644 --- a/classes/Video.php +++ b/classes/Video.php @@ -361,7 +361,7 @@ class Video ], $this->getRtmpArguments(), [ - '-i', $this->url, + '-i', $this->getUrl(), '-f', $filetype, '-b:a', $audioBitrate.'k', ], @@ -432,7 +432,7 @@ class Video [ $this->config->avconv, '-v', $this->config->avconvVerbosity, - '-i', $this->url, + '-i', $this->getUrl(), '-f', $this->ext, '-c', 'copy', '-bsf:a', 'aac_adtstoasc', @@ -503,7 +503,7 @@ class Video ], $this->getRtmpArguments(), [ - '-i', $this->url, + '-i', $this->getUrl(), '-f', $this->ext, 'pipe:1', ] diff --git a/controllers/FrontController.php b/controllers/FrontController.php index b420b95..4af49fd 100644 --- a/controllers/FrontController.php +++ b/controllers/FrontController.php @@ -397,7 +397,7 @@ class FrontController $client = new Client(); $stream = $client->request( 'GET', - $this->video->url, + $this->video->getUrl(), [ 'stream' => true, 'headers' => ['Range' => $request->getHeader('Range')],