Hi,

2013/10/7 Matt Camp <[email protected]>:
> As part of my ongoing adventures with embedded liquidsoap I'm trying to work
> out how to display the status of liquidsoap on an attached character LCD
> module or a set of LED's.
>
> Currently I'm thinking this will probably involve an external process
> polling the telnet/socket interface, unless there is a known way to have
> liquidsoap call an external process on events such as icecast connect, drop,
> etc.
>
> The other thing I'd like to display is the time that the source has been
> connected to the icecast server, and if possible the number of reconnection
> attempts.
>
> Are these stats already easily possible?

The stats are not directly available. However, output.icecast has 3
callbacks, on_connect, on_disconnect and on_error.

on_connect and on_disconnect are quite straightforward. while on_error
receives a string representation of the error and should return a
value indicating the appropriate course of action. If returning a
strictly positive value, reconnection will be attempted again after
that amount of seconds.

> In an ideal world I'd even like to display a VU meter of the current input
> volume... not sure how easy that is going to be though with any sort of
> real-time accuracy. (I'm aware of the rms handler, but it didn't appear to
> be suitable for real-time display)
>
> On a somewhat related note there, are there any recommendations as to how
> fast I can poll the telnet/socket interface for stats?

Nope. Don't poll too much that's all I can say ^^

Romain

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to