-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Fixes TimeUI update on seek #4754
Conversation
@@ -244,6 +244,8 @@ class SeekBar extends Slider { | |||
super.handleMouseUp(event); | |||
|
|||
this.player_.scrubbing(false); | |||
// forces timeui to not use cache | |||
this.player_.tech_.trigger('timeupdate'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it necessary to trigger on the tech or can we trigger it on the player itself?
Also, we should trigger this event like we do here: https://github.com/videojs/video.js/blob/master/src/js/tech/tech.js#L304-L310
and we should copy over and update the jsdoc as well like there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is necessary to trigger on the tech, I had tried this.player_.trigger
, it didn't work. I will update the trigger event.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, thanks @shahlabs!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retested with this.player_.trigger and it worked, so updating the trigger on player @gkatsev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this improves things, particularly with Flash but doesn't completely fix it with Html5, still sporadically getting the time displays not updating in html5. This is good to be merged anyway since it improves things.
The whole seeking infrastructure in video.js needs to be overhauled, anyway.
Also, I updated the jsdoc comment. |
Description
TimeUpdate ui does not fire on seek when paused.
Specific Changes proposed
By manually triggering a timeupdate we force the ui to not use the cache.
Requirements Checklist