Repository: flutter
Issue: [Camera Web] Can not lockCaptureOrientation on web
Labels: platform-web,p: camera,package,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-web,triaged-web

It ran to exception when I tried to lock camera orentation

```
Height of Platform View type: [plugins.flutter.io/camera_1] may not be set. Defaulting to `height: 100%`.
Set `style.height` to any appropriate value to stop this message.
Width of Platform View type: [plugins.flutter.io/camera_1] may not be set. Defaulting to `width: 100%`.
Set `style.width` to any appropriate value to stop this message.
TypeError: fullscreen error
dart-sdk/lib/html/dart2js/html_dart2js.dart 14024:11                                 requestFullscreen]
packages/camera_web/src/camera_web.dart 402:48                                       fullScreen
packages/camera_web/src/camera_web.dart 403:15                                       lockCaptureOrientation
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54                   runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5                   _async
packages/camera_web/src/camera_web.dart 385:38                                       lockCaptureOrientation
packages/camera/src/camera_controller.dart 747:37                                    lockCaptureOrientation
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54                   runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:5                   _async
packages/camera/src/camera_controller.dart 745:38                                    lockCaptureOrientation
packages/aicycle_insurance/features/ai_camera/presentation/ai_camera_page.dart 39:9  <fn>
dart-sdk/lib/async/zone.dart 1653:54                                                 runUnary
dart-sdk/lib/async/future_impl.dart 147:18                                           handleValue
dart-sdk/lib/async/future_impl.dart 766:44                                           handleValueCallback
dart-sdk/lib/async/future_impl.dart 795:13                                           _propagateToListeners
dart-sdk/lib/async/future_impl.dart 430:9                                            callback
dart-sdk/lib/async/schedule_microtask.dart 40:11                                     _microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5                                      _startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 166:15                  <fn>
```

<img width="600" src="https://user-images.githubusercontent.com/54916679/208568680-ece4135c-01b0-4b00-903d-90751c39318e.png">

<img width="400" src="https://user-images.githubusercontent.com/54916679/208568690-aac8c739-3db0-4fae-a713-348776ad3004.png">



Here's the code for the camera controller:
```
 cameraController = CameraController(cameras[1], ResolutionPreset.ultraHigh);
    cameraController.initialize().then((_) {
      if (!mounted) {
        return;
      }
      cameraController.lockCaptureOrientation(DeviceOrientation.landscapeRight);
    }).catchError((Object e) {
      if (e is CameraException) {
        switch (e.code) {
          case 'CameraAccessDenied':
            printDebug('User denied camera access.');
            break;
          default:
            printDebug('Handle other errors.');
            break;
        }
      }
    });
```

Here's the flutter doctor:
```
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.9, on macOS 13.0.1 22A400 darwin-arm, locale en-VN)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2022.2.3)
[✓] VS Code (version 1.74.0)
[✓] Connected device (2 available)
[!] HTTP Host Availability
    ✗ HTTP host "https://cloud.google.com/" is not reachable. Reason: An error occurred while checking the HTTP host: Connection closed before full header was received

! Doctor found issues in 2 categories.
```