Comments (3)
If I get some free time I plan to implement a lot of the android side in a native library which will help with performance, right now everything is on the JS thread so that's likely why it's a bit slow on start up. Moving things off the JS thread should provide a nicer experience all around.
from nativescript-camera-plus.
Logs:
JS: NativeScript-CameraPlus --- [video enabled:, false]
JS: NativeScript-CameraPlus --- [default camera:, rear]
JS: NativeScript-CameraPlus --- [*** onSurfaceTextureAvailable ***
JS: this.cameraId = 0]
JS: NativeScript-CameraPlus --- [*** _initCamera ***
JS: this.cameraId = 0 --- device: Letv x600 on SDK: 23]
JS: NativeScript-CameraPlus --- [opening camera with id = 0]
JS: NativeScript-CameraPlus --- [supported focus modes = [auto, macro, infinity, continuous-picture, continuous-video, manual, fullscan] --- device: Letv x600 on SDK: 23]
JS: NativeScript-CameraPlus --- [setting focus mode to FOCUS_MODE_CONTINUOUS_PICTURE]
JS: NativeScript-CameraPlus --- [*** _setCameraDisplayOrientation ***]
JS: NativeScript-CameraPlus --- [DISPLAY ROTATION = 0]
JS: NativeScript-CameraPlus --- [--- setting rotation for back facing camera ---
JS: --- info.orientation = 90]
JS: NativeScript-CameraPlus --- [result = 90]
JS: NativeScript-CameraPlus --- [targetRatio = 1.7777777777777777]
JS: NativeScript-CameraPlus --- [targetHeight = 1920]
JS: NativeScript-CameraPlus --- [size.width = 176, size.height = 144]
JS: NativeScript-CameraPlus --- [ratio = 1.2222222222222223]
JS: NativeScript-CameraPlus --- [size.width = 320, size.height = 240]
JS: NativeScript-CameraPlus --- [ratio = 1.3333333333333333]
JS: NativeScript-CameraPlus --- [size.width = 352, size.height = 288]
JS: NativeScript-CameraPlus --- [ratio = 1.2222222222222223]
JS: NativeScript-CameraPlus --- [size.width = 480, size.height = 320]
JS: NativeScript-CameraPlus --- [ratio = 1.5]
JS: NativeScript-CameraPlus --- [size.width = 480, size.height = 368]
JS: NativeScript-CameraPlus --- [ratio = 1.3043478260869565]
JS: NativeScript-CameraPlus --- [size.width = 640, size.height = 480]
JS: NativeScript-CameraPlus --- [ratio = 1.3333333333333333]
JS: NativeScript-CameraPlus --- [size.width = 720, size.height = 480]
JS: NativeScript-CameraPlus --- [ratio = 1.5]
JS: NativeScript-CameraPlus --- [size.width = 800, size.height = 480]
JS: NativeScript-CameraPlus --- [ratio = 1.6666666666666667]
JS: NativeScript-CameraPlus --- [size.width = 800, size.height = 600]
JS: NativeScript-CameraPlus --- [ratio = 1.3333333333333333]
JS: NativeScript-CameraPlus --- [size.width = 864, size.height = 480]
JS: NativeScript-CameraPlus --- [ratio = 1.8]
JS: NativeScript-CameraPlus --- [size.width = 960, size.height = 540]
JS: NativeScript-CameraPlus --- [ratio = 1.7777777777777777]
JS: NativeScript-CameraPlus --- [size.width = 1280, size.height = 720]
JS: NativeScript-CameraPlus --- [ratio = 1.7777777777777777]
JS: NativeScript-CameraPlus --- [size.width = 1088, size.height = 1088]
JS: NativeScript-CameraPlus --- [ratio = 1]
JS: NativeScript-CameraPlus --- [size.width = 1440, size.height = 1080]
JS: NativeScript-CameraPlus --- [ratio = 1.3333333333333333]
JS: NativeScript-CameraPlus --- [size.width = 1920, size.height = 1080]
JS: NativeScript-CameraPlus --- [ratio = 1.7777777777777777]
JS: NativeScript-CameraPlus --- [size.width = 1920, size.height = 1088]
JS: NativeScript-CameraPlus --- [ratio = 1.7647058823529411]
JS: NativeScript-CameraPlus --- [size.width = 1680, size.height = 1248]
JS: NativeScript-CameraPlus --- [ratio = 1.3461538461538463]
JS: NativeScript-CameraPlus --- [optimalSize = android.hardware.Camera$Size@3be67c0, optimalSize.width = 1920, optimalSize.height = 1088]
JS: NativeScript-CameraPlus --- [mPreviewSize = android.hardware.Camera$Size@3be67c0]
ActivityManager: Broadcast: Intent { act=DEBUG_SKIP_FRAME_REPORT flg=0x15b FromType=0xffffffff mCallingUid=10180 } ordered=false userid=0 callerApp=ProcessRecord{b4f089e 28930:com.island68.MapleAndroid/u0a180, isShadow:false}
from nativescript-camera-plus.
Facing same issue of very slow boot up time in Modal Page. Any suggestions?
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.