Skip to content

Releases: justinribeiro/lite-youtube

v1.6.0

15 Nov 18:37
v1.6.0
5b3391e
Compare
Choose a tag to compare

What's New

  • feat(slot): added image named slot for poster overrides by @justinribeiro in #107
  • feat(aspect-ratio): add css custom prop for changing aspect ratio of container by @justinribeiro in #108
  • feat(frame-shadow): add ability to toggle frame::before shadow by @justinribeiro in #111
  • feat(auto-pause): adds autopause attribute for pausing videos off screen by @justinribeiro in #112
  • feat(iframe): adds credentialless attribute for COEP by @justinribeiro in #113

What's Fixed

Full Changelog: v1.5.0...v1.6.0

v1.5.0

02 Feb 16:05
v1.5.0
c301ef2
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.4.0...v1.5.0

v1.4.0

13 Jul 16:09
v1.4.0
4ed2a51
Compare
Choose a tag to compare

What's Changed

  • feat(core): add YouTube Shorts-style mobile embed interaction by @justinribeiro in #67

Full Changelog: v1.3.2...v1.4.0

v1.3.2

08 Jul 16:38
v1.3.2
ef8e5a0
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.3.1...v1.3.2

v1.3.1

20 Dec 23:39
v1.3.1
4422d9d
Compare
Choose a tag to compare

What's Changed

  • fix(css): placeholder position with different text-align by @anatolykopyl in #44

New Contributors

Full Changelog: v1.3.0...v1.3.1

v1.3.0

17 Nov 17:55
v1.3.0
b7b6da8
Compare
Choose a tag to compare
  • Adds loading=lazy to image placeholder for more perf with posterloading attr if you'd like to use eager

v1.2.0

25 Oct 23:24
v1.2.0
f19ebfa
Compare
Choose a tag to compare

Adds:

  • playlistid param for use with a youtube playlist id. Note, you must give a videoid as well, otherwise no thumbnail will load (playlists don't serve a thumbnail).

Example:

<lite-youtube videoid="VLrYOji75Vc" playlistid="G5r6j4GptH5JTveoLTVqpp7w2oc27Q9"></lite-youtube>

On interaction, loads the playlist interface.

playlist-support-lite-youtube.mp4

v1.1.0

05 Oct 04:56
v1.1.0
5a640a8
Compare
Choose a tag to compare

Adds:

  • nocookie param for use youtube-nocookie.com as iframe embed uri
  • liteYoutubeIframeLoaded custom event for knowing when iframe is loaded

v1.0.0

01 Oct 23:34
v1.0.0
cf1137d
Compare
Choose a tag to compare

Install

This web component is built with ES modules in mind and is
available on NPM:

npm i @justinribeiro/lite-youtube
# or
yarn add @justinribeiro/lite-youtube

Install with CDN

If you want the paste-and-go version, you can simply load it via CDN:

<script type="module" src="https://cdn.jsdelivr.net/npm/@justinribeiro/[email protected]/lite-youtube.js"></script>