Skip to content
New issue

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

How to start again after calling .html5_qrcode_stop() #48

Open
sthag opened this issue Sep 23, 2016 · 1 comment
Open

How to start again after calling .html5_qrcode_stop() #48

sthag opened this issue Sep 23, 2016 · 1 comment

Comments

@sthag
Copy link

sthag commented Sep 23, 2016

I use $('#element').html5_qrcode_stop(); after successfully reading a qrcode.
After some actions I want to start over again and enable tracking.
If I call $('#element').html5_qrcode(function(data) { ... }) again, everything gets duplicated. I get another video element and after a short time everything crashes.

How can I just start the tracking process again after it was stopped? Something like $('#element').html5_qrcode_start(); would be great but I can not find within the source.

@sthag
Copy link
Author

sthag commented Sep 23, 2016

I managed to get what I wanted by just removing the element on which .html5_qrcode() was called together with the canvas element which is created.
I think it would be great to have something like .html5_qrcode_start() to do such things and maybe other things necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant