09-09-2018, 03:46 PM
To use the flac feed with Radio Paradise you need to fetch some some JSON from Radio Paradise pretending you are an Alexa.
This json has the url for the flac file with the metadata for the tracks in the file. The control point needs to queue the flac files but also keep track of the playing times to then update the display as there is no metadata in the file. Its this management that is the tricky bit and whether you support the next track feature or keep the previously played flac blocks and meta data or just consume like upmpdcli does.
I managed to prove the viability with some python butchery saving the meta data to a file, the dev for UPMPDCLI also used python, in a more professional manner, to do this managing of the playlist metadata and fetching of the next flac file (song block), I think he did for the intellectual challenge after he told me it was too much work for one radio station.
(no I did not share my script with him to spare his eyes and sanity)
To display the metadata including the album artwork could be done by modifying the Webpage to use upnpexplorer to get the current playing metadata from UPMPDCLI like is done for other sources. I have previously butchered the web page to use upnpexlorer all the time which kept the now playing page up to date, but would need a bit more thought about how to work out which is normal radio and which is this special stream.
This json has the url for the flac file with the metadata for the tracks in the file. The control point needs to queue the flac files but also keep track of the playing times to then update the display as there is no metadata in the file. Its this management that is the tricky bit and whether you support the next track feature or keep the previously played flac blocks and meta data or just consume like upmpdcli does.
I managed to prove the viability with some python butchery saving the meta data to a file, the dev for UPMPDCLI also used python, in a more professional manner, to do this managing of the playlist metadata and fetching of the next flac file (song block), I think he did for the intellectual challenge after he told me it was too much work for one radio station.
(no I did not share my script with him to spare his eyes and sanity)
To display the metadata including the album artwork could be done by modifying the Webpage to use upnpexplorer to get the current playing metadata from UPMPDCLI like is done for other sources. I have previously butchered the web page to use upnpexlorer all the time which kept the now playing page up to date, but would need a bit more thought about how to work out which is normal radio and which is this special stream.