1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <title>WebRTC GetUserMedia Constraints Manual Test</title>
5 <!-- Load the polyfill to switch-hit between Chrome and Firefox -->
6 <script type="text/javascript" src="../adapter.js"></script>
7 <script type="text/javascript" src="constraints.js"></script>
8 <link rel="StyleSheet" type="text/css" href="stylesheet.css">
15 <p>This page can create GetUserMedia <a href="http://goo.gl/qZQjV">
16 MediaStreamConstraints</a> that can be used on the<br/>
17 <a href="peerconnection.html">PeerConnection Manual Test page.</a></p>
18 MediaStreamConstraints:<br/>
19 <textarea id="getusermedia-constraints" rows="10" cols="60"
20 readonly="readonly"/></textarea>
23 Audio<input type="checkbox" id="audio" checked />
24 Video<input type="checkbox" id="video" checked />
26 <h2>Video constraints</h2>
27 Only applicable if the video checkbox is checked above.
30 <input type="text" id="mandatory-min-width" size="4"/>x
31 <input type="text" id="mandatory-min-height" size="4"/>
32 FPS: <input type="text" id="mandatory-min-fps" size="2"/>
33 Aspect ratio: <input type="text" id="mandatory-min-ar" size="2"/><br/>
35 <input type="text" id="mandatory-max-width" size="4"/>x
36 <input type="text" id="mandatory-max-height" size="4"/>
37 FPS: <input type="text" id="mandatory-max-fps" size="2"/>
38 Aspect ratio: <input type="text" id="mandatory-max-ar" size="2"/>
42 <input type="text" id="optional-min-width" size="4"/>x
43 <input type="text" id="optional-min-height" size="4"/>
44 FPS: <input type="text" id="optional-min-fps" size="2"/>
45 Aspect ratio: <input type="text" id="optional-min-ar" size="2"/><br/>
47 <input type="text" id="optional-max-width" size="4"/>x
48 <input type="text" id="optional-max-height" size="4"/>
49 FPS: <input type="text" id="optional-max-fps" size="2"/>
50 Aspect ratio: <input type="text" id="optional-max-ar" size="2"/><br/>
51 <button id="re-request" onclick="doGetUserMedia();">
55 <pre id="messages"></pre>
58 <h2>Local Preview</h2>
59 <video width="320" height="240" id="local-view" autoplay="autoplay">