Music in Simulator but not on device?

Hi all,

I’m using audio.loadStream to load in a song. In the simulator I can hear it without any issues. When I do a build for android and test it on my phone, no song is played. I’ve tested this with both and mp3 and an ogg and it still makes no difference.

Anyone have any clue as to why this is happening? 

Thanks

Ed

Hi Ed,

Can I see a little code about how you load this file, and how you play it? Both of those formats should work fine on Android. Can you build and install our sample “AudioPlayer” project and see if the result varies on your phone? It’s located in your Corona application folder here:

CoronaSDK > SampleCode > Media > AudioPlayer

Thanks,

Brent

file names are case sensitive on the device

That’s it! Almost annoyed it was that simple. 

Legend!

Thank you blomjens. 

Happy to help :slight_smile:

Hi Ed,

Can I see a little code about how you load this file, and how you play it? Both of those formats should work fine on Android. Can you build and install our sample “AudioPlayer” project and see if the result varies on your phone? It’s located in your Corona application folder here:

CoronaSDK > SampleCode > Media > AudioPlayer

Thanks,

Brent

file names are case sensitive on the device

That’s it! Almost annoyed it was that simple. 

Legend!

Thank you blomjens. 

Happy to help :slight_smile: