Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1652)

Unified Diff: extensions/test/data/app_view/apitest/media_request/guest.html

Issue 820583002: Adds support for media permission request handling on <appview> tag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn build Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
« no previous file with comments | « extensions/test/data/app_view/apitest/main.js ('k') | extensions/test/data/app_view/apitest/media_request/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698