pwnall / chromeview

Proof of concept Android WebView implementation based on Chromium code
1.69k stars 434 forks source link

read resources form assets folder #31

Open GG-coder889 opened 10 years ago

GG-coder889 commented 10 years ago

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