Jump to content
Cesbo Community
  • Announcements

    • RadioSintetica

      Information   10/21/18

      Registration on the forum temporarily closed! For support requests, please contacat us: https://cesbo.com/help
      Our community in Telegram: @cesbo_en (English language) , @cesbo_ru (Russian language) , @cesbo_es (Spanish Language)
Sign in to follow this  
FastUser

LUA script: start/stop calls

Recommended Posts

Hi,

I don't know how to call an external program when a channel is started/stopped.
See this example:

make_channel({
    name = "channel",
    input = {
        "udp://239.1.1.1:1234",
    },
    output = {
        "http://0.0.0.0:80/channel",
    },
})

The objective is to call to one external script when the input starts to consume, and call to another external script when the input is closed. This has sense because the outuput is "on demand".

Any idea?
Thank you!

Share this post


Link to post
Share on other sites

Hi,

I still need help!

Cesbo Astra has support for on-demand outputs. With these outputs the input is only consumed (readed) when the output is active. However, if I like to use some external tool for processing the input TS (for example, for transcoding; but not only for this), then this processing is executed everytime. My objective is to execute it only when the output is active.

Any ideas?
Thank you.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×