How to specify the correct path for media in assets for PhoneGap

I play audio using PhoneGap

var media = new Media("/android_asset/book/snd/kolobok_ua.mp3", onMediaSuccess, onMediaError); if (seek){ media.seekTo(seek); } media.play(); 

As you can see, I use "android_asset" here and it will not work for iphone.

What is the best practice for indicating the path for resources in assets?

+4
source share

All Articles