Skip to content

Instantly share code, notes, and snippets.

@gotbahn
Created March 7, 2020 11:26
Show Gist options
  • Save gotbahn/e22b993d28374e21cc9b85889692faf0 to your computer and use it in GitHub Desktop.
Save gotbahn/e22b993d28374e21cc9b85889692faf0 to your computer and use it in GitHub Desktop.
Media Session. Artwork
window.navigator.mediaSession.metadata = new window.MediaMetadata({
// ...
artwork: [
{
sizes: '128x128',
src: 'https://images.zattoo.com/9e746/128x128.jpg',
type: 'image/jpeg',
},
{
sizes: '256x256',
src: 'https://images.zattoo.com/9e746/256x256.jpg',
type: 'image/jpeg',
},
{
sizes: '512x512',
src: 'https://images.zattoo.com/9e746/512x512.jpg',
type: 'image/jpeg',
},
],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment