Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Video.js Seek Bar - Seek point behind mouse cursor

I'm using Video.js (v6.9) and I don't understand why the seek position is behind the mouse cursor. The worst part is, Firefox is the only browser that renders it correctly, so I can't pinpoint what the issue is. Here's a screen grab of what's happening:

enter image description here

Now this is the desired result - from YouTube:

enter image description here

Basically, where the mouse is clicked is not where the video starts.

Things I've tried:

  • Updating Video.js from 6.2 to 6.9
  • Removing all custom styles

Any idea what's happening here? I'm using React and NPM if that's helpful.

like image 238
Martavis P. Avatar asked Apr 20 '18 23:04

Martavis P.


People also ask

How do you highlight a mouse pointer in a presentation?

Press and hold Ctrl, and then click and drag the left mouse button to point to the contents on the slide that you want to draw attention to. To move to the next slide, release Ctrl, and then click the left mouse button.

Can you move Mouse with Javascript?

You can't move the mouse pointer using javascript, and thus for obvious security reasons. The best way to achieve this effect would be to actually place the control under the mouse pointer.

How do I make my mouse pointer more visible?

Make your mouse more visible by changing the color and size of the mouse pointer. Select the Start button, then select Settings > Ease of Access > Cursor & pointer , and choose the options that work best for you.


1 Answers

You can specify your own class to your videojs component to override the default videojs styling or :

.video-js .vjs-progress-control .vjs-mouse-display {
  background-color: transparent !important;
}

Working example: https://codesandbox.io/s/rmwokj6rrq

like image 106
Arielle Nguyen Avatar answered Oct 10 '22 07:10

Arielle Nguyen