Jump to content

Problem with background video in Chrome browser


philipp

Recommended Posts

<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.
Link to comment
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
×
×
  • Create New...