aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/player/video.phtml
diff options
context:
space:
mode:
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())?>"