Page 1 of 1
Music Sleep Mode
Posted: Thu Oct 27, 2011 12:35 am
by mackus
Working on an app that plays a preset list of music files, preloaded when the app is compiled. When song is selected, it plays just fine until my 3 minute autolock on the iphone kicks in and the app music quietly shuts down in the sense that the audio music is no longer heard. Touching the screen brings up the passcode screen. After entering my passcode the app reappears and then continues play the music. Was wondering if it is possible to have the music continue even when the screen is off.
thx in advance
Re: Music Sleep Mode
Posted: Thu Oct 27, 2011 10:40 am
by bn
Hi mackus,
how do you play your music?
according to Jellicle in this lengthy thread:
http://forums.runrev.com/viewtopic.php? ... =75#p33328
Based on some advice from someone on the dev list I've started using the MPMoviePlayerController iOS control instead of the other methods. It keeps playing even when the display is put to sleep. As a bonus the user can scroll through the mp3 and manually stop and restart play. This replaces most of my sound play code, and is a much better solution.Awesome!
Maybe you try the MPMoviePlayerController. See iOS release notes for syntax.
Kind regards
Bernd
Re: Music Sleep Mode
Posted: Thu Oct 27, 2011 6:32 pm
by mackus
Thx Bernd. Just what I needed
