在 Chrome Mozilla 等人上 Sinch webRTC DevicesNotFoundError [英] Sinch webRTC DevicesNotFoundError on Chrome Mozilla et al

查看:31
本文介绍了在 Chrome Mozilla 等人上 Sinch webRTC DevicesNotFoundError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Sinch 在我的 web 应用程序中设置视频通话.该应用程序在我的 Chrome(50.0.2661.102 64 位)上运行良好,但使用 Windows(相同版本的 chrome 但 32 位)的朋友收到 NavigatorUserMediaError 的原因:DevicesNotFoundError.

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.

我尝试使用 mozilla、vivaldi 和 IE,但它们都不起作用.错误在 sinch.min.js 文件中,我使用的是他们存储库中的最新版本:https://cdn.sinch.com/latest/sinch.min.js

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

有人可以帮我解决这些问题吗?另外,是否有任何 javascript 库可以帮助防止在使用 webRTC 时出现跨浏览器兼容性问题.

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

谢谢

推荐答案

带有 err.name=DevicesNotFoundErrorNavigatorUserMediaError 错误是 Chrome 特定的错误,而且很常见.它发生在:

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

  • 您通过约束请求视频轨道,但用户没有网络摄像头
  • 您请求音轨但没有连接的录音设备或它在操作系统级别被禁用(可能在 Windows 中,如果麦克风插孔中没有插入麦克风,某些驱动程序会自动执行此操作)

DevicesNotFoundError 将被 Chrome 64 中符合规范的 NotFoundError 替换.

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

来源:常见的 getUserMedia() 错误

这篇关于在 Chrome Mozilla 等人上 Sinch webRTC DevicesNotFoundError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆