I am using navigator.mediaDevices.getUserMedia in my javascript to call webcam. it is working for chrome but not for safari. I know, navigator.mediaDevices.getUserMedia is not supported for safari.
But, Is there any way to fix this issue for safari?
Thanks, Naresh.
I am using navigator.mediaDevices.getUserMedia in my javascript to call webcam. it is working for chrome but not for safari. I know, navigator.mediaDevices.getUserMedia is not supported for safari.
But, Is there any way to fix this issue for safari?
Thanks, Naresh.
As Safari 10 doesn't have support for WebRTC, so navigator.getUserMedia will not have any effect. Safari 11+ has support for WebRTC hence you can use navigator.getUserMedia by enabling 'Enable Legacy WebRTC API' on develop menu or navigator.mediaDevices.getUserMedia.
This is only supported in Safari 11: https://developer.mozilla/en-US/docs/Web/API/MediaDevices/getUserMedia
You might be able to use navigator.getUserMedia (which is deprecated so be careful here): https://developer.mozilla/en-US/docs/Web/API/Navigator/getUserMedia