mpnowplayinginfocenter Questions
3
Solved
All methods I found to set MPMediaItemArtwork of MPNowPlayingInfoCenter are with local images.
MPMediaItemArtwork *albumArt = [[MPMediaItemArtwork alloc] initWithImage: [UIImage imageNamed:@"myima...
Milagrosmilam asked 9/6, 2014 at 23:50
2
I have an iOS 9 app that plays MIDI-like songs using an AudioGraph. I've set up remote control commands with MPRemoteCommandCenter and info with MPNowPlayingInfoCenter such that the currently playi...
Ashla asked 20/4, 2016 at 20:50
2
My app start playing music and it appears in Now Playing Info, but i can't find how to clean it all: destroy the player and remove my app from Now Playing Info.
The lib that i'm using have not imp...
Carrara asked 24/6, 2019 at 14:50
4
Solved
I'm making an iOS app using Swift 3 in which displaying information about the currently playing item on the lock screen and control center would be nice.
Currently, I'm using the following code to...
Amphicoelous asked 16/1, 2017 at 22:8
4
I'm trying to get info about the current playing song in Spotify iOS app. The scenario is as follows: Open Spotify iOS app, start playing a song. Put the app in background and open my iOS app. Is t...
Apanage asked 11/12, 2013 at 6:36
2
I am making an app that has a music player in it. I haven't worked on it in a while but the last time I worked on it the nowPlayingInfo
was working. Now, when I updated it to Swift 3, everything w...
Diet asked 8/8, 2017 at 15:39
6
Solved
I have a method that changes the audio track played by my app's AVPlayer and also sets MPNowPlayingInfoCenter.defaultCenter().nowPlayingInfo for the new track:
func setTrackNumber(trackNum: Int) {...
Sharpedged asked 19/1, 2016 at 1:56
1
Solved
All of the threads on this topic are really old (5+ yo), and I can't seem to form a clear MODERN approach, so hopefully this can be summarized for 2020 (Swift 5, Xcode 11).
If you were to build an ...
Diaconate asked 10/4, 2020 at 20:15
2
Solved
I am new to iOS, and developing a cross platform app with Flutter. I am trying to play audio from network URL, which i found it can be done using the AVPlayer. The audio plays when the app is in fo...
Heathendom asked 23/1, 2020 at 20:41
5
Solved
I am using an AVPlayer to playback audio in my iOS app (because the audio files I'm playing are not local), and when my track finishes, I want to hide the InfoCenter controls, but I get this error:...
Ingulf asked 14/5, 2019 at 14:36
3
I have the following dictionary for MPNowPlayingInfoCenter
@{MPMediaItemPropertyAlbumTitle: @"First Title",
MPMediaItemPropertyArtwork: [[MPMediaItemArtwork alloc] initWithImage:[UIImage imageNam...
Murtha asked 22/9, 2013 at 7:7
3
Solved
My app doesn’t support going back to previous tracks, and I’m wondering if I can tell the lock screen music controls to hide their rewind/previous track button. I use the MPNowPlayingInfoCenter to ...
Rah asked 24/1, 2014 at 13:36
5
Solved
I would like Control Center (via MPNowPlayingInfoCenter) to show the forward 15 seconds / back 15 seconds controls that Apple shows with podcasts, like so:
The utter lack of documentation tells...
Idol asked 15/12, 2013 at 4:19
4
Solved
Apple has deprecated init(image:) method in MPMediaItemArtwork in iOS 10.
What is the new alternative.
the class shows interface shows method below to be available in the new OS version
public i...
Faustina asked 16/12, 2016 at 19:43
1
Solved
My app plays some sound and I implemented AVRoutePickerView so it can stream its sound through AirPlay or Bluetooth.
Once I tap the AVRoutePickerView, above image pops up which is good, however,...
Ashur asked 26/4, 2018 at 20:15
2
I am developing music app but for lock screen control i am not able to assign time duration and elapsed time
here is my code
let commandCenter = MPRemoteCommandCenter.shared()
commandCenter.pre...
Jessjessa asked 3/11, 2016 at 15:15
3
Solved
I've tried to implement lock screen controls for google Chromecast video streaming app with the latest GoogleCast framework for iOS (2.1.0).
I've corrected the example Chromecast app - https://git...
Tetra asked 2/4, 2014 at 22:56
3
Solved
In objective c, I've been using code like this to update MPNowPlayingInfoCenter:
[[MPNowPlayingInfoCenter defaultCenter] setNowPlayingInfo:
@{ MPMediaItemPropertyArtist : @"Artist!",
MPMediaIte...
Politesse asked 17/6, 2014 at 18:34
2
I want to set the image in iOS lock screen but the documentation never mentions the size of the artwork. What should it be set to?
Pueblo asked 8/11, 2016 at 20:36
0
I need some help with an issue when my music player app is playing on background.
I'm able to play the musics in the app and in the background with both services. I'm also able to set the MPNowPla...
Antivenin asked 11/4, 2017 at 17:19
1
I have a video player that can play from the iOS command center and lock screen. When I toggle a play/pause button in my app, it should update the play/pause button in the command center (MPRemoteC...
Asterism asked 7/4, 2017 at 15:54
1
I've just been wrestling with MPNowPlayingInfoCenter. After some time, I could get it working on my iPhone.
But it doesn't work on the simulator (iOS 6 and 7 tested). Am I doing something wr...
Fujimoto asked 25/11, 2013 at 16:25
4
I can't seem to make iOS show the correct play / pause button in the remote audio controls. I do receive the remote control events and set all values of the nowPlayingInfo dictionary.
Everything w...
Aventine asked 9/9, 2013 at 19:59
1
While trying to obtain a transparent cover image on iPhone lock screen I got white background where it should be transparent.
Is it possible to use image with alpha channel for MPMediaItemArtwork ...
Meet asked 7/4, 2014 at 19:59
3
Solved
I am trying to play a video using MPMoviePlayerController for an iOS app in Swift.
My goal is to be able to play system music with something like apple music, then open my app and have the audio ...
Overhead asked 2/1, 2016 at 6:54
1 Next >
© 2022 - 2024 — McMap. All rights reserved.