-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Blinking time indicator on second recording #46
Comments
@alsar is this something you noticed in v1.1.0 or was it already present? |
It was already present in 1.0.3 |
@alsar what browser are you using? It is supposed to blink (but perhaps it only does it the second time in your browser). |
Oh you mean the time indicator, not the record indicator of course, my bad. The time indicator starts to blink, can you make a gif or something of this, I'm not seeing this or misunderstanding you. This would also help with figuring out the recording time issue. |
@thijstriemstra Here is a video: https://youtu.be/g_QsgwQRqO4 As already mentioned, this happens only on the second run (and every next). |
I'm also having the same problem. |
It seems this only happens on slow machines, I can't reproduce it on this early 2015 Macbook Pro. |
Tried on multiple i5 machines with 8-16gb ram. Same problem. |
There is someting in video.js that resets the current time every x milliseconds when no valid source was found. This is what makes the time indicator 'blink'. Please look through the video.js source (probably for |
For example, on https://github.com/videojs/video.js/blob/master/src/js/player.js#L2792:
This is the 15-250 ms time indicator reset issue I think. |
And then in tech.js there's |
When the videojs-record plugin is first intialized, the |
@alsar can you upgrade video.js to 5.8.0 or newer and check if this issue is fixed (related commit: videojs/video.js@0490728)? |
@thijstriemstra it's still the same with 5.8.3 |
Got the same issue. Time still updates, but the leading 0 seems to blink. (e.g. 0:12 to 00:12, then to 0:13) |
it works fine if I change line 1547 to the following: I am not unsure what's the gm for, so didn't create PR. |
@zang feel free to make a PR so I can check it out. videojs-wavesurfer also uses the same code, I'm guessing it's the same problem there? https://collab-project.github.io/videojs-wavesurfer |
This is the original code btw: https://github.com/videojs/video.js/blob/master/src/js/utils/format-time.js videojs-record adds support for |
Thanks for the PR @zang, merged it and will release a new version now. |
If you record a video for the second time, the time indicator starts to blink.
Also the recording time is wrong. If the length of the recorded video is 10s the recorder shows 8s. This also happens on the second run.
The text was updated successfully, but these errors were encountered: