PLAY soundfile overriding device sleep?

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

PLAY soundfile overriding device sleep?

Post by genie » Tue Sep 24, 2013 2:05 am

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

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: PLAY soundfile overriding device sleep?

Post by Simon » Wed Sep 25, 2013 10:23 pm

Hi Genie,
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!

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: PLAY soundfile overriding device sleep?

Post by genie » Thu Sep 26, 2013 3:26 am

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

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: PLAY soundfile overriding device sleep?

Post by Simon » Thu Sep 26, 2013 3:54 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

genie
Posts: 108
Joined: Thu Dec 01, 2011 7:19 am

Re: PLAY soundfile overriding device sleep?

Post by genie » Fri Sep 27, 2013 2:49 am

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! :)

Post Reply