Questions tagged [control-center]

The Control Center is a feature on iOS which allows quick access to various functions and settings of iOS. On iOS 11 you can open it by swiping from bottom to top on any screen.

Links:

74 questions
5
votes
0 answers

AVAudioEngine, AVPlayer, AVPlayerViewController - Control Center controls becomes disabled when AVPlayerViewController plays video

I am using AVAudioEngine to play audio files and AVPlayer and AVPlayerViewController to play videos. and Control Center notification are enabled UIApplication.shared.beginReceivingRemoteControlEvents() Control Center works perfectly for audio files…
PGill
  • 3,373
  • 18
  • 21
5
votes
1 answer

AudioPlayer and lockscreen/control center control Swift

I'm new on Swift. I write because I want to ask a question. Me and my friend we are developing an audio player, but we have a problem. The player also works in background and remote controls from the lockscreen and the control center work, but if…
5
votes
0 answers

AVPlayer and Control Center

I am developing an application that plays a live web radio streaming and ipod music via AVPlayer. Is it possible to show the current item meta data in control center ? if yes, how is that accomplished ? Thanks.
rokridi
  • 1,565
  • 2
  • 11
  • 20
4
votes
1 answer

How to update playback position in control center?

This is how I observe changes from command center: commandCenter.playCommand.addTarget(self, action: #selector(play)) commandCenter.pauseCommand.addTarget(self, action: #selector(pause)) …
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
4
votes
1 answer

How to disable all the MPRemoteCommand objects from MPRemoteCommandCenter

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…
Anoop Nyati
  • 339
  • 2
  • 11
4
votes
1 answer

Display Spotify now playing item info in Control Center

I am using the new SDK for Spotify in my iOS app . In this I am using the below code for playing song from Spotify.I am able to play the song. But I am unable to see the now playing item song info and unable to control the songs from the iOS Control…
SRI
  • 1,514
  • 21
  • 39
3
votes
0 answers

How to make a Button in iOS control centre for my app in React Native Expo?

I want to make a button displayed in control centre on ios devices to make a shortcut for a function in my app. I don't know where to start to make this button so is there any library or forum to create an idea.
pashukuuu
  • 61
  • 4
3
votes
1 answer

How to control seeking forward and backward from control center?

I really try to turn it on, but with no success;) Is there any way to do this at all? This is how I setup remote control: private func setupRemoteControl() { commandCenter.previousTrackCommand.isEnabled = false …
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358
3
votes
1 answer

How to disable Control Centre play/pause buttons?

I'm using AV Player, to play some videos in my apps, But if I open Control Centre and try to play and pause the video, it is playing and pausing, But I don't want that feature. I want to disable this functionality.So for this, I did like…
3
votes
3 answers

iOS notified when control center is opened like QuizUp do

How can I be notified when the iOS Control Center is being opened? UIApplicationWillResignActiveNotification isn't good enough since this notification is sent also when the Notifications Center is opened, alert view appeared and other possible…
user2459624
  • 181
  • 1
  • 8
3
votes
0 answers

Play Audio in Control Center ios7

I am using AVPlayer to play audio files from the server. I pass the URL to the AV Player But i cannot get the audio to play in the control center Any ideas how to do it I searched on stack over flow People have mentioned about subscribing to…
Nitesh
  • 1,389
  • 1
  • 15
  • 24
2
votes
0 answers

How to prevent SpriteKit game from crashing when Notification Center is opened

I am having a weird issue with a SpriteKit game. The app crashes when a user opens Notification center or Control Center. I want the worldNode layer to be paused and the menuNode layer to be presented when the applicationWillResignActive is called,…
2
votes
0 answers

How to set audio details with an image on control center in Objective-C for iOS11?

I am trying to display audio details on control center as shown in the screenshot attached. With the below code it is working as expected in all the versions of iOS except in iOS11: if ([MPNowPlayingInfoCenter class]) { NSString *progress =…
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

Control the application from control center in iOS

I am using AVAudioPlayer in my iOS application and the following functionalities have been given. 1. Play 2. Pause 3. Next 4. Previous My requirement is, I want to give these functionalities from control center. Is it possible?
jailani
  • 2,260
  • 2
  • 21
  • 45