What is a TrackStartError?

…衆ロ難τιáo~ 提交于 2019-12-01 17:53:18
jib

TrackStartError is a non-spec Chrome-specific version of NotReadableError:

Although the user granted permission to use the matching devices, a hardware error occurred at the operating system, browser, or Web page level which prevented access to the device.

Seems fitting, given that your constraints are non-spec and Chrome-specific as well. Instead, try:

  var constraints = {
    audio: {
      echoCancellation: { exact: false },
      deviceId: audioSource
    },
  };

I highly recommend the official adapter.js polyfill to deal with such browser differences.

Some systems (like Windows) give exclusive access to hardware devices, which can cause this error if other applications are currently using a mic or camera. It can also be a bug or driver issue.

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