Skip to content

Current time display shows 0:00 while seeking #9133

@fansubscat

Description

@fansubscat

Description

When using the currentTimeDisplay control, when the users seeks the video to a different time, the current time is initially displayed as the new seeked time, but when the real seek begins, the time is set to "0:00", and does not return to the real time until the seek has finished. This was introduced in #8988. The issue is reproducible in 8.23.4, but it is not present in the previous stable release (8.21.1).

This bug was already mentioned in a comment in that PR, see #8988 (comment)

Reduced test case

https://codepen.io/fansubscat/pen/zxqJaXP

Steps to reproduce

  1. Use currentTimeDisplay in your controls.
  2. Start playing the video.
  3. Seek to a different time.
  4. The control displays "0:00" until the seek has been completed.

Errors

No response

What version of Video.js are you using?

v8.23.4

Video.js plugins used.

No response

What browser(s) including version(s) does this occur with?

Chrome 142

What OS(es) and version(s) does this occur with?

Debian Linux 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions