Capture silent video in the Windows Store app

I want to write an application for the Windows Store that can capture video (without sound) and take pictures. Imagine a digital camera: you can preview the image on the screen of your device before pressing the button that takes the pic.

The problem I ran into is that the Windows.Media.Capture namespace only has classes for objects that capture video with sound ( CameraCaptureUI , MediaCapture ). I have no problems with the capabilities of the objects, but the fact that I have to include the microphone feature in the application manifest, and it makes no sense to use the application. I need a class that uses only the capabilities of a webcam.

Any ideas?

+4
source share
1 answer

I found the answer, and I thought I should share it. I'm sorry that I answered my question, but here goes:

In the settings of the MediaCapture object during initialization, you can specify that it will use only part of the video:

 var mediaCaptureMgr = new MediaCapture(); var captureSettings = new MediaCaptureInitializationSettings(); captureSettings.StreamingCaptureMode = StreamingCaptureMode.Video; await mediaCaptureMgr.InitializeAsync(captureSettings); 

RTFM!

+5
source

All Articles