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

Why custom ui never work? #332

Open onigetoc opened 1 year ago

onigetoc commented 1 year ago

i just copied ui example and there's no control at all.

It seem to not work with Youtube, i didn' try for other providers.

```


If you take this example it who work except the centered play pause button who stay left, if you replace with a youtube video there's will be no control at all. `<vm-youtube video-id="DyTCOwB0DVw" />`
https://codepen.io/onigetoc/pen/OJvvpMO

Based on the code example above.
https://codepen.io/onigetoc/pen/dyevZWM

I'm always wondering why programmers never do actual working examples. but pseudo working examples that sometime do nothing but show only a concept.
paulovieira commented 1 year ago

You probably need to wrap the individual controls in one or more <vm-control-group>. See the example here: https://vimejs.com/components/ui/controls/control-group