1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<!DOCTYPE html> <title>MediaImage</title> <script> function createArtworkFromURLs(sources) { let artwork = []; for (const source of sources) { artwork.push({ src: source }); } let metadata = new MediaMetadata({ artwork: artwork }); return metadata.artwork; } </script>