summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/mediasession/helper/artwork-generator.html
blob: 5a2fbb151d9b4eec6f6dc16fc12d8708e01e25d9 (plain)
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>