I am using MediaCapture class for camera view. But i have a problem that it supports only front camera of tablet, i want to switch between front and back camera by clicking a button.
How can i do it??
I am using MediaCapture class for camera view. But i have a problem that
Share
Sajid,
This example code from the Win8 Dev Center will show you how to enumerate through the camera devices connected to a current machine: http://code.msdn.microsoft.com/windowsapps/Media-Capture-Sample-adf87622
And here’s another example which deals with DeviceEnumeration more specifically: http://code.msdn.microsoft.com/windowsapps/Device-Enumeration-Sample-a6e45169
Relevant code (from first link) :
edit: this code is taken from the AdvancedCapture.xaml.cs file from the first code sample I posted.