justinribeiro / lite-youtube

The fastest little YouTube web component on this side of the internet. The shadow dom web component version of Paul's lite-youtube-embed.
https://www.npmjs.com/package/@justinribeiro/lite-youtube
MIT License
966 stars 70 forks source link

Adding `enablejsapi=1` so javascript can interact with youtube player #12

Closed shaal closed 4 years ago

paulirish commented 4 years ago

FWIW i'm considering a unified model for handling all the options: https://github.com/paulirish/lite-youtube-embed/issues/20#issuecomment-567168197

justinribeiro commented 4 years ago

Yeah, the unified approach is the way to go for sure; it'll get unwieldy CE API wise.

justinribeiro commented 4 years ago

Resolved with new params attr in 0.9.0: https://github.com/justinribeiro/lite-youtube/commit/e8d8ccc886ae8d63ea25aa4b35fbf5fd2523a80