Page 1 of 1

PLAY soundfile overriding device sleep?

Posted: Tue Sep 24, 2013 2:05 am
by genie
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

Re: PLAY soundfile overriding device sleep?

Posted: Wed Sep 25, 2013 10:23 pm
by Simon
Hi Genie,
You could try mobileLockIdleTimer that prevents the sleep but the music will keep playing :)

Simon

Re: PLAY soundfile overriding device sleep?

Posted: Thu Sep 26, 2013 3:26 am
by genie
Simon wrote:You could try mobileLockIdleTimer that prevents the sleep but the music will keep playing :)
I guess that would do it! Thanks Simon for helping me out again. :)

So, it's really LC default for audio to stop playing when device sleeps?


Thanks,
Genie

Re: PLAY soundfile overriding device sleep?

Posted: Thu Sep 26, 2013 3:54 am
by Simon
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

Re: PLAY soundfile overriding device sleep?

Posted: Fri Sep 27, 2013 2:49 am
by genie
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.
I see. Thanks Simon! :)