C# WPF .net5 windows 19041
MediaCapture
Previewing Cameras on a XAML Image element.
Using MediaFrameReader
I attempt to set
await TheCaptureMgr.VideoDeviceController.SetMediaStreamPropertiesAsync(MediaStreamType.VideoRecord, <IMediaEncodingProperties>someProperty);
And I always get an exception "File is in use by another process"
UPDATE:
Can not set set streamproperties unless you have ExclusiveControl of the 'camera'.
MediaCapture init settings:
SharingMode = MediaCaptureSharingMode.ExclusiveControl,
Now, you can set StreamProperties without exceptions.
You can remove this post, but this information wasn't evident in all of the documentation I've been looking at.
It does make perfect sense though.