warren-bank / HLS-Proxy

Node.js server to proxy HLS video streams
http://webcast-reloaded.surge.sh/proxy.html
GNU General Public License v2.0
256 stars 80 forks source link

Proxy proxies the parent m3u8 file but not the child files #14

Closed parnexcodes closed 2 years ago

parnexcodes commented 2 years ago

As you can see the index.m3u8 files gets proxied : https://i.imgur.com/3ya2V8D.png but the children files like 1080p.m3u8 don't : https://i.imgur.com/Tk0162f.png

Logs : https://gist.github.com/parnexcodes/dab9cb222c7dbe5d9846c846f805188b

warren-bank commented 2 years ago

  hls_url='https://b-g-eu-7.feetcdn.com:2223/v2-hls-playback/28c7e8007f053b574166750dd0ab9460c2f17c749335609a9d91a80c0978166ee841493952cf700b09ad0bd24ea4071c04a9db747d2bd2766b2e5292ced3adebb4005aaa3e81b9c9508d5df4c9c36e5b8e54aeca4c8d8f24b8b0f957ab31d0f1afe6809096140b64944cea86ab333d5fbc0469b75094365f24641fbe2e6df6e026188b81e74b75fa94a9bf9d4b3bc68d4f65891c782c545531e522653271a4f4153bc990c30a1a0f516a361c9bfb17bb/1080/index.m3u8'

  curl -I "$hls_url" -A ""
    # curl: (52) Empty reply from server

  curl -I "$hls_url" -A "nget"
    # HTTP/1.1 200 OK
    # Date: Fri, 22 Jul 2022 03:46:06 GMT
    # Content-Type: application/vnd.apple.mpegurl
    # Connection: keep-alive
    # Last-Modified: Sun, 19 Nov 2000 08:52:00 GMT
    # Expires: Sat, 06 Aug 2022 03:46:06 GMT
    # Cache-Control: max-age=1296000
    # X-Cache: HIT
    # Server: betterstream v2

conclusions:

solution:

result: