GithubHelp home page GithubHelp logo

Comments (7)

cozmo avatar cozmo commented on August 16, 2024

Hmm not seen this issue before, I'll investigate. Sorry about that.

from jsqr.

cozmo avatar cozmo commented on August 16, 2024

@pewien7 If it was possible would you be willing to send a screenshot/dump of the frame that is causing the failure? Assuming this is causing the webcam to freeze it should be easy to capture a screenshot I think? If not no worries but could make it easier to create a reproducible test case.

from jsqr.

pewien7 avatar pewien7 commented on August 16, 2024

I found the solution. Your code is ok. The problem is navigator.mediaDevices.getUserMedia which losing connection with camera. It happens time to time. Setting lower frameRate helped. But best solution is to check if your track is 'muted' if so just restart stream. Something like that:

  if(video.srcObject.getTracks()[0].muted)
  {
      //here is func to restart stream
  }

from jsqr.

digosts avatar digosts commented on August 16, 2024

I made a screen where I will read several qr code in sequend, I open the reader all right and execute the tick () function, but after that if I click to read the next the camera appears on my screen more locked in the previous qrcode.

I'm using video.pause on the tick;
and video.play when it enters the screen.

from jsqr.

cozmo avatar cozmo commented on August 16, 2024

@digosts Does the issue persist if you do not use jsQR? That is to say if you set up the same code but don't pass the library any data/don't even include the library do you still run into the issue?

from jsqr.

cozmo avatar cozmo commented on August 16, 2024

Closing due to lack of activity - If you still have questions please comment/re-open and I'd be happy to help.

from jsqr.

cozmo avatar cozmo commented on August 16, 2024

Hey so it turns out our code did have an issue that was causing the "Invalid typed array length: Infinity" which has been fixed in version 1.0.6. I don't think this is necessarily related to the video pausing playing stuff, but either way it's been fixed.

from jsqr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.