phonegap / phonegap-plugin-barcodescanner

cross-platform BarcodeScanner for Cordova / PhoneGap
MIT License
1.27k stars 1.42k forks source link

Windows Phone scanner makes continues shutter sound #119

Open SunboX opened 8 years ago

SunboX commented 8 years ago

The Windows Phone (cordova add platform windows) scanner makes a continues shutter sound until it recognizes a bar code. There are other Windows Phone apps that do not seem to need this 'technique' of continuous picture taking. Someone with experience in WinJS/C# should take a look at this.

Maybe this one is helpful to fix this issue: https://github.com/mmaitre314/VideoEffect#realtime-video-analysis-and-qr-code-detection

SunboX commented 8 years ago

related to https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/85

ghost commented 8 years ago

Hi

Have you found a solution to your problem?

SunboX commented 8 years ago

No, there's no simple solution. Someone has to extend the windows universal cordova scanner and use the Nokia Imaging SDK to get a still image from the camera video stream.

SunboX commented 8 years ago

You can use cordova wp8 platform, but that is not universal.

ghost commented 8 years ago

By universal, do you mean all windows phone devices or?

SunboX commented 8 years ago

:arrow_right: https://msdn.microsoft.com/en-US/library/windows/apps/dn726767.aspx

SunboX commented 8 years ago

There's someone from Xamarin working on the ZXing.NET Windows Universal sample. This may help implementing the Cordova plugin: https://github.com/Redth/ZXing.Net.Mobile/tree/master/Samples/WindowsUniversal

vladimir-kotikov commented 8 years ago

@SunboX, seems they don't support Windows 8/8.1/Phone 8.1.

As for universal apps, the Barcode Reader now uses getPreviewFrameAsync to get video frames without any delay and shutter sound - see https://github.com/phonegap/phonegap-plugin-barcodescanner/commit/521d427ed418d2288a1b31a11398b99f54fb1f5d