Skip to content

POC(liveness): allow back camera selection#5370

Draft
esauerbo wants to merge 1 commit intoliveness/alphafrom
back-camera
Draft

POC(liveness): allow back camera selection#5370
esauerbo wants to merge 1 commit intoliveness/alphafrom
back-camera

Conversation

@esauerbo
Copy link
Copy Markdown
Contributor

@esauerbo esauerbo commented Jul 8, 2024

Description of changes

Issue #, if available

Description of how you validated changes

Checklist

  • Have read the Pull Request Guidelines
  • PR description included
  • yarn test passes and tests are updated/added
  • PR title and commit messages follow conventional commit syntax
  • If this change should result in a version bump, changeset added (This can be done after creating the PR.) This does not apply to changes made to docs, e2e, examples, or other private packages.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jul 8, 2024

⚠️ No Changeset found

Latest commit: d875356

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Copy Markdown
Contributor

@thaddmt thaddmt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

isStartView &&
selectableDevices &&
selectableDevices.length > 1 &&
(!isMobileScreen || (allowBackCamera && isFaceMovementChallenge));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, only allow camera selection on mobile if allowBackCamera and is face movement challenge

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, this is a very readable conditional, nice work!

* Optional parameter for advanced options for the component
*/
config?: FaceLivenessDetectorCoreConfig;
allowBackCamera?: boolean;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we will want to have a conversion about whether this should be in the config or a top level prop.

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

Successfully merging this pull request may close these issues.

3 participants