aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--template/relive-player-netcut.phtml16
1 files changed, 11 insertions, 5 deletions
diff --git a/template/relive-player-netcut.phtml b/template/relive-player-netcut.phtml
index 7cdde6c..61a21b2 100644
--- a/template/relive-player-netcut.phtml
+++ b/template/relive-player-netcut.phtml
@@ -22,7 +22,15 @@
<div class="player-wrap">
<div id="webcut">
- <video class="video-js vjs-default-skin" id="video" preload="auto" data-setup="{}" controls autoplay style="min-height: 480px; width: 100%;" poster="<?=h($talk['thumbnail'])?>">
+ <video class="video-js vjs-default-skin vjs-16-9"
+ 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']) ?>"
+ >
<source src="<?= h(forceproto($talk['playlist'])) ?>" type="application/x-mpegURL">
</video>
</div>
@@ -38,10 +46,8 @@
<script type="text/javascript">
VIDEO_FPS = 25;
- //INFRAME = 5073;
- //OUTFRAME = 184746;
- INFRAME = 7179;
- OUTFRAME = 24687;
+ INFRAME = 900*25;
+ OUTFRAME = <?= ($talk['duration']-900)*25 ?>;
</script>
<script type="text/javascript" src="<?=h($assets)?>netcut/assets/script.js"></script>