ZXing.Net UWP camera freeze
0
I've used source code from ZXing.Mobile.Net from https://github.com/Redth/ZXing.Net.Mobile for UWP. I have issue with camere freeze. Sometimes it works without issue, but sometimes when camera start, preview showing some anomaly with random pixels, and after few seconds it freeze. Its always freezes at this line: var frame = await mediaCapture.GetPreviewFrameAsync(videoFrame) without throwing exception or break. System.Diagnostics.Debug.WriteLine("Linija 243"); var delay = ScanningOptions.DelayBetweenAnalyzingFrames; if (stopping || processing || !isAnalyzing || (mediaCapture == null || mediaCapture.CameraStreamState != Windows.Media.Devices.CameraStreamState.Streaming)) { timerPreview.Change(delay, Timeout.Infinite); return; } processing = true; SoftwareBitmapLuminanceSo...