CameraShot plugin facilitate to the developer to launch the camera by writing single line of code and take snapshot or record video on Android and iOS device.
Features :
Launch device camera from your unity app/game
Take snapshot
Record video
Snapshot and recorded video will save on default camera directory
Hii Devesh, Thanks for your great plugin. I have a issue in this plugin my app crashes when we launch camera and try to save the image in my app. Ashish verma already send you the Log. Please solve the issue and update it.
Hi Devesh, I wish to use Handheld. PlayFullScreenMovie and give the path to the file according to your debug. But my app won’t response in ios after that. Is there a problem with the file o I can’t acces this way ?
Thanks
Hi Devesh, your plugin camera shot is throwing error on some device which is : Native libraries not loaded - dropping message for CameraShotListener.OnErrorEvent
Hi Devesh, im using the plugin and the app is crashing after record a video on an Android 8 device
The steps to reproduce de error:
1 - Permission.RequestUserPermission(Permission.Camera) granted.
2 - AndroidCameraShot.LaunchCameraForVideoCapture(3)
3 - Opens the Camera and Start recording
5 - And When you stop recoding the app crashes
Do you know why it’s crashing? thank you
LogCat:
09-05 15:47:43.611: E/ActivityTrigger(1194): activityResumeTrigger: not whiteListedcom.realwear.poc/com.astricstore.camerashots.CameraShotActivity/1
09-05 15:47:43.623: E/AndroidRuntime(14869): FATAL EXCEPTION: main
09-05 15:47:43.623: E/AndroidRuntime(14869): Process: com.realwear.poc, PID: 14869
09-05 15:47:43.623: E/AndroidRuntime(14869): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=101, result=-1, data=Intent { dat=content://com.realwear.poc.provider/external_files/Movies/VID_20190905_084735.mp4 (has extras) }} to activity {com.realwear.poc/com.astricstore.camerashots.CameraShotActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.content.Context.bindService(android.content.Intent, android.content.ServiceConnection, int)' on a null object reference
09-05 15:47:43.623: E/AndroidRuntime(14869): at android.app.ActivityThread.deliverResults(ActivityThread.java:4271)
09-05 15:47:43.623: E/AndroidRuntime(14869): at android.app.ActivityThread.handleSendResult(ActivityThread.java:4315)
09-05 15:47:43.623: E/AndroidRuntime(14869): at android.app.ActivityThread.-wrap19(Unknown Source:0)
09-05 15:47:43.623: E/AndroidRuntime(14869): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1647)
09-05 15:47:43.623: E/AndroidRuntime(14869): at android.os.Handler.dispatchMessage(Handler.java:106)
09-05 15:47:43.623: E/AndroidRuntime(14869): at android.os.Looper.loop(Looper.java:164)
09-05 15:47:43.623: E/AndroidRuntime(14869): at android.app.ActivityThread.main(ActivityThread.java:6518)
09-05 15:47:43.623: E/AndroidRuntime(14869): at java.lang.reflect.Method.invoke(Native Method)
09-05 15:47:43.623: E/AndroidRuntime(14869): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:443)
09-05 15:47:43.623: E/AndroidRuntime(14869): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
09-05 15:47:43.623: E/AndroidRuntime(14869): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.content.Context.bindService(android.content.Intent, android.content.ServiceConnection, int)' on a null object reference
09-05 15:47:43.623: E/AndroidRuntime(14869): at android.media.MediaScannerConnection.connect(MediaScannerConnection.java:119)
09-05 15:47:43.623: E/AndroidRuntime(14869): at android.media.MediaScannerConnection.scanFile(MediaScannerConnection.java:243)
09-05 15:47:43.623: E/AndroidRuntime(14869): at com.astricstore.camerashots.CameraShotActivity.scanFile(CameraShotActivity.java:606)
09-05 15:47:43.623: E/AndroidRuntime(14869): at com.astricstore.camerashots.CameraShotActivity.onActivityResult(CameraShotActivity.java:551)
09-05 15:47:43.623: E/AndroidRuntime(14869): at android.app.Activity.dispatchActivityResult(Activity.java:7321)
09-05 15:47:43.623: E/AndroidRuntime(14869): at android.app.ActivityThread.deliverResults(ActivityThread.java:4267)
09-05 15:47:43.623: E/AndroidRuntime(14869): ... 9 more
09-05 15:47:43.655: E/ANDR-PERF-MPCTL(557): Invalid profile no. 0, total profiles 0 only
09-05 15:47:43.660: E/libc(827): Access denied finding property "persist.camera.stats.aetest"
09-05 15:47:43.660: E/mm-camera(827): <STATS_AIS ><ERROR> 173: dsps_send_req: DSPS Send Request Timeout!!
09-05 15:47:43.660: E/mm-camera(827): <STATS_AIS ><ERROR> 173: dsps_send_req: DSPS Send Request Timeout!!
09-05 15:47:43.660: E/mm-camera(827): <STATS_AIS ><ERROR> 173: dsps_send_req: DSPS Send Request Timeout!!
09-05 15:47:43.662: E/ActivityTrigger(1194): activityResumeTrigger: not whiteListedcom.realwear.launcher/com.realwear.launcher.ApplicationActivity/2000011
09-05 15:47:43.662: E/mm-camera(827): <ISP ><ERROR> 1005: isp_handler_control_streamoff: stream_off 2 2 ide 10004