MF_VIRTUALCAMERA_ASSOCIATED_CAMERA_SOURCES attribute

Contains an IMFCollection object containing the IMFMediaSourceEx representing the physical cameras associated with a virtual camera.

Data type

IMFCollection stored as IUnknown.

Remarks

Request for platform to populate this attribute by setting the MF_VIRTUALCAMERA_PROVIDE_ASSOCIATED_CAMERA_SOURCES attribute to a non-zero value.

The platform will set this attribute on the IMFActivate associated with the virtual camera prior to calling the IMFActivate::ActivateObject method.

The resulting IMFCollection can be empty if the associated cameras are no longer present. Virtual camera implementations should handle this scenario gracefully by providing feedback to the end user that the associated camera is not available such as displaying a fixed “video frame".

Requirements

Requirement Value
Minimum supported client
Windows 11
Minimum supported server
Windows 11
Header
Mfvirtualcamera.h

See also

Alphabetical List of Media Foundation Attributes

IMFAttributes::GetUnknown

IMFAttributes::SetUnknown