Search code examples
c#uwpaudio-recordingmediacapture

Can't initialize mediaCapture UWP


I'm using Windows.Media.Capture lib to capture audio from the default microphone of the laptop,

The problem is that i can't initialize the mediaCapture object it display : "The parameter is incorrect" I used the InitializeAsync method with and without settings but it doesn't work.

Can anyone help me to fix this issue please!

Thanks,


Solution

  • You have to add capabilities for Microphone and the WebCam even if you just want to do an audio record,

    Thanks guys for your replies