Skip to main content
0 votes
0 answers
21 views

Playing Bar on iPhone Lock Screen Shows Blank Play/Pause Icon and Missing Logo

I implemented code to display a media playing bar on the iPhone lock screen for my app. The functionality is mostly working—I'm able to see the playing bar, and the play/pause button is clickable. ...
spiderman128's user avatar
0 votes
0 answers
14 views

CPNowPlayingTemplate does not update CPNowPlayingShuffleButton state after changing shuffle mode

I am integrating CarPlay functionality in my existing iOS Music App. I have added Shuffle button in CPNowPlayingTemplate. CarPlay simulator is showing this button but it is not updating its state when ...
Manthan G's user avatar
0 votes
0 answers
70 views

MPRemoteCommandCenter with Expo/React Native

I'm creating a native iOS module for Expo (after this guide) to intercept bluetooth headphones controls (like play/pause, etc.) The problem is that the event listeners set by playCommand.addTarget ...
fatnlazycat's user avatar
0 votes
1 answer
391 views

MPNowPlayingInfo only displaying after changing playback state (SwiftUI + AVAudioPlayer)

I have successfully setup a background capable audio player with Lock Screen controls, but when it comes to setting the info, nothing seems to work. When I first start playing music in the app and ...
Trevor's user avatar
  • 843
1 vote
0 answers
112 views

MPRemoteCommandCenter how to show all controls/commands

I want to show skip forward, skip backward, previous track, next track on the locked screen. But seems skip forward/backward will just override previous/next track. That is only skip forward and skip ...
Rao's user avatar
  • 71
3 votes
1 answer
406 views

SwiftUI | How to display video title in control center of iPhone

I want to display video title in control center of iPhone. But, the title does not appear. What should I do? Xcode 14.0, Swift 5.7, iPhone8 iOS 16.0 import SwiftUI import AVKit import MediaPlayer ...
number l advantage's user avatar
2 votes
0 answers
686 views

SwiftUI set up MPRemoteCommandCenter

Just trying to better understand SwiftUI... Where/how should I set up MPRemoteCommandCenter? if I call it from OnAppear would I be creating multiple instances of MPRemoteCommandCenter.shared()? func ...
Dan's user avatar
  • 653
0 votes
1 answer
205 views

Can MPRemoteCommandCenter listen to custom events other than playing or pausing audio,video?

I have an app will run in the background. I think it's gonna be very convenient for my users if they are allowed to stop the background service on lock screen. Otherwise they will have to unlock the ...
jeep's user avatar
  • 625
1 vote
0 answers
96 views

How to display the control center on iOS without AVAudioPlayer?

In my iOS app, I use a third party library to play music (I use the JUCE framework). Now I would like to show my users the control center like the one below, so they can interact with the music player ...
matteoh's user avatar
  • 3,550
0 votes
0 answers
228 views

No control interface appears on iOS app using MPRemoteCommandCenter

In my iOS app, I play music and I want to display playback controls on the lock screen, allowing the user to control the audio player. So following this tutorial and this tutorial, here is what I ...
matteoh's user avatar
  • 3,550
3 votes
1 answer
512 views

AVPlayer doesn't respond to commands from bluetooth device

My ios app uses AVQueuePlayer to play audio. The play/pause controls work properly from Control Center and from ios lock screen, but not for commands invoked from bluetooth device. E.g., the callbacks ...
Travis's user avatar
  • 3,089
1 vote
1 answer
1k views

Where to Add Current Time and Duration Time For AVPlayer and AVAudioPlayer using MPRemoteCommandCenter

On a screen inside my app I have both an AVAudioPlayer for music and an AVPlayer for videos. The user can swap out different songs and different videos but can only play one at a time. They can play ...
Lance Samaria's user avatar
1 vote
2 answers
939 views

MPRemoteCommandCenter - Remote controls on lock screen does not show up

I've implemented two functions in View controller (setupRemoteTransportControls() and setupNowPlaying()) and added one function to AppDelegate, but I'm still unable to see background audio controls of ...
LewTrocki's user avatar
4 votes
0 answers
427 views

MPRemoteCommandCenter how to signal playback state when not using AVAudioPlayer

I have a simple MIDI player (Swift 5, SwiftUI, iOS14) and would like to toggle a play/pause command with MPRemoteCommandCenter. The control from the lock screen works fine with the following setup, ...
Jonathan's user avatar
1 vote
1 answer
1k views

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 ...
Shawn Frank's user avatar
  • 5,131

15 30 50 per page
1
2 3 4 5 6