diff options
author | MaZderMind | 2017-01-03 14:12:00 +0100 |
---|---|---|
committer | MaZderMind | 2017-01-03 14:12:00 +0100 |
commit | f3b2736977cf61e41956da8abae7f93c898c71d2 (patch) | |
tree | 59073c508b6bb7f3b0a1c6ac8b9ac1ee94416a0d /assets/js/lustiges-script.js | |
parent | 4fc63c327a95a70ddd924ec01651c295056456e2 (diff) | |
parent | 00990497857e5ec27405e2b795310fa0dc925545 (diff) |
Merge branch 'feature/relive-scrub-thumbs' of git://github.com/florolf/streaming-website
Diffstat (limited to 'assets/js/lustiges-script.js')
-rw-r--r-- | assets/js/lustiges-script.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js index 81db426..e949c6e 100644 --- a/assets/js/lustiges-script.js +++ b/assets/js/lustiges-script.js @@ -23,10 +23,25 @@ $(function() { if($relivePlayer.length > 0) { var player = new Clappr.Player({ baseUrl: 'assets/clapprio/', + plugins: { + core: [ClapprThumbnailsPlugin] + }, + source: $relivePlayer.data('m3u8'), height: $relivePlayer.data('height'), width: $relivePlayer.data('width'), autoPlay: true, + 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") + ), + }, events: { onReady: function() { var playback = player.getPlugin('hls'); |