FastttCamera icon indicating copy to clipboard operation
FastttCamera copied to clipboard

`AVCaptureSession` `startRunning` and `stopRunning` performed on Main queue

Open DimaVartanian opened this issue 9 years ago • 1 comments

The Apple docs state:

(startRunning)The startRunning method is a blocking call which can take some time, therefore you should perform session setup on a serial queue so that the main queue isn't blocked (which keeps the UI responsive). See AVCam for iOS for an implementation example.

(stopRunning)This method is synchronous and blocks until the receiver has completely stopped running.

I think this project is great and can be improved even more by moving some of the session setup into a dedicated NSOperationQueue for better performance. Keep it up! :)

DimaVartanian avatar Mar 17 '15 02:03 DimaVartanian

Thanks! I'm working on switching all of the device communications over to a dedicated serial NSOperationQueue, with delegate methods called on the main queue to update the UI as necessary after changes to the device complete.

lauraskelton avatar Mar 17 '15 18:03 lauraskelton