I'd like to display an image until a background video has fully loaded and then play it. When videos has come to the end, I'd like to display another picture that, again, is displayed until the 2nd video is loaded.
Any idea how I can achieve that?
<video autoplay="autoplay" id="video">
<source src="1.mp4"></source>
</video>
#video
{
position: absolute; right: 0; bottom: 0;
min-width: 100%; min-height: 600px;
width: auto; height: auto; z-index: -100;
background: url(1.jpg) no-repeat;
}