mozmorris / react-webcam

Webcam component
https://codepen.io/mozmorris/pen/JLZdoP
MIT License
1.63k stars 281 forks source link

Mirrored Video #383

Open montygoldy opened 10 months ago

montygoldy commented 10 months ago

I am trying to record a mirrored video. The camera feed shows mirrored video but the recorded one still the opposite.

 <Webcam
      muted={true}
      audio={true}
      ref={webcamRef}
      onUserMedia={handleUserMedia}
      videoConstraints={{ facingMode: 'user' }}
      mirrored={true}
  />

How to fix it.

Hunter-Gu commented 10 months ago

Same issue. I know canvas is the common way to do that, but it will be better if react-webcam can support this.