1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-24 08:42:25 +02:00

fix: Make sure we remove vjs-ended from the play toggle in all appropriate cases. (#4661)

This commit is contained in:
Pat O'Neill 2017-10-13 13:46:51 -04:00 committed by Gary Katsevman
parent e8511a5799
commit 0287f6e076

View File

@ -67,7 +67,6 @@ class PlayToggle extends Button {
* @listens Player#seeked
*/
handleSeeked(event) {
// remove the ended class
this.removeClass('vjs-ended');
if (this.player_.paused()) {
@ -86,6 +85,7 @@ class PlayToggle extends Button {
* @listens Player#play
*/
handlePlay(event) {
this.removeClass('vjs-ended');
this.removeClass('vjs-paused');
this.addClass('vjs-playing');
// change the button text to "Pause"