capacitor-community / capacitor-community/camera-preview

iOS still not getting data from stopRecordVideo()

Open
#334 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
227
Forks
185
PR merge metrics
No merged PRs in 30d

Description

**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`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.