aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-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())?>"