aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorMaZderMind2015-08-13 18:18:08 +0200
committerMaZderMind2015-08-21 12:14:53 +0200
commit5e446908ea962ca25ebdd7b15efed0804a0ad7c7 (patch)
treef6daeffdcdea8fca05e00f0bd858c92c2bc78353 /template
parent5b279f983a76ad7994089ad2d97f3e7fec27afbc (diff)
Allow Disabling Embed-Autoplay
Diffstat (limited to '')
-rw-r--r--template/assemblies/embed-form.phtml10
-rw-r--r--template/assemblies/player/video.phtml4
2 files changed, 11 insertions, 3 deletions
diff --git a/template/assemblies/embed-form.phtml b/template/assemblies/embed-form.phtml
index 7e545f8..617f477 100644
--- a/template/assemblies/embed-form.phtml
+++ b/template/assemblies/embed-form.phtml
@@ -17,6 +17,12 @@
<option selected value="1920,1080">1920×1080</option>
<? endif ?>
</select>
+
+ <div class="checkbox">
+ <label>
+ <input checked="checked" type="checkbox" id="autoplay"> Autoplay
+ </label>
+ </div>
</div>
</div>
@@ -30,8 +36,8 @@
</div>
<div class="form-group">
- <label for="url">Embed URL:</label>
- <input type="text" id="url" class="form-control" readonly value="<?=h($stream->getEmbedUrl())?>">
+ <label for="embed-url">Embed URL:</label>
+ <input type="text" id="embed-url" class="form-control" readonly value="<?=h($stream->getEmbedUrl())?>">
</div>
</div>
</div>
diff --git a/template/assemblies/player/video.phtml b/template/assemblies/player/video.phtml
index 3ffc333..9149a4f 100644
--- a/template/assemblies/player/video.phtml
+++ b/template/assemblies/player/video.phtml
@@ -1,6 +1,8 @@
<div style="max-width: <?=h($stream->getVideoWidth())?>px; max-height: <?=h($stream->getVideoHeight())?>px;" class="video-wrap">
<video
- autoplay="autoplay"
+ <? if(!isset($autoplay) || $autoplay == true): ?>
+ autoplay="autoplay"
+ <? endif ?>
preload="auto"
width="<?=h($stream->getVideoWidth())?>"
height="<?=h($stream->getVideoHeight())?>"