aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorMaZderMind2015-08-13 18:18:08 +0200
committerMaZderMind2015-08-21 12:14:53 +0200
commit5e446908ea962ca25ebdd7b15efed0804a0ad7c7 (patch)
treef6daeffdcdea8fca05e00f0bd858c92c2bc78353 /index.php
parent5b279f983a76ad7994089ad2d97f3e7fec27afbc (diff)
Allow Disabling Embed-Autoplay
Diffstat (limited to '')
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
index 11495df..4d2bfc7 100644
--- a/index.php
+++ b/index.php
@@ -143,12 +143,13 @@ try {
require('view/room.php');
}
- else if(preg_match('@^embed/([^/]+)/(hd|sd|audio|slides)/(native|translated|stereo)$@', $route, $m))
+ else if(preg_match('@^embed/([^/]+)/(hd|sd|audio|slides)/(native|translated|stereo)(/no-autoplay)?$@', $route, $m))
{
$_GET = array(
'room' => $m[1],
'selection' => $m[2],
'language' => $m[3],
+ 'autoplay' => !isset($m[4]),
);
require('view/embed.php');
}