aboutsummaryrefslogtreecommitdiff
path: root/assets/js
diff options
context:
space:
mode:
authorAndreas Hubel2017-08-06 12:36:53 +0200
committerAndreas Hubel2017-08-06 12:36:53 +0200
commited7e7c193fe5660685d929e517b9dd30b1bb9fa7 (patch)
tree04fb957ff07b9a66d16ae47bce43bbba61b14cc5 /assets/js
parent1b9b970491277c6267590bfdac57ac1902845d5f (diff)
use generic way to access playback, fixes #40
Diffstat (limited to '')
-rw-r--r--assets/js/lustiges-script.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js
index ad3ccab..54d4a58 100644
--- a/assets/js/lustiges-script.js
+++ b/assets/js/lustiges-script.js
@@ -57,14 +57,14 @@ $(function() {
},
events: {
onReady: function() {
- var playback = player.getPlugin('hls');
+ var playback = player.core.getCurrentContainer().playback;
var params = deserialize(location.href)
playback.once(Clappr.Events.PLAYBACK_PLAY, function() {
var seek = parseFloat(params.t);
if (!isNaN(seek)) {
player.seek(seek);
- } else if (player.getPlugin('hls').getPlaybackType() == 'vod') {
+ } else if (playback.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);
}