OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <!-- | 2 <!-- |
3 To quickly iterate when developing this test, use --use-fake-ui-for-media-stream | 3 To quickly iterate when developing this test, use --use-fake-ui-for-media-stream |
4 for Chrome and set the media.navigator.permission.disabled property to true in | 4 for Chrome and set the media.navigator.permission.disabled property to true in |
5 Firefox. You must either have a webcam/mic available on the system or use for | 5 Firefox. You must either have a webcam/mic available on the system or use for |
6 instance --use-fake-device-for-media-stream for Chrome. | 6 instance --use-fake-device-for-media-stream for Chrome. |
7 --> | 7 --> |
8 | 8 |
9 <html> | 9 <html> |
10 <head> | 10 <head> |
11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | 11 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
12 <title>RTCPeerConnection Connection Test</title> | 12 <title>RTCPeerConnection Connection Test</title> |
13 </head> | 13 </head> |
14 <body> | 14 <body> |
15 <div id="log"></div> | 15 <div id="log"></div> |
16 <div> | 16 <div> |
17 <video id="local-view" autoplay="autoplay"></video> | 17 <video id="local-view" autoplay="autoplay"></video> |
18 <video id="remote-view" autoplay="autoplay"/> | 18 <video id="remote-view" autoplay="autoplay"/> |
19 </video> | 19 </video> |
20 </div> | 20 </div> |
21 | 21 |
22 <!-- These files are in place when executing on W3C. --> | 22 <!-- These files are in place when executing on W3C. --> |
23 <script src="/resources/testharness.js"></script> | 23 <script src="/resources/testharness.js"></script> |
24 <script src="/resources/testharnessreport.js"></script> | 24 <script src="/resources/testharnessreport.js"></script> |
25 <script src="/common/vendor-prefix.js" | 25 <script src="/common/vendor-prefix.js" |
26 data-prefixed-objects= | 26 data-prefixed-objects= |
27 '[{"ancestors":["navigator"], "name":"getUserMedia"}]' | 27 '[{"ancestors":["navigator"], "name":"getUserMedia"}]' |
28 data-prefixed-prototypes= | 28 data-prefixed-prototypes= |
29 '[{"ancestors":["HTMLMediaElement"],"name":"srcObject"}]'> | 29 '[{"ancestors":["HTMLMediaElement"],"name":"srcObject"}]'> |
30 </script> | 30 </script> |
31 <script type="text/javascript"> | 31 <script type="text/javascript"> |
32 var test = async_test('Can set up a basic WebRTC call.', {timeout: 5000}); | 32 var test = async_test('Can set up a basic WebRTC call.', {timeout: 5000}); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // This function starts the test. | 109 // This function starts the test. |
110 test.step(function() { | 110 test.step(function() { |
111 navigator.getUserMedia({ video: true, audio: true }, | 111 navigator.getUserMedia({ video: true, audio: true }, |
112 getUserMediaOkCallback, | 112 getUserMediaOkCallback, |
113 failed('getUserMedia')); | 113 failed('getUserMedia')); |
114 }); | 114 }); |
115 </script> | 115 </script> |
116 | 116 |
117 </body> | 117 </body> |
118 </html> | 118 </html> |
OLD | NEW |