You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 7, 2018. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: