I play some audio files with AVPlayer
and now I want to display track info in Control Center or on the Lock screen.
I set it up like this:
NSDictionary *info = @{
MPMediaItemPropertyArtist: @"Test",
MPMediaItemPropertyAlbumTitle: @"Test",
MPMediaItemPropertyTitle: @"Test",
MPNowPlayingInfoPropertyPlaybackRate :@1.0f };
[[MPNowPlayingInfoCenter defaultCenter]setNowPlayingInfo:info];
and also added
[[[UIApplication sharedApplication] beginReceivingRemoteControlEvents];
but the result is the same as described here How to set audio details with an image on control center in Objective-C for iOS11? everything is just greyed out and no info is showing.