thank you very much for your example!
Best regards.
Il 28/11/2017 09:32, Peter Retep ha scritto:
Hi Simone,

you can simply enable the socket / telnet interface
and set the url by <input-http-id>.url <url> using an external script.

# liquidsoap script example, define station
set("server.telnet", true)
set("server.telnet.port", 1234)
set("server.telnet.bind_addr", "127.0.0.1")
radio=input.http(id="station", "http://127.0.0.1:8000/stream-a";)
out( radio )

# telnet example
telnet localhost 1234
station.url http://127.0.0.1:8000/stream-b

On switching between different urls I call stop and start after setting the url.
(I have seen issues without this start/start handling long time ago.)

station.url <url>
station.stop
#sleep 1 second
station.start

#and check current URL afterwards:
#sleep 1 second
station.url

BR, Peter

Am 27.11.2017 um 15:04 schrieb Simone Dal Maso:
Hello,
I have a webradio that is online 24 hours a day. It plays music and, when I 
want, I can go live with my voice. The script is mywebradio.liq.

In next days I need to take the streaming from another webstation, so in order 
to make it I think to use the input.http code in a new script, called 
otherWebRadio.liq.

My question is:
If I want to stop the stream from the other webradio and transmit my music or 
my voice, should I kill the script otherWebRadio.liq and start my original 
script, or is there a method that allow me to handle all in a single script?
Are there for example some telnet commands that I can use?

Thank you!






------------------------------------------------------------------------------
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



------------------------------------------------------------------------------
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



------------------------------------------------------------------------------
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

Reply via email to