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
6
votes
2 answers

MPMusicPlayerController Does Not Remember Playback Position

I'm making an app that will play audiobooks synced with iTunes. Is there a way my player can remember the playback position? Or do I need to implement this myself with some sort of database? I'm testing on iOS 8.4
Hackmodford
  • 3,901
  • 4
  • 35
  • 78
6
votes
0 answers

How To Make Next and Previous Track Buttons Disappear on Control Center for My App?

I'm making a iPhone music app that handles music playing & pausing and maintains its own play list. This app does not provide next/prev song functions, so I don't want these button to display on iOS's Control Center (the slide-up screen). I tried…
Ascendant
  • 2,430
  • 3
  • 26
  • 34
6
votes
2 answers

Lock Screen iPod Controls Not Working With Spotify Music Player

I added the Spotify player to my app which also plays music using the MPMusicPlayerController. When music is playing from Spotify and the screen is locked, the remote control events are not received for play/pause and FFW/RWD when the user presses…
6
votes
1 answer

Is it possible to detect non-ipod music?

Is there any way to detect if music or media from another source other than the iPod app is playing? I know that I can detect music playing from ipod with: [[MPMusicPlayerController iPodMusicPlayer] playbackState] ==…
Krejko
  • 901
  • 1
  • 9
  • 23
6
votes
1 answer

How can we control bass of music in iPhone sdk?

I want to control the bass of song played by user from iPod music library. I've searched on Google and got some AudioMixer samples which were of no help, but now I have got bass library i.e. libbass.a from http://www.un4seen.com/ which I think is…
Nikhil Bansal
  • 1,545
  • 13
  • 29
5
votes
1 answer

Fade out Playback Volume on MPMusicPlayerController on iOS 5

I was using this answer for how to fade out music player volume in my app, but in iOS 5, this leads to the on-screen HUD for volume appearing to the user, as if they had pressed the volume buttons on the side of their device. Does anyone know a…
Ash Furrow
  • 12,391
  • 3
  • 57
  • 92
5
votes
1 answer

Using MPMediaQuery to query ios library by rating

I'm developing an iphone 4 app that filters the local media library by different criteria. I have been able to filter by song name, artist, and genre. Now I need to add a rating filter mechanism. I was thinking in something like "rating >= N stars"…
Mariano Latorre
  • 719
  • 1
  • 10
  • 21
5
votes
1 answer

Rearrange MediaPlayer Music Queue [iOS]

I am really struggling to figure something out and I've looked all over the internet and I can't find an answer. As you know, music apps like Spotify and Apple Music itself let the user rearrange the up next queue even while the user is listening to…
CentrumGuy
  • 576
  • 1
  • 4
  • 16
5
votes
1 answer

MPMusicPlayerController setCurrentPlaybackRate

The call to setCurrentPlaybackRate to the MPMusicPlayerController stopped working after the latest iOS update, and now gives this error: 2018-04-15 16:24:06.904562-0600 SampleProject[5659:1836398] [SDKPlayback] - [MPMusicPlayerController…
TheJeff
  • 3,665
  • 34
  • 52
5
votes
2 answers

How to detect if the iphone is synced when app is not running

I would like to know if there is any way to detect if the iphone music library has changed when my app is not running. There is a property lastModifiedDate in MPMediaLibrary class which does this but the problem i am facing is that this date changes…
5
votes
1 answer

MPRemoteCommandCenter not generating remote control events MPMusicPlayerController.applicationMusicPlayer()

I'm using MPRemoteCommandCenter and MPMusicPlayerController.applicationMusicPlayer on the iPhone. I'm trying to receive remote control events when the user is playing music and double taps on the headphone button. If I use AVAudioPlayer, the remote…
5
votes
1 answer

How to change volume with MPMusicPlayerController without affecting the device volume

I am using MPMusicPlayerController and AVAudioPlayer simultaneously. For audio balancing, I have two volume sliders for MPMusicPlayerController and AVAudioPlayer each. If I mute the MPMusicPlayer volume and increases AVAudioPlayer volume, the…
iPhoneDv
  • 1,969
  • 1
  • 19
  • 34
5
votes
1 answer

Not authorized, skipping filter predicate application

Upon launch on an iOS10 device, I get the following output: [MC] Reading from public effective user settings. [SDKPlayback] MPMusicPlayerController] MPMusicPlayerController: Server is not running, deferring check-in [SDKLibrary] Not authorized,…
rocketman240
  • 119
  • 12
5
votes
2 answers

How to record video and play audio at the same time (swift tutorial)

So you want to record a video and play music from the user's library at the same time? Look no further. Below is the answer.
Lawrence413
  • 1,976
  • 1
  • 14
  • 28
5
votes
3 answers

Play/Pause callback not getting called when using MPRemoteCommandCenter

I am building a music player app, and everything is working fine. I have been using the system music player so far, but now want to switch over to use an application music player instead, and that's where I'm running into problems - for the life of…
dflachbart
  • 105
  • 1
  • 10
1 2
3
24 25