aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorAndreas Hubel2020-12-28 01:27:58 +0100
committerAndreas Hubel2020-12-28 01:27:58 +0100
commit50b6c12dd559a8e7c11d8bb64ede519035eb47d8 (patch)
tree1ebe0ce37fc7670bb71ecab2d3ad405fa5194bdd /template
parent7de7c2c592a6f32f8120e07d384f69b75e47e8b8 (diff)
netcut: fix bug when sprites generation is disabled
Diffstat (limited to 'template')
-rw-r--r--template/relive-player-netcut.phtml12
1 files changed, 7 insertions, 5 deletions
diff --git a/template/relive-player-netcut.phtml b/template/relive-player-netcut.phtml
index 61a21b2..be993da 100644
--- a/template/relive-player-netcut.phtml
+++ b/template/relive-player-netcut.phtml
@@ -26,11 +26,13 @@
id="video" preload="auto" data-setup="{}" controls
style="min-height: 100px;"
poster="<?=h($talk['thumbnail'])?>"
- data-sprites="<?= h($talk['sprites']['url']) ?>"
- data-sprites-n="<?= h($talk['sprites']['n']) ?>"
- data-sprites-cols="<?= h($talk['sprites']['cols']) ?>"
- data-sprites-interval="<?= h($talk['sprites']['interval']) ?>"
- >
+ <? if (!empty($talk['sprites'])) { ?>
+ data-sprites="<?= h($talk['sprites']['url']) ?>"
+ data-sprites-n="<?= h($talk['sprites']['n']) ?>"
+ data-sprites-cols="<?= h($talk['sprites']['cols']) ?>"
+ data-sprites-interval="<?= h($talk['sprites']['interval']) ?>"
+ <? } ?>
+ >
<source src="<?= h(forceproto($talk['playlist'])) ?>" type="application/x-mpegURL">
</video>
</div>