You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/storage/emulated/0/Android/data/com.bundle.id/files/assets/sound-abc123.mp3: open failed: ENOENT (No such file or directory)
To clarify com.bundle.id is YOUR application right? ENOENT is typically an error signaling that the file does not exist. Android will however produce ENOENT errors on files that exists but does not have permission to access that file.
If you're attempting to access another apps files that will no longer work over direct filesystem under Android's scoped storage system introduced in API 29.
Bug Report
Problem
On Android 14 (Pixel 5) I can no longer play MP3 files from the bundle either directly or via https://localhost.
Using Cordova Android 12.0.1 and cordova-plugin-media 7.0.0
I'm using Vite, so all of the files end up in assets/sound-abc123.mp3
Not doing anything fancy, just:
let foo = new Media('assets/sound-abc123.mp3') or https://localhost/assets/sound-abc123.mp3
foo.play()
/storage/emulated/0/Android/data/com.bundle.id/files/assets/sound-abc123.mp3: open failed: ENOENT (No such file or directory)
It WILL play, however, from the internet, i.e., new Media('https://some.website.abc/foo.mp3')
Thanks for any help!
What is expected to happen?
The sound should play.
What does actually happen?
I get a code 1 (or file not found when I experiment with other ways to get the file)
Information
This code worked on Android 12.
Command or Code
let foo = new Media('assets/sound-abc123.mp3') or https://localhost/assets/sound-abc123.mp3
foo.play()
Environment, Platform, Device
Android 14, Pixel 5
Version information
Checklist
The text was updated successfully, but these errors were encountered: