Hello to all,
Thanks for your answer. I managed to run the source.id command by:
V = interactive.string ("onair", source.id (Source))
By invoking the telnet terminal from the "onair" value, I get the return of
the source.id command. The problem is that "Source" is a fallback source so
defined:
Source = fallback (track_sensitive = false, [src_adapt1, src_adapt2,
source3])
And then source.id returns the id of the Source itself (fallback_6469) and
not the source id src_adapt1, src_adapt2, or Source3 which is currently
broadcasting.
I would like to know if it is possible to know in some way which of the 3
sources is playing at the time of the request, maybe (if possible) to know
if it is not playing anything.
Thank you again,
Marco
2017-05-09 17:54 GMT+02:00 Marco Baglioni <[email protected]>:
> Hi everyone,
> I need to implement a telnet command for liquidsoap that when called up
> responds with the id of the source that is playing at this time. Is it
> possible to realize it? I have a script that loads three sources (two http
> streams and one usb key playlist) and automatically fallbacks to a final
> output source following the rule http1>http2>playlist.
> I tried with source.id but failed (I could not retrieve it via telnet).
> Thanks in advance
>
> Marco
>
>
> --
> Marco Baglioni
>
> Cell: +39 3391184521 <+39%20339%20118%204521>
> Email: [email protected]
>
--
Marco Baglioni
Cell: +39 3391184521
Email: [email protected]
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users