v0.3.1
New features
- Add a
js-api
attribute to opt-in to the YouTube Iframe Player API by @zachleat in #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 #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 #88
Other changes
- Replace top gradient PNG with
linear-gradient
by @paulirish in #166 - Make the entire element clickable by @MadLittleMods in #153
border:none
toborder:0
by @davidsneighbour in #142- Update GitHub Actions versions by @coliff in #157
- readme: Add
@next/third-parties
React wrapper by @karlhorky in #154
New Contributors
- @davidsneighbour made their first contribution in #142
- @MadLittleMods made their first contribution in #153
- @zachleat made their first contribution in #164
- @jakeparis made their first contribution in #88
Full Changelog: v0.3.0...v0.3.1