Added front/back camera option

This commit is contained in:
Woon Tien Jing
2014-12-06 16:38:00 +08:00
parent 40e48e6c7c
commit 4ef4dfb51f
4 changed files with 35 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ ZBar.prototype = {
params = params || {};
if(params.text_title === undefined) params.text_title = "Scan QR Code";
if(params.text_instructions === undefined) params.text_instructions = "Please point your camera at the QR code.";
if(params.camera != "front") params.camera = "back";
exec(success, failure, 'CsZBar', 'scan', [params]);
},