vlitejs / vlite

🦋 vLitejs is a fast and lightweight Javascript library for customizing video and audio player in Javascript with a minimalist theme (HTML5, Youtube, Vimeo, Dailymotion)
https://vlite.js.org
MIT License
268 stars 18 forks source link

Video Element Invisible (edit: when no class vlite-js is given) #33

Closed bfiessinger closed 4 years ago

bfiessinger commented 4 years ago

https://codesandbox.io/s/kind-water-s0dzq?file=/index.html

The video Element is currently invisible when using vlitejs. It appears to display straight under the vlite wrapper.

.v-vlite > video {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
}

would fix it.

Edit: I just found out that it's important to add the vlite-js class to video elements. This should be either passed by the library or better described in the docs imo.