D
D
Daniyar Kudaibergenov2015-02-24 12:24:56
User interface
Daniyar Kudaibergenov, 2015-02-24 12:24:56

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

1 answer(s)
A
Archer *range attack +10*, 2015-02-24
@CircleAndSqaure

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 question

Ask a Question

731 491 924 answers to any question