summaryrefslogtreecommitdiffstats
path: root/toolkit/content/tests/browser/file_mediaPlayback2.html
blob: dffbd299b6af8ec7b63ec661ba826fe515e3928e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<body>
<script type="text/javascript">
var audio = new Audio();
audio.oncanplay = function() {
  audio.oncanplay = null;
  audio.play();
};
audio.src = "audio.ogg";
document.body.appendChild(audio);
</script>
</body>