diff options
author | Andi | 2016-08-25 16:36:52 +0200 |
---|---|---|
committer | MaZderMind | 2016-08-26 16:50:16 +0200 |
commit | 207f492fc33108e1046ee071cb24ec85dc12cccf (patch) | |
tree | c8ba8521b7c6cd219a5c4f2c995fa67761f33a65 | |
parent | 6182380285577ea38f351d57de60d9401e7eb97b (diff) |
relive player: skip forward to scheduled beginning of the talk
Diffstat (limited to '')
-rw-r--r-- | assets/js/lustiges-script.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js index 62c94be..d6b1f7e 100644 --- a/assets/js/lustiges-script.js +++ b/assets/js/lustiges-script.js @@ -25,6 +25,14 @@ $(function() { flashName: 'flashmediaelement.swf', pluginPath: '../assets/mejs/', enableAutosize: true, + success: function (mediaElement) { + mediaElement.addEventListener('canplay', function () { + // skip forward to scheduled beginning of the talk at ~ 0:14:30 (30 sec offset, if speaker starts on time) + if ( mediaElement.currentTime == 0 ) { + mediaElement.setCurrentTime(870); + } + }) + } }); $(window).on('load', function() { |