capacitor-community / capacitor-community/native-audio

assetPath and audio file placement

Open
#41 21 comments 8 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
154
Forks
78
PR merge metrics
No merged PRs in 30d

Description

**Description of the bug:**
In the Readme.md the following is stated:

```
All audio place in specific platform folder
Andoid: android/app/src/assets
iOS: ios/App/App/sounds
```
This seems to be incorrect!

**Suggestion for a fix:**
All audio should be placed inside the specific folders:
Android: android/app/src/main/assets
iOS: ios/App/App/public/assets/

Note: in the case of Android the `assethPath` is just the filename with the extension like `'sound.mp3'` but in the case of iOS
you need to specify more details like: `assetPath: 'public/assets/sound.mp3'`

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.