Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to upstream only on demand, when clients connect #31

Open
goliveok opened this issue Jan 14, 2020 · 10 comments
Open

Connect to upstream only on demand, when clients connect #31

goliveok opened this issue Jan 14, 2020 · 10 comments
Labels

Comments

@goliveok
Copy link

goliveok commented Jan 14, 2020

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

@onitake
Copy link
Owner

onitake commented Jan 14, 2020

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

@goliveok
Copy link
Author

yes

@onitake
Copy link
Owner

onitake commented Jan 14, 2020

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.

@goliveok
Copy link
Author

thank you so much

@goliveok
Copy link
Author

hi bro

Is there anything new .....

@onitake
Copy link
Owner

onitake commented Jan 20, 2020

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

@goliveok
Copy link
Author

We are waiting for you my bro

@onitake onitake changed the title hi all i need help Connect to upstream only on demand, when clients connect Jan 30, 2020
@onitake
Copy link
Owner

onitake commented Jan 30, 2020

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.

@goliveok
Copy link
Author

I do not think that my request is difficult ?

@goliveok
Copy link
Author

Hi brother is there anything new?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants