Is there any CSS (or anything) I can add to my media queries that would recognize what the device the video is playing on? I am looking to have a play button appear on my site when the video attempts to play on any device that does not allow auto play. Let me know your thoughts, my site is live and published at http://www.rosemont.edu/admissionstest
Javascript to hide button:
var supports_video_autoplay = function(callback) {
var v = document.createElement("video");
v.paused = true;
var p = "play" in v && v.play();
typeof callback === "function" && callback(!v.paused || "Promise" in window && p instanceof Promise);
};
// usage
supports_video_autoplay(function(supported) {
if (supported) {
// video autoplay supported!
document.getElementById("Playing1").style.display = "none";
} else {
// no video autoplay support :(
document.getElementById("playing1")
}
});