UWP Class provides functionality for capturing photos, audio, and videos from a capture device, such as a webcam.
Questions tagged [mediacapture]
48 questions
15
votes
3 answers
Why doesn't capture="user" change my phone's camera to front facing?
I tried the following attribute capture to set the input element to try to select the front facing camera. user is front facing, and environment is back facing.
However, while experimenting with Chrome (latest) on mobile (Pixel 1, latest OS), the…

imagineerThat
- 5,293
- 7
- 42
- 78
5
votes
1 answer
Creating a video file from SoftwareBitmap or Direct3DSurface without MediaComposition in UWP C#
I am trying to record a video of a camera while using MediaFrameReader. For my application I need the MediaFrameReader instance to process each frame individually. I have tried to apply LowLagMediaRecording additionally to simply save the…

NicholasUrfe
- 51
- 1
4
votes
0 answers
Create virtual camera in C#, Windows 10, to work with Zoom, Skype, browser
I would like to create a "virtual camera" that can be used with 3rd party apps such as Zoom or Skype, browser etc. In the same way these can work with a virtual camera app such as Snap.
I want to take the feed from the built in webcam on the laptop,…

mjuk
- 157
- 1
- 3
- 11
3
votes
1 answer
Console template application MediaCapture fails to record video
I'm trying to use MediaCapture on a minimal C# UWP console template - based application to capture video. Initializing the MediaCapture with InitializeAsync() works, but actually starting the recording fails with error code 0xc00d3e82 /…

ExplodingDeveloper
- 33
- 4
2
votes
0 answers
UWP MediaFrameReader - System.ArgumentException: 'Value does not fall within the expected range.'
I am trying to create a UWP application that uses the laptop's webcam to process mediaframes on which I want to search faces using Microsoft Azure Face API.
I created a MediaCapture that works well, and a MediaFrameReader, which throws the exception…

pedro
- 83
- 1
- 2
- 9
2
votes
0 answers
WPF XAML Islands - Using MediaCapture and VideoEffectDefinition
Trying to create a WPF app, using UWP MediaCapture and a custom VideoEffect.
The VideoEffect is defined inside a Windows Runtime Component.
When adding the effect to MediaCapture, the app crashes with "Cannot find specified module. Failed to…

JPH
- 43
- 5
2
votes
0 answers
New Api AudioPlaybackCaptureConfiguration (android 10) fails to record voice calls
I tried to use new AudioPlaybackCapture method to record some media in an android 10 device.
I managed to record all media sounds such as youtube videos, music etc. But my goal is to check weather we can use this in recording incoming voice calls.…

asasamar
- 263
- 1
- 2
- 9
1
vote
1 answer
POST image from canvas element - Javascript / .net core
I'm using the Media Capture and Streams API to connect to webcams and other peripheral cameras. We use the cameras to take still photos. My question is how can I POST or upload those photos to the server?
I'm capturing photos like so:
captureImage:…

Smitty-Werben-Jager-Manjenson
- 480
- 5
- 16
1
vote
1 answer
How to use MediaCapture.StartPreviewAsync() in a Winforms C# application on .NET 7
I know it's quite common to use MediaCapture.StartPreviewAsync() with MediaCapture in a UWP application, however how do you use it in a Winforms application running on .NET 7?
When I try to call this function, I get this…

Gabriel Frigo
- 88
- 7
1
vote
1 answer
How to record two audio inputs and one video input?
I am trying to record two audio input (webcam + microphone) and one video input (webcam) via MediaCapture from C#. Just 1 audio and 1 video input works like a charm but the class itself does not allow to specify two audio input device ids.
An…

GreenDragon
- 11
- 1
1
vote
0 answers
Record video with synchronized associated metadata with UWP/c++
I want to record a video with C++ & UWP API. I use the MediaCapture object to do so.
m_mediaCapture = Platform::Agile(ref new MediaCapture());
I managed to record a video with 'StartRecordToStorageFileAsync'…

DadEap Purple
- 91
- 8
1
vote
1 answer
4K MJPEG Camera Video Preview with delay (on Windows 10)
I'm trying to preview video stream from 4K Camera (Brio) in my application. The application uses DirectShow to open camera and receive frames. Filter configuration is shown in image below.
The problem are high resolutions (ie. 4096x2160). With…

iz25
- 274
- 1
- 11
1
vote
1 answer
How do I stop UWP Camera requiring permission to the Microphone
So I am initialising a MediaCapture element in my UWP application on my Surface Pro device like so:
// Create MediaCapture and its settings
mediaCapture = new MediaCapture();
var mediaInitSettings = new…

JKennedy
- 18,150
- 17
- 114
- 198
1
vote
1 answer
How to catch UWP MediaCapture exception when capture device is used by another app?
I am working on adding a simple webcam preview to a UWP app. Getting the preview up and running works fine so I am working on properly handling exceptions thrown by InitializeAsync() and StartPreviewAsync() and am not able to properly catch…

M. Abelson
- 98
- 7
1
vote
2 answers
How to control exposure or brightness of webcam in UWP using MediaCapture.VideoDeviceController for QR-Code scanning
I'm working on a UWP app that needs to scan QR codes from a laptop webcam. I'm using the Windows.Media.Capture.MediaCapture class for this. Everything works well, except for when using qr code on a smartphone with it's brightness set too high for…

Matthias Duyck
- 11
- 4