Index: tools/perf/page_sets/webrtc_cases/resolution.html |
diff --git a/tools/perf/page_sets/webrtc_cases/resolution.html b/tools/perf/page_sets/webrtc_cases/resolution.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e92e0799c480ca08039d0cc0485fb53494936b4f |
--- /dev/null |
+++ b/tools/perf/page_sets/webrtc_cases/resolution.html |
@@ -0,0 +1,80 @@ |
+<!DOCTYPE html> |
+<!-- |
+ * Copyright 2017 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> |
+ |
+ |
+ <base target="_blank"> |
+ |
+ <title>getUserMedia: select resolution</title> |
+ |
+ |
+ <style> |
+ body, html { |
+ height: 100%; |
+ } |
+ |
+ button { |
+ margin: 0 10px 20px 0; |
+ width: 90px; |
+ } |
+ |
+ div#buttons { |
+ margin: 0 0 1em 0; |
+ } |
+ |
+ div#container { |
+ max-width: 100%; |
+ } |
+ |
+ p#dimensions { |
+ height: 1em; |
+ margin: 0 0 1.5em 0; |
+ } |
+ |
+ video { |
+ background: none; |
+ height: auto; |
+ width: auto; |
+ } |
+ </style> |
+ |
+</head> |
+ |
+<body> |
+ |
+ <div id="container"> |
+ |
+ <h1><a href="//webrtc.github.io/samples/" title="WebRTC samples homepage">WebRTC samples</a> <span>getUserMedia: select resolution</span></h1> |
+ <p></p> |
+ |
+ <p>This example uses <a href="https://w3c.github.io/mediacapture-main/getusermedia.html#media-track-constraints" title="W3C getusermedia specification - constraints section">constraints</a>.</p> |
+ |
+ <p>Click a button to call <code>getUserMedia()</code> with appropriate resolution.</p> |
+ |
+ <div id="buttons"> |
+ <button id="qvga">QVGA</button> |
+ <button id="vga">VGA</button> |
+ <button id="hd">HD</button> |
+ <button id="full-hd">Full HD</button> |
+ </div> |
+ |
+ <p id="dimensions"></p> |
+ |
+ <video id="gum-res-local" autoplay></video> |
+ |
+ <p>For more information, see <a href="http://www.html5rocks.com/en/tutorials/getusermedia/intro/" title="Media capture article by Eric Bidelman on HTML5 Rocks">Capturing Audio & Video in HTML5</a> on HTML5 Rocks.</p> |
+ |
+ <a href="https://github.com/webrtc/samples/tree/gh-pages/src/content/getusermedia/resolution" title="View source for this page on GitHub" id="viewSource">View source on GitHub</a> |
+ </div> |
+ |
+ |
+ |
+<script src="resolution.js"></script> |
+<script src="adapter.js"></script> |
+<script src="common.js"></script> |
+</body></html> |