react-native-rectangle-doc-scanner 10.1.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -90,6 +90,8 @@ class CameraController(
|
|
|
90
90
|
// Preview UseCase
|
|
91
91
|
Log.d(TAG, "[CAMERAX] PreviewView size: ${previewView.width}x${previewView.height}")
|
|
92
92
|
Log.d(TAG, "[CAMERAX] PreviewView visibility: ${previewView.visibility}")
|
|
93
|
+
Log.d(TAG, "[CAMERAX] PreviewView scaleType: ${previewView.scaleType}")
|
|
94
|
+
Log.d(TAG, "[CAMERAX] PreviewView implementationMode: ${previewView.implementationMode}")
|
|
93
95
|
preview = Preview.Builder()
|
|
94
96
|
.build()
|
|
95
97
|
.also {
|
|
@@ -131,6 +133,19 @@ class CameraController(
|
|
|
131
133
|
|
|
132
134
|
Log.d(TAG, "[CAMERAX] Camera bound successfully")
|
|
133
135
|
|
|
136
|
+
// Monitor preview stream state
|
|
137
|
+
previewView.previewStreamState.observe(lifecycleOwner) { state ->
|
|
138
|
+
Log.d(TAG, "[CAMERAX] PreviewStreamState changed: $state")
|
|
139
|
+
when (state) {
|
|
140
|
+
androidx.camera.view.PreviewView.StreamState.IDLE ->
|
|
141
|
+
Log.w(TAG, "[CAMERAX] Preview stream is IDLE")
|
|
142
|
+
androidx.camera.view.PreviewView.StreamState.STREAMING ->
|
|
143
|
+
Log.d(TAG, "[CAMERAX] Preview stream is STREAMING ✓")
|
|
144
|
+
else ->
|
|
145
|
+
Log.d(TAG, "[CAMERAX] Preview stream state: $state")
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
134
149
|
} catch (e: Exception) {
|
|
135
150
|
Log.e(TAG, "[CAMERAX] Use case binding failed", e)
|
|
136
151
|
}
|