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