title: AVPlayer metadata artwork does not show on tvOS
body: <p>I’m trying to display Info on an AVPlayerController dropdown. I’m following exactly what they show in WWDC, adding metadata to the playerItem. Everything is showing up ok, except for the artwork image. What’s strange is that it seems to add the image to the info view, but then hides it. There’s a space where the image should be but nothing shows. It does show up on the tv remote app though, so I know I’m adding it correctly. Here’s my code:</p>
  
  <pre><code>let playerItem: AVPlayerItem = AVPlayerItem(asset: avasset)
  var allItems: [AVMetadataItem] = []
  allItems.append(self.metadataItem(identifier: AVMetadataCommonIdentifierTitle, value: asset.title as (NSCopying &amp; NSObjectProtocol)?)!)
  if let desc = asset.desc {
      allItems.append(self.metadataItem(identifier: AVMetadataCommonIdentifierDescription, value: desc as (NSCopying &amp; NSObjectProtocol)?)!)
  }
  if let image = self.thumbImage, let artworkItem = self.metadataArtworkItem(image: image) {
      allItems.append(artworkItem)
  }
  playerItem.externalMetadata = allItems
  self.setupPlayerItem(playerItem)
  </code></pre>
  
  <p>The methods used to create the metadataItem:</p>
  
  <pre><code>func metadataItem(identifier: String, value: (NSCopying &amp; NSObjectProtocol)?) -&gt; AVMetadataItem? {
      if let actualValue = value {
          let item = AVMutableMetadataItem()
          item.value = actualValue
          item.identifier = identifier
          item.extendedLanguageTag = "und"
          return item.copy() as? AVMetadataItem
      }
      return nil
  }
  
  func metadataArtworkItem(image: UIImage) -&gt; AVMetadataItem? {
      let item = AVMutableMetadataItem()
      item.value = UIImagePNGRepresentation(image) as (NSCopying &amp; NSObjectProtocol)?
      item.dataType = kCMMetadataBaseDataType_PNG as String
      item.identifier = AVMetadataCommonIdentifierArtwork
      item.extendedLanguageTag = "und"
      return item.copy() as? AVMetadataItem
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/IIUJp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IIUJp.jpg" alt="enter image description here"></a></p>