Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: load youtube video as background without autoplaying #552668

    Finally found a way around it, with this script:

    jQuery(document).ready(function($) {
        $('#videoverlay').on('av-video-loaded', function(e){
            setTimeout(function(){
                $('.avia_playpause_icon').css({'display':'block'});
                document.getElementById($('.av_youtube_frame').attr('id')).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
            }, 500);
        });
    });
    • This reply was modified 10 years, 4 months ago by rlucian.
Viewing 1 post (of 1 total)