1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for #133, rtsp parse the announce packet, parse the sps/pps and audio sequence header by base64.

This commit is contained in:
winlin 2015-02-17 14:16:02 +08:00
parent 604f4cc57b
commit 4807f7850d
5 changed files with 729 additions and 13 deletions

View file

@ -92,7 +92,14 @@ int SrsRtspConn::do_cycle()
if (req->is_options()) {
if ((ret = rtsp->send_message(new SrsRtspOptionsResponse(req->seq))) != ERROR_SUCCESS) {
if (!srs_is_client_gracefully_close(ret)) {
srs_error("rtsp: send response failed. ret=%d", ret);
srs_error("rtsp: send OPTIONS response failed. ret=%d", ret);
}
return ret;
}
} else if (req->is_announce()) {
if ((ret = rtsp->send_message(new SrsRtspResponse(req->seq))) != ERROR_SUCCESS) {
if (!srs_is_client_gracefully_close(ret)) {
srs_error("rtsp: send ANNOUNCE response failed. ret=%d", ret);
}
return ret;
}