Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / audio-volume.html
blobf7e698c5308961d963539faffd6d5ca2de03381f
1 <html>
2 <script>
3 function load()
5 var url="http://movies.apple.com/movies/us/apple/ipoditunes/2007/touch/ads/apple_ipodtouch_touch_r640-9cie.mov";
6 var vid = document.getElementById('vid')
7 vid.src = url;
8 vid.volume = 0.05;
9 vid.load();
11 function setVolume(vol)
13 var vid = document.getElementById('vid')
14 vid.volume = vol;
16 </script>
18 <body>
20 <video id=vid controls autoplay>
21 </video>
22 <p>TEST: Audio volume should be 0.05 when the movie begins playing.</p>
23 <input type="button" value="Load movie" onclick="load()">
24 <br>
25 <input type="button" value="volume=1.0" onclick="setVolume(1.0)">
26 <input type="button" value="volume=0.05" onclick="setVolume(0.05)">
27 </body>
28 </html?