Hello!
I was able to use PLAY command to play audio files without any problem. Just one thing though -- the audio stops playing when the device sleeps of auto-locks. I think that is not the normal behavior, if I'm not mistaken.
Is there any way that my mp3 continues playing even when device screen turns black already?
Thanks,
Genie
PLAY soundfile overriding device sleep?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: PLAY soundfile overriding device sleep?
Hi Genie,
You could try mobileLockIdleTimer that prevents the sleep but the music will keep playing
Simon
You could try mobileLockIdleTimer that prevents the sleep but the music will keep playing

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: PLAY soundfile overriding device sleep?
I guess that would do it! Thanks Simon for helping me out again.Simon wrote:You could try mobileLockIdleTimer that prevents the sleep but the music will keep playing![]()

So, it's really LC default for audio to stop playing when device sleeps?
Thanks,
Genie
Re: PLAY soundfile overriding device sleep?
I think it's actually that the device shuts down and liveCode doesn't have the ability to work in the same way a native player does.
Simon
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: PLAY soundfile overriding device sleep?
I see. Thanks Simon!Simon wrote:I think it's actually that the device shuts down and liveCode doesn't have the ability to work in the same way a native player does.
