OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>A disabled video track is rendered as blackness</title> | 4 <title>A disabled video track is rendered as blackness</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
video stream.</p> | 10 <p class="instructions">When prompted, accept to share your video 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 vi
deo track in a | 12 <p class="instructions">This test checks that a disabled video track in a |
13 MediaStream is rendered as blackness.</p> | 13 MediaStream is rendered as blackness.</p> |
14 <video id="vid"></video> | 14 <video id="vid"></video> |
15 | 15 |
16 <div id='log'></div> | 16 <div id='log'></div> |
17 <script src=/resources/testharness.js></script> | 17 <script src=/resources/testharness.js></script> |
18 <script src=/resources/testharnessreport.js></script> | 18 <script src=/resources/testharnessreport.js></script> |
19 <script src="/common/vendor-prefix.js" data-prefixed-objects='[{"ancestors":["na
vigator"], "name":"getUserMedia"}]' data-prefixed-prototypes='[{"ancestors":["HT
MLMediaElement"],"name":"srcObject"}]'></script> | 19 <script src="/common/vendor-prefix.js" data-prefixed-objects='[{"ancestors":["na
vigator"], "name":"getUserMedia"}]' data-prefixed-prototypes='[{"ancestors":["HT
MLMediaElement"],"name":"srcObject"}]'></script> |
20 <script> | 20 <script> |
21 var vid = document.getElementById("vid"); | 21 var vid = document.getElementById("vid"); |
22 var cv = document.createElement("canvas"); | 22 var cv = document.createElement("canvas"); |
(...skipping 24 matching lines...) Expand all Loading... |
47 } | 47 } |
48 vid.srcObject = stream; | 48 vid.srcObject = stream; |
49 vid.play(); | 49 vid.play(); |
50 vid.addEventListener("timeupdate", t.step_func(testOncePlaying), false); | 50 vid.addEventListener("timeupdate", t.step_func(testOncePlaying), false); |
51 }), | 51 }), |
52 function(error) {}); | 52 function(error) {}); |
53 }); | 53 }); |
54 </script> | 54 </script> |
55 </body> | 55 </body> |
56 </html> | 56 </html> |
OLD | NEW |