blob: 2071c3a1120c501bcd45712af5af647ed22f7334 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?php
$room = $conference->getRoom($_GET['room']);
if(!$room->hasEmbed())
throw new NotFoundException('Embedding is not enabled in this room');
$selection = $_GET['selection'];
$language = $_GET['language'];
if ($language !== 'native') {
if (! $room->hasTranslation()) {
throw new NotFoundException('Not translated');
}
if (! $room->isValidLanguage($language)) {
throw new NotFoundException('Language not found');
}
}
$stream = $room->selectStream($selection, $language);
echo $tpl->render(array(
'page' => 'embed',
'naked' => true, // no header/footer
'title' => $stream->getDisplay(),
'room' => $room,
'stream' => $stream,
'autoplay' => @$_GET['autoplay'],
));
|