aboutsummaryrefslogtreecommitdiff
path: root/view/embed.php
blob: ccd4b98b10457b9f356c8ee9cf7e012f79c56339 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

$room = new Room($_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'],
));