WebRTC samples getUserMedia: select resolution

This example uses constraints.

Click a button to call getUserMedia() with appropriate resolution.

Lock video size
Lock aspect ratio

For more information, see Capturing Audio & Video in HTML5 on HTML5 Rocks.

View source on GitHub