Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 1.92 KB

File metadata and controls

17 lines (11 loc) · 1.92 KB

ControlMonitorApp Sample

This sample app will demonstrate how to build an app that will be monitoring camera controls with IMFCameraControlMonitor APIs.

Requirements

This sample is built using Visual Studio 2022 and requires Windows SDK version 22621.

Sample functionality

The sample will enumerate available cameras and initialize and start the preview for one of them, user can change the used camera from the combo box. The app will then create control listeners for brightness1 and contrast controls (assuming these are supported by the selected camera) and will update its slider values if an external application changes these values for the same camera.

The Camera Settings page can be used as the external application to demonstrate the control change events in the sample app. I.e., when the contrast slider is changed from the Camera Settings page, the sample application will reflect this change. NOTE: Moving the sliders in the sample app adjusts the current value of the controls on the camera. The Windows Camera Settings app always displays the default value. When you adjust a setting in the Windows Camera Settings app, the new default value is saved for the user, and the current value on the camera is also set to match. When you adjust a slider in the sample app, the current value on the camera is changed, but the value displayed in the Windows Camera Settings app will not be updated.

Sample app in action with the Camera Settings page

Footnotes

  1. Brightness is replaced with ExposureCompensation control if camera supports it. This is done to have similar functionality as the Camera Settings page.