Reputation: 1
Android CameraX
, prompt when VideoCapture
and ImageAnalysis
are used at the same time:
java.lang.IllegalArgumentException: No supported surface combination is found for camera device-Id: 1. May be attempting to bind too many use cases. Existing surfaces: [] New configs: [androidx.camera.core.impl.ImageAnalysisConfig@7ea65ca , androidx.camera.core.impl.VideoCaptureConfig@e0d133b, androidx.camera.core.impl.PreviewConfig@20f5a58]
Upvotes: 0
Views: 297
Reputation: 678
CameraX does not support this combination for most of the devices. Here you can find the supported combinations: Source
Notice that video capture use case is not even in supported combinations. However, as far as I know, CameraX team is working on this.
For now, I would suggest you to use Camera2 Api. Here is a very well documented library that would allow you to do what you want to achieve.
Upvotes: 1