Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Images are showing at incorrect time on seekbar #43

Open
iamprem opened this issue Feb 20, 2018 · 1 comment
Open

Images are showing at incorrect time on seekbar #43

iamprem opened this issue Feb 20, 2018 · 1 comment

Comments

@iamprem
Copy link

iamprem commented Feb 20, 2018

I've been trying to use this plugin for displaying thumbnail images and i noticed that time in seconds configured is not actually matching the timestamp in seek bar for a given image. I tried removing "progressControl.el().offsetLeft" from the following line and then it seem to work correctly. Not sure if this is due to recent ControlBar changes in videojs. Without this "possible fix" i'm getting negative values for "mouseTime".

mouseTime = Math.floor((left - progressControl.el().offsetLeft) / progressControl.width() * duration);

Let me know if you need any more examples or details about this bug.

@Sergey-bhw
Copy link

Same here, did as you wrote and its working as it should. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants