Play sound on Phonegap app for Android

后端 未结 6 1155
时光说笑
时光说笑 2020-11-29 05:47

I try to play an mp3 file. This works if I change the path to the file on my local webserver, but if I run this on an Android device the sound is not played and no error is

6条回答
  •  北海茫月
    2020-11-29 05:47

    Did you try removing the /android_asset/www/ part in your code? Your app acts like a website and it thinks its root is the www folder itself.

    Edit: I'll edit comment. Code not showing somehow.

提交回复
热议问题