mpnowplayinginfocenter

MPNowPlayingInfoCenter not reacting properly when pausing playback

不问归期 提交于 2019-12-20 09:10:15
问题 I am trying to get MPNowPlayingInfoCenter to work properly when pausing playback. (I have a streaming music app that uses AVPlayer for playback, and I am playing back in my Apple TV over Airplay.) Everything but pausing seems to be reflected correctly in the Apple TV UI. I am initializing it like this: MPNowPlayingInfoCenter *center = [MPNowPlayingInfoCenter defaultCenter]; NSDictionary *songInfo = @{ MPMediaItemPropertyTitle: title, MPMediaItemPropertyArtist: artist }; center.nowPlayingInfo

Play/Pause and Elapsed Time not updating in iOS command center properly

可紊 提交于 2019-12-19 12:54:05
问题 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 ( MPRemoteCommandCenter ) by updating the nowPlayingInfo ( MPNowPlayingInfoCenter ). I'm not sure why it's not updating. For example, if I pause the video with a custom button in my app, the command center still shows the pause button (meaning the video is still playing which is wrong.) This is how I update

Play/Pause and Elapsed Time not updating in iOS command center properly

依然范特西╮ 提交于 2019-12-19 12:53:45
问题 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 ( MPRemoteCommandCenter ) by updating the nowPlayingInfo ( MPNowPlayingInfoCenter ). I'm not sure why it's not updating. For example, if I pause the video with a custom button in my app, the command center still shows the pause button (meaning the video is still playing which is wrong.) This is how I update

Play/Pause and Elapsed Time not updating in iOS command center properly

爷,独闯天下 提交于 2019-12-19 12:53:07
问题 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 ( MPRemoteCommandCenter ) by updating the nowPlayingInfo ( MPNowPlayingInfoCenter ). I'm not sure why it's not updating. For example, if I pause the video with a custom button in my app, the command center still shows the pause button (meaning the video is still playing which is wrong.) This is how I update

App for jailbroken iOS device: Consistent background operation

耗尽温柔 提交于 2019-12-19 10:21:37
问题 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 by Apple from the App Store. I've since that made it available for free in Cydia. Currently the app stands in Cydia exactly as the previous App Store version. As a result of this I get a lot of requests to make it work in the background. But I

How to disable all the MPRemoteCommand objects from MPRemoteCommandCenter

时光怂恿深爱的人放手 提交于 2019-12-19 10:07:06
问题 Apple doc says "you can disable the corresponding MPRemoteCommand object by setting its enabled property to NO." I referred Is there a public way to force MPNowPlayingInfoCenter to show podcast controls? and I was able to disable/enable a particular command on lock screen control. However I want to disable all the controls from lock screen control since I am playing a radio and it do not support either of the action - "Play/Pause/Next/Previous" I tried following code snippet:

Apple Music conflicting with MPNowPlayingInfoCenter

匆匆过客 提交于 2019-12-19 06:16:48
问题 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 MPNowPlayingInfoCenter and it displays the correct info, but the play/pause, next track and previous tracks are working only when the user is authenticated with Spotify: notifications are received correctly by the app when the user authenticates with Spotify but it doesn't work when user authenticates with

iOS: Updating Media Information in the Background

有些话、适合烂在心里 提交于 2019-12-19 04:56:27
问题 I'm currently using MPNowPlayingInfoCenter for my app to show which song is playing, but I am looking to incorporate HTTP Live Streaming into my application, which will have any number of different tracks occurring in the background. Is there a way to set the nowPlayingInfo while the application is in the background (Call a function after a certain amount of time?), even though applications technically don't actually run in the background? Or is there a way to set the now playing information

iOS: Updating Media Information in the Background

余生颓废 提交于 2019-12-19 04:56:07
问题 I'm currently using MPNowPlayingInfoCenter for my app to show which song is playing, but I am looking to incorporate HTTP Live Streaming into my application, which will have any number of different tracks occurring in the background. Is there a way to set the nowPlayingInfo while the application is in the background (Call a function after a certain amount of time?), even though applications technically don't actually run in the background? Or is there a way to set the now playing information

Get current playing song from Spotify iOS app

折月煮酒 提交于 2019-12-18 11:42:27
问题 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 there any way I could get the song playing on Spotify, in my iOS app? I have tried using the nowPlayingItem property as described in this post, but it didn't work: On iPhone: Find out what song is currently playing? (in the iPod music player) I have tried using the [MPNowPlayingInfoCenter