AVCaptureSession is blocking UI on main thread in ios8

In our application, it is used AVCaptureSession

to scan qr / barcode. There is a simple close button that has stopped responding in iOS 8.

It looks like the output buffer is overloading the main UI thread.

It looks like the current output is on the main thread:

[captureOutput setSampleBufferDelegate:self queue:dispatch_get_main_queue()];

      

Should I run all this on a separate thread? Current attempts to start a background thread have failed.

+3
ios8 avcapturesession avcapture


source to share


No one has answered this question yet

Check out similar questions:

23
How to use AVCaptureSession with slide and split view in iOS 9?
12
AVCaptureSession with multiple outputs?
3
NSRunLoop and GCD Queues
2
Problems adding AVCaptureSession with ios8
2
AVCaptureSession stopRunning hangs main thread on iOS8
2
Full audio recording when switching cameras using AVCaptureSession and AVAssetWriter
1
AVCaptureSession addOutput takes a long time second time
1
AVCaptureSession Preview
0
AVCaptureSession slows down iOS8 - Xamarin
0
AVCaptureSession didFinishRecordingToOutputFileAtURL: not called when an interrupt occurs (e.g. control center)



All Articles
Loading...
X
Show
Funny
Dev
Pics