The URL specifying the track image should be loaded without any
user-specific data like cookie headers, or HTTP Auth credentials.
Differential Revision: https://phabricator.services.mozilla.com/D83695
The FetchImageHelp doesn't need to decode the fetched image before
handing the image to its caller since the decoded raw data won't be used
in the caller. The ImagePromise can be resolved upon image is fetched
(ready) instead.
Differential Revision: https://phabricator.services.mozilla.com/D79736
This patch does the following things:
1. Use `FetchImageHelper` to fetch the MediaImage defined in
media-session
2. Upon the above image is fetched, set it to the SMTC's thumbnail
Differential Revision: https://phabricator.services.mozilla.com/D77893
We implement a helper class `FetchImageHelper` that is used to fetch image via an image URL directly. It would return a promise which would resolve with a surface image, them cusumer can acquire the image data from that surface.
We will use this class to fetch the artwork image which websites set from MediaSession API and display the image on the system virtual control interface.
Differential Revision: https://phabricator.services.mozilla.com/D69288