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

Big button is kept on the screen #46

Closed dy closed 3 years ago

dy commented 3 years ago
  1. Init youtube as so: image (that mixup of youtube play and vlitejs play is uneasy)

  2. Click in the middle of progress bar: image

The big button is kept on the screen, although the playback has started.

dy commented 3 years ago

In general, I'd like to somehow skip youtube poster, for that I'd need to start video, but play seems to be blocked due to #44

yoriiis commented 3 years ago
  1. Clicking on the progress bar does not trigger playback. If the video was paused, it will remain so until you click the play button.
  2. The click on the progress bar do not trigger the playback. If the video was paused it will remain paused until you click on the play button.
yoriiis commented 3 years ago

Okay I found the problem. Without the poster, if the user clicks on the progress bar, the seekTo is dispatch without going through the 'play' function.

Fixed in #49.

yoriiis commented 3 years ago

This has been fixed and merged in main. Release 4.0.2 is available ! 🎉