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
238 stars 68 forks source link

how to change .ts extension on output m3u8 #38

Closed siberkolosis closed 7 months ago

siberkolosis commented 7 months ago

want to bypass firewall. how to change or rename .ts extension on m3u8 playlist output?

thank you.

warren-bank commented 7 months ago

this is a feature that wasn't previously available.

so I just released v3.4.2 which adds options to configure the file extensions used for both manifests (default: m3u8) and media segments (default: ts).

for example:

  1. start server
      hlsd -v 3 --port 8080 --manifest-extension "manifest" --segment-extension "segment"
  2. open master manifest directly in browser: CBS News
  3. open the same master manifest in browser through hls proxy: modified_master.m3u8
  4. open the 640p child manifest in browser through hls proxy: modified_child.m3u8
  5. open the first video segment in browser through hls proxy: segment_1.ts
siberkolosis commented 7 months ago

thank you very much... its working now..