Repository: flutter
Issue: [camera_windows] initializeCamera is stuck on 4K camera
Labels: e: device-specific,platform-windows,p: camera,package,a: desktop,P3,team-windows,triaged-windows

### Steps to reproduce

Camera_Windows: ^ 0.2.6 and https://github.com/flutter/packages/tree/main/packages/camera/camera_windows ，
I have tried it all, and when clicking the Create camera button, the program can be executed normally with a 1080p camera, as shown in the following picture:
![4a17b6bf-969c-43f2-81c2-a619176f98f7](https://github.com/user-attachments/assets/e449d5b3-8ede-437d-872a-fcc58631fa36)

But when I switch to a 4K camera, the code will
 `await CameraPlatform.instance.initializeCamera(
        cameraId,
      );`
Stuck, do not execute downwards, The terminal has no error message，as shown in the following figure:
![c3629642-16ac-4143-b235-172c46f9a1b2](https://github.com/user-attachments/assets/8175e9a6-2041-4ff6-a857-abbd9b45c02f)

![51018679-0757-4748-9aa2-7532efb4a197](https://github.com/user-attachments/assets/76533e95-b0b4-4eb8-bac8-bb5aaf8599a0)

On Windows 10 system, I can call the built-in camera program in Windows to obtain images of AF12MP 4K Camera



### Expected results

I hope to obtain images from the Windows camera normally

### Actual results

when clicking the Create camera button, the code will
 `await CameraPlatform.instance.initializeCamera(
        cameraId,
      );`
Stuck, do not execute downwards

### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
flutter doctor -v
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
[√] Flutter (Channel stable, 3.22.2, on Microsoft Windows [版本 10.0.19041.1415], locale zh-CN)
    • Flutter version 3.22.2 on channel stable at D:\Flutter\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (5 months ago), 2024-06-05 22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at D:\Android\Local\Sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = C:\Users\Admin\AppData\Local\Android\Sdk
    • Java binary at: D:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.5.5)
    • Visual Studio at D:\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.5.33627.172
    • Windows 10 SDK version 10.0.22000.0

[√] Android Studio (version 2022.3)
    • Android Studio at D:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[√] IntelliJ IDEA Ultimate Edition (version 2021.1)
    • IntelliJ at D:\Program Files\JetBrains\IntelliJ IDEA 2021.1.3
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [版本 10.0.19041.1415]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 130.0.6723.92
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 130.0.2849.68

[√] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>