-
Notifications
You must be signed in to change notification settings - Fork 74
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 position stops updating after seek on HLS streams #165
base: master
Are you sure you want to change the base?
Conversation
Comment from izkmdz: Unfortunately, this fix for #103 is causing the seek bar to not be as responsive as before. Also, the delay does not allow for quick mouse clicks/taps to be registered on the seek bar. |
I think i was able to fix the issue by adding the check for pause: function() {
// Do not pause while scrubbing or else chromecast will stop timeupdate events
if (!this.paused() && this._remotePlayer.canPause && !this.videojsPlayer.scrubbing()) {
this._remotePlayerController.playOrPause();
}
} |
Interesting. Is it necessary to check for |
I just left this part as it was before, didn't check, but i think |
In the latest video.js version this fix is not working, scrubbing(true) is not being set on single clicks on seek bar anymore. Not sure how to fix it differently, i've just patched scrubbing(true) back into video.js in SeekBar handleMouseDown function |
764e4a7
to
6a80801
Compare
fixes an issue where scrubbing would cause CURRENT_TIME_CHANGED to stop firing
90% working seek/scrub functionality with HLS streams. The issue still remains upon "quick scrubs", when scrubbing for a half a second or so.
6a80801
to
50447c0
Compare
The latest PR should work with latest video.js as well. It's not 100% working and the solution is not perfect though. I've been sitting in days and trying to figure out why chromecast stops sending time_update events upon scrubbing HLS, but can't find the core issue. Known issues:
@izkmdz Should we put the functionality in this PR under a specific tech option since it's not perfect? For HLS users it's still a great step forward compared to how it works today. Proposal:
|
@RavWar @ayrtonbrut Can you this PR and see if it solves your issues? I've created a demo with HLS in #166 which you can use if you'd like to. |
With the new PR changes original issue is fixed for me, couldn't thoroughly test if it causes any other problems though |
Great, thanks for testing. |
Authored by @andreasgangso some years ago.
As far as I remember the first commit solved some general issue where an error was thrown due to "tech.seeking is not defined".
The seeking/scrubbing issue is described in #103.