Skip to content

Camera selfie mode and capture the selfie in a customized frame #48

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

Closed
Dharmendta opened this issue Jul 17, 2017 · 2 comments
Closed

Camera selfie mode and capture the selfie in a customized frame #48

Dharmendta opened this issue Jul 17, 2017 · 2 comments
Labels

Comments

@Dharmendta
Copy link

I have a screen in my app where user can upload his profile pic. whenever he opens this screen, camera should open directly in selfie mode (without any user interaction) and should allow him to take his selfie. The selfie captured by camera should be loaded in a frame for preview.

Can someone please suggest:

  1. how can I load the camera to directly capture selfie?
  2. how can I load the selfie captured by camera in a frame of my screen?

Thanks.

@tsonevn
Copy link
Contributor

tsonevn commented Aug 10, 2017

Hi @Dharmendta,
Excuse us for the delay in reply.
After a little research, we found that there is no easy way to achieve this functionality without making changes inside the nativescript-camera plugin. We will mark this as a feature request and you could keep track on the issue for further info.

DimitarTachev pushed a commit that referenced this issue Nov 3, 2017
@DimitarTachev
Copy link

Hi @Dharmendta,

Good news!

We recently added the cameraFacing option in the takePicture method. You could use it in order to set the front camera by default. It accepts either "front" or "rear" (default).

Regarding your second question, you could show the selfie everywhere in your app. Check the demo apps of the plugin for an example using the image component.

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

No branches or pull requests

3 participants