I have set a song in corona simulator , and it can normal operation.
but make a apk in my phone, the song is disappear…
Dear , can you solve my problem ??
Thanks to you.
I have set a song in corona simulator , and it can normal operation.
but make a apk in my phone, the song is disappear…
Dear , can you solve my problem ??
Thanks to you.
Can you please post the code where the song is inserted into your app?
Maybe your doing this wrong… So lets say your name of the song is
"BackgroundMusic.m4a"
and you add your code like this
local backgroundMusic = audio.loadStream( "backgroundMusic.m4a" )
See how the “B” in background is Capitol? But when you add the music to start playing its lowercase… If you do that then the song WILL play in the simulator but it WONT play on the device if you build it…
NOTE: I haven’t tested this! Its my theory because this is what happens with adding images… So im not 100% sure this is the problem… But if this doesnt work for you then post code and we’ll be glad to help!
Good Luck!
Can you please post the code where the song is inserted into your app?
Maybe your doing this wrong… So lets say your name of the song is
"BackgroundMusic.m4a"
and you add your code like this
local backgroundMusic = audio.loadStream( "backgroundMusic.m4a" )
See how the “B” in background is Capitol? But when you add the music to start playing its lowercase… If you do that then the song WILL play in the simulator but it WONT play on the device if you build it…
NOTE: I haven’t tested this! Its my theory because this is what happens with adding images… So im not 100% sure this is the problem… But if this doesnt work for you then post code and we’ll be glad to help!
Good Luck!