relive player: skip forward to scheduled beginning of the talk

This commit is contained in:
Andi 2016-08-25 16:36:52 +02:00 committed by MaZderMind
parent 6182380285
commit 207f492fc3

View file

@ -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() {