OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>WebRTC GetUserMedia Constraints Manual Test</title> | 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> | 5 <script type="text/javascript" src="constraints.js"></script> |
8 <link rel="StyleSheet" type="text/css" href="stylesheet.css"> | 6 <link rel="StyleSheet" type="text/css" href="stylesheet.css"> |
9 <meta charset="utf-8"> | 7 <meta charset="utf-8"> |
10 </head> | 8 </head> |
11 <body> | 9 <body> |
12 | 10 |
13 <div id="wrapper"> | 11 <div id="wrapper"> |
14 <div id="left"> | 12 <div id="left"> |
15 <p>This page can create GetUserMedia <a href="http://goo.gl/qZQjV"> | 13 <p>This page can create GetUserMedia <a href="http://goo.gl/qZQjV"> |
16 MediaStreamConstraints</a> that can be used on the<br/> | 14 MediaStreamConstraints</a> that can be used on the<br/> |
(...skipping 24 matching lines...) Expand all Loading... |
41 Min | 39 Min |
42 <input type="text" id="optional-min-width" size="4"/>x | 40 <input type="text" id="optional-min-width" size="4"/>x |
43 <input type="text" id="optional-min-height" size="4"/> | 41 <input type="text" id="optional-min-height" size="4"/> |
44 FPS: <input type="text" id="optional-min-fps" size="2"/> | 42 FPS: <input type="text" id="optional-min-fps" size="2"/> |
45 Aspect ratio: <input type="text" id="optional-min-ar" size="2"/><br/> | 43 Aspect ratio: <input type="text" id="optional-min-ar" size="2"/><br/> |
46 Max | 44 Max |
47 <input type="text" id="optional-max-width" size="4"/>x | 45 <input type="text" id="optional-max-width" size="4"/>x |
48 <input type="text" id="optional-max-height" size="4"/> | 46 <input type="text" id="optional-max-height" size="4"/> |
49 FPS: <input type="text" id="optional-max-fps" size="2"/> | 47 FPS: <input type="text" id="optional-max-fps" size="2"/> |
50 Aspect ratio: <input type="text" id="optional-max-ar" size="2"/><br/> | 48 Aspect ratio: <input type="text" id="optional-max-ar" size="2"/><br/> |
51 <button id="re-request" onclick="doGetUserMedia();"> | 49 <button id="re-request" onclick="getUserMedia();"> |
52 Request GetUserMedia | 50 Request GetUserMedia |
53 </button> | 51 </button> |
54 <h2>Messages</h2> | 52 <h2>Messages</h2> |
55 <pre id="messages"></pre> | 53 <pre id="messages"></pre> |
56 </div> | 54 </div> |
57 <div> | 55 <div> |
58 <h2>Local Preview</h2> | 56 <h2>Local Preview</h2> |
59 <video width="320" height="240" id="local-view" autoplay="autoplay"> | 57 <video width="320" height="240" id="local-view" autoplay="autoplay"> |
60 </video> | 58 </video> |
61 </div> | 59 </div> |
62 </div> | 60 </div> |
63 </body> | 61 </body> |
64 </html> | 62 </html> |
OLD | NEW |