diff --git a/src/js/mep-feature-sourcechooser.js b/src/js/mep-feature-sourcechooser.js index 91dd9f516..a2723c17e 100644 --- a/src/js/mep-feature-sourcechooser.js +++ b/src/js/mep-feature-sourcechooser.js @@ -35,9 +35,15 @@ currentTime = media.currentTime; paused = media.paused; media.setSrc(src); - if (!paused) { - media.play(); - } + media.load(); + media.addEventListener('loadedmetadata', function(e){ + this.currentTime = currentTime; + }, true); + media.addEventListener('canplay', function(e){ + if (!paused) { + this.play(); + } + }, true); } });