I'm currently working on making a fullscreen video background. Usually for touch devices (iPad, iPhones, etc.) I would just hide the video element with css and display an image instead.
Out of curiosity I went to see what responsive solutions different websites are using for their html5 video backgrounds. That's when I noticed that AirBnB is not loading the html5 video element at all on touch devices (I tested on iPad and iPhone, I havn't tested on android yet). If you inspect the website on a touch device you will notice that the video element is completely "gone".
So my question is, what is the best way to prevent html5 videos from being loaded on touch devices?
Preferably with php or jquery (I also have modernizr loaded to my site.).