A
A
Adoratus2015-11-30 04:14:07
css
Adoratus, 2015-11-30 04:14:07

How to put an alternative picture instead of a video?

Good day! On the site you need to put a video instead of the background. I registered it with the tag. Everything works well, but on android it is not displayed everywhere. I decided to put the image as alternative content if the video doesn't play.
Here is the code:

<video autoplay loop>
    <source src="b_video/eldorado_bg.webm" type="video/webm"/>
    <source src="b_video/eldorado_bg.mp4" type="video/mp4"/>
    <source src="b_video/eldorado_bg.ogv" type="video/ogg"/>
          <OBJECT data="logo.png" type="image/png">
          </OBJECT>
  </video>

But the picture still does not go as alternative content.
Tell me how to put it right?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2015-11-30
@Stalker_RED

www.w3schools.com/tags/att_video_poster.asp
poster="/images/something.jpg"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question