locked
How to change the capture resolution of CaptureDevice and toggle between front and rear camera RRS feed

  • Question

  • Hi. I'm using Visual Studio 2013, and the Windows Phone App template. I'm using the Microsoft.Devices / CaptureVideo API to capture video. I now want to set the resolution to capture the video in a specific(available) resolution. How do I do that?

    Code snippet reference to API:

    CaptureVideo vcDevice = CaptureDeviceConfiguration.GetDefaultVideoCaptureDevice();

    and I also want to put a button there to toggle between front and rear camera. If I click the button, and the rear camera is currently active, the front camera must become active and vice versa. How do I do that with this API?

    Thank you.

    Sunday, February 15, 2015 9:27 AM

Answers