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

Unified Diff: tools/perf/page_sets/webrtc_cases/constraints.html

Issue 2761163003: Use local pages for webrtc telemetry tests. (Closed)
Patch Set: Exclude all of webrtc_cases in PRESUBMIT.py and add a comment explaining it is because these are te… Created 3 years, 9 months 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
« no previous file with comments | « tools/perf/page_sets/webrtc_cases/common.js ('k') | tools/perf/page_sets/webrtc_cases/constraints.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/webrtc_cases/constraints.html
diff --git a/tools/perf/page_sets/webrtc_cases/constraints.html b/tools/perf/page_sets/webrtc_cases/constraints.html
new file mode 100644
index 0000000000000000000000000000000000000000..e094ae6da04697b55b2aebb71841f6e97008ce83
--- /dev/null
+++ b/tools/perf/page_sets/webrtc_cases/constraints.html
@@ -0,0 +1,99 @@
+<!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>Constraints and statistics</title>
+
+
+</head>
+
+<body>
+
+ <div id="container">
+
+ <h1><a href="//webrtc.github.io/samples/" title="WebRTC samples homepage">WebRTC samples</a> <span>Constraints &amp; statistics</span></h1>
+
+ <section id="blurb">
+ <p>This demo shows ways to use constraints and statistics in WebRTC applications.</p>
+ <p>Set camera constraints, and click <strong>Get media</strong> to (re)open the camera with these included. Click <strong>Connect</strong> to create a (local) peer connection. The RTCPeerConnection objects <code>localPeerConnection</code> and <code>remotePeerConnection</code> can be inspected from the console.</p>
+ <p>Setting a value to zero will remove that constraint. </p>
+ <p>The lefthand video shows the output of <code>getUserMedia()</code>; on the right is the video after being passed through the peer connection. The transmission bitrate is displayed below the righthand video.</p>
+ </section>
+
+ <div>
+ <button id="getMedia">Get media</button>
+ <button id="connect" disabled>Connect</button>
+ <button id="hangup" disabled>Hang Up</button>
+ </div>
+
+
+ <section id="constraints">
+ <div id="getUserMedia">
+ <div class="input">
+ <h2>Camera constraints</h2>
+ <div id="minWidth">
+ <label>Min width <span>300</span>px:</label>
+ <input type="range" min="0" max="1920" value="300">
+ </div>
+ <div id="maxWidth">
+ <label>Max width <span>640</span>px:</label>
+ <input type="range" min="0" max="1920" value="640">
+ </div>
+ <div id="minHeight">
+ <label>Min height <span>200</span>px:</label>
+ <input type="range" min="0" max="1080" value="200">
+ </div>
+ <div id="maxHeight">
+ <label>Max height <span>480</span>px:</label>
+ <input type="range" min="0" max="1080" value="480">
+ </div>
+ <div id="minFramerate">
+ <label>Min frameRate <span>0</span>fps:</label>
+ <input type="range" min="0" max="60" value="0">
+ </div>
+ <div id="maxFramerate">
+ <label>Max frameRate <span>0</span>fps:</label>
+ <input type="range" min="0" max="60" value="0">
+ </div>
+ </div>
+ <div id="getUserMediaConstraints" class="output"></div>
+ </div>
+
+ </section>
+
+ <section id="video">
+ <div id="localVideo">
+ <video autoplay muted></video>
+ <div></div>
+ </div>
+ <div id="remoteVideo">
+ <video autoplay muted></video>
+ <div></div>
+ <div id="bitrate"></div>
+ <div id="peer"></div>
+ </div>
+ </section>
+
+ <section id="statistics">
+ <div id="senderStats"></div>
+ <div id="receiverStats"></div>
+ </section>
+
+ <a href="https://github.com/webrtc/samples/tree/gh-pages/src/content/peerconnection/constraints" title="View source for this page on GitHub" id="viewSource">View source on GitHub</a>
+
+ </div>
+
+
+
+<script src="constraints.js"></script>
+<script src="adapter.js"></script>
+<script src="common.js"></script>
+</body></html>
« no previous file with comments | « tools/perf/page_sets/webrtc_cases/common.js ('k') | tools/perf/page_sets/webrtc_cases/constraints.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698