Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVCaptureSession startRunning and stopRunning performed on Main queue #5

Open
DimaVartanian opened this issue Mar 17, 2015 · 1 comment

Comments

@DimaVartanian
Copy link

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! :)

@lauraskelton
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants