ZoomControl.Supported is always false

Aperta
#2,563 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
documentation

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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)
{
}

Lingua principale
JavaScript
Stelle
266
Fork
517
Merge medio
1m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MicrosoftDocs/winrt-api

Tutte le issue di MicrosoftDocs/winrt-api

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.