mirror of
https://github.com/voc/streaming-website
synced 2024-11-10 06:34:17 +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',
|
flashName: 'flashmediaelement.swf',
|
||||||
pluginPath: '../assets/mejs/',
|
pluginPath: '../assets/mejs/',
|
||||||
enableAutosize: true,
|
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() {
|
$(window).on('load', function() {
|
||||||
|
|
Loading…
Reference in a new issue