Currently, I am in the process of creating a fullscreen video background. Typically, for touch devices such as iPads and iPhones, I would hide the video element using CSS and display an image instead.
Out of curiosity, I decided to explore the responsive solutions used by different websites for their HTML5 video backgrounds. During my research, I discovered that AirBnB does not load the HTML5 video element at all on touch devices (specifically tested on iPad and iPhone, haven't tested on Android yet). When inspecting the website on a touch device, you'll notice that the video element is completely eliminated.
Therefore, my query is: What is the most effective method to prevent HTML5 videos from loading on touch devices?
I would prefer a solution involving PHP or jQuery (I also have Modernizr integrated into my site).