Index: extensions/test/data/app_view/apitest/media_request/guest.html |
diff --git a/extensions/test/data/app_view/apitest/media_request/guest.html b/extensions/test/data/app_view/apitest/media_request/guest.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9be81cf0b6f28abcd068a26eb21afed654065fda |
--- /dev/null |
+++ b/extensions/test/data/app_view/apitest/media_request/guest.html |
@@ -0,0 +1,29 @@ |
+<!-- |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+--> |
+<html> |
+<head> |
+ <script type="text/javascript"> |
+ function CaptureVideo() { |
+ video = document.createElement('video'); |
+ video.style.width="640px"; |
+ video.autoplay = true; |
+ document.body.appendChild(video); |
+ navigator.webkitGetUserMedia( |
+ { video: true, audio: true }, |
+ function(stream) { |
+ video.src = window.URL.createObjectURL(stream); |
+ }, function(err) { window.console.log(err); } |
+ ); |
+ } |
+ |
+ window.onload = function() { |
+ CaptureVideo(); |
+ } |
+ </script> |
+</head> |
+<body> |
+</body> |
+<html> |