Answer the question
In order to leave comments, you need to log in
How to properly set up a video background on iOS?
www.reason.kz
As far as I understand, video backgrounds have a ban on autoplay on mobile devices. On IOS, a big play button appears, which for some reason overrides all other functions of the site. Is there a way to bypass the ban or enable mobile device recognition to just insert a blank?
Answer the question
In order to leave comments, you need to log in
Hide the video using media queries at the resolution you need, and show the picture on the contrary. For example:
@media only screen and (max-width:767px){
#video-background { display: none }
#picture-instead-of-video { display: block }
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question