Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get it to read from project directory #16

Open
filipeximenes opened this issue May 19, 2015 · 1 comment
Open

Cannot get it to read from project directory #16

filipeximenes opened this issue May 19, 2015 · 1 comment

Comments

@filipeximenes
Copy link

I'm trying to play an mp3 file that is located in the www folder, but can't get it to work [in Android].
If I play it from a internet url, it works perfectly, but locally it just doesn't work:

This works:

window.audioplayer.playfile( 
      successCallback,  
      function(r){console.log(r);},  
      "http://www.tonycuffe.com/mp3/tailtoddle_lo.mp3",  
      {"title": "Test"},
      0, {});

This does not:

window.audioplayer.playfile( 
      successCallback,  
      function(r){console.log(r);},  
      "file:///android_asset/www/u.mp3",  
      {"title": "The Myth"},
      0, {});

I downloaded the file and I'm testing with it to make sure it's not a problem with the file.

@manojpj
Copy link

manojpj commented Mar 19, 2018

Can you please write the code for streaming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants