[Icecast] Custom Hooks
Philipp Schafft
phschafft at de.loewenfelsen.net
Fri Nov 9 09:53:44 UTC 2018
Good morning,
On Thu, 2018-11-08 at 12:45 -0500, Alex Hackney wrote:
> I actually got this to work this morning finally. The problem was on my
> auth server.
Perfect. :)
> I see the source auth hook being sent a lot, is there anyway to get the
> current metadata in that hook?
No. The auth happens long before the client is attached to any source.
In fact in Icecast 2.5.x the auth backend can even redirect the client
to other resources.
> Ideally, every time the source is updated, I'd like to get a hook so I
> can track the songs that are being played. Alternatively, the only way I
> can see doing it, is to make a get request every X seconds and watch for
> the song to change.
There currently isn't one. For 2.5.x there already is a ticket[0] for
that.
What you can do is polling the status XML. You can also use the STATS
interface[1]. Also there is the playlist log. You can watch and follow
that file to see when updates are made.
With best regards,
[0] https://gitlab.xiph.org/xiph/icecast-server/issues/2189
[1] Try it with: wget -qO - --method=STATS
http://admin:hackme@icecast.example.org:8000/
--
Philipp Schafft (CEO/Geschäftsführer)
Telephon: +49.3535 490 17 92
Löwenfelsen UG (haftungsbeschränkt) Registration number:
Bickinger Straße 21 HRB 12308 CB
04916 Herzberg (Elster) VATIN/USt-ID:
Germany DE305133015
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://lists.xiph.org/pipermail/icecast/attachments/20181109/5bd54b4f/attachment.sig>
More information about the Icecast
mailing list