aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorMaZderMind2015-04-06 00:28:03 +0200
committerMaZderMind2015-04-06 00:28:03 +0200
commit8f14dd9084b10c223508bc9948c5724fc2c9eb63 (patch)
tree9ff0ef30da4a08b7a6f50a3d91afee83ea01479a /index.php
parentac263c7672d78151ffdf2990dd98127cee572717 (diff)
Audio & Video-Player Embeding
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/index.php b/index.php
index 673183c..cfe0340 100644
--- a/index.php
+++ b/index.php
@@ -132,6 +132,16 @@ try {
require('view/room.php');
}
+ else if(preg_match('@^embed/([^/]+)/(hd|sd|audio|slides)/(native|translated|stereo)$@', $route, $m))
+ {
+ $_GET = array(
+ 'room' => $m[1],
+ 'selection' => $m[2],
+ 'language' => $m[3],
+ );
+ require('view/embed.php');
+ }
+
else
{
throw new NotFoundException();