-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vertical Recording Issue - always record horizontal video #384
Comments
As a workaround for now, you can add For example: <Webcam
ref={webcamRef}
audio={false}
width={720}
height={480}
screenshotQuality={1}
screenshotFormat="image/png"
className="scale-x-[-1] rounded-lg max-w-full aspect-[3/2]"
style={{ objectFit: 'cover' }}
videoConstraints={{ width: 720, height: 480 }}
onUserMedia={handleCameraLoaded}
/> |
I have same issue in firefox and android, I want to show and capture the image in 320w to 450h, but it shows only 320w to 261.8h, |
Video cam recording always record as horizontal even param pass for vertical
const videoConstraints = { audio: false, video: { deviceId: selectedCamera, width: { ideal: 720 }, height: { ideal: 1280}, }, }; const audioConstraints = { audio: true }; const audioStream = await navigator.mediaDevices.getUserMedia(audioConstraints); const videoStream = await navigator.mediaDevices.getUserMedia(videoConstraints); setPermission(true); const combinedStream = new MediaStream([...videoStream.getVideoTracks(), ...audioStream.getAudioTracks()]); setStream(combinedStream);
The text was updated successfully, but these errors were encountered: