gecko-dev/toolkit/content/tests/browser/file_silentAudioTrack.html
Alastor Wu 1ebae0840f Bug 1328058 - part4 : add tests. r=baku
MozReview-Commit-ID: 2Gjh0dBHroI

--HG--
extra : rebase_source : 8c2da93f52695a752f8c12cd6a79a14bb3964936
2017-02-04 15:05:34 +08:00

18 lines
539 B
HTML

<!DOCTYPE html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
</head>
<body>
<audio id="autoplay" src="silentAudioTrack.webm"></audio>
<script type="text/javascript">
// In linux debug on try server, sometimes the download process would fail, so
// we can't activate the "auto-play" or playing after receving "oncanplay".
// Therefore, we just call play here.
var audio = document.getElementById("autoplay");
audio.loop = true;
audio.play();
</script>
</body>