triniwiz / nativescript-videorecorder

:video_camera: NativeScript plugin for Video Recording . :video_camera:
Apache License 2.0
43 stars 29 forks source link

Video file is not created on the returned path #35

Closed Sharique-Hasan closed 6 years ago

Sharique-Hasan commented 6 years ago

Video recorder is not creating file on the path returned from the plugin on Nexus6 with Android 7.1.1. However it is creating correct file on other devices.

topara commented 6 years ago

The same happened in huawei p8 andrid 5,1

topara commented 6 years ago

Did someone found the solution?

topara commented 6 years ago

Here's teh solution: app.android.currentContext.onActivityResult = function (requestCode, resultCode, data) { if (requestCode === REQUEST_VIDEO_CAPTURE && resultCode === RESULT_OK) { let mediaFile=data.getData(); if (options.saveToGallery) { resolve({ file: mediaFile.getPath() }); } else { resolve({ file: mediaFile.getPath() }); } } else if (resultCode === RESULT_CANCELED) { reject({ event: 'cancelled' }) } else { reject({ event: 'failed' }) } }

Mubashir-Mohamed commented 6 years ago

For me, the video is getting recorded but when I try to show it in my app its saying its undefined. Can anyone help me solve this issue

triniwiz commented 6 years ago

Everyone here can try the v3 with the new camera view (would love some feedback) or they can stick with regular view also the next release has a fix for this

triniwiz commented 6 years ago

Update away 😄