Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
CAMERAX VERSION 1.4.0-alpha04
CAMERA APPLICATION NAME AND VERSION: 12.0.01.85
ANDROID OS BUILD NUMBER: Android 12 (SP1A.210812.016.G970FXXSGHWC1)
DEVICE NAME: Samsung Galaxy S10e
DESCRIPTION:
When flipping the Camera (back (0) -> front (1)) while recording, I get an
IllegalArgumentException
causing the Camera to fail to start:LIST ANY EXPERIMENTAL FEATURES:
@ExperimentalPersistentRecording
STEPS TO REPRODUCE:
Recorder
instance)OBSERVED RESULTS: I get the error that the sizes don't match
EXPECTED RESULTS: I expect the video output to automatically scale to the current recording size to keep it going (e.g. with OpenGL)
REPRODUCIBILITY: 100
ADDITIONAL INFORMATION: Code is available on GitHub:https://github.com/mrousavy/react-native-vision-camera/tree/v4 (
package/example
is the example app)Steps to run:
yarn
,node
andwatchman
installed (seepackage/example/android
in Android StudioCODE FRAGMENTS (this will help us troubleshoot your issues):https://github.com/mrousavy/react-native-vision-camera/blob/89aef7210dc1032d842685f6ab76863710edc0f4/package/android/src/main/java/com/mrousavy/camera/core/CameraSession.kt#L269-L322