Chromium Code Reviews| Index: content/test/data/webrtc/getusermedia_and_stop.html |
| diff --git a/content/test/data/webrtc/getusermedia_and_stop.html b/content/test/data/webrtc/getusermedia_and_stop.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f1c43bef012ea30a1bfd607e34e4b080ea8b2e17 |
| --- /dev/null |
| +++ b/content/test/data/webrtc/getusermedia_and_stop.html |
| @@ -0,0 +1,18 @@ |
| +<html> |
|
jam
2012/11/19 19:14:51
since webrtc code is in media subdirs, how about c
phoglund_chromium
2012/11/20 09:02:03
Yeah, maybe it's better to talk about the code in
|
| +<head> |
| + <script type="text/javascript"> |
| + function getUserMedia(constraints) { |
| + navigator.webkitGetUserMedia(constraints, okCallback, failedCallback); |
| + } |
| + |
| + function failedCallback(error) { |
| + document.title = 'GetUserMedia call failed with code ' + error.code; |
| + } |
| + |
| + function okCallback(stream) { |
| + stream.stop(); |
| + document.title = 'OK'; |
| + } |
| + </script> |
| +</head> |
| +</html> |