aboutsummaryrefslogtreecommitdiff
path: root/view/embed.php
diff options
context:
space:
mode:
authorMaZderMind2015-04-06 00:28:03 +0200
committerMaZderMind2015-04-06 00:28:03 +0200
commit8f14dd9084b10c223508bc9948c5724fc2c9eb63 (patch)
tree9ff0ef30da4a08b7a6f50a3d91afee83ea01479a /view/embed.php
parentac263c7672d78151ffdf2990dd98127cee572717 (diff)
Audio & Video-Player Embeding
Diffstat (limited to '')
-rw-r--r--view/embed.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/view/embed.php b/view/embed.php
new file mode 100644
index 0000000..b5bc49b
--- /dev/null
+++ b/view/embed.php
@@ -0,0 +1,17 @@
+<?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,
+));