capacitor-community / capacitor-community/camera-preview

`capture()` and `startRecordVideo()` are NOT working in Android 14

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

Description

Throwing error when trying any method:

`{message: 'Camera is not running'}`

```
async recordVid() {
try {
let opt: CameraPreviewOptions = {
position: 'front',
width: window.screen.width,
height: window.screen.height
}
await CameraPreview.startRecordVideo(opt)

await new Promise(resolve => setTimeout(resolve, 5000))

const fileUrl = await CameraPreview.stopRecordVideo()
console.log(fileUrl)

}
catch (err) {
console.log(err)
}

}
```

Getting this error:

![Screenshot 2024-09-09 at 2 01 42 PM](https://github.com/user-attachments/assets/4b7b6334-9952-4080-9e9d-c445ae2d733c)

Added permissions in manifest:

```

```

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.