Update of "metadata"

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.


Artifact ID: f7aa4484e154d4ac673b0222e117289b61a2b2d9b451acb96e6ac41fbbf731fd
Page Name:metadata
Date: 2018-08-23 23:43:56
Original User: vandys
Parent: 8afbb7d82e63d2499ae32d878bd3f72551edfb2bb06a6303df66752d7c5e030c (diff)
Next d00471942ceb194a70fab9b4e792696e722c624f3c09130297ad1386b1089135

This is a chore-based server to provide long-polled metadata of an internet streaming station which uses the Icecast encapsulation to provide metadata (generally "artist - title" and album art URL).

Although web browsers can play internet streams, I haven't found any which accept, record, and make the Icecast metadata available. I knocked on the doors at the W3C and didn't really pick up any interest. So if you want your radio streaming web app to know about metadata, you have to do it off-browser.

Doing this in the browser would be much, much better.


This server accepts requests on /metadata/.json[?gen=] and send back JSON of "key: value" of all the values received from 's metadata. It fires up a stream to and pulls metadata from it, when possible sharing its information across multiple clients.

If your "gen" is less than the current generation of information, your request is completed immediately with the current values. Otherwise your request is held (i.e., long polling) until the stream changes. Typically your web app is XHR'ing these, and updating the UI with the current information as it changes.