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

FR - custom user-agent and one stream -> multi-clients #12

Open
SteamyNix opened this issue May 11, 2023 · 5 comments
Open

FR - custom user-agent and one stream -> multi-clients #12

SteamyNix opened this issue May 11, 2023 · 5 comments

Comments

@SteamyNix
Copy link

Two clients using the same channel link uses two streams from the provider source. What would it take to send the single channel stream to two clients like TVHeadend does? (Sorry if that's a dumb question)

Unrelated, the client / user-agent is "Java-http-client/18..." Is there a way to set that otherwise? I searched and found some Java code but I have no idea where that would belong.
Thanks for sharing this work. I've had a good time compiling and testing it.

@kvaster
Copy link
Owner

kvaster commented May 17, 2023

There was an idea to make multiplexing for channels. And it is really possible to implement this, but code will be a little bit more complex and will require additional caching layer and I'm a little bit lazy already :) The biggest problem is with timeshift and how different clients are implemented.

User agent can be changed with small changes in the code. We need to provide setting for this and set header in HttpRequest.newBuilder()....

Example: https://stackoverflow.com/questions/60854339/how-to-change-the-user-agent-string-for-java-net-http-httpclient

@steamyRayV
Copy link

Thanks! I'll try.

@prog1407
Copy link

Well, having an option to stream one iptv provider connection to several clients would be really cool feature! For example, I have one iptv provider of a higher price (due to 4k streaming) and both me and my father watch the same sport event from the same channel from different cities simultaneously. It happens few times a month therefore not too much sense to buy second subscription.
Seems that for now tvheadend is the only option for me. Basically I can import iptv channels into tvh and then re-import them from tvh to iptv-proxy in order to have the channels properly distributed to all my TVs through single playlist.

@prog1407
Copy link

the trick with user agent could also be helpful as some iptv providers may try to ban users with "weird" agents to prevent subscription sharing) Did that part on my fork prog1407@9bbd06a

@steamyRayV
Copy link

Seems that for now tvheadend is the only option for me. Basically I can import iptv channels into tvh and then re-import them from tvh to iptv-proxy in order to have the channels properly distributed to all my TVs through single playlist.

TVHeadend is great but it forces you to output TS container without support for HLS, correct?

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

No branches or pull requests

4 participants