audio_volume_silent-manual.html (1003B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>Audio Test: audio_volume_silent</title> 5 <link rel="author" title="Intel" href="http://www.intel.com" /> 6 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-media-volume" /> 7 <meta name="flags" content="" /> 8 <meta name="assert" content="Check if the volume attribute is set to 0.0 as silent in the audio element that expecting the user hears no sound" /> 9 <script src="/common/media.js"></script> 10 </head> 11 <body> 12 <p>Test passes if the audio is playing without sound heard and the text 'The user agent doesn't support media element.' does not appear anywhere on this page</p> 13 <audio id="m" controls volume=0.0>The user agent doesn't support media element.</audio> 14 <script type="text/javascript"> 15 var media = document.getElementById("m"); 16 media.src = getAudioURI("/media/sound_5") + "?" + new Date() + Math.random(); 17 media.volume = 0.0; 18 media.play(); 19 </script> 20 </body> 21 </html>