Sinch webRTC DevicesNotFoundError on Chrome Mozilla et al

一世执手 提交于 2019-12-12 03:41:35

问题


I am trying to setup up video calling in my webapp using Sinch. The application works well on my Chrome (50.0.2661.102 64 bit) but a friend using windows (same version chrome but 32 bit) gets a NavigatorUserMediaError with a reason : DevicesNotFoundError.

I tried using mozilla, vivaldi and IE but non of them works. The error is in the sinch.min.js file and I am using the latest version from their repository : https://cdn.sinch.com/latest/sinch.min.js

Can someone please help me fix these issues? Also, are there any javascript libraries to help prevent cross-browser compatibility issues while using webRTC.

Thanks


回答1:


Only WebRTC browsers work with sinch




回答2:


The NavigatorUserMediaError error with err.name=DevicesNotFoundError is a Chrome specific error and it's quite common. It happens when:

  • you’re requesting a video track through constraints but the user does not have a webcam
  • you request an audio track but there is no attached recording device or it's disabled at the OS level (possible in Windows and some drivers do it automatically if there's no microphone inserted in the mic jack)

DevicesNotFoundError will be replaced by the spec compliant NotFoundError in Chrome 64.

Source: Common getUserMedia() Errors



来源:https://stackoverflow.com/questions/37373423/sinch-webrtc-devicesnotfounderror-on-chrome-mozilla-et-al

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!