From this MS source, the Gain is calculated/set from VideoDeviceController.IsoSpeedControl
(public float Gain in the source)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want to get/set "Gain" setting for a camera using UWP in code.
I know it is possible to do using WMF(Windows Media Foundation) because in this page
https://learn.microsoft.com/en-us/windows/win32/directshow/configure-the-video-quality#procamp-settings
explains how to do it .
My code:
String ID = "{C6E13360-30AC-11d0-A18C-00A0C9118956} 9";
var property = _mediaCapture.VideoDeviceController.GetDeviceProperty(ID);
Result: $exception {"The data area passed to a system call is too small. (Excep_FromHResult 0x8007007A)"} System.Exception
From this MS source, the Gain is calculated/set from VideoDeviceController.IsoSpeedControl
(public float Gain in the source)