diff options
Diffstat (limited to 'assets/js')
-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() { |