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

[ios-live-streaming] Unable to switch to front camera on low spec devices due to hard wired AVCaptureSession #60

Open
philcluff opened this issue Mar 1, 2021 · 0 comments
Assignees

Comments

@philcluff
Copy link
Contributor

Today, we use a fixed AVCaptureSession:

.sessionPreset: AVCaptureSession.Preset.hd1920x1080,

This means that if you're trying to use an iPhone 6/6s/6+, you're unable to use the front camera, as they only have 720p front cameras.

We should pick a session preset that's limited by the worst camera on the device instead.

The table on this SO answer should be useful: https://stackoverflow.com/questions/19422322/method-to-find-devices-camera-resolution-ios

@philcluff philcluff self-assigned this Mar 1, 2021
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

1 participant