相关文章推荐
烦恼的上铺  ·  pandas 函式 API - Azure ...·  3 月前    · 
大鼻子的煎鸡蛋  ·  Java ...·  6 月前    · 
老实的灭火器  ·  Python time ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

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.

In Safari v12.1.2 I see Enable Legacy WebRTC API in Develop menu but it is inactive/disabled (grayed out). How to enable it please? mikep Sep 30, 2019 at 11:07

This is only supported in Safari 11: https://developer.mozilla.org/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.org/en-US/docs/Web/API/Navigator/getUserMedia

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .