Can't set Album artwork on MPNowPlayingInfoCenter without setting allowsExternalPlayback = false

I have an AVPlayerViewController in my app to play custom audio+image or video streamed from an online service. If I set the below, I am able to add info to the nowPlayingInfo dictionary

avplayerController.updatesNowPlayingInfoCenter = false

This works for iOS control centre, it correctly displays my custom album name, artwork etc. But when using airplay for audio, it only displays the track name while playing audio. It doesn't display the artwork or the album etc. However if I set

avplayerController.player?.allowsExternalPlayback = false

It does correctly display artwork, title, album etc. This however disables the airplay button thats inbuilt on the player. I would like this button to remain, but need the artwork to be displayed while airplay-ing. How to I achieve this?

Can't set Album artwork on MPNowPlayingInfoCenter without setting allowsExternalPlayback = false
 
 
Q