Questions tagged [mpmusicplayercontroller]

Use an MPMusicPlayerController object, or music player, to play media items from the device iPod library.

Use an object, or music player, to play media items from the device iPod library. There are two types of music player:

  • The application music player plays music locally within your app. It is not aware of the iPod app’s now-playing item, nor does it affect the iPod state.

  • The iPod music player employs the built-in iPod app on your behalf. On instantiation, it takes on the current iPod app state, such as the identification of the now-playing item. If a user switches away from your app while music is playing, that music continues to play. The iPod app then has your music player’s most recently-set repeat mode, shuffle mode, playback state, and now-playing item.

External Resources

374 questions
0
votes
1 answer

ISRC Code from AVMetadataItem objective c

I want to get the ISRC code for Local itunes songs. I can get the metaData by the following codes: MPMusicPlayerController *mp= mp = [MPMusicPlayerController applicationMusicPlayer]; NSURL *assetURL = [mp.nowPlayingItem…
0
votes
2 answers

MPMusicPlayerController volume deprecated - will an app using it be rejected?

I've never known it to happen before where Apple have deprecated a function because they've changed their mind about allowing developers access to it. I checked the App Store Review Guidelines, and there's no mention of it there. I'm curious - would…
Andrew
  • 7,693
  • 11
  • 43
  • 81
0
votes
0 answers

Resources not releasing with UIView

Here is how my two views are laid out: Essentially my goal is to have VC2 start 'fresh' every time, with everything new, including a MPMusicPlayerController. I was under the impression that an unwindsegue removed the instance of the new view as…
john cs
  • 2,220
  • 5
  • 32
  • 50
0
votes
0 answers

Objective C (iPhone) Strange Behaviour with musicPlayer API

I'm developing a music app for iPhone that uses the built in iPod library. I noticed a strange behaviour that I was able to replicate in Apple's sample code entitled "AddMusic" simply by NSLogging out what was going on. My question is: Has anyone…
MattLoszak
  • 585
  • 2
  • 5
  • 15
0
votes
1 answer

Need the ringer volume, getting the iPod volume

I need to know (and control) my sound volume. I get it like this: float volume = [[AVAudioSession sharedInstance] outputVolume]; NSLog([NSString stringWithFormat:@"MPVolumeView volume = %3.2f", volume]); The float that prints is the volume that is…
Paul Cezanne
  • 8,629
  • 7
  • 59
  • 90
0
votes
2 answers

How can I get the Current Playing Song Data in MPMusicPlayerController in ios app

I am working on songs playing in MPMusicPlayerController, now I want to get current Playing Song Data (ex : some.mp3) Please help me, thanks in advance
Nag Raj
  • 880
  • 1
  • 12
  • 18
0
votes
2 answers

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…
Chris Newman
  • 2,240
  • 2
  • 24
  • 30
0
votes
1 answer

AVQueuePlayer is pausing but play icon won't disappear

I'm building an application that uses an AVQueuePlayer to stream audio. I have my AVAudioSession set up with the category AVAudioSessionCategoryPlayback and I'm able to receive events from remoteControlReceivedWithEvent:. However, when I pause my…
AdamPro13
  • 7,232
  • 2
  • 30
  • 28
0
votes
1 answer

Dim volume of iPodMusicPlayer to 50% in iOS

I know that you can easily set the volume property of the music player, but I want to do it smoothly like Google Maps does when they use the voiceover for navigation instructions. I was wondering what the best way to do this is. Thanks!
Garrett
  • 11,451
  • 19
  • 85
  • 126
0
votes
1 answer

MPMoviePlayerController, playing in background with audio and video (detach video layer?)

I'm having some issues getting a MPMoviePlayerController playing both audio and video to continue once the screen locks/ app is backgrounded. Here's what I've tried: "Required background modes" is an array with the first entry: [Item 0: App Plays…
Ian Dundas
  • 553
  • 1
  • 6
  • 17
0
votes
1 answer

MPMusicPlayerController stop and can't resume when play audio from somewhere in iOS

I am doing Music App with iPodMusicPlayerController. I am fine play songs from iPod Library. However one thing. when i playing songs from iPod Library and i go to safari or something and play music or movie from web , my app stop playing. After…
Fire Fist
  • 7,032
  • 12
  • 63
  • 109
0
votes
0 answers

Create animation matching with music bit rate

I want to create an animation which will match the playing music, like if the music is soft music (like classical) animation will be slow, if music is fast (metal/rock) animation will be fast. Is there any way to do it in iOS programmatically? Like…
russell
  • 3,668
  • 9
  • 43
  • 56
0
votes
1 answer

MP3 s not playing in mobile browsers

I have page where I am allowing myusers to listen music online everything works just fine in pc but when I try to check in nokia symbian, blackberry Android nothing plays I am using flash MP3 player and my simple codes are here. I am interested in…
raviloves
  • 197
  • 1
  • 3
  • 12
0
votes
2 answers

MPMusicPlayerController volum not changing

I'm creating an radio application in ios. I want to change the volum by using a slider. So I defined an IBAction (- (IBAction)sliderValueChanged : (UISlider *)sender) and drag the Value Changed event of the slider to this IBAction. This is my…
iDia
  • 1,397
  • 8
  • 25
  • 44
0
votes
1 answer

AVAudioPlayer don't work in AVAudioSessionCategoryAmbient mode in iOS 6.0.1?

In my app, I use a MPMusicPlayerController play .mp3 as background music, and an AVAudioPlayer play sound-effect, just like button press, and so on. The code is like this: // Initialization code here. AudioSessionInitialize(NULL, NULL, NULL,…
1 2 3
24
25