Replies: 1 comment
-
|
Try generating the URI with the Filesystem plugin's method |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. The plugin works great with external audio files. It also works well in
yarn devmode. However, it does not work at all inproductionmode. When obtaining the link throughnew URL('/audio/silence.mp3', import.meta.url).href, it looks like this:capacitor://localhost/audio/silence.mp3. The plugin cannot process such paths and throws an error in the consoleNSURLConnection finished with error - code -1002Can you advise how to work with local files correctly? Primarily with local files that are located in the public folder?
Beta Was this translation helpful? Give feedback.
All reactions