Jump to content
Sign in to follow this  
philipp

Problem with background video in Chrome browser

Recommended Posts

Hello can someone help me?
I have a background video embedded with a placeholder on the web page. Works great in most browsers, just not in Chrome. Is there a solution for this?
Thank you very much

Share this post


Link to post
Share on other sites

I can't help without seeing what code you used to put a video into the background.

Share this post


Link to post
Share on other sites

<video width="100%" height="100%" autoplay loop>
  <source src="https://hostpart.ch/Beach - 14297.mp4" type="video/mp4" />Your browser does not support the video tag. I suggest you upgrade your browser.
  <source src="https://hostpart.ch" type="video/webm" />Your browser does not support the video tag. I suggest you upgrade your browser.
Your browser does not support the video tag.
</video>

oder

<div class="homepage-hero-module">
    <div class="video-container">
        <div class="filter"></div>
        <video autoplay loop class="fillWidth">
            <source src="https://hostpart.ch/Beach - 14297.mp4" type="video/mp4" />Your browser does not support the video tag. I suggest you upgrade your browser.
            <source src="https://hostpart.ch" type="video/webm" />Your browser does not support the video tag. I suggest you upgrade your browser.
        </video>
        <div class="poster hidden">
            <img src="https://hostpart.ch/Beach - 14297.mp4" alt="">
        </div>
    </div>
</div>

Both codes work, just not in CHROME.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×