jhuckaby / webcamjs

HTML5 Webcam Image Capture Library with Flash Fallback
MIT License
2.5k stars 1.11k forks source link

webcam doesn't fill canvas in Edge and FireFox #295

Open AlivaZheng opened 5 years ago

AlivaZheng commented 5 years ago

Hi anyone,

the webcam.js v1.0.25 cannot fill the container in Edge and Firefox(66.0.5), but it's working correctly in Chrome. What's the problem with this? Thanks.

the code

code

Edge/Firefox is shown wrong webcam

Chrome is correct chrome

AlivaZheng commented 5 years ago

@CezaryDanielNowak @jhuckaby, Could you please take a look at this issue? Thanks in advance.

CezaryDanielNowak commented 5 years ago

Currently chrome can crop image for you, firefox passes whatever camera gives. I don't think it can be fixed easly. Try new webrtc-adapter

AlivaZheng commented 5 years ago

Currently chrome can crop image for you, firefox passes whatever camera gives. I don't think it can be fixed easly. Try new webrtc-adapter

Hi @CezaryDanielNowak , thanks. For the webrtc-adapter, do you know if it's better to support for mobile? Thanks.