Closed zachleat closed 8 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
lite-youtube-embed | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Feb 23, 2024 4:00pm |
Danke!
Demo errors with
Uncaught (in promise) TypeError: video.getPlayer is not a function
at seekTo (js-api.html:17:27)
at HTMLButtonElement.onclick (js-api.html:25:59)
@Stanzilla looks like it was post-merge refactored as getYTPlayer
.
@paulirish don’t forget to change README.md and variants/js-api.html too!
(also, yay! thanks!)
@Stanzilla looks like it was post-merge refactored as
getYTPlayer
. @paulirish don’t forget to change README.md and variants/js-api.html too!
Yup yup. Thanks! missed these. 😊
Edit: all fixed and shipped a 0.3.2 just to make sure readme docs are good on npm.
Allows using the
getPlayer
asynchronous method to access theplayer
instance to control the video.https://developers.google.com/youtube/iframe_api_reference#seekTo
Added an additional test/demo that shows usage examples.
Inspired by work on this stream: https://www.youtube.com/watch?v=MrVMewBq0jE