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
266 stars 18 forks source link

Fix Youtube seekTo method conflicting with unstarted and unmuted video #75

Closed yoriiis closed 2 years ago

yoriiis commented 2 years ago

Fixed #74.

Doc: https://developers.google.com/youtube/iframe_api_reference#seekTo

Seeks to a specified time in the video. If the player is paused when the function is called, it will remain paused. If the function is called from another state (playing, video cued, etc.), the player will play the video.