Replaced calls to player.restart() and player.togglePlay() with proxy(...) to ensure that custom handlers are called

This commit is contained in:
Guru Prasad Srinivasa 2018-11-19 22:57:07 -05:00
parent e8d2f23b81
commit 80813b0406

View File

@ -386,10 +386,10 @@ class Listeners {
}
if (player.ended) {
player.restart();
player.play();
this.proxy(event, player.restart, 'restart');
this.proxy(event, player.togglePlay, 'play');
} else {
player.togglePlay();
this.proxy(event, player.togglePlay, 'play');
}
});
}