OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>A disabled audio track is rendered as silence</title> | 4 <title>A disabled audio track is rendered as silence</title> |
5 <link rel="author" title="Dominique Hazael-Massieux" href="mailto:dom@w3.org"/> | 5 <link rel="author" title="Dominique Hazael-Massieux" href="mailto:dom@w3.org"/> |
6 <link rel="help" href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html#in
troduction"> | 6 <link rel="help" href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html#in
troduction"> |
7 <link rel="help" href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html#me
diastreams-as-media-elements"> | 7 <link rel="help" href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html#me
diastreams-as-media-elements"> |
8 </head> | 8 </head> |
9 <body> | 9 <body> |
10 <p class="instructions" style="display:none">When prompted, accept to share your
audio stream.</p> | 10 <p class="instructions">When prompted, accept to share your audio stream.</p> |
11 <h1 class="instructions" style="display:none">Description</h1> | 11 <h1 class="instructions">Description</h1> |
12 <p class="instructions" style="display:none">This test checks that a disabled au
dio track in a | 12 <p class="instructions">This test checks that a disabled audio track in a |
13 MediaStream is rendered as silence. It relies on the | 13 MediaStream is rendered as silence. It relies on the |
14 <a href="https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html"> | 14 <a href="https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html"> |
15 Web Audio API</a>.</p> | 15 Web Audio API</a>.</p> |
16 | 16 |
17 <div id='log'></div> | 17 <div id='log'></div> |
18 <script src=/resources/testharness.js></script> | 18 <script src=/resources/testharness.js></script> |
19 <script src=/resources/testharnessreport.js></script> | 19 <script src=/resources/testharnessreport.js></script> |
20 <script src="/common/vendor-prefix.js" data-prefixed-objects='[{"ancestors":["na
vigator"], "name":"getUserMedia"}, {"ancestors":["window"], "name":"AudioContext
"}]'></script> | 20 <script src="/common/vendor-prefix.js" data-prefixed-objects='[{"ancestors":["na
vigator"], "name":"getUserMedia"}, {"ancestors":["window"], "name":"AudioContext
"}]'></script> |
21 <script> | 21 <script> |
22 var t = async_test("Tests that a disabled audio track in a MediaStream is render
ed as silence", {timeout: 200000}); | 22 var t = async_test("Tests that a disabled audio track in a MediaStream is render
ed as silence", {timeout: 200000}); |
(...skipping 23 matching lines...) Expand all Loading... |
46 }); | 46 }); |
47 stream.getAudioTracks()[0].enabled = false; | 47 stream.getAudioTracks()[0].enabled = false; |
48 | 48 |
49 streamSource.connect(silenceDetector); | 49 streamSource.connect(silenceDetector); |
50 silenceDetector.connect(ctx.destination); | 50 silenceDetector.connect(ctx.destination); |
51 }), function(error) {}); | 51 }), function(error) {}); |
52 }); | 52 }); |
53 </script> | 53 </script> |
54 </body> | 54 </body> |
55 </html> | 55 </html> |
OLD | NEW |