ZLMediaKit / ZLMediaKit

WebRTC/RTSP/RTMP/HTTP/HLS/HTTP-FLV/WebSocket-FLV/HTTP-TS/HTTP-fMP4/WebSocket-TS/WebSocket-fMP4/GB28181/SRT server and client framework based on C++11
https://docs.zlmediakit.com
Other
13.99k stars 3.42k forks source link

**Feature Request: Setting Request Headers During Stream Proxy Live Streaming** #3820

Open zqs125 opened 2 months ago

zqs125 commented 2 months ago

Describe the purpose of this feature, and provide relevant information to describe this feature

Currently, in a scenario where requests are restricted to a specific UA, and the parameters in the addStreamProxy do not specify setting the request headers, can you provide an addStreamProxy streaming request header setting parameter? For example, setting the User-Agent or is there another way to set a request header for streaming now?

Is this feature used to improve project defects? If so, please describe the existing defects

Describe how you expect to achieve this feature and the final effect

描述该功能的用处,可以提供相关资料描述该功能

场景里遇到限制了UA才能访问,现在addStreamProxy的参数里也没有设置请求头的参数,能提供一个addStreamProxy拉流时的请求头设置参数吗?比如像User-Agent的设置,或者现阶段我可以通过什么方式可以设置拉流时的请求头?

该功能是否用于改进项目缺陷,如果是,请描述现有缺陷

描述你期望实现该功能的方式和最终效果

TRANS_BY_GITHUB_AI_ASSISTANT

xia-chu commented 2 months ago

What protocol do you mean? Which server has such a restriction?

http-flv/http-ts/hls/rtsp拉流都支持UA,你说的哪个协议? 什么服务端有这种限制?

TRANS_BY_GITHUB_AI_ASSISTANT

zqs125 commented 2 months ago

Here is the translated text:

PLACEHOLDER_1_quote

I may not be clear in my expression, but what I mean is that when I add a stream through addStreamProxy, when zlmediakit pulls this stream, the server is restricted by a specific UA, so a UA must be carried to pull it. I checked the parameters and configuration file of addStreamProxy, but I didn't see a setting for the request header. So I wonder, through what method can I set this?

http-flv/http-ts/hls/rtsp拉流都支持UA,你说的哪个协议? 什么服务端有这种限制?

可能我的表述不清楚,我的意思是通过addStreamProxy添加流,zlmediakit去拉这个流时,服务器那边限制了特定的UA,所以要携带这个UA才能拉,我查看了addStreamProxy参数和配置文件,没有看到有设置请求头的地方,我通过什么方式可以设置这个?

TRANS_BY_GITHUB_AI_ASSISTANT

xia-chu commented 2 months ago

No way to set up his server like this, is it like he's the strong party in this matter?

没法设置 他这服务器这么设置 是什么强势甲方吗

TRANS_BY_GITHUB_AI_ASSISTANT