aboutsummaryrefslogtreecommitdiff
path: root/assets/js/lustiges-script.js
diff options
context:
space:
mode:
authorFlorian Larysch2017-08-11 12:07:06 +0200
committerFlorian Larysch2017-08-11 12:07:06 +0200
commit37f6d584ebb9cb1203a40c38f12d7003c9069365 (patch)
treeff9adf8969ea4d6f018d9cb526306a61ecf02b59 /assets/js/lustiges-script.js
parent1c2f9a21fada3fa5cba1a7b1fbc13f0fff09a97b (diff)
parent56a2420e47f9434b4c91b17e81a36fb4e6fe887d (diff)
Merge branch 'feature/relive-scrub-thumbs' of https://github.com/florolf/streaming-website into florolf-feature/relive-scrub-thumbs
Diffstat (limited to 'assets/js/lustiges-script.js')
-rw-r--r--assets/js/lustiges-script.js20
1 files changed, 13 insertions, 7 deletions
diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js
index ee897b6..3af4250 100644
--- a/assets/js/lustiges-script.js
+++ b/assets/js/lustiges-script.js
@@ -34,6 +34,18 @@ $(function() {
var $relivePlayer = $('body.relive-player .video-wrap');
if($relivePlayer.length > 0) {
+ var sprites = [];
+
+ if($relivePlayer.data("sprites")) {
+ sprites = ClapprThumbnailsPlugin.buildSpriteConfig(
+ $relivePlayer.data("sprites"),
+ $relivePlayer.data("sprites-n"),
+ 160, 90,
+ $relivePlayer.data("sprites-cols"),
+ $relivePlayer.data("sprites-interval")
+ );
+ }
+
var player = new Clappr.Player({
baseUrl: 'assets/clapprio/',
plugins: {
@@ -47,13 +59,7 @@ $(function() {
scrubThumbnails: {
backdropHeight: 64,
spotlightHeight: 84,
- thumbs: ClapprThumbnailsPlugin.buildSpriteConfig(
- $relivePlayer.data("sprites"),
- $relivePlayer.data("sprites-n"),
- 160, 90,
- $relivePlayer.data("sprites-cols"),
- $relivePlayer.data("sprites-interval")
- ),
+ thumbs: sprites
},
events: {
onReady: function() {