Get online album artwork from HA server
Thank you for your very nice integrations!
This is related to https://github.com/droans/mass_queue/issues/42 but is a different issue, since that issue is about local providers like Plex, Jellyfin etc while this one is about online music providers.
For online music sources such as Tidal or Spotify, the album artwork, track thumbnails etc,. are sourced by the visualisation client (e.g. in-wall touchscreen) from online sources such as resources.tidal.com. Because of this, all clients where artwork 'needs' to be visible have to be exposed to the internet. In some cases, users will prefer to restrict certain clients to lan-only for security reasons. Currently the user needs to choose between less security or not seeing certain artwork.
A solution to this would be if the Home Assistant / Music Assistant server retrieves the artwork and makes it available to the visualisation clients. The HA/MA server will usually be exposed to the internet. If the server gets all artwork online and serves it to the visualisation clients, then the visualisation clients can be totally restricted from internet access.
If you're using your own implementation, you can try the mass_queue/download_and_encode_image Websocket command. Just pass the URL to it and it will return a base64 encoded string of the image.
If you're using your own implementation, you can try the
mass_queue/download_and_encode_imageWebsocket command. Just pass the URL to it and it will return a base64 encoded string of the image.
Hi droans. What do you mean by "your own implementation"? Do you mean the music providers? I am using Tidal & Spotify, haven't coded anything myself but am simply using only "as-is" Home Assistant / Music Assistant integrations, settings, etc. The player, queue and favorites on my dashboard are shown using the mass-player-card v2.7. But my suggestion is a general one, not specifically related to album/track artwork displayed by that card. Thanks you.