| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Tue Apr 15, 2008 10:26 am Post subject: Metadata injection methods |
|
|
Hi.
I'm new to Icecast server and have just recently started using it. I am trying to find information about methods of injecting metadata on the fly into a live stream. For example, if I want to display the currently playing track name, I need a method to inject this. I know that it is possible to do this using source tools (such as Winamp with the OddcastV3 plugin for example), but I'm after a method which does it via soemthing like an http post (I believe this type of thing is possible on a Shoutcast server?). Can anyone tell me if this type of thing is possible please and if so point me in the right direction for some documentation/info?
Many thanks, Dan. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Apr 15, 2008 12:00 pm Post subject: |
|
|
not with POST but a GET can be used with something like /admin/metadata?mount=/mount&mode=updinfo&song=New%20Title
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Tue Apr 15, 2008 12:45 pm Post subject: |
|
|
| perfect. thats exactly what i was after. thanks. |
|
| Back to top |
|
 |
robertut
Joined: 31 Aug 2007 Posts: 156
|
Posted: Mon May 05, 2008 4:41 pm Post subject: |
|
|
Yep, it works, great feature:
| Quote: |
| http://admin:hackme@server.url:port/admin/metadata.xsl?mode=updinfo&charset=UTF-8&mount=%2Fmount&song=title |
Just make sure admin username:password is not left out of the url. And in this example mount is without character "/".
 |
|
| Back to top |
|
 |
robertut
Joined: 31 Aug 2007 Posts: 156
|
Posted: Tue May 06, 2008 7:24 am Post subject: |
|
|
| There is a bug in this (kh34a): the update seems to work (the actual audio stream is updated, it shows well in the player), however after some time the status.xsl doesn't reflect the changes. It looks like the entire status.xsl is frozen. |
|
| Back to top |
|
 |
robertut
Joined: 31 Aug 2007 Posts: 156
|
Posted: Fri May 09, 2008 10:43 pm Post subject: |
|
|
Is it a problem if I update once at every 60 seconds the metadata this way, for all my mountpoints, one by one?
- I update by calling http://admin:hackme@server.url:port/admin/metadata.xsl?mode=updinfo&charset=UTF-8&mount=%2Fmount&song=title
- I call status.xsl to check wether it updated or not
- if not, update again immediately
- if yes, update after 60 seconds with new metadata
It looks like I often enter the loop of updating immediately, because the result of the update is always 1, however status.xsl and the stream itself don't get updated. Strangely though, If i click the update link in the web interface, it works.
Am I doing something wrong? (kh34a) |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri May 09, 2008 11:09 pm Post subject: |
|
|
are you saying that all updates to stats stop or just that the stats for that isn't working. The error log is key here.
karl. |
|
| Back to top |
|
 |
|