Issue
I have a Capacitor app (Capacitor 4) which uses the Cordova Media plugin to play sound, as there is no equivalent native plugin for Capacitor 4 yet.
I can play sounds from the web via urls, but not from the app's own fixed assets directory, it just says file not found.
I've tried public/assets/audio/sound.mp3 and assets/audio/sound.mp3 so far. The latter path works in Cordova apps.
Solution
Got around this with the pre-release version of the capacitor native audio plug in - @capacitor-community/native-audio@4.0.0-0
Last commit was three months ago.
Answered By - rev_dev_01
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.