diff --git a/src/Controller/Streams.php b/src/Controller/Streams.php index e735af7..4b859c5 100644 --- a/src/Controller/Streams.php +++ b/src/Controller/Streams.php @@ -71,7 +71,7 @@ class Streams extends Controller return new Response('Access denied', 401); } - $host = parse_url($this->container->getParameter('appHost'), PHP_URL_HOST); + $host = $request->getHost(); $data = $stream->jsonSerialize(); $data['streamUrl'] = sprintf('rtmp://%s/%s', $host, $stream->getUser()->getUsername() . '/' . $stream->getName());