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

How can I switch to back camera? #4

Closed
AntonKuznetsov opened this issue Jun 27, 2016 · 3 comments
Closed

How can I switch to back camera? #4

AntonKuznetsov opened this issue Jun 27, 2016 · 3 comments

Comments

@AntonKuznetsov
Copy link

Hello
Could you please tell me how can I switch to back camera?
The lib uses frontal camera by default.
Thanks

@AntonKuznetsov
Copy link
Author

Nevermind, I've found the answer my self.
Thanks for the awesome library!

@chenliming777
Copy link

you can try captureDevicePosition

@ollyde
Copy link

ollyde commented Apr 30, 2020

Example of switching camera's.

self.session.captureDevicePosition = (AVCaptureDevice.Position.front == session.captureDevicePosition) ? .back : .front

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

No branches or pull requests

3 participants