Repository: flutter
Issue: [camera] The startVideoRecording function does not work when we use the "onAvailable" callback with it.
Labels: e: device-specific,p: camera,package,team-ecosystem,P2,triaged-ecosystem

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

Clone the official camera plugin's working example, add the `onAvailable` callback to the `cameraController.startVideoRecording()` function, and observe any crashes.



### Expected results

It should be able to capture the video without any crash.

### Actual results

It is showing a toast without recording the video; the toast is visible in the attached screen recording.

### Code sample

<details><summary>Code sample</summary>

```dart
  Future<void> startVideoRecording() async {
    final CameraController? cameraController = controller;

    if (cameraController == null || !cameraController.value.isInitialized) {
      showInSnackBar('Error: select a camera first.');
      return;
    }

    if (cameraController.value.isRecordingVideo) {
      // A recording is already started, do nothing.
      return;
    }

    try {
      await cameraController.startVideoRecording(
      onAvailable: (CameraImage image) {
        /// image processing code
      }
      );
    } on CameraException catch (e) {
      _showCameraException(e);
      return;
    }
  }
```

</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

https://github.com/flutter/flutter/assets/103034449/df885256-37ad-403b-aa10-1d21ed337485

Device Info
![Screenshot_2023-09-15-15-08-57-288_com android settings](https://github.com/flutter/flutter/assets/103034449/b3bd4781-a938-4cb9-ad79-9d6a474cc7e1)



</details>




### Logs

<details><summary>Logs</summary>

```console
CameraException(videoRecordingFailed, CAMERA_ERROR (3): endConfigure:619: Camera 0: Error configuring streams: Function not implemented (-38))  _CameraExampleHomeState.startVideoRecording (package:camera_example/main.dart:876:7)
```

</details>


### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[√] Flutter (Channel stable, 3.13.0, on Microsoft Windows [Version 10.0.22621.2134], locale en-IN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2019 16.11.18)
[!] Android Studio (version 2021.3)
    X Unable to determine bundled Java version.
[√] Android Studio (version 2022.3)
[√] VS Code (version 1.82.2)
[√] Connected device (4 available)
[√] Network resources

```

</details>