Only `MPMediaItemPropertyTitle` appears when airplaying on tvOS, despite every other info being in control center

Viewed 137

Trying to implement airplay functionality to play audio on Apple TV via airplay, the only info appearing on the tvOS UI is the title, despite every other info is present (and appears in the control center music UI without a problem).

Working with Xcode 10.2.1, app is Objc-Swift5, supporting iOS 10+.

This is the current code:

NSMutableDictionary *audioObjectInfo = [[NSMutableDictionary alloc] init];

audioObjectInfo[MPMediaItemPropertyTitle] = @"Title";
audioObjectInfo[MPMediaItemPropertyArtist] = @"User";
audioObjectInfo[MPMediaItemPropertyAlbumTitle] = @"Collection";

[[MPNowPlayingInfoCenter defaultCenter] setNowPlayingInfo:audioObjectInfo];

Thanks in advance

0 Answers
Related