Autoplay Muted Videos on Android Sample

Available in Chrome 53+ | View on GitHub | Browse Samples

Background

As of Chrome 53 on Android, video elements that have the muted attribute set can play back automatically, either via the autoplay attribute or via the play() method.

Below is an example of two videos. On desktop browsers which do not feature the same restrictions, playback of both should automatically start. On Android Chrome 53 or later, playback of the first will begin automatically (since it uses the muted attribute).

autoplay, with muted

autoplay, without muted

HTML Snippet

<h4>autoplay, with muted</h4>
<video autoplay muted loop>
  <source src="chrome-clip.mp4" type="video/mp4">
  <p>Your browser does not support the video element.</p>
</video>

<h4>autoplay, without muted</h4>
<video autoplay loop>
  <source src="chrome-clip.mp4" type="video/mp4">
  <p>Your browser does not support the video element.</p>
</video>