Skip to content

[camera_android_camerax] Allow concurrent preview, video capture, and image streaming/capture for all devices #150387

@camsim99

Description

@camsim99

In older versions of CameraX, concurrent displaying of the preview and video capture in conjunction with image streaming and/or image capture had limited availability based on the camera level of the devices (at the time of writing, this can be seen in https://developer.android.com/media/camera/camerax/architecture#combine-use-cases). Because of this, camera_android_camerax introduced logic to avoid use of unsupported concurrent use cases (see #144414). However in recent changes to the CameraX library, a shared stream feature was introduced to allow these concurrent use cases despite device capabilities.

Thus, we should test removing the logic blocking the use of certain camera use case combinations based on device capabilities and remove it if possible to allow wider access to these concurrent camera usages.

See the release notes for more info on the shared stream feature:

We currently use version 1.3.4 in the plugin, so this would not require a bump to the CameraX version that the plugin depends on.

FYI this is splitting off from #149947, which has some more context.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions