This example uses constraints.
Click a button to call getUserMedia() with appropriate resolution.
getUserMedia()