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