w3c/mediasession

Media Session doesn't show artwork on iOS 16.1.1

Closed this issue · 3 comments

Hello,

the Media Session API doesn't show the artwork on iOS 16.1.1 anymore.

Appears on the following demo: https://googlechrome.github.io/samples/media-session/audio.html

This example from web.dev also doesn't work:

if ("mediaSession" in navigator) {
  navigator.mediaSession.metadata = new MediaMetadata({
    title: 'Never Gonna Give You Up',
    artist: 'Rick Astley',
    album: 'Whenever You Need Somebody',
    artwork: [
      { src: 'https://via.placeholder.com/96',   sizes: '96x96',   type: 'image/png' },
      { src: 'https://via.placeholder.com/128', sizes: '128x128', type: 'image/png' },
      { src: 'https://via.placeholder.com/192', sizes: '192x192', type: 'image/png' },
      { src: 'https://via.placeholder.com/256', sizes: '256x256', type: 'image/png' },
      { src: 'https://via.placeholder.com/384', sizes: '384x384', type: 'image/png' },
      { src: 'https://via.placeholder.com/512', sizes: '512x512', type: 'image/png' },
    ]
  });
}

Regards,
Marius

@jernoble Is this a known issue?

Thank you for reporting this, I'll close it as this isn't a spec issue.