-
Notifications
You must be signed in to change notification settings - Fork 29.9k
Description
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:
- https://developer.android.com/jetpack/androidx/releases/camera#1.3.0-alpha04
- https://developer.android.com/jetpack/androidx/releases/camera#1.3.0-alpha05
- https://developer.android.com/jetpack/androidx/releases/camera#1.3.0-rc01
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.