mpmusicplayercontroller

iPhone SDK - check iPod playlist to see whether there is a next track to skip to

Is there a way to inspect the current playlist from MPMusicPlayerController to see whether there is another track to play in the queue? It's possible to detect this after as skipToNextItem will stop playback and change playbackState, but I want to find out before, so I can disable the skip track function if there are no more tracks to s...

How to play the iPod Library file in the AVPlayer..

Hi, I need your help Please tell me how you taken the ipod library music file in the AVAudioPlayer? Thanks, Karthick ...

About MPMusicPlayerController and does AVAudioPlayer works in iPhoneSimulator?

From http://stackoverflow.com/questions/2111866/iphone-can-i-do-audioservicesplaysystemsound-looping-with-scheduler MPMusicPlayerController doesn't work because it is about iPod music library and I can't add a music file to it since I'm doing an iPhone game and not interacting with the outside iPod library. Does AVAudioPlayer works in ...

How to stop MPMusicPlayerController from enabling screen locking

I have an application that requires the iPhone screen to remain active (or not, depending on user choice). I've done this by disabling the application idle timer, which works fine and dandy until I start playing media via the MPMusicPlayerController. Due to a bug in the SDK, this then reenables the idle timer with no apparent way to di...

How do I play music using MPMusicPlayerController?

Hi Guys, Can any one suggest me how to play the music using MPMusicPlayerController in my application. Anyone's help will be very much appreciated. Thank you, Monish. ...

Using MPMusicPlayerController, setting musicPlayer.currentPlaybackTime to seek but takes second to take effect.

I have a UISlider acting as the scrubber. As the thumb is dragged I execute the following: - (void) _seekTo:(double)playbackTime { mPlayer.currentPlaybackTime = playbackTime; } That works fine, music seeks forward. Upon releasing the thumb, I restart the NSTimer to send time updates to keep the UISlider in synch. Problem is, u...

Why is setting queue in a MPMusicPlayerController only adding first track in collection?

I have an Album object containing a MPMediaItemCollection of the album's tracks. When I add this collecton to the queue with the following line of code, only the first track gets added. [iPodMusicPlayer setQueueWithItemCollection:album.mediaItems]; Oddly enough when I add with the following line of code, everything works as expected....

Online youtube music player

Does anyone knows the htm/flash code which acts like music plyer using youtube video? ...

Can I get an audio session / apply audio units to playback from MPMusicPlayerController?

Hi there, I'd like to take control of the audio coming from MPMusicPlayerController (i.e., playing from the iPod library). For example, I'd like to apply EQ to it or do DSP, reverb, that kind of thing. Is this possible? Is there an audio session that I can grab a handle on? Or, perhaps is there some way to play back files from the iPod ...

iPodMusicPlayer doesn't send notifications, if it is created in background

If iPodMusicPlayer is created in background, then I doesn't send notifications about playback state changes. Here is code: - (void)initMusicPlayer { musicPlayer = [MPMusicPlayerController iPodMusicPlayer]; NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; [notificationCenter addObserver:self ...

help me pick the right iPhone audio class - MPMoviePlayer vs AVAudioPlayer vs MPMusicPlayer

Does anyone know of a good tutorial on the distinction between the MPMoviePlayer vs AVAudioPlayer vs MPMusicPlayer? I want to play audio from an mp3 file available at an external URL. Ideally it is played in an iPod-like audio view. I toyed with MPMoviePlayer but it appears to be more suitable for video, as when audio starts a "movi...

Accessing Channel Levels when Using +applicationMusicPlayer

When playing music from the users iPod library via the [MPMusicPlayerController applicationMusicPlayer], is there a way to access the channel information much in the same way that you can with the AVAudioPlayer. The goal is to create a level meters while the song is playing. ...

Retrieving the currently playing MPMediaPlaylist on iPhone

I'm trying to add some playlist support to an iPhone app that I'm working on, and need to access what playlist is currently playing music from. Not an exact song, but the entire playlist. Is there any way of doing this? I've been all through the API and haven't found anything. Thanks for any help! ...

Background Audio and Remote Control Support using MPMusicPlayerController on iOS 4. Is this even possible??

I've spent two days on this and have gotten nowhere. I'm trying to use [MPMusicPlayerController applicationMusicPlayer] to play audio chosen from the user's iPod library and have it run in the background as well as support remote events. Now getting the music actually playing is the easy part. Get the instance, pick the songs, assign ...

iPhone SDK: Use MoviePlayer and MusicPlayer at the same time?

Is it possible to use the MoviePlayer and the MusicPlayer at the same time within an app? This doc http://developer.apple.com/iphone/library/releasenotes/General/RN-iPhoneSDK-4_0/index.html implies it should not be a problem: "In iOS 3.2 and later, the MPMoviePlayerController class now defaults to share the application's audio sessio...

(iPhone) How to enable ipod controls in the background to control non-ipod music (in ios4) ?

A good example of what I'm trying to accomplish is implemented in the latest version of the Spotify iPhone application for (Pandora seems to have the same feature) . When Spotify is in the background, double tapping opens the "multi-task dock", where the ipod controls (play/pause, forward etc) allow to control the music playback of Spot...

MPMusicPlayerController stops working after iTunes sync

I know there's a similar question MPMusicPlayerController stops sending notifications, but the answer to that question doesn't solve this problem. I'm using iOS 4, and this happens on both multitasking-enabled devices and non-multitasking devices. I've tested on iPhone 4, iPhone 3GS, iPod touch 2G, and iPod touch 1G. I have a project ...

Iphone sdk support for playing mp3 files over the network

Hi I am writing an application to contact a webserver running on a desktop to access and play mp3 files. Here is what I tried so far: I have used MPMusicPlayerController (and tried UIWebview) to handle the audio file and it automatically plays after progressively downloading the file. There is no way to handle skipping songs and ...

iPhone App backgrounding with MPMusicPlayer

Hi, I'm working on an iPhone iOS4 application that incorporates playing music from the user's iPod library. I also want to keep track of what songs have been played and be able to change the song randomly, even while in the background. So I set the music player using: [self setMusicPlayer: [MPMusicPlayerController iPodMusicPlayer]]; ...

Audio Session "Ducking" Broken in iOS 4...?

Hello all, I've an app which uses the MPAudioPlayerController to access the iPod music library, and an AVAudioPlayer to overlay audio on top of the music. I've used this documentation as a guide. Specifically: Finally, you can enhance a category to automatically lower the volume of other audio when your audio is playing. This could...