Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Oct 13, 2017

Conversation

misteroneill
Copy link
Member

There are cases where we might not see a seeked event when replaying a video. This will make this code more reliable.

Requirements Checklist

  • Feature implemented / Bug fixed
  • Reviewed by Two Core Contributors

@@ -101,6 +99,7 @@ class PlayToggle extends Button {
* @listens Player#pause
*/
handlePause(event) {
this.removeClass('vjs-ended');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure we want this. If you're ended and the player is told to pause, it should look the same.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed, this ended thing is starting to look messy (see extra releases just to fix things related to this). +1 for not making the play-toggle more complex (which trickles down to plugins).

@misteroneill
Copy link
Member Author

Removed the one comment because it was kind of redundant.

@gkatsev gkatsev merged commit 0287f6e into master Oct 13, 2017
@gkatsev gkatsev deleted the fix-play-toggle branch October 13, 2017 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants