chromeview icon indicating copy to clipboard operation
chromeview copied to clipboard

read resources form assets folder

Open GG-coder889 opened this issue 10 years ago • 0 comments

how can i read res form assets folder? when i write the code as below var audio = new Audio(); audio.src = "audio/bg.mp3"; audio.addEventListener("canplaythrough", function() { alert('The file is loaded and ready to play!'); }, false); it comes error:

Unable to read file: file:///android_asset/audio/bg.mp3

GG-coder889 avatar Sep 02 '13 13:09 GG-coder889