Browse Source

Use http host for rtmp server setup

master
Shyim 7 years ago
parent
commit
d122c6508b
  1. 2
      src/Controller/Streams.php

2
src/Controller/Streams.php

@ -71,7 +71,7 @@ class Streams extends Controller @@ -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());

Loading…
Cancel
Save