1
Hello guys I have a video that runs normally in background css on PC. But when accessing the site by tablets or ipads it does not run.
See the code:
<video autoplay loop poster="torre.jpg" class="bg_video">
<source src="bg.webm" type="video/webm">
<source src="bg.mp4" type="video/mp4">
</video>
CSS:
.bg_video{
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -1000;
background: url(torre.jpg) no-repeat;
background-size: cover;
}
I’ve put it in the format as they ask MP4 and WEBM, but nothing solves.
Have you checked whether the browser accepts this feature?
– Mike
@Mike is the same from the pc
– Gladison Neuza Perosini
But it has already run on other browsers on your PC?
– Mike
@Mike does, usually. Just don’t run on mobile devices.
– Gladison Neuza Perosini
What do you mean by run in the background?
– Pablo Almeida
@Pablo Run in background I got it. Only it’s only running on PC. On tablets and ipads it does not run.
– Gladison Neuza Perosini
I don’t understand what you mean by running in the background. You mean running while the browser is minimized?
– Pablo Almeida
@Pablo When I say run it means that the video does not run on tablets or ipads. Only on PC
– Gladison Neuza Perosini