Windows.Phone.Media.Capture.PhotoCaptureDevice is deprecated ...?
I am working on a camera app and I need to use advanced settings like exposure, ISO, etc.
As per this article (Aug 19, 2014) or this one , I have to use the "PhotoCaptureDevice" class instead of the "Camera" class.
The problem is that when I use it in Visual Studio Premium 2013 update 3 using a windows phone 8.1 project I got the following warming:
'Windows.Phone.Media.Capture.PhotoCaptureDevice' is deprecated: "Windows.Phone.Media.Capture may not be available in future versions of Windows Phone. Starting with Windows Phone Blue, use Windows.Media.Capture instead."
Who should I listen to, Visual Studio or the msdn manual?
source to share
It's pretty easy to use.
A complete sample app is available here:
scroll down to the MediaCapture class .
As for your additional settings , if yours MediaCapture
has a name mc
, then all this is in the following.
mc.VideoDeviceController structure
Link to video data VideoDeviceController
And you can set these settings by doing something like this:
// set the brightness (0 representing blanking and 10000 representing pure white)
mc.VideoDeviceController.Brightness.TrySetValue(5000);
source to share