Commit 2353f7f
committed
fix: currentTimeDisplay shows 0:00 after seek
Steps to reproduce originally posted by @johanberonius at
videojs#8988 (comment)
- Pause player
- Click progress bar and hold mouse button down
- Current time display is updated correctly
- Release mouse button
- Current time display is reset to zero
- Play video
- Current time display is updated again
This patch integrates the proposed workaround by @johanberonius, except
for mobile browsers.
The issue was not caused by adding the option
`disableSeekWhileScrubbingOnMobile` per se, but is a side-effect of the
improvements added in 77c99d2.
Caveats:
- On mobiles 0:00 is still visible for an instant on seek before it
snaps to current time. This can be prevented by setting
`enableSmoothSeeking`.
- It's possible that the conditional has yet to be tweaked for SVT.1 parent 20f8d76 commit 2353f7f
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
0 commit comments