streaming-website/view/embed.php
2016-12-27 10:50:48 +01:00

19 lines
419 B
PHP

<?php
$room = $conference->getRoom($_GET['room']);
if(!$room->hasEmbed())
throw new NotFoundException('Embedding is not enabled in this room');
$stream = $room->selectStream(
$_GET['selection'], $_GET['language']);
echo $tpl->render(array(
'page' => 'embed',
'naked' => true, // no header/footer
'title' => $stream->getDisplay(),
'room' => $room,
'stream' => $stream,
'autoplay' => @$_GET['autoplay'],
));