mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修复FFmpeg无法播放rtsp over http的问题
This commit is contained in:
parent
0428507509
commit
2b86082f3d
@ -839,8 +839,7 @@ void RtspSession::handleReq_Teardown(const Parser &parser) {
|
|||||||
void RtspSession::handleReq_Get(const Parser &parser) {
|
void RtspSession::handleReq_Get(const Parser &parser) {
|
||||||
_http_x_sessioncookie = parser["x-sessioncookie"];
|
_http_x_sessioncookie = parser["x-sessioncookie"];
|
||||||
sendRtspResponse("200 OK",
|
sendRtspResponse("200 OK",
|
||||||
{"Connection","Close",
|
{"Cache-Control","no-store",
|
||||||
"Cache-Control","no-store",
|
|
||||||
"Pragma","no-store",
|
"Pragma","no-store",
|
||||||
"Content-Type","application/x-rtsp-tunnelled",
|
"Content-Type","application/x-rtsp-tunnelled",
|
||||||
},"","HTTP/1.0");
|
},"","HTTP/1.0");
|
||||||
@ -886,6 +885,12 @@ void RtspSession::handleReq_Post(const Parser &parser) {
|
|||||||
//http poster后面的粘包
|
//http poster后面的粘包
|
||||||
_onRecv(std::make_shared<BufferString>(parser.Content()));
|
_onRecv(std::make_shared<BufferString>(parser.Content()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sendRtspResponse("200 OK",
|
||||||
|
{"Cache-Control","no-store",
|
||||||
|
"Pragma","no-store",
|
||||||
|
"Content-Type","application/x-rtsp-tunnelled",
|
||||||
|
},"","HTTP/1.0");
|
||||||
}
|
}
|
||||||
|
|
||||||
void RtspSession::handleReq_SET_PARAMETER(const Parser &parser) {
|
void RtspSession::handleReq_SET_PARAMETER(const Parser &parser) {
|
||||||
|
Loading…
Reference in New Issue
Block a user