1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23

content / test / data / media / session / autoplay-muted.html [blame]

<!DOCTYPE html>
<html>
<head>
  <title>Test page for MediaSession.java</title>
  <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
</head>
<body>
  <video id='video' autoplay muted controls playsinline loop src=video-6seconds.webm>
  </video>
  <br>
  <button id='play'>play</button>
  <button id='unmute'>unmute</button>
</body>
<script>
  const video = document.querySelector('video');
  document.querySelector('#play').onclick = function() {
    video.play();
  }
  document.querySelector('#unmute').onclick = function() {
    video.muted = false;
  }
</script>
</html>