The background video works on desktop. For small screens an image is displayed instead (I used CSS display property for this). But what about touch screens, like iPads, that are not small?
I tried this code:
<video id="background" width="100%" height="100%" muted autoplay loop>
<source src="videos/video.mp4" type="video/mp4">
<source src="videos/video.ogg" type="video/ogg">
<img src="img/image.jpg">
Your browser does not support the video tag.
</video>
I added a fallback image in case the browser/device doesn't recognise the video. But I think that's not the case for touch screens. I guess they do recognise the video, they just don't autoplay it.
What can I do to display a background image in devices that don't play background videos?
Any help is appreciated.