restreamer icon indicating copy to clipboard operation
restreamer copied to clipboard

Connect to upstream only on demand, when clients connect

Open goliveok opened this issue 5 years ago • 10 comments

I need an extension in Source to edit and add option on demand url remote I do not want it to work directly works on request

example resources "type": "stream", "serve": "/s110.ts", "remote": "http://******************", "ondomond": 1, (/ 1 = yes or 0 = no */)

"ondomond": 1, / 1 = yes downlaod http url after connect user

/ondomand = 0 , downlaod url

goliveok avatar Jan 14 '20 08:01 goliveok

So, basically, you want the source to connect only when the first client connects, and disconnect when the last client disconnects. Correct?

onitake avatar Jan 14 '20 15:01 onitake

yes

goliveok avatar Jan 14 '20 16:01 goliveok

Let's see what this will involve:

  • Adding the boolean flag to the config easy
  • Disabling stream liveness checks when on-demand is active easy
  • Adding logic to ignore "connected" state when the flag is true easy
  • Adding a communication channels to signal new downstream connections to the upstream client medium
  • Adding a channel to singal upstream connection errors to the downstream streamer medium
  • Adding connection startup, hold-off and error handling and shutdown to the streamer hard

Seems like a pretty involved feature. I'll have a look but I can't guarantee anything. Pull requests are welcome.

onitake avatar Jan 14 '20 16:01 onitake

thank you so much

goliveok avatar Jan 14 '20 16:01 goliveok

hi bro

Is there anything new .....

goliveok avatar Jan 18 '20 23:01 goliveok

No, sorry. Haven't had time to look at this yet.

onitake avatar Jan 20 '20 07:01 onitake

We are waiting for you my bro

goliveok avatar Jan 29 '20 00:01 goliveok

Sorry, I won't be able to work on this feature at the moment. If you want to submit a pull request, please go ahead, though.

onitake avatar Jan 30 '20 06:01 onitake

I do not think that my request is difficult ?

goliveok avatar Feb 16 '20 11:02 goliveok

Hi brother is there anything new?

goliveok avatar Mar 30 '20 21:03 goliveok