streaming-website/view/relive-player.php
2020-01-01 12:28:29 +01:00

22 lines
499 B
PHP

<?php
$relive = $conference->getRelive();
if(!$relive->isEnabled())
throw new NotFoundException('Internal Relive is disabled');
$talk = $relive->getTalk(intval($_GET['id']));
if($talk['status'] == 'released' && empty($_GET['redirect'])) {
header("HTTP/1.1 301 Moved Permanently");
header('Location: ' . $talk['release_url']);
return;
}
echo $tpl->render(array(
'page' => 'relive-player',
'title' => 'Relive: ' . $talk['title'],
'talk' => $talk,
'width' => 1920,
'height' => 1080,
));