Comments (5)
You can't with the current code. You need to use MediaStreamTrack.getSources to identify the individual cameras and then provide the cam's ID when accessing the webcam. But that standard is not too established yet. It works on Chrome for Android though, I created a browser-based QR code scanner with this library which allows you to select the cam, but it's not public (at least for now).
from jsqrcode.
DeadlySystem, can I have the code that you mention to test in our web application?
Thank you.
from jsqrcode.
Okay @rubensalcedo see here: https://gist.github.com/DeadlySystem/304d3da710a70ac0545c
This is compiled TypeScript, i.e. JavaScript. Please read the gist's description. Also, note that you will need to use requirejs for this to work in the posted form. You may freely use and adapt it, but when you share it please link to this Github issue. This is just a snippet from a large project, and of course it is untested in this form. But you should be able to find the important concepts.
from jsqrcode.
hi i have the same problem. I do not know how can I turn rear camera (environment) if they could help me I would be very grateful i want to start automatically the rear camera bicos the qr scan is for a smartphone
i found another QR scan but thets is the best of all
from jsqrcode.
Just look at my gist from my previous comment... On line 33 starts the code that does the magic. It is used to fill a , but you could easily make it select a camera automatically on line 61. I haven't tested this in a while though, it could be that the APIs have changed meanwhile.
from jsqrcode.
Related Issues (20)
- Doesnt work in Iphone devices HOT 4
- color
- Barkod Okuyucu
- prompt to ‘ flash.ccCapture is not a function’
- Failed to load the image HOT 1
- Can support 2D Data Matrix Code read HOT 1
- How to call the method from canvas using getusermedia HOT 1
- failed to load the image
- QR code unable to read HOT 2
- Here is a tutorial on how to use this library HOT 6
- [SOLVED]ios 11 - ios 12 black screen
- is not work on ios HOT 1
- What kind of tool is this ?
- Abnormal parsing result HOT 1
- Unable to open in chrome (not secure) http:// HOT 1
- Flashlight turn off on mobile HOT 1
- QR code containing Japanese characters HOT 1
- JavaScript Error HOT 1
- Can not decode QR code on iOS 13.1
- How to create a QRCode ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsqrcode.