mpmusicplayercontroller

playing iPod music and avaudioplayer together

I am trying to write an application where the user records a sound and would be listening to the same with a background music from music library. However, when i try to play the recorded file using AVAudioplayer, the background music (iPod Player) is going very low and not audible. Is there any session property i need to set for playing ...

Change color of navigation bar of the MPMediaPickerController, possible?

I have a MPMediaPickerController that lets the user pick his/her own songs in my app. Problem is my app has the "black" navigation bar throughout and the picker is the standard blue. Now I know it's not allowed/possible to subclass the picker but is there any other way to change the navigation bar to "black"? ...

MPMusicPlayerController: iPod stops sending notifications, when iPod App is terminated in background

I am using a music player property for iPod player controller. // .h @property (nonatomic, retain) MPMusicPlayerController *ipodPlayer; // .m ipodPlayer = [MPMusicPlayerController iPodMusicPlayer]; NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; [notificationCenter addObserver:self selector:@selector(...

How to have a sound consistently looped while button is pressed and stopped on release?

My question is a very simple one i'm sure. It's just I'm not quite sure how to effectively describe what i'm trying to achieve. Anyway to the point, I have a simple button, I know how to "link" a raw sound file to hand make it play. BUT what i want to do is maybe link a 3 second sound to the button and just have it loop while the user ...

How to use MPMusicPlayerController with AVAudioPlayer

Hi All, I am trying to play an in app audio with ipod the code I am using to play the audio file is: Code: [[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayback error: nil]; UInt32 doSetProperty = 1; AudioSessionSetProperty (kAudioSessionProperty_OverrideCategoryMixWithOthers, sizeof(doSetP...

getting the next and previous track if using iPodMusicPlayer

Hi, Im using an iPodMusicPlayer for my MPMusicController. My question is once my appplication is launched and will continue what the iPod app is playing, can i retrieve the MPMediaItem of the next and previous track of the iPod music app? I cant seem to find a way to know if user chose albums, artists or songs as his/her choice on th...

Can i use MPMoviePlayerController and MPMusicPlayerController at the same time ?

Hi, all ! Can I play sound by MPMusicPlayerController (from iPod) and video by MPMoviePlayerController at the same time? I need change tracks sometime (use a lot of tracks for any video). My video has no sound. When i run playing track it is playing good, but when i loading video and [MPMoviePlayerController play], then video is playin...

video only shows the first frame on iPad

I have an iPad application that allows a user to select between 5 different videos. However, three of these videos only display the first frame when selected. These videos were all made in iMovie, exported (shared) to iTunes, and added to the application bundle. These videos work fine both on the Mac AND on the iPad if I sync them throu...

Position of nowPlayingItem in a playlist/Adding categories to MPMediaItem

I'm trying to figure out the track number of the MPMusicPlayerController's nowPlayingItem in its playlist. This would be super simple, except for the fact that the same song can appear multiple times in the same playlist (as in they both point to the same file). For example, if a playlist consisted of Song 1, Song 2, Song 1, Song 3, Song...

How to check if ipod has music files.

Hi All, I am trying to have my app play music from ipod using MPMusicPlayerController but there are devices which do not have music in there ipod library. Can anyone tell me if there is a way to check whether there is music in the ipod library or not before initializing the ipod player. Thanks in advance. ...

Music volume influences sound effects volume

Hi! On one hand, I have a MPMusicPlayerController playing music, on the other, I play sound effects like this: NSString *sound_path=[[NSBundle mainBundle] pathForResource:@"snd_special_explode" ofType:@"caf"]; CFURLRef url =(CFURLRef)[NSURL fileURLWithPath:sound_path]; SystemSoundID specialExplode; AudioServicesCreateSystemSoundID(...

Can I copy a part of an audio file stored in Ipod Library and save it with different name?

Hi I have went through a lot of searching and have deduced that 1) I can query for a specific audio file from Ipod Library and can play it using MPMusicPlayerController Library. But the problem is I cannot copy a part of this song and save it with diffrent name. 2) Using AVAudioPlayer I can modify or copy a part of an audio file but th...