Lelelo1 / tns-linkimager

Apache License 2.0
0 stars 1 forks source link

Implementing camera #6

Open Lelelo1 opened 4 years ago

Lelelo1 commented 4 years ago

Implementing a camera...

Lelelo1 commented 4 years ago

I have encountered some issues with : https://github.com/nstudio/nativescript-camera-plus - it is breaking hot reload.

It looks like so:

CameraPlus

... giving fullscreen. It also works to set confirmation to false:

const cameraPlus = new CameraPlus();
cameraPlus.width = PercentLength.parse("100%");
cameraPlus.height = PercentLength.parse("100%");
cameraPlus.confirmPhotos = false;
cameraPlus.saveToGallery = true;

I have not managed to hook up and get response from photoCapturedEvent.

I can also only take one photo per session - that gets saved to photo gallery.

cameraPlus.confirmPhotos = true; won't always show confirmation dialog as it is supposed to...

(lots of problems with the plugin)

Lelelo1 commented 4 years ago

Consider building a camera plugin - using existing android and ios libs

Lelelo1 commented 4 years ago

I have not managed to hook up and get response from photoCapturedEvent.

I can also only take one photo per session - that gets saved to photo gallery.

Both are working during first run. When having put the app in background it stops working though: https://github.com/nstudio/nativescript-camera-plus/issues/101

Lelelo1 commented 4 years ago

I will go with cameraPlus - trying to get around issues I encounter.

Lelelo1 commented 4 years ago

Lots of issues with camera plus maybe try: https://www.npmjs.com/package/nativescript-camera-overfullscreen

Can't swipe back navigate on iOS with camera plus. When turning confirm photos on - the "take"/"retake" appears under ActionBar. Assigning to onLoaded crashes.

Can also try: https://github.com/NativeScript/nativescript-camera#readme

Lelelo1 commented 4 years ago

None of the mentioned alternatives are views - but the user is taken to a page where there is not fullscreen. No video support.