Comments (5)
Solved!, try to change:
const CameraPlus = require('@nstudio/nativescript-camera-plus');
by
const CameraPlus = require('@nstudio/nativescript-camera-plus').CameraPlus;
from nativescript-camera-plus.
Your code looks okay so not really sure why the event doesn't fire for you 😕 - as for the saveToGallery false
and still saving. Can you provide OS, Android/iOS version and so on to try and reproduce it? Thanks
from nativescript-camera-plus.
Hi!
You should register the photoCapturedEvent like this:
`public camLoaded(e: any): void {
this.cam = this.camera.nativeElement;
this.cam.saveToGallery = false;
this.cam.on(CameraPlus.photoCapturedEvent, (event) => {
this.photoCapturedEvent(event);
});
public photoCapturedEvent(e: any): void {
if (isAndroid) {
console.log(e.data.android); // the path of the captured file, eg. "/storage/emulated/0/Android/data/COM.YOURAPP.NAME/files/IMG_1535045496885.jpg"
} else {
console.log(e.data.ios);
}
}`
from nativescript-camera-plus.
Hi,
@Scoottykun, were you able to fix this ?
If yes, can you show me the code ?
Thanks.
from nativescript-camera-plus.
Same issue heare, any update??
from nativescript-camera-plus.
Related Issues (20)
- Getting a Module not found error when running my project HOT 1
- NS7 - Class constructor ContentView cannot be invoked without 'new' HOT 1
- Input SIZE not working correctly HOT 1
- AAPT: error: duplicate value for resource 'attr/position' with config ''.
- Android - Turn off Video Audio
- Android - Front Facing Video Is Flipped
- Crash build android, error to read dependencies HOT 1
- Error in Nativescript 7.3.0 and angular 11.2.5 HOT 2
- last version m1 HOT 4
- Audio low after using camera HOT 3
- How to change the storage destination of the files?
- The app is crashing on starting camera on iOS (NS8 + Angular)
- Camera preview size is not proper (iOS)
- SwiftyCam build error with iOS 15 Beta HOT 1
- Bug on iOS in savePhoto()
- [nativescript-camera-plus] The plugin does not save photos to the gallery on Android
- android:attr/lStar not found
- Android 13 face camera picture asset rotated by 90 degrees HOT 1
- Cannot open the device gallery on Android HOT 1
- Low resolution
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-camera-plus.