How do I best detect whether a browser\'s HTML5 video element supports autoplay?
On current iOS Safari, for example, autoplay is disabled.
Update:
Maybe I respond a little bit late but I just test a solution which work fine for me :
var loadStarted = false;
video.onloadstart = function(){
loadStarted = true;
};
function checkRunning(){
if(!loadStarted) removeVideo();
}
setTimeout(checkRunning, 1000);
The setTimeout is not very clean, but the overall solution is super simple like that !