video.js icon indicating copy to clipboard operation
video.js copied to clipboard

Safari currentTime display wrong

Open seaside98 opened this issue 10 years ago • 16 comments

Description

Safari 10.0 MacOS Sierra 10.12 Videojs 5.11.7 and 5.12 When clicking to scrub a paused video in safari 10, the currentTime display remains one behind the actual position. For example, if I click to scrub to 10 seconds, it still displays 0:00. Then if I scrub to 50 seconds, it displays 0:10, and so on.

JS Bin

Steps to reproduce

  1. Begin playing the video, and then pause it.
  2. Click the slider to scrub to a point in the video. Repeat this a couple of times.
  3. The currentTime will be one click delayed.

This bug appears to be limited to Safari 10.0.

seaside98 avatar Oct 07 '16 01:10 seaside98

This sounds like the issue that is fixed by v5.11.8 - please re-open if it's not!

misteroneill avatar Oct 18 '16 15:10 misteroneill

@misteroneill Still broken in v5.11.8.

seaside98 avatar Oct 18 '16 19:10 seaside98

I confirm @seaside98 's report. It sometimes seems to work, but the actual currentTime displayed is often incorrect.

hartman avatar Oct 19 '16 08:10 hartman

I can confirm. That's bizarre. I get a different, almost random, value each time I click to seek.

gkatsev avatar Oct 19 '16 15:10 gkatsev

Actually, I can confirm it in the jsbin above but that's using videojs 5.0, when I updated it to 5.11, I'm not seeing any issues.

gkatsev avatar Oct 19 '16 15:10 gkatsev

I'm still seeing it with 5.11. Are you using Safari 10.0? test

seaside98 avatar Oct 19 '16 16:10 seaside98

Yeah, trying out on safari 10. I'll investigate some more, I guess but it seems to be working fine for me.

gkatsev avatar Oct 19 '16 17:10 gkatsev

Unfortunately, I'm still unable to reproduce this.

gkatsev avatar Dec 08 '16 21:12 gkatsev

@gkatsev I can still repro with 5.12 or 5.13.1 play pause click on progress bar to seek almost appears that the previous current time sticks to the tooltip

marguinbc avatar Dec 08 '16 22:12 marguinbc

Could it be the fact that it's using a cached currentTime if it thinks the player is scrubbing?

misteroneill avatar Dec 08 '16 22:12 misteroneill

This reproduces for me in Safari 10.0.1 using video.js 5.13.1

It does not reproduce in Chrome 55 for me.

boushley avatar Dec 09 '16 14:12 boushley

This also reproduces in Safari Tech Preview (10.1)

boushley avatar Dec 09 '16 14:12 boushley

In some further testing this appears to be related to the fact that seeking appears instant on this video. If I try a different video like this one: https://download.blender.org/demo/movies/tears-of-steel_teaser.mp4 seeking is no longer instant. With seeking taking longer this bug no longer shows up in Safari.

The behavior when seeking takes some time is:

  1. Original time is displayed
  2. Click seek
  3. Seeking spinner starts - time continues to display original time.
  4. Seeking completes - time display updates to show time that we seeked to.

The fact that step 3 continues to show the original time seems a bit odd since as a user I expect the value to update to what I just saw as I as hovering, but I can understand why our code waits until the seek completes.

My guess is that a seek end event is being missed in this repro js bin.

boushley avatar Dec 09 '16 15:12 boushley

@misteroneill do you happen to have a link to the issue from v5.11.8 that was similar to this?

boushley avatar Dec 09 '16 15:12 boushley

@boushley It was #3349

misteroneill avatar Dec 09 '16 15:12 misteroneill

Thanks for opening this and for building with Video.js. For the last year we’ve been hard at work re-building the player from the ground up for the modern web. It’s now available as v10 and we’d love for you to join us by upgrading.

Video.js v8 will now live at videojs/videojs-v8 and continue to be maintained as best as we can with security fixes until October 1, 2028 (see its security policy).

This issue hasn’t had activity since December 2016, so we're closing it rather than moving it to videojs/videojs-v8. If it still applies to Video.js 10, open a new issue or discussion and link back here so we keep the context.

Moving to Video.js 10? Use a migration guide: HTML · React.

Migrating with a coding agent? Paste the prompt from the guide's AI Quickstart section into your agent: HTML · React.

If this is a security vulnerability, don't add details here. Report it privately through private vulnerability reporting.

heff avatar Nov 06 '26 21:11 heff