Merge pull request #1570 from felipedeboni/ie11-resetonend-fix

Prevents IE11 with resetOnEnd option set to true to play video again
This commit is contained in:
Sam Potts 2020-01-13 16:21:46 +00:00 committed by GitHub
commit 4f06e2eb71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -390,6 +390,8 @@ class Listeners {
if (player.isHTML5 && player.isVideo && player.config.resetOnEnd) {
// Restart
player.restart();
// call pause otherwise IE11 will start playing the video again
player.pause();
}
});