vime-js / vime

Customizable, extensible, accessible and framework agnostic media player. Modern alternative to Video.js and Plyr. Supports HTML5, HLS, Dash, YouTube, Vimeo, Dailymotion...
https://vimejs.com
MIT License
2.75k stars 154 forks source link

Is it possible to style the scrubber? #337

Closed karmaral closed 1 year ago

karmaral commented 1 year ago

Hello. I've been trying several ways of tackling this, but the shadow-root seems to impede all my styling efforts. What would be the intended way of styling the scrubber's input track? I'm looking to remove the border radius, mostly. I saw that #44 invoked some methods that got a reference to the scrubber elements, but I can't seem to find those methods on the docs.

How should one go about this? I'm using the Svelte version.

karmaral commented 1 year ago

I eventually got around it by getting the topmost available component and then traversing through the lower levels with the shadowRoot property. It's a bit convoluted, but it worked. From there I just injected a stylesheet.