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: update the progress-bar correctly when pausing the video and cli… #6234

Closed
wants to merge 1 commit into from

Commits on Sep 17, 2019

  1. fix: update the progress-bar correctly when pausing the video and cli…

    …ck the seek-bar.
    
    First,when handle mosue down event of the seek-bar, we set player's scrubbing_ to true, and at the same tick, the update function called and we call super.update(). however, it returns undefined because the progress equals to the previous progress, the root cause is that we get cached currentTime. So we call super.update() in the next tick to make sure we can get the correct progress.Second, when toggle visibility of the document,we should not call this.enableInterval_() when the player is paused or waiting.
    Fixed videojs#6232
    ustbhuangyi committed Sep 17, 2019
    Configuration menu
    Copy the full SHA
    c45b107 View commit details
    Browse the repository at this point in the history