sembrestels / angular-qr-scanner Goto Github PK
View Code? Open in Web Editor NEWAngular directive for QR Scanner
Home Page: http://sembrestels.github.io/angular-qr-scanner/
License: MIT License
Angular directive for QR Scanner
Home Page: http://sembrestels.github.io/angular-qr-scanner/
License: MIT License
Hi,
is it possible that you create a bower repository that we can use your project like any other library?
Hi how do i switch the camera off?
i used your code in mi laravel app and when i use the demo code in my view nothing happen
can you pleas give me a solution pleasssss
I am able to use the scanner when it is a separate component but the same doesn't work when I use the code in an entry component which is a pop up window.
Can you please help me with this.
Hello. Can anybody know how to use rear android camera option when scanning qr code ?
Thanks.
Hello, there.
I put
<qr-scanner width="400" height="300"></qr-scanner>
on my angular page but result this.
Error: [$compile:multidir] Multiple directives [qrScanner, qrScanner] asking for new/isolated scope on: <qr-scanner>
could anyone help me please ?
Thanks.
Looks like
$window.localMediaStream.stop();
No longer works, so I changed it to:
$window.localMediaStream.getVideoTracks()[0].stop();
And it works now. Maybe someone can find this useful.
Hey,
I'm having issues on chrome on Android with this qr code scanner, have tried it on Android 4.4 on a Samsung tab 10.1 and on 5.1 on a Moto G, no joy.
When you give access to the camera on the device, the reader takes a still shot and freezes on that first frame, it then passes that first shot through the qr code reader every time (every $interval). I've tried putting a qr code infront of the device camera for that first frame and it works ok, is detecting the code. It does it every interval.
I've tried this with the html5 scanner you have angularfied, and i get the same issue, so its nothing you have done. Just thought i'd give you the heads up
Hi,
A mere minutes ago I tested your application (located at: http://sembrestels.github.io/angular-qr-scanner/) and these issues were found:
Your app was tested with
Samsung SM-T365. Android version: 5.1.1
Best regards.
Getting that on demo page
getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
I'm getting this error when following the readme. It seems to be coming from the jsqrcode-combined.min.js
build. Anyone else seeing this?
just says enable the camera and scan a qr code
Hi,
I'm testing your camera plugin on my android smartphone (KitKat) with Chrome.
I am asked for camera use authorization, then then camera turns on but video is stuck on the first image it gets. No errors are shown on console. I didn't experienced the same issue when launching the page on desktops.
This is my code:
page html:
controller:
'use strict';
angular.module('quiceroServerApp')
.controller('CreatePostCtrl', function ($scope) {
$scope.onSuccess = function(data) {
window.alert(data);
};
$scope.onError = function(error) {
console.log(error);
};
$scope.onVideoError = function(error) {
console.log(error);
};
});
index.html:
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-qr-scanner/qr-scanner.js"></script>
<script src="bower_components/angular-qr-scanner/src/jsqrcode-combined.min.js"></script>
Thank you.
Best regards.
I am using the qr-scanner in a ng-view. When switching back with the arrows keys the view gets destroyed and so the qr-scanner stops scanning as expected. (because your module listens for $destroy
if I understand the code correctly).
However, in my particular case I am switching the states/views with state.go()
.
After the view switched, the qr-scanners interval is still running. How can I stop it from doing so?
I could implement a listener into your code, to listen for a certain event to then clear the interval. But i am not sure, it's the cleanest way to go for.
thanks!
(I am an angular newbie, so excuse me if the answer to the problem is rather simple)
I'm getting this error when a qr code is recognized. It occurs in line 46 of qr-scanner.js.
Any ideas what this could be? Alternatively, is there an unminified version of jsqrcode-combined.min.js that I could look through to find the problem myself?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.