gladkih
3/7/2015 - 11:13 AM

Autoplay full screen video on ios

Autoplay full screen video on ios

//force video to play on pages where bg video visible
$(function(){
    var vid=$('#video video').get(0);
    //try to force it to start automatically after a few secs
    setTimeout(function(){
        $('body').one('touchstart load',function(){
            vid.play();
        }).trigger('load');
    },3000);

});//end jq losure