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

Open
#60 0 comments 1 reaction 1 assignee View on GitHub

@philcluff is already working on this.

Since Mar 1, 2021.

Assessment

This issue has not been assessed yet.

Description

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

Dominant language
TypeScript
Stars
116
Forks
68
Avg merge
17h 45m
Merged PRs (30d)
6

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from muxinc/examples

All issues in muxinc/examples

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.