File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
encoder/src/main/java/com/pedro/encoder/input Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ class Camera2Source(context: Context): VideoSource() {
222222 }
223223
224224 @RequiresApi(Build .VERSION_CODES .P )
225- fun physicalCamerasAvailable () = camera.physicalCamerasAvailable
225+ fun physicalCamerasAvailable () = camera.getPhysicalCamerasAvailable()
226226
227227 @RequiresApi(Build .VERSION_CODES .P )
228228 fun openPhysicalCamera (id : String? ) {
Original file line number Diff line number Diff line change @@ -270,7 +270,9 @@ class Camera2ApiManager(context: Context) : CameraDevice.StateCallback() {
270270 }
271271
272272 @RequiresApi(Build .VERSION_CODES .P )
273- val physicalCamerasAvailable = cameraCharacteristics?.physicalCameraIds?.toList() ? : emptyList()
273+ fun getPhysicalCamerasAvailable (): List <String > {
274+ return cameraCharacteristics?.physicalCameraIds?.toList() ? : emptyList()
275+ }
274276
275277 @RequiresApi(Build .VERSION_CODES .P )
276278 fun setPhysicalCamera (id : String? ) {
You can’t perform that action at this time.
0 commit comments