karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
298 stars 105 forks source link

Intro file rotation #256

Open DuncanFairley opened 5 years ago

DuncanFairley commented 5 years ago

I currently play a piece of intro audio for each of my mounts. It'd be awesome if we could specify multiple intro files, and Icecast would just play a random one.

I could accomplish this by changing the config.xml every minute or so and HUPing, but I'm unsure if there's a downside to reloading a server so often?

Edit: Okay, I didn't realise that you could use listener_add to reply back with icecast-auth-user: withintro and audio data in the body. I guess that'd be preferable to the icecast.xml change + reload every minute.

kevev commented 5 years ago

Exactly what I am trying to do. Can yoy elaborate on exactly how this works and how to set ut up?