قالب وردپرس درنا توس
Home / IOS Development / ios – How do you fill in the metadata info on the tvOS info panel when using Airplay?

ios – How do you fill in the metadata info on the tvOS info panel when using Airplay?



I'm barely new to iOS.

I am able to reproduce streams (no local video) via AVPlayer using Airplay.
Also, MPNowPlayingInfo and RemoteCommandManager are supported, using external medatada, not included in the stream.
But I would like to fill the information panel with title, artwork etc. at AppleTv / tvOS.
 enter picture description here
The picture is part of WWDC17 talk titled "Now Playing and Remote Commands on tvOS".

My question is not about tvOS apps, which referred talk is about, but about an iOS app that plays video via Airplay.

My guess is that the AVAsset played must have medatada, which is currently empty.
I've checked AVMutableMetaDataItem, but still don't understand if that's what I need to use, even how to do it.

Does anyone have any hints?


Source link