IMFVirtualCamera::AddDeviceSourceInfo method (mfvirtualcamera.h)
Informs the pipeline the virtual camera will require exclusive control to the physical camera specified by the specified device symbolic name.
HRESULT AddDeviceSourceInfo( LPCWSTR DeviceSourceInfo );
Returns an HRESULT value, including but not limited to the following values:
|E_INVALIDARG||An input parameter is invalid.|
The function allows the Windows Camera Frame Server service to arbitrate access to the physical camera when the virtual camera is activated.
This API may be called repeatedly if the virtual camera requires exclusive access to more than one physical camera.
When the virtual camera is activated all physical cameras added to the virtual camera using this API will be marked as in use. So any attempt to access those physical cameras in non-shared mode will result in a sharing violation.
|Minimum supported client||Windows Build 22000|