netcut: fix bug when sprites generation is disabled

This commit is contained in:
Andreas Hubel 2020-12-28 01:27:58 +01:00
parent 7de7c2c592
commit 50b6c12dd5

View file

@ -26,11 +26,13 @@
id="video" preload="auto" data-setup="{}" controls id="video" preload="auto" data-setup="{}" controls
style="min-height: 100px;" style="min-height: 100px;"
poster="<?=h($talk['thumbnail'])?>" poster="<?=h($talk['thumbnail'])?>"
data-sprites="<?= h($talk['sprites']['url']) ?>" <? if (!empty($talk['sprites'])) { ?>
data-sprites-n="<?= h($talk['sprites']['n']) ?>" data-sprites="<?= h($talk['sprites']['url']) ?>"
data-sprites-cols="<?= h($talk['sprites']['cols']) ?>" data-sprites-n="<?= h($talk['sprites']['n']) ?>"
data-sprites-interval="<?= h($talk['sprites']['interval']) ?>" data-sprites-cols="<?= h($talk['sprites']['cols']) ?>"
> data-sprites-interval="<?= h($talk['sprites']['interval']) ?>"
<? } ?>
>
<source src="<?= h(forceproto($talk['playlist'])) ?>" type="application/x-mpegURL"> <source src="<?= h(forceproto($talk['playlist'])) ?>" type="application/x-mpegURL">
</video> </video>
</div> </div>