tree: 7d26ef2a3adcaab0008cb78eaa0d95ff144a0b66 [path history] [tgz]
  1. android/
  2. example/
  3. lib/
  4. pigeons/
  5. test/
  6. .metadata
  7. AUTHORS
  8. CHANGELOG.md
  9. CONTRIBUTING.md
  10. LICENSE
  11. pubspec.yaml
  12. README.md
packages/camera/camera_android_camerax/README.md

camera_android_camerax

An Android implementation of camera that uses the CameraX library.

Note: This implementation will become the default implementation of camera on Android by May 2024, so we strongly encourage you to opt into it by using the instructions below. If any of the limitations prevent you from using camera_android_camerax or if you run into any problems, please report these issues under flutter/flutter with [camerax] in the title.

Usage

To use this plugin instead of camera_android, run

$ flutter pub add camera_android_camerax

from your project's root directory.

Limitations

240p resolution configuration for video recording

240p resolution configuration for video recording is unsupported by CameraX, and thus, the plugin will fall back to 480p if configured with a ResolutionPreset.

Setting maximum duration and stream options for video capture

Calling startVideoCapturing with VideoCaptureOptions configured with maxVideoDuration and streamOptions is currently unsupported do to the limitations of the CameraX library and the platform interface, respectively, and thus, those parameters will silently be ignored.

Contributing

For more information on contributing to this plugin, see CONTRIBUTING.md.