To make the Media Capture API actually use this device, we need to generate a new instance of Media Capture Initialization Settings, where we select the cameras Id as Vide Device Id.
If you now start capturing, this is an exemplary result: However, this not quite satisfying, because the preview automatically uses the landscape orientation.
Sometimes sessions time out at the most inconvenient time for your users.
On Devices like the Lumia 830 or 930, which have a 16:9 ratio, the preview will use the full screen in portrait mode.
The below Java Script and j Query code creates a modal background and displays a loading image when the HTML form is submitted.
Thus every time any control like Button, Link Button, etc.
For some websites it's mandatory to end sessions after a certain period of inactivity, but this is one way to keep your session alive if you want.
Like promised in my first post about photo capturing, I will provide some common modification scenarios when using the Media Capture API. If you read my first post, you probably remember that the Media Capture API automatically selected the front camera of my Lumia 1020.