My encapsulated and responsive @justinribeiro/lite-youtube web component has been recently updated to version 0.9.0. New Things:
A big shout to @abdonrd and @abraham for their contributions, and to everyone for their ongoing use and comments. Keep’em coming!
To use, you can install it via npm or yarn:
npm i @justinribeiro/lite-youtube
# or
yarn add @justinribeiro/lite-youtube
Or you can just include is directly with JSDelivr:
<script type="module" src="https://cdn.jsdelivr.net/npm/@justinribeiro/lite-youtube@0.9.0/lite-youtube.js">
From there, just include it your page with the videoid
and videotitle
<lite-youtube
videoid="guJLfqTFfIw"
videotitle="Sample output of devtools-to-video cli tool">
</lite-youtube>
If you’d like to contribute or find an issue, the project is available on Github or if you’re looking for the non-ShadowDOM version, do check out Paul’s repo and pending NPM package as well.