Open bfaulk96 opened 1 year ago
@bfaulk96 did you ever find a solution to this?
Nope, unfortunately not. My solution was to show a loading symbol while the camera re-initializes, and disable facing mode switching once you'd already started recording (since switching ended the video)
Please follow the general troubleshooting steps first:
Question
This is more a general inquiry, not a bug (and perhaps depending on the answer, a feature request?).
I have react-webcam set up in my app and working on multiple browsers and devices. I also have a mechanism set up to switch between
user
andenvironment
cameras (after checking that both exist) prior to recording, by updatingvideoConstraints={{ ...videoConstraints, facingMode }}
. Unfortunately, while this works great prior to recording, changing this setting mid-recording causes the Webcam component to re-render, which stops the recording.This brings me to two questions
Thank you for your work on this library, and for reading my questions! 😄