Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 23, 2012, 05:48 PM   #1
ArtOfWarfare
macrumors 603
 
ArtOfWarfare's Avatar
 
Join Date: Nov 2007
Send a message via Skype™ to ArtOfWarfare
Pause iPod when the current song ends?

Hi, I'm looking through Apple's docs on Audio sessions (such as this one: http://developer.apple.com/library/i...iguration.html ) and I can't tell whether it's possible to achieve what I want or not:

1 - Get the metadata of the iPod song playing when my app launches.
2 - Pause the iPod when it reaches the end of the current song.
3 - Play the audio for my own app (as AVAudioSessionCategoryPlayback - it should play even if the screen is locked.)
4 - Get the metadata of the iPod song that will play next.
5 - Resume the iPod when my app reaches the end of its own audio.

Ultimately, I want my app to coexist with the iPod. It should respect other audio applications that might be running by not abruptly stopping them when my app is launched (my app will have a button for the user to abruptly stop the iPod and start my app's audio if they want,) but it should stop them as they reach the end of their own audio. When my app reaches the end of its audio, it should resume whatever audio was previously playing.
__________________
Battery Status - On the Mac App Store
The only app that'll estimate when your wireless devices will need their batteries changed.
Including the ones paired with other Macs on your network.
ArtOfWarfare is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iTunes Menubar current song? TheBacklash Mac Applications and Mac App Store 1 Nov 24, 2013 12:57 PM
How to go to current song in iTunes 11 KRB24 Mac Applications and Mac App Store 7 Dec 12, 2012 11:41 PM
Random pause in iPod Classic arcureo iPod 6 Dec 7, 2012 07:30 AM
Apple Splitting iPod Touch Lineup Between Current and New Designs, Increasing Color Options for iPod Shuffle and New Nano? MacRumors MacRumors.com News Discussion 181 Sep 11, 2012 09:07 AM
Transfer Current iTunes Song to iPhone/iPad, etc. rick3000 iPhone Tips, Help and Troubleshooting 0 Jun 11, 2012 11:33 PM

Forum Jump

All times are GMT -5. The time now is 04:23 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC