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

streams stop after 2 minutes under specific condition #36

Open
makiele opened this issue Sep 6, 2023 · 1 comment
Open

streams stop after 2 minutes under specific condition #36

makiele opened this issue Sep 6, 2023 · 1 comment

Comments

@makiele
Copy link

makiele commented Sep 6, 2023

hi!
first of all, thanks so much for creating and maintaining this plugin, I love it so much, it has helped me a ton!

i am currently experiencing a quite specific issues i am not even sure is hls-proxys fault.

i use hls-proxy to inject the http-referrer of a website into their hls-streams.
thing is, this works perfectly fine for VLC, as well as iOS (IPTV Streamer) and Android (M3U IPTV).

it just doesn't work (correctly) on M3U IPTV (same developer as the Android-app) for my Samsung Tizen TV. when i start the proxied streams on my tv, they work for exactly 2 minutes and then stop, with the tv-app saying something along the lines of the stream has gone offline.

do you have an idea if i can fix that via a hls-proxy setting. already tried to contact the app-developer, but he didn't react to my question.

i'm running hls-proxy with sudo hlsd --port 8082 -v 4 --referer http://www.WEBSITE.com/ &

thanks a lot!

@warren-bank
Copy link
Owner

off-hand, I'd say that..

  • since the stream plays for 2 minutes, then you're satisfying their Referer header
    • otherwise, it wouldn't play at all
  • since it stops after a while, I'm guessing they use an IP whitelist
    • their "official" client probably uses a heartbeat
    • for example, it might make an XHR request to mothership once per minute to keep your IP on the whitelist.. and after 2 minutes your IP is removed from the whitelist
    • if so, you could easily write your own heartbeat

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

2 participants