aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/player/video.phtml
diff options
context:
space:
mode:
authorMaZderMind2015-08-13 18:18:08 +0200
committerMaZderMind2015-08-21 12:14:53 +0200
commit5e446908ea962ca25ebdd7b15efed0804a0ad7c7 (patch)
treef6daeffdcdea8fca05e00f0bd858c92c2bc78353 /template/assemblies/player/video.phtml
parent5b279f983a76ad7994089ad2d97f3e7fec27afbc (diff)
Allow Disabling Embed-Autoplay
Diffstat (limited to 'template/assemblies/player/video.phtml')
-rw-r--r--template/assemblies/player/video.phtml4
1 files changed, 3 insertions, 1 deletions
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())?>"