Skip to content

decodeOnceFromConstraints returns Exception Error: "NotReadableError: Could not start video source" #636

Description

@giannencljsn

Describe the bug
The problem is the function that accesses the video device won't work properly.

To Reproduce
Steps to reproduce the behavior:

  1. Go to "https://zxing-js.github.io/library/examples/qr-camera/"
  2. Click on 'Start' button to start camera (grant permission access for camera)
  3. The problem in my case, it turns on the camera but seconds later, it would turn it off again.
    Upon inspection through devtools the decodeOnceFromConstraints function returns Exception Error: "NotReadableError: Could not start video source"

Expected behavior
To start my camera device from any browsers, currently the video device gets detected only on Firefox.

Screenshots

Desktop (please complete the following information):

  • OS: Microsoft Windows 11 Home Single Language
  • Browser : Google Chrome
  • Version 10.0.26100 Build 26100

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions