Permalink
Browse files

fix: Make sure we remove vjs-ended from the play toggle in all approp…

…riate cases. (#4661)
  • Loading branch information...
misteroneill authored and gkatsev committed Oct 13, 2017
1 parent e8511a5 commit 0287f6e076c4c7c2009336556c35c3719cae67eb
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/js/control-bar/play-toggle.js
@@ -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"

0 comments on commit 0287f6e

Please sign in to comment.