camera-preview
camera-preview copied to clipboard
getSupportedFlashModes returns array empty in Android 14 SDK 34
In our project we found a bug that when starting the camera in its rear mode and using the getSupportedFlashModes method we received an array of all available values: off, auto, on, and torch. When using the flip() method to access the front camera and using flip() again to return to the rear, using the method again the array comes empty. And if I try to use the setFlashMode method, the application fails even though the cell phone initially supports Flash. We performed the test on a physical Android 14 device.
I would like to know if this is really a bug or is there any recommendation for using the following plugin?
Versions:
- Android 14 (SDK 34)
- Capacitor 5
- Ionic/Angular 7
- CameraPreview: 5
- Angular 16
- Model: Samsung A54
- ChromeVersion: 128.0.6613.147
- Gradle: 8.7