ZoomControl.Supported is always false

Abierto
#2,563 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
csharp

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
JavaScript
Estrellas
266
Forks
517
Merge medio
1 min
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de MicrosoftDocs/winrt-api

Todos los issues de MicrosoftDocs/winrt-api

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.