Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: String replace in .m3u8 file

$
0
0
Thanks for your answer, I use proxy_pass to hide real url for m3u8 file from onother server, proxy working but I need to change string in that file.

For example if I open on browser url http://127.0.0.1:8080/test I get over proxy_pass

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=1000000
chunklist_w000000_x1000000.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=2500000
chunklist_w000000_x2500000.m3u8

So I need to change for example "#EXTM3U" to be :

newstring
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=1000000
chunklist_w000000_x1000000.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=2500000
chunklist_w000000_x2500000.m3u8

I hope now is clear !

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>