w3c / mediacapture-image

Mediastream Image Capture
https://w3c.github.io/mediacapture-image/
Other
74 stars 40 forks source link

Add support for powerline frequency on gUM MediaTrackSupportedConstraints #294

Open murillo128 opened 2 years ago

murillo128 commented 2 years ago

AFAIK there is no way to control the power line frequency of the video capture device to reduce the light flickering.

The idea would be to add a new powerLineFrequency constraint that can take the following values:

For ref: https://learn.microsoft.com/en-us/uwp/api/windows.media.devices.videodevicecontroller.trysetpowerlinefrequency?view=winrt-22621#windows-media-devices-videodevicecontroller-trysetpowerlinefrequency(windows-media-capture-powerlinefrequency) https://learn.microsoft.com/en-us/uwp/api/windows.media.capture.powerlinefrequency?view=winrt-22621

fippo commented 2 years ago

More ref: https://source.chromium.org/chromium/chromium/src/+/main:media/capture/video_capture_types.h?q=googPowerLineFrequency%20 This used to be a nonstandard constraint in Chrome but that went AWOL