gecko-dev/toolkit/content/tests/browser/file_almostSilentAudioTrack.html
Alastor Wu fee7fb93ca Bug 1388660 - part2 : add test. r=Ehsan
Add a new file "almostSilentAudioTrack.webm" and the test to prevent showing
the sound indicator when playing that kinds of video.

MozReview-Commit-ID: CeUhAePBuqs

--HG--
extra : rebase_source : c1deb2ec749fcebeccb554b64ffe77b46a18aa3d
2017-08-17 11:10:31 +08:00

19 lines
545 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>
<video id="autoplay" src="almostSilentAudioTrack.webm"></video>
<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 video = document.getElementById("autoplay");
video.loop = true;
video.play();
</script>
</body>