logo
down
shadow

HTML Video autoplay not working with bxSlider on Chrome


HTML Video autoplay not working with bxSlider on Chrome

By : wilbotiv
Date : November 28 2020, 11:01 PM
With these it helps So I've made this slider using bxSlider and it works great. Except on Chrome. In Chrome it doesn't read any of the attributes inside the


Share : facebook icon twitter icon
Video autoplay not working on chrome and IE when being appended via jQuery

Video autoplay not working on chrome and IE when being appended via jQuery


By : user3487518
Date : March 29 2020, 07:55 AM
I hope this helps you . I have a strange issue: on these two pages I have a video which suppose to auto-play and loop. for some reason the video autoplays on firefox but not on chrome and IE. This seems like a very simple issue, but I haven't been able to figure it out. , I had to manually play the video to make it work cross-browser:
code :
document.getElementById('article-hero-vid').play();
Video autoPlay is not working chrome and safari?

Video autoPlay is not working chrome and safari?


By : khudrath.ali
Date : March 29 2020, 07:55 AM
around this issue I am not sure about Safari but Chrome has changed the autoplay policy. Look here:https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
In order to autoplay, add muted attributed to video tag.
code :
import React, { Component } from 'react';

class Player extends Component {
  constructor(props) {
    super(props);
    this.state = {
      isVideoMuted: true
    };
  }

  handleMuteState = () => {
    this.setState(prevState => ({
      isVideoMuted: !prevState.isVideoMuted
    }));
  }

  render() {
    return (
      <div>
        <video muted={this.state.isVideoMuted} src="./video.mp4" />
        <button onClick={this.handleMuteState}>{this.state.isVideoMuted ? 'Unmute' : 'Mute'}</button >
      </div>
    );
  }
}

export default Player;
HTML5 video autoplay not working in chrome

HTML5 video autoplay not working in chrome


By : USER1234
Date : March 29 2020, 07:55 AM
this will help As per Google's latest policies, Muted videos can autoplay in Chrome. Autoplay with sound is allowed if:
User has interacted with the domain (click, tap, etc.). On desktop, the user's Media Engagement Index threshold has been crossed, meaning the user has previously play video with sound. On mobile, the user has [added the site to their home screen].
code :
<source src="assets/watertuin.ogg" type="video/ogg">
bxslider stopping video element autoplay

bxslider stopping video element autoplay


By : heather
Date : March 29 2020, 07:55 AM
Hope that helps By using callbacks, I set in the options to play all videos. Not an elegant solutions but good enough for now:
How to be sure that autoplay script for HTML video on Chrome will work?

How to be sure that autoplay script for HTML video on Chrome will work?


By : Nebiros
Date : March 29 2020, 07:55 AM
hope this fix your issue You need to refer to Chrome Autoplay Policy Changes before you try any scripts.
Chrome's autoplay policies are simple:
Related Posts Related Posts :
  • Align single and double-line containers
  • padding on child element moves parent element - CSS
  • Why is the W3 Validator stating that there is a closing </p> with no opening one?
  • Set collapsing priority without applying flex to CSS items?
  • Image 100% height of container - min-height behaves differently on Chrome/Safari
  • Unable to send canvas div to front
  • IE creates unnecessary offset on menu subitems
  • External media query for CSS not working in Chrome
  • Bootstrap align an item to left of a button
  • dynamic updating of HTML5 canvas
  • CSS: Deleting and ignoring respectively all previous properties?
  • h1, h2, h3 around Microdata markup
  • Angular 2 Checkbox Two Way Data Binding
  • Image to Fit Containing Div
  • Fixed width for table first column
  • How can I alter the formatting of pandoc footnote marks?
  • push is not a function Angularjs error
  • Angular2 Call method in Template
  • Stop playing video in iframe when modal is closed
  • Bootstrap. Can't change navbar link color. Even with ID
  • Making a position:absolute div stay in place on page resize
  • Can we reference contents of <defs> across multiple <svg> elements?
  • Kendo Chart Databinding - Local Json Data with schema
  • Box shadow appearing from right to left
  • BEM element nest naming and sass rule
  • How to vertically center text next to image?
  • Responsive full width input with button
  • Make three headings in line. One to be on the left, second on center and third on the right?
  • XPath for all child elements before a certain sibling?
  • How to prevent default Css scroll onclick and allow javascript event only?
  • CSS Media Query not accounting for screen density?
  • How to stop second navbar from overlapping fixed navbar at the top of the page
  • List Indentation same x-cord as header
  • Sending file input doesn't work
  • Scale div padding according to screen width
  • Flexbox doesn't work in summary tag
  • CSS - mobile responsive issue with absolute positioning
  • Align image slider at the same bottom using css (Slick Carousel library)
  • Input border CSS
  • Define a custom <a> tag in CSS?
  • How to write vertical text from bottom to top without using transform rotate?
  • Text sometimes warping, sometimes not
  • CSS Correctly positioning pseudo element
  • Center Cropping Image
  • How to wrap a block around a div tag?
  • How to make a tight cell around text and expand empty ones?
  • make exact padding on text
  • position:relative started working different than at first (asp.net)
  • Html does not display in 1/2 columns
  • Positioning shapes to website
  • overwrite another tag in CSS
  • How to calculate sum on change?
  • Why do the browsers automatically wrap text of a web page without any indication about how to do it?
  • Sizing and positioning a border property
  • How do I float div's to the bottom of a page?
  • Responsive html with absolute position text inside relative positon picture
  • Flexbox doesn't work in IE 10
  • AngularJS shopping cart app: Disable button when quantity < 2
  • How to select element by order ? - Css
  • How to apply animation on the list items such that during an instance of time only one list item is visible?
  • shadow
    Privacy Policy - Terms - Contact Us © soohba.com