media_session.html 277 B

123456789101112
  1. <html>
  2. <script>
  3. function playAudio() {
  4. let audio = document.createElement('audio');
  5. audio.src = 'test_audio.ogg';
  6. audio.play();
  7. }
  8. </script>
  9. <body onclick="playAudio();">
  10. <p>Some text so the document is ready for input.</p>
  11. </body>
  12. </html>