Play/Pause and Elapsed Time not updating in iOS command center properly
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 the nowPlayingInfo : func updateMPNowPlayingInforCenterMetadata() { guard video != nil else {