mirror of
https://github.com/voc/streaming-website
synced 2024-09-20 06:22:03 +00:00
relive player: skip forward to scheduled beginning of the talk
This commit is contained in:
parent
6182380285
commit
207f492fc3
1 changed files with 8 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue