title: Is it possible to have a camera preview AND scan barcodes in Ionic/Cordova?
body: <p>So I'm currently swimming across the web to try to investigate what already exists for which are compatible for Cordova/Ionic/AngularJS on iOS and Android only; just below is a quick view of what I've come across, then I'll explain what I'm trying to achieve. I've come across <a href="https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview" rel="nofollow noreferrer">cordova-plugin-camera-preview</a>, which is absolutely ideal for the approach I would like to take; basically, embed it into my HTML without leaving my app. And I've also come across <a href="https://serratus.github.io/quaggaJS/" rel="nofollow noreferrer">quaggaJS</a> which appears to be an interesting barcode scanner. Now I have used <a href="http://ngcordova.com/docs/plugins/barcodeScanner/" rel="nofollow noreferrer">cordovaBarcodeScanner</a> but this appears to exit my application which isn't my ideal approach.</p>
  
  <h1>What I am trying to achieve</h1>
  
  <p>Within my Ionic/Cordova mobile app, I am trying to achieve a live preview barcode scanner. So the idea is I would navigate to a page in my app which would instigate an embedded camera view and provide a live feed of what can be seen via my camera (what <a href="https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview" rel="nofollow noreferrer">cordova-plugin-camera-preview</a> provides is perfect for this approach) but of course this plugin does not provide any barcode (EAN) scanning capabilities. So at this point I found quaggaJS which seems like a good approach, however, I'm currently failing to get quaggaJS to work with my Cordova project which is a shame.</p>
  
  <p>Would what I'm trying to achieve already exist, or is it possible to get the two plugins I'm referring to, to work with a Cordova project?</p>
  
  <p>Any help is highly appreciated.</p>