ZoomControl.Supported is always false

オープン
#2,563 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
csharp
領域
documentation

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
JavaScript
スター
266
フォーク
517
平均マージ
1分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MicrosoftDocs/winrt-api のほかの issue

MicrosoftDocs/winrt-api の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。