aboutsummaryrefslogtreecommitdiff
path: root/assets/js/lustiges-script.js
diff options
context:
space:
mode:
authorFlorian Larysch2016-12-29 01:45:05 +0100
committerFlorian Larysch2016-12-29 01:45:05 +0100
commitbc34f86a390c85433b87e9ca8df4d5e5b67b2bda (patch)
treeef103543ee67f1c3b2a823682379eba01125098e /assets/js/lustiges-script.js
parentff785d9ed55378263bf3b130bb473c815b20b637 (diff)
add autoseeking
Diffstat (limited to '')
-rw-r--r--assets/js/lustiges-script.js16
1 files changed, 13 insertions, 3 deletions
diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js
index 56636b6..3e2df3c 100644
--- a/assets/js/lustiges-script.js
+++ b/assets/js/lustiges-script.js
@@ -26,9 +26,19 @@ $(function() {
source: $relivePlayer.data('m3u8'),
height: $relivePlayer.data('height'),
width: $relivePlayer.data('width'),
- /*vents: {
-
- }*/
+ autoPlay: true,
+ events: {
+ onReady: function() {
+ window.player = player;
+ var playback = player.getPlugin('hls');
+ playback.once(Clappr.Events.PLAYBACK_PLAY, function() {
+ if(player.getPlugin('hls').getPlaybackType() == 'vod') {
+ // skip forward to scheduled beginning of the talk at ~ 0:14:30 (30 sec offset, if speaker starts on time)
+ player.seek(14 * 60 + 30);
+ }
+ });
+ }
+ }
});
player.attachTo($relivePlayer.get(0));