Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for powerline frequency on gUM MediaTrackSupportedConstraints #294

Open
murillo128 opened this issue Sep 22, 2022 · 1 comment

Comments

@murillo128
Copy link

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:

  • Auto: The power-line frequency is determined automatically by the system.
  • Disabled : Power-line frequency control is disabled.
  • 50Hz: The power-line frequency is 50 Hz.
  • 60Hz: The power-line frequency is 60 Hz.

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
Copy link

fippo commented Sep 22, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants