Questions tagged [mpnowplayinginfocenter]

This class displays song information, such as the title, the author, and the album cover, on the lock screen and in the multitasking bar.

146 questions
2
votes
0 answers

MPNowPlayingInfoCenter not able to update title when tracks are skipped in a playlist

I am trying to update the title using MPNowPlayingInfoCenter. But what happens is when I skip the track it does not reflect it on the control panel. Here is my code: int newIndex = [(NSNumber *)(notification.userInfo)[DRNewTrackIndex] intValue]; …
2
votes
0 answers

Control Center, doesn't pause/play my audio stream

Hope that the issue goes to the correct stream. I play HLS, i.e. I use AVPlayer for playing a mixed content( audio & pure video) from a server. I keep playing audio after moving the app into background: I have enabled such feature in plist, plus I…
2
votes
0 answers

How to custom MPNowPlayingInfoCenter Button?

I would like Control Center (via MPNowPlayingInfoCenter) to show the MPFeedbackCommand controls that Apple shows with podcasts, like so: ![enter image description here][1] how can I do that, [likeCommand setLocalizedTitle:@" emotion I love it"];I…
cheng
  • 29
  • 2
2
votes
1 answer

AVPlayer + MPNowPlayingInfoCenter works on simulator but not on device

I am using AVPlayer to reproduce music. All is working just fine on simulator with iOS 6+. But when I run it on device (iPhone 5s, iOS 7.1), MPNowPlayingInfoCenter shows info from any other music apps: spotify / sound cloud / music player, instead…
Borzh
  • 5,069
  • 2
  • 48
  • 64
2
votes
2 answers

Xcode 6.0.1 new warning

I did not get this error warning until I updated to the latest version of Xcode? Incompatible pointer types initializing 'MPNowPlayingInfoCenter' with an expression of type 'NSNotificationCenter’ CODE: - (void)doUpdateNowPlayingCenter { if…
2
votes
0 answers

How to display that an iOS app is recording audio on the lock screen

I have an audio recording app. How do I show that the app is recording while the lock screen is on, the way the voice memo app that comes with the iPhone does. Tried playing with MPNowPlayingInfoCenter but haven't gotten anything to work. Any…
MScottWaller
  • 3,321
  • 2
  • 24
  • 47
2
votes
1 answer

How to add rewind buttons to lock screen?

I have realized representation of my AVPlayer on iPhone lock screen via MPNowPlayingInfoCenter. But I can't found how to add ±15 seconds rewind buttons like in standard Music app. So the question is How to add this buttons on lock screen?
Valentin Shamardin
  • 3,569
  • 4
  • 34
  • 51
2
votes
1 answer

Changine iPhone's wallpaper while playing music

I wonder if it's possible to change the wallpaper on the iPhone's lock screen while music is playing. I want to do exactly what the Music app does. I thought that is a closed API, but I discovered that the Spotify app does it too! I'm looking in…
Jakub
  • 13,712
  • 17
  • 82
  • 139
2
votes
2 answers

App for jailbroken iOS device: Consistent background operation

I am the author of a Cydia tweak called AirFloat. An app that implements the AirPlay audio protocol (previously known as AirTunes), making it possible to stream audio to your iOS device. AirFloat is originally an App Store app, until it got booted…
Trenskow
  • 3,783
  • 1
  • 29
  • 35
2
votes
1 answer

MPNowPlayingInfoCenter show lyrics on a lock screen

Music App shows lyrics(page of text) on a lock screen. I tried to set MPMediaItemPropertyLyrics to show a lot of text, but it doesn't. Any ideas? MPNowPlayingInfoCenter* mpic = [MPNowPlayingInfoCenter defaultCenter]; mpic.nowPlayingInfo…
Shmidt
  • 16,436
  • 18
  • 88
  • 136
1
vote
1 answer

Android NowPlaying MediaSession Lock Screen (Samsung)

I'm working on a Audio app based on ExoPlayer, I have implemented the MediaSession controls for a NowPlaying bar in Notification Center and Lock Screen. The NowPlaying bar in the Notification Center is working on every phone, but on some Samsung…
1
vote
0 answers

MPMediaItemPropertyArtwork not getting set in Apple Watch

I have an audio streaming app which plays live streams using AVPlayer. Everything works as intended and in order to support a good user experience, I set the MPNowPlayingInfoCenter's nowPlayingInfo property with the title, artist and artwork - here…
Shawn Frank
  • 4,381
  • 2
  • 19
  • 29
1
vote
1 answer

Testing CarPlay Audio using the simulator

I have developed an iOS radio audio app using Swift / UIKit and everything works well. I want to integrate wit CarPlay and got the required entitlements. I believe I have set everything up right for the most part as I can see the CPListTemplate with…
1
vote
2 answers

iOS MPNowPlayingInfoCenter not Displaying Using AVPlayer and AVAudioSession

I am building a radio streaming app. The sound is working, including when the app is in the background and when the phone is locked. However, I can't get the MediaPlayer info to appear on the lock screen. I am attempting to use a combination of…
1
vote
1 answer

CarPlay - Show Now Playing screen in iOS 13

My app is already the current "now playing app" on the phone (i.e. all the required info are provided to MPNowPlayingInfoCenter) and it correctly shows in the lock screen, with artist name, track title, artwork image, etc. According to the docs,…