nativescript-barcodescanner
Advanced tools
Comparing version 2.5.3 to 2.5.4
@@ -5,3 +5,2 @@ "use strict"; | ||
var frame = require("ui/frame"); | ||
var fs = require("file-system"); | ||
var BarcodeScanner = (function () { | ||
@@ -210,9 +209,2 @@ function BarcodeScanner() { | ||
this._beepOnScan = beepOnScan; | ||
if (this._beepOnScan) { | ||
var soundPath = fs.knownFolders.currentApp().path + "/tns_modules/nativescript-barcodescanner/sound/beep.caf"; | ||
this._player = new AVAudioPlayer({ contentsOfURL: NSURL.fileURLWithPath(soundPath) }); | ||
this._player.numberOfLoops = 1; | ||
this._player.volume = 0.7; | ||
this._player.prepareToPlay(); | ||
} | ||
}; | ||
@@ -248,4 +240,4 @@ QRCodeReaderDelegateImpl.prototype.readerDidCancel = function (reader) { | ||
} | ||
if (validResult && this._player) { | ||
this._player.play(); | ||
if (validResult && this._beepOnScan) { | ||
AudioServicesPlaySystemSound(1256); | ||
} | ||
@@ -252,0 +244,0 @@ }; |
# Change Log | ||
## [2.5.4](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.5.4) (2017-05-23) | ||
[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/18?closed=1) | ||
## [2.5.3](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.5.3) (2017-05-23) | ||
[Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/17?closed=1) | ||
## [2.5.2](https://github.com/EddyVerbruggen/nativescript-barcodescanner/tree/2.5.2) (2017-05-23) | ||
@@ -4,0 +12,0 @@ [Full Changelog](https://github.com/EddyVerbruggen/nativescript-barcodescanner/milestone/16?closed=1) |
{ | ||
"name": "nativescript-barcodescanner", | ||
"version": "2.5.3", | ||
"version": "2.5.4", | ||
"description": "Scan QR/barcodes with a {N} app.", | ||
@@ -5,0 +5,0 @@ "main": "barcodescanner", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1663499
28
623