New
v0.3.1
New features
- Add a
js-apiattribute to opt-in to the YouTube Iframe Player API by @zachleat in https://github.com/paulirish/lite-youtube-embed/pull/164- Accessed by
const player = await lytElem.getPlayer(); - Demo: Iframe Player API usage
- Accessed by
- Upgrade poster image to higher resolution webp if possible by @paulirish in https://github.com/paulirish/lite-youtube-embed/pull/167
- See youtube-thumbnail-urls.md for the full topic.
- If you prefer to manually provide a custom poster image, you can use the new poster-image-availability.html tool to find if you want to manually specify a maximum res poster image.
- Display the video title - via title attribute by @jakeparis in https://github.com/paulirish/lite-youtube-embed/pull/88
Other changes
- Replace top gradient PNG with
linear-gradientby @paulirish in https://github.com/paulirish/lite-youtube-embed/pull/166 - Make the entire element clickable by @MadLittleMods in https://github.com/paulirish/lite-youtube-embed/pull/153
border:nonetoborder:0by @davidsneighbour in https://github.com/paulirish/lite-youtube-embed/pull/142- Update GitHub Actions versions by @coliff in https://github.com/paulirish/lite-youtube-embed/pull/157
- readme: Add
@next/third-partiesReact wrapper by @karlhorky in https://github.com/paulirish/lite-youtube-embed/pull/154
New Contributors
- @davidsneighbour made their first contribution in https://github.com/paulirish/lite-youtube-embed/pull/142
- @MadLittleMods made their first contribution in https://github.com/paulirish/lite-youtube-embed/pull/153
- @zachleat made their first contribution in https://github.com/paulirish/lite-youtube-embed/pull/164
- @jakeparis made their first contribution in https://github.com/paulirish/lite-youtube-embed/pull/88
Full Changelog: https://github.com/paulirish/lite-youtube-embed/compare/v0.3.0...v0.3.1