react-native-vision-camera
react-native-vision-camera copied to clipboard
Dual Capture not Possible🐛
What's happening?
I want to be able to simultaneously capture too both the front and rear-facing cameras
Reproduceable Code
const devices = useCameraDevices();
const [front,back] = devices;
return (<>
<Camera ref={camera} photo={true} device={front} style={{ height: "100%", width: "100%" }}
isActive={isActive} />
<Camera ref={camera} photo={true} device={back} style={{ height: "100%", width: "100%" }}
isActive={isActive} />
</>)
Relevant log output
N/A, only initializes one camera
Camera Device
N/A, only initializes one camera
Device
iPhone XR
VisionCamera Version
3.1.6
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (⚠️ your issue might get ignored & closed if you don't try this)
Additional information
- [ ] I am using Expo
- [X] I have enabled Frame Processors (react-native-worklets-core)
- [X] I have read the Troubleshooting Guide
- [X] I agree to follow this project's Code of Conduct
- [X] I searched for similar issues in this repository and found none.
Is it because you're using the same ref for both cameras? I use dual camera in my app without issue, the only caveat is you have to initialise one before the other
This is not yet supported. There is a similar issue where I explained why, but I can't find it righgt now