admin管理员组文章数量:1398831
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.
Share Improve this question asked Jan 23, 2017 at 9:34 user3543822user3543822 1- Maybe this can help you : stackoverflow./q/42221646/378979 – Vincent Cantin Commented Aug 3, 2017 at 2:45
2 Answers
Reset to default 1As 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
本文标签: javascriptHow can i fix 39navigatormediaDevicesgetUserMedia39 for SafariStack Overflow
版权声明:本文标题:javascript - How can i fix 'navigator.mediaDevices.getUserMedia' for Safari? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744124654a2591901.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论