Camera preview problems


#1

Hi.

I am kind of lost in how to access the camera preview in typescript and angular and have not been able to find much using google and youtube unfortunately.

Basically what I am looking for is “getting me started code” for a component that allows a user to f.x. take a selfie look in the takeselfies.component.ts and takeselfies.html files and the plugins necessary for making the code

Can anyone here help me?


#2

I have an app in the store that you can try; it has a ‘share a selfie’ feature that allows the user to either pick an image from the camera roll, or take a new picture with the Camera plugin.

This is the code (links to the AppStores are in the main readme): https://github.com/EddyVerbruggen/nativescript-pluginshowcase/blob/8405ad63325053ea33ba211c3677a99b00f36f34/app/speech/speech.component.ts#L280-L339


#3

Thanks, I´ll give it a shot and let you know how it goes


#4

Worked like a charm, thank you very much :smiley: