diff options
author | MaZderMind | 2015-08-13 18:18:08 +0200 |
---|---|---|
committer | MaZderMind | 2015-08-21 12:14:53 +0200 |
commit | 5e446908ea962ca25ebdd7b15efed0804a0ad7c7 (patch) | |
tree | f6daeffdcdea8fca05e00f0bd858c92c2bc78353 /index.php | |
parent | 5b279f983a76ad7994089ad2d97f3e7fec27afbc (diff) |
Allow Disabling Embed-Autoplay
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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'); } |