修复FFmpeg无法播放rtsp over http的问题

This commit is contained in:
xiongziliang 2019-05-31 10:16:31 +08:00
parent 0428507509
commit 2b86082f3d

View File

@ -839,8 +839,7 @@ void RtspSession::handleReq_Teardown(const Parser &parser) {
void RtspSession::handleReq_Get(const Parser &parser) {
_http_x_sessioncookie = parser["x-sessioncookie"];
sendRtspResponse("200 OK",
{"Connection","Close",
"Cache-Control","no-store",
{"Cache-Control","no-store",
"Pragma","no-store",
"Content-Type","application/x-rtsp-tunnelled",
},"","HTTP/1.0");
@ -886,6 +885,12 @@ void RtspSession::handleReq_Post(const Parser &parser) {
//http poster后面的粘包
_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) {