camera-preview icon indicating copy to clipboard operation
camera-preview copied to clipboard

iOS still not getting data from stopRecordVideo()

Open stickypages opened this issue 1 year ago • 5 comments

Describe the bug I'm trying to get the video file, works on Android, but not on iOS. I noticed some others saying it wasn't working. Still getting 'empty'. Has there been any changes to this?

Smartphone (please complete the following information):

  • iOS

Additional context I have tried to wrap this code in a try{} but nothing get's caught. I get the first log, but not the others.

Hoping for some direction.

`console.log('[camera] Try getting video file path');

const result = await CameraPreview.stopRecordVideo() const fileName = result.value.substring(result.value.lastIndexOf("/") + 1); console.log('[camera] fileName: ', fileName); // << Does not log this console.log('[camera] Result: ', result); // << Does not log this`

stickypages avatar May 04 '24 07:05 stickypages

I appear to be having the same issue.

asorteberg avatar Jun 06 '24 21:06 asorteberg

Same issue for me ! On IOS i get nothing in response :/ @arielhernandezmusa @pbowyer

maximilien0405 avatar Jun 10 '24 23:06 maximilien0405

@asorteberg @stickypages Hey so since it seems like this plugin is not currently maintained, there is this new plugin called capacitor-community/video-recorder that works pretty well. It was made to fix all of the issues of this plugin related to video recording.

https://github.com/capacitor-community/video-recorder

maximilien0405 avatar Jun 18 '24 11:06 maximilien0405

Same here. Also mentioned here: https://github.com/capacitor-community/camera-preview/issues/307

Someone has fixed this for capacitor 5, but still no fix for this package. There is still a open pull request

https://github.com/capacitor-community/camera-preview/pull/308

wijzijnweb avatar Jun 25 '24 10:06 wijzijnweb

You can get it in our fork: use https://github.com/Cap-go/camera-preview

forgr-owner avatar Jan 13 '25 18:01 forgr-owner