Closed mfahem closed 6 years ago
Hi, you can just add a background image via CSS to the element you are instancing the background video.
If the YTPlayer is instanced for the body you can add a background as follow in your css:
body {
background-image: url("[path to the background inage]");
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
}
This way when the video end the background image will be visible.
Thank you it worked ! :)
Hello,
I am playing the video once (by setting loop to false) but I would like to have a background image at the end of the video. How can I achieve that please ?
Thanks :)