camera_android_camerax 0.6.5 copy "camera_android_camerax: ^0.6.5" to clipboard
camera_android_camerax: ^0.6.5 copied to clipboard

PlatformAndroid

Android implementation of the camera plugin using the CameraX library.

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 #

Concurrent preview display, video recording, image capture, and image streaming #

The CameraX plugin only supports the concurrent camera use cases supported by Camerax; see their documentation for more information. To avoid the usage of unsupported concurrent use cases, the plugin behaves according to the following:

  • If the preview is paused (via pausePreview), concurrent video recording and image capture and/or image streaming (via startVideoCapturing(cameraId, VideoCaptureOptions(streamCallback:...))) is supported.
  • If the preview is not paused
    • and the camera device is at least supported hardware LIMITED, then concurrent image capture and video recording is supported.
    • and the camera device is at least supported hardware LEVEL_3, then concurrent video recording and image streaming is supported, but concurrent video recording, image streaming, and image capture is not supported.

setDescriptionWhileRecording is unimplemented Issue #148013 #

setDescriptionWhileRecording, used to switch cameras while recording video, is currently unimplemented due to this not currently being supported by CameraX.

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.

23
likes
140
pub points
93%
popularity

Publisher

verified publisherflutter.dev

Android implementation of the camera plugin using the CameraX library.

Repository (GitHub)
View/report issues
Contributing

Topics

#camera

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

async, camera_platform_interface, flutter, meta, stream_transform

More

Packages that depend on camera_android_camerax