Reputation: 3345
The autoplay parameter in the html5 video control has been working great up till now and suddenly it does not. I made some formatting changes to my jsp page that displays the video control but ruled out these being the issue. Another post on here mentions an update to Chrome that only allows autoplay with muted parameter. I tried this and woh, it works. But this is not the user interaction we want for our player. How can I revert this and still allow autoplay in chrome?
<body id="body" language="javascript" onload="init()">
<!-- Media Player -->
<div>
<div id="wrap_video">
<video id="wrVideo" poster="data:image/gif,AAAA" controls width="100%" height="100%" controlsList="nodownload" preload="true" autoplay muted>
<source src="" type="video/webm">
<audio controls id="wrAudio" controls controlsList="nodownload" preload="auto" autoplay>
<source src="" type="audio/wav" >
Your browser does not support the audio element.
</audio>
</video>
</div>
</div>
Ideas appreciated.
Upvotes: 2
Views: 27291
Reputation: 2290
Well, there is an interesing article that should help you. By the way, update was done at April 2018 :)
https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
Upvotes: 6