@@ -31,7 +31,7 @@ To use the custom element you will need to:
3131<script src =" node_modules/lite-youtube-embed/src/lite-yt-embed.js" ></script >
3232
3333<!-- Use the element. You may use it before the lite-yt-embed JS is executed. -->
34- <lite-youtube videoid =" ogfYd705cRs " playlabel =" Play: Keynote (Google I/O '18) " ></lite-youtube >
34+ <lite-youtube videoid =" goiWrNiaT0I " playlabel =" Play: Crayon Physics Deluxe - Trailer HD " ></lite-youtube >
3535```
3636
3737<br >
@@ -44,9 +44,9 @@ to be more privacy friendly for end users.
4444Use this as your HTML, load the script asynchronously, and let the JS progressively enhance it.
4545
4646``` html
47- <lite-youtube videoid =" ogfYd705cRs " style =" background-image : url (' https://i.ytimg.com/vi/ogfYd705cRs /hqdefault.jpg' );" >
48- <a href =" https://youtube.com/watch?v=ogfYd705cRs " class =" lty-playbtn" title =" Play Video" >
49- <span class =" lyt-visually-hidden" >Play Video: Keynote (Google I/O '18) </span >
47+ <lite-youtube videoid =" goiWrNiaT0I " style =" background-image : url (' https://i.ytimg.com/vi/goiWrNiaT0I /hqdefault.jpg' );" >
48+ <a href =" https://youtube.com/watch?v=goiWrNiaT0I " class =" lty-playbtn" title =" Play Video" >
49+ <span class =" lyt-visually-hidden" >Play Video: Crayon Physics Deluxe - Trailer HD </span >
5050 </a >
5151</lite-youtube >
5252```
@@ -57,14 +57,14 @@ Use this as your HTML, load the script asynchronously, and let the JS progressiv
5757
5858If you want to provide a custom poster image, just set it as the background-image, and lite-yt will not overwrite it:
5959``` html
60- <lite-youtube videoid =" ogfYd705cRs " style =" background-image : url (' https://i.ytimg.com/vi/ogfYd705cRs /hqdefault.jpg' );" ></lite-youtube >
60+ <lite-youtube videoid =" goiWrNiaT0I " style =" background-image : url (' https://i.ytimg.com/vi/goiWrNiaT0I /hqdefault.jpg' );" ></lite-youtube >
6161```
6262
6363Use [ poster-image-availability.html] ( https://paulirish.github.io/lite-youtube-embed/testpage/poster-image-availability.html ) to determine what poster images are available for you.
6464
6565## Access the YouTube Iframe Player API
6666
67- Use the ` js-api ` param: ` <lite-youtube videoid="ogfYd705cRs " js-api> ` .. Then you can use [ IFrame Player API] ( https://developers.google.com/youtube/iframe_api_reference ) :
67+ Use the ` js-api ` param: ` <lite-youtube videoid="goiWrNiaT0I " js-api> ` .. Then you can use [ IFrame Player API] ( https://developers.google.com/youtube/iframe_api_reference ) :
6868
6969``` js
7070const player = await document .querySelector (' lite-youtube' ).getYTPlayer ();
@@ -77,7 +77,7 @@ player.seekTo(15); // jump to 15 seconds
7777
7878If you want to display a title prior to loading the full embed, set the ` title ` attribute:
7979``` html
80- <lite-youtube videoid =" ogfYd705cRs " title =" Keynote (Google I/O '18) " ></lite-youtube >
80+ <lite-youtube videoid =" goiWrNiaT0I " title =" Crayon Physics Deluxe - Trailer HD " ></lite-youtube >
8181```
8282
8383[ Demo: visible title] ( https://paulirish.github.io/lite-youtube-embed/variants/title.html )
@@ -90,7 +90,7 @@ These may be applied by using the `params` attribute.
9090``` html
9191<!-- Example to show a video player without controls, starting at 10s in, ending at 20s,
9292 with modest branding *and* enabling the JS API -->
93- <lite-youtube videoid =" ogfYd705cRs " params =" controls=0&start=10&end=30&modestbranding=2&rel=0&enablejsapi=1" ></lite-youtube >
93+ <lite-youtube videoid =" goiWrNiaT0I " params =" controls=0&start=10&end=30&modestbranding=2&rel=0&enablejsapi=1" ></lite-youtube >
9494```
9595
9696Note that lite-youtube uses ` autoplay=1 ` by default.
0 commit comments