简体   繁体   English

Nginx如何反向代理HLS?

[英]How does Nginx reverse proxy HLS?

I have a question, is it possible for Nginx to proxy HLS video streaming?我有一个问题,Nginx 是否可以代理 HLS 视频流?

Example HLS.示例 HLS。

https://bcliveunivsecure-lh.akamaihd.net/i/un150_A1_1@575439/master.m3u8

Access link after reverse proxy.反向代理后访问链接。

http://my_server_ip/proxy/un_live.m3u8

Before asking this question, I tried to turn to search engines and found very little useful information.在问这个问题之前,我试着求助于搜索引擎,发现有用的信息很少。 Can you all help answer this question?大家能帮忙回答一下这个问题吗? Thank you in advance!先感谢您!

Yes, it's possible.是的,这是可能的。 Unless you're doing some transcoding or latency hacks, serving HLS is no different than serving any other static files over HTTP.除非您正在做一些转码或延迟黑客,否则提供 HLS 与通过 HTTP 提供任何其他 static 文件没有什么不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM