mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-15 04:25:58 +08:00
rtsp/http类型播放协议支持自定义header
This commit is contained in:
@@ -36,6 +36,7 @@ void HlsPlayer::fetchIndexFile() {
|
||||
}
|
||||
setCompleteTimeout((*this)[Client::kTimeoutMS].as<int>());
|
||||
setMethod("GET");
|
||||
addCustomHeader(this);
|
||||
sendRequest(_play_url);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ void TsPlayer::play(const string &url) {
|
||||
setHeaderTimeout((*this)[Client::kTimeoutMS].as<int>());
|
||||
setBodyTimeout((*this)[Client::kMediaTimeoutMS].as<int>());
|
||||
setMethod("GET");
|
||||
addCustomHeader(this);
|
||||
sendRequest(url);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user