Video doesn't autoplay in chrome browser-supreme theme

This topic contains 5 replies, has 2 voices, and was last updated by  Stiofan O’Connor 7 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #367645

    Asif Ali
    Free User
    Post count: 7

    Hi,

    I’m using a video background in the .featured-img area of a page below

    https://www.localesurfer.com/video-bg/

    the problem is the supreme theme isn’t allowing it to autoplay in chrome browser but it plays well in
    Firefox and IE.

    If I use other themes the video plays well in chrome browser as well. Is there any way to make it auto play in chrome using supreme theme?

    check the link below for reference about the issue
    https://wordpress.org/support/topic/video-doesnt-work-in-chrome/#post-8917213

    #367740

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    Maybe its the same problem i solved with this? https://wpgeodirectory.com/support/topic/video-bacground-header-on-home-page/#post-228064

    Stiofan

    #367743

    Asif Ali
    Free User
    Post count: 7

    The link you have given me says I need to buy membership to access the form. I have planned to buy it once I collect all the data needed for my website. But is there any way that I can get help on this ?

    #367744

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Sorry i did not realise it was in a membership fourm, i’ll copy the answer below:

    I am not 100% sure whats going on, something in chrome seems to be pasuing the video, i added some code below the video to play it 800ms after so it then plays it again and it seems to work, i also gave the video an id


    Thanks,

    Stiofan

    #367748

    Asif Ali
    Free User
    Post count: 7

    Thank you so much sir you made my day.

    #367772

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Great, looks like my code sample did not copy, here it is for future reference:

    
    
    <script> setTimeout(function(){
        document.getElementById('bakground-video').play(); 
    }, 800);
    </script> 

    Stiofan

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket