title: Video autoplay in HTML, JS, video.js
body: <p>I have a problem with video autoplay with sound in HTML. I am using video.js also.
  The problem is that I can't make the video to autoplay while sound is not muted on the video.
  But I have the example, which I will link at the end, where video autoplay works with sound.</p>
  <p>So I have this code in html:</p>
  <pre><code>&lt;video id=&quot;video&quot; preload=&quot;auto&quot; playsinline controls&gt;
      &lt;source src=&quot;http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4&quot; type=&quot;video/mp4&quot;&gt;
  &lt;/video&gt;
  </code></pre>
  <p>and this code in JS:</p>
  <pre><code>var videoPlayer = videojs('video');
  videoPlayer.ready(function() {
      var promise = videoPlayer.play();
  });
  </code></pre>
  <p>And this code wont make the video to play automatically.</p>
  <p>Here is an <a href="https://video.corriere.it/cronaca/tensione-mondragone-italiani-comunita-bulgara-sedie-balconi-auto-distrutte/0e1955f6-b716-11ea-877f-fd70c3a48db9" rel="nofollow noreferrer">example</a> where autoplay with sound is working. I need something like this, but cant figure out how they implemented it.</p>
  <p>Would appreciate any advice and help!</p>