We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I try to call qr.stop() like the example it throws this error:
qr.stop()
Uncaught TypeError: this.stream.stop is not a function
Also, it will continuously keep calling the resultHandler after scanning, I'm assuming this would stop, if the qr.stop() would work.
The qr Object does contain this though:
canvasElem: canvas stream: MediaStream active: true id: "U1UY73wPzsxXdV1pQXZIXuYOF0VVtmaqFqoc" onactive: null onaddtrack: null onended: null oninactive: null onremovetrack: null timerCapture: 21 videoConstraints: Object videoDimensions: false videoElem: video
No .stop method
.stop
The text was updated successfully, but these errors were encountered:
Fixed it after seeing this: https://github.com/andyet/SimpleWebRTC/issues/363
By doing:
tracks = @qr.stream.getTracks()
Which returns an Array of MediaStreamTracks And then:
MediaStreamTrack
tracks[0].stop()
Apparently something changed in the API.
At least now the stream stops, but the lib needs top be updated, will see if I can make a pull request, or otherwise I'll post a fork with the fix.
Sorry, something went wrong.
Actually, I see that a pull request exists for this already: #34
Forked: https://github.com/TrySpace/qcode-decoder
I will respond to pull requests when needed over there
No branches or pull requests
When I try to call
qr.stop()
like the example it throws this error:Also, it will continuously keep calling the resultHandler after scanning, I'm assuming this would stop, if the
qr.stop()
would work.The qr Object does contain this though:
No
.stop
methodThe text was updated successfully, but these errors were encountered: