ZoomControl.Supported is always false

Open
#2,563 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
csharp
Domain
documentation

Research direction

The report names VideoDeviceController.ZoomControl.Supported and VideoDeviceController.Zoom.Capabilities.Supported, but gives no documentation file or failing test. Start by locating the WinRT API reference entries for both members and checking whether they describe support on Windows 11 build 26200. Done means the reference explains the reported behavior or documents a confirmed alternative; the issue does not provide enough detail to identify a specific change.

Written by the indexing model from the issue text.

Description

Pri3

I am working on UWP app with c# as backend code. Initial phases of Windows 11 was allowing Zoom option I do not recollect the build until which this was working. But now from last few months Zoom functionality is not working

VideoDeviceController.ZoomControl.Supported is always giving false. I also tried VideoDeviceController.Zoom.Capabilities.Supported that is also giving as false. My device is Windows 11 with build 26200. Could you please let me know what is the alternative to get this option as I am having a production app which is running from last 6 years and suddenly this functionality got broke. Need to identify if there are any alternative for this so I can integrate those changes. Please find below sample code which I am using in my application. I am always getting both supported values as false.

try
{
CanAdjustZoom = CameraCapture.VideoDeviceController.Zoom.Capabilities.Supported;
FallBackZoom = CameraCapture.VideoDeviceController.ZoomControl.Supported;
if (CanAdjustZoom || FallBackZoom)
{
if (CameraCapture.VideoDeviceController.ZoomControl.Supported)
{
ZoomValue = CameraCapture.VideoDeviceController.ZoomControl.Value;
}
else if (CameraCapture.VideoDeviceController.Zoom.TryGetValue(out double zoom))
{
ZoomValue = zoom;
}
MaxZoom = CameraCapture.VideoDeviceController.ZoomControl.Supported ? CameraCapture.VideoDeviceController.ZoomControl.Max : CameraCapture.VideoDeviceController.Zoom.Capabilities.Max;
MinZoom = CameraCapture.VideoDeviceController.ZoomControl.Supported ? CameraCapture.VideoDeviceController.ZoomControl.Min : CameraCapture.VideoDeviceController.Zoom.Capabilities.Min;
}
}
catch (Exception exception)
{
}

Dominant language
JavaScript
Stars
266
Forks
517
Avg merge
1m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MicrosoftDocs/winrt-api

All issues in MicrosoftDocs/winrt-api

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.