通知
本站点除 Legacy 产品与方案外,已迁移至 声网新文档中心 ,当前页面不再维护
Documentation
All
Console 官网 Community Technical support

Why do errors occur when calling the Stream.init method?

Type: Integration issues    Platform: Web   Last Updated: 2022/09/14 23:44:21

The following are common errors when initializing the stream:

  • NotAllowedError: The user refuses to grant access to the video or audio resource.
  • NotReadableError: Although the user has granted permission to use the matching devices, a hardware error occurrs at the operating system, browser, or web page level, which prevents access to the device. Try refreshing the page or updating the device driver. On some Windows 10 laptops, you need to run Chrome in compatibility mode with Windows 7 to use the camera.
  • NotFoundError: Cannot find the specified media track. Ensure that your media device is working.
  • MEDIA_NOT_SUPPORT: Use HTTPS for your web app.
  • OverConstrainedError: A specified constraint cannot be satisfied by any available device, mostly because the requested capture device is occupied or the specified resolution is not supported.

See Stream.init for more errors.