Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 03-08-2010, 07:01 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 35
Default Play music while application is locked

Hi,

I want to play the music continuously in through my application whether the ipod /iphone locked the screen or screen is not locked.

Thanks
antilantil is offline   Reply With Quote
Old 03-09-2010, 01:07 AM   #2 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 35
Default

Quote:
Originally Posted by antilantil View Post
Hi,

I want to play the music continuously in through my application whether the ipod /iphone locked the screen or screen is not locked.

Thanks
No reply means what ? isnt any solution for playing sound when application is locked?
antilantil is offline   Reply With Quote
Old 03-09-2010, 06:42 AM   #3 (permalink)
Mobile and Web solutions
 
hello24's Avatar
 
Join Date: May 2009
Location: London, UK
Posts: 72
Send a message via Skype™ to hello24
Default

As far as I know, locking the screen will terminate the app.
Also, try to be a bit more patient.
hello24 is offline   Reply With Quote
Old 03-14-2010, 01:38 AM   #4 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 18
Default Music Player

Quote:
Originally Posted by antilantil View Post
Hi,

I want to play the music continuously in through my application whether the ipod /iphone locked the screen or screen is not locked.

Thanks
Hi,

Check out this book from Apress. Chapter six outlines the development of the pandora player and it specifically talks about the code needed to ensure the device does not go to sleep so music can keep playing as you have asked for. The source code is free from this link as well. Hope this helps!

APRESS.COM : iPhone Cool Projects : 9781430223573
iphonedave is offline   Reply With Quote
Old 03-14-2010, 08:22 PM   #5 (permalink)
Will Work for Food!
 
itzdark's Avatar
 
Join Date: Apr 2009
Posts: 579
Send a message via AIM to itzdark Send a message via MSN to itzdark
Default

you need to set the audio session category to media playback and set it to allow mixing if you want to play both ipod and application music.

iPhone Dev Center: Audio Session Programming Guide: Audio Session Cookbook
__________________

Check out my apps

Developers, check out study buddy. I use it everytime I code. It's great for those late night coding sessions.
Unofficial Ad Hoc Distribution Guide || Join my cooperative ad hoc testing group
iSoothe Promotional Video
Contact Me
itzdark is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 270
18 members and 252 guests
14DEV, ADY, ArtieFufkin10, Dani77, HemiMG, IphoneSdk, jakerocheleau, JasonR, jimbo, MACralik, NSeven, prchn4christ, Rudy, silverwiz, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:57 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0