This class displays song information, such as the title, the author, and the album cover, on the lock screen and in the multitasking bar.
Questions tagged [mpnowplayinginfocenter]
146 questions
0
votes
2 answers
Android TV: Now Playing Card shown but app still rejected
I'm making my radio-app available for Android TV.
All issues solved but my app is still rejected:
No Now Playing notification [card]" Your App does not contain a “Now
Playing” notification [card] for when the user has selected the HOME
button…

Patrick Koning
- 130
- 13
0
votes
1 answer
Mac control center "now playing" info not showing duration over 1h
For a Mac app I'm trying to use the MPNowPlayingInfoCenter with playback controls and track info.
I'm using the MPMediaItemPropertyPlaybackDuration property to set the track duration, with the number of seconds as NSNumber wrapped value.
Tracks over…

Tomas Andrle
- 13,132
- 15
- 75
- 92
0
votes
1 answer
Need To Make Fade Time Longer
New to HTML and Javascript coding. Looking for a little bit of help. I have this code but when the line of text changes to the scrolling text it doesn't let the entire line scroll before it fades back to the first line.
The scrolling text line will…

TheOfficialDaxx
- 1
- 2
0
votes
1 answer
How to adjust the sound volume change with the Slider for MPNowPlayingInfoCenter
I get the sound value from the audioSession and put it into the Slider. But how can I do the opposite?
If I pass a value from the slider to the player.volume the volume changes, but then when MPNowPlayingInfoCenter is running, these changes are not…

VyacheslavB
- 181
- 9
0
votes
1 answer
How to correctly configure the display of track time in MPNowPlayingInfoCenter
I created MPNowPlayingInfoCenter and pass the current track time and total track time into it.
But such a problem arises. If I pause the track in MPNowPlayingInfoCenter, wait for a while, and then press play, then I will see that the current time…

VyacheslavB
- 181
- 9
0
votes
1 answer
How can I get access to ViewController from MPNowPlayingInfoCenter
I'm working on an audio player and came across this situation:
I have a TrackDetailView that opens to play a track when I click on a TableView cell. Also I have implemented background playback and MPNowPlayingInfoCenter.
When I press Pause or Play…

VyacheslavB
- 181
- 9
0
votes
1 answer
Unable to set NowPlayingInfo to nil
I am unable to reset NowPlayingInfo to nil, using this code in runtime:
MPNowPlayingInfoCenter.default().nowPlayingInfo = nil
if MPNowPlayingInfoCenter.default().nowPlayingInfo != nil {
print("3PX: There was a problem Removing…

cromanelli
- 576
- 1
- 5
- 21
0
votes
0 answers
Lock Screen play/pause controls not changing
I would like to change play/pause button icon on a lock screen when I tap play/pause in the app.
When I tap play/pause from a lock screen, I receive it in the app and update the view, but when I tap it in the app, it doesn't update on a lock…

Mateusz
- 233
- 3
- 8
0
votes
1 answer
ios swift MPMediaItemArtwork requestHandler return image from SDWebImage
How to load image asynchronous from sdwebimage to MPMediaItemArtwork in MPNowPlayingInfoCenter ?
MPMediaItemPropertyArtwork: MPMediaItemArtwork(boundsSize: CGSize(width: 200, height: 200), requestHandler: { (size) -> UIImage in
let…

Farzad
- 1,975
- 1
- 25
- 47
0
votes
1 answer
Swift Updating media metadata in Control Center doesn't work when called in two methods
I have two methods that are supposed to display media info in CC/Lock screen
func updateGeneralMetadata() {
guard player.url != nil, let _ = player.url else {
nowPlayingInfoCenter.nowPlayingInfo = nil
return
…

Adam
- 1,776
- 1
- 17
- 28
0
votes
1 answer
MPNowPlayingInfoCenter Live icon
I am making a radio app and noticed in the iHeartRadio app, along with the Apple Music app (Beats 1) there seems to be a Live icon for live media. I wanted to implement this into my app but have no idea on how to do it. I am using Swift 3 and…

Brian B
- 7
- 4
0
votes
1 answer
Set MPNowPlayingInfoCenter currentTime and songLength from AVAudioPlayer
I'm having trouble setting the currentTime and songLength of the MPNowPlayingInfoCenter. Here's my code:
func updateNowPlayingCenter (title: String, artist: String, albumArt: AnyObject, currentTime: NSNumber, songLength: NSNumber, PlaybackRate:…

iFunnyVlogger
- 437
- 1
- 6
- 17
0
votes
1 answer
How to add seek buttons on iOS lock screen?
How to setup MPRemoteCommandCenter/MPNowPlayingInfoCenter to add seek buttons? Result that I want to achieve is on the screenshot.
I have already added this code:
[[MPRemoteCommandCenter sharedCommandCenter].seekForwardCommand…

Vlad Semenov
- 21
- 6
0
votes
1 answer
How to Implementing MPNowPlayingInfoCenter using AvAudioPlayer
I am in the midst of creating an iOS mobile app for a client that will play a variety of audio tracks.
One of the features that I wanted to implement was to display information about a currently-playing audio track on the lock screen and banner .…

linto jacob
- 171
- 17
0
votes
1 answer
Change UIButton Image while receiving UIEventSubtypeRemoteControlPause - Objective c - iOS
I've successfully managed to get music controls in lockscreen while playing with AVPlayer but the issue is that I would like to change UIButon image when the user press the play / pause button in lockscreen (according to the player state).
Thanks to…

Synny
- 542
- 1
- 4
- 18