Page 1 of 1
Artworks or not artworks?
Posted: 27 Feb 2024 19:20
by claudius06
Hello,
I'm revisiting the topic of artworks. I've read some posts on the subject as well as the manual. But I realize the subject is complicated.
For example, I have no choice but to use Icecast to connect to the broadcasting server, does this mean I can't display the artworks on my website and app?
Thank you for your help.
Claude.
Re: Artworks or not artworks?
Posted: 27 Feb 2024 22:35
by radio42
You can, but you need to post the artwork manually to your web-site, eg. via the http post command and using the artwork macros via eg. the OnSongTitleChanged event. The streaming servers doesn’t support that itself.
Re: Artworks or not artworks?
Posted: 28 Feb 2024 07:19
by claudius06
Thank you for your reply.
So, does this mean that all the artworks displayed in PFOA will be exported to my website's FTP? Or is it not at all how it works? Where can I find details about this process?
Re: Artworks or not artworks?
Posted: 28 Feb 2024 13:01
by radio42
No. You send the image data itself as a base64 encoded string (via the eg. EXEC_SEND_HTTP_POST command using the ${albumart} macro in the Streaming.OnSongTitleChanged even) to an endpoint of web site (could for example be a php script, which receives that image data and stores it in a database table) at the time a track is played.
On your web-site you can then use php again to display image from that base64 encoded string:
Code: Select all
...
$cover = $_POST['cover'] ?? '';
$imgsize = $_REQUEST['imgsize'] ?? 150;
...
echo '<img src="data:image/jpeg;base64,' . $cover . '" width="'.$imgsize.'" height="'.$imgsize.'"/>';
... }
Re: Artworks or not artworks?
Posted: 28 Feb 2024 14:17
by claudius06
Okay, thank you for these details. I will look into this more closely, possibly with a developer.