View previous topic :: View next topic |
Author |
Message |
Murrawhip
Joined: 21 Dec 2010 Posts: 58
|
Posted: Tue Mar 13, 2012 11:34 am Post subject: songinfo change trigger |
|
|
I use listener_add, listener_remove, mount_add, and mount_remove for logging stuff in a database, and figured it'd be swell if I could get something similar for when a song title changes. Does this exist already?
I'd prefer it over polling icecast for updates every couple of seconds with a bunch of different mount points. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Mar 13, 2012 1:08 pm Post subject: |
|
|
hmm, I suppose that is possible, although nothing exists at the moment.
karl. |
|
Back to top |
|
|
Murrawhip
Joined: 21 Dec 2010 Posts: 58
|
Posted: Sun Jun 03, 2012 8:24 am Post subject: |
|
|
At the moment, my clients get their metadata to me in a variety of ways - most are sent to icecast via the http request, due to a limitation in their automation software.
Anywho, I grab this data and log it in a database - which I use for "recently played" lists in a player.
As far as I can tell, the only way to do this for my other clients that have metadata embedded in their stream from Edcast, is to continuously poll the Icecast stats, then upload it to the database if it's changed. Depending on how accurate I want to get the start-times of the song, it can get very chatty.
My skills in C are nothing to aspire to, but I figured I MIGHT be able to add an event on song change, but nah - didn't work out. If you ever get around to this, I'd be immensely grateful - it opens up a lot of possibilities.
Thanks for hearing me out. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Jun 03, 2012 3:31 pm Post subject: |
|
|
the most immediate way is to either tap into the playlist log, either poll/inotify or maybe use a named pipe to trap for updates. or use the curl -X STATS http://admin:pw@host:port/ interface and wait for certain EVENT messages to arrive
karl. |
|
Back to top |
|
|
|