aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/player/dash.phtml
diff options
context:
space:
mode:
authorAndreas Hubel2018-12-28 17:38:23 +0100
committerAndreas Hubel2018-12-28 17:38:32 +0100
commit2b78ec78daa0dd4a0d9c9f8a892a3c8faa9d2690 (patch)
tree986a9b16cce5bba8ababacdfcd579511528bdc9d /template/assemblies/player/dash.phtml
parent391dccbf84e2c0ecda819db6594c491243fc5df4 (diff)
Add poster image to live stream players
Diffstat (limited to 'template/assemblies/player/dash.phtml')
-rw-r--r--template/assemblies/player/dash.phtml4
1 files changed, 3 insertions, 1 deletions
diff --git a/template/assemblies/player/dash.phtml b/template/assemblies/player/dash.phtml
index 8e43864..7cc1e38 100644
--- a/template/assemblies/player/dash.phtml
+++ b/template/assemblies/player/dash.phtml
@@ -2,7 +2,8 @@
<script type="text/javascript" src="<?=h($assets)?>clapprio/level-selector.min.js"></script>
<script type="text/javascript" src="<?=h($assets)?>clapprio/audio-selector.min.js"></script>
-<div class="dashContainer">
+
+<div class="dashContainer" style="min-height: 100px" >
<div id="player"></div>
</div>
@@ -44,6 +45,7 @@
return new Clappr.Player({
sources: sources,
width: "100%",
+ poster: "<?=h($stream->getPoster())?>",
plugins: [DashShakaPlayback, LevelSelector, AudioSelector],
shakaConfiguration: {
abr: {