[英]Cordova Barcode Scanner: keep camera on
I'm using Ionic to develop a scan application to validate tickets at events. 我正在使用Ionic开发扫描应用程序以验证事件中的票证。 Since their are usually large cues, the focus of the app is speed. 由于它们通常是大提示,因此应用程序的重点是速度。 I'm using BarcodeScanner plugin for Cordova. 我正在使用Cordova的BarcodeScanner插件 。 Out of the box, a scan action opens the camera, scans a code, closes the camera, and then gives me the code. 开箱即用的扫描操作将打开照相机,扫描代码,关闭照相机,然后提供代码。 Since opening and closing the camera takes up time, I would like to change this plugin to keeping the camera open, and having a popup on top of the camera feed when a code is scanned. 由于打开和关闭相机需要花费时间,因此我想将此插件更改为保持相机打开,并在扫描代码时在相机源上方弹出一个窗口。
I know I probably have to change the source files of the plugin, but I have no idea where to start. 我知道我可能必须更改插件的源文件,但是我不知道从哪里开始。 Maybe someone else has experience with this? 也许其他人对此有经验?
Any other free Cordova plugin which supports this is fine too. 任何其他支持此功能的免费Cordova插件也都可以。 Or maybe use a Barcode Scanner written in JS, like QuaggaJS ? 还是使用QuaggaJS之类的用JS编写的条形码扫描仪? How would I implement this in my Ionic app? 我将如何在Ionic应用程序中实现此功能? Because I figure I'll need to have camera access permission. 因为我认为我需要拥有相机访问权限。
嗨,这个问题与您使用的插件无关,问题是您的手机装有完整的应用程序,而且内存可能更少,因此这就是打开和关闭相机要花一些时间的原因
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.