I’m creating with friends a little website around a shoutcast radio. We have a JS and an iOS player.
Those player display the standard music metadata (title, artist, song art) but also additional data from our website like the suggestor, its rank, …
Those player display the current and the last 5 songs played.
The shoutcast API is suboptimal because you have to check every X seconds if the song has changed and it gives you mostly the file title being streamed.
How can i create an OTP ? app:
- with a 5 second scheduler integrated
- with a in memory fifo/queue store to save the last 5 songs played and the current song (and metadatas)
Between ETS, queue form erlang, genstage or task… i’m a bit lost