|
|
@ -200,8 +200,6 @@ srs_error_t SrsGoApiRtcPlay::do_serve_http(ISrsHttpResponseWriter* w, ISrsHttpMe
|
|
|
|
|
|
|
|
|
|
|
|
string local_sdp_str = os.str();
|
|
|
|
string local_sdp_str = os.str();
|
|
|
|
|
|
|
|
|
|
|
|
srs_verbose("local_sdp=%s", local_sdp_str.c_str());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
res->set("code", SrsJsonAny::integer(ERROR_SUCCESS));
|
|
|
|
res->set("code", SrsJsonAny::integer(ERROR_SUCCESS));
|
|
|
|
res->set("server", SrsJsonAny::integer(SrsStatistic::instance()->server_id()));
|
|
|
|
res->set("server", SrsJsonAny::integer(SrsStatistic::instance()->server_id()));
|
|
|
|
|
|
|
|
|
|
|
@ -212,6 +210,8 @@ srs_error_t SrsGoApiRtcPlay::do_serve_http(ISrsHttpResponseWriter* w, ISrsHttpMe
|
|
|
|
|
|
|
|
|
|
|
|
srs_trace("RTC username=%s, offer=%dB, answer=%dB", session->username().c_str(),
|
|
|
|
srs_trace("RTC username=%s, offer=%dB, answer=%dB", session->username().c_str(),
|
|
|
|
remote_sdp_str.length(), local_sdp_str.length());
|
|
|
|
remote_sdp_str.length(), local_sdp_str.length());
|
|
|
|
|
|
|
|
srs_trace("RTC offer: %s", srs_string_replace(remote_sdp_str.c_str(), "\r\n", "\\r\\n").c_str());
|
|
|
|
|
|
|
|
srs_trace("RTC answer: %s", srs_string_replace(local_sdp_str.c_str(), "\r\n", "\\r\\n").c_str());
|
|
|
|
|
|
|
|
|
|
|
|
return err;
|
|
|
|
return err;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -553,8 +553,6 @@ srs_error_t SrsGoApiRtcPublish::do_serve_http(ISrsHttpResponseWriter* w, ISrsHtt
|
|
|
|
|
|
|
|
|
|
|
|
string local_sdp_str = os.str();
|
|
|
|
string local_sdp_str = os.str();
|
|
|
|
|
|
|
|
|
|
|
|
srs_verbose("local_sdp=%s", local_sdp_str.c_str());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
res->set("code", SrsJsonAny::integer(ERROR_SUCCESS));
|
|
|
|
res->set("code", SrsJsonAny::integer(ERROR_SUCCESS));
|
|
|
|
res->set("server", SrsJsonAny::integer(SrsStatistic::instance()->server_id()));
|
|
|
|
res->set("server", SrsJsonAny::integer(SrsStatistic::instance()->server_id()));
|
|
|
|
|
|
|
|
|
|
|
@ -565,6 +563,8 @@ srs_error_t SrsGoApiRtcPublish::do_serve_http(ISrsHttpResponseWriter* w, ISrsHtt
|
|
|
|
|
|
|
|
|
|
|
|
srs_trace("RTC username=%s, offer=%dB, answer=%dB", session->username().c_str(),
|
|
|
|
srs_trace("RTC username=%s, offer=%dB, answer=%dB", session->username().c_str(),
|
|
|
|
remote_sdp_str.length(), local_sdp_str.length());
|
|
|
|
remote_sdp_str.length(), local_sdp_str.length());
|
|
|
|
|
|
|
|
srs_trace("RTC offer: %s", srs_string_replace(remote_sdp_str.c_str(), "\r\n", "\\r\\n").c_str());
|
|
|
|
|
|
|
|
srs_trace("RTC answer: %s", srs_string_replace(local_sdp_str.c_str(), "\r\n", "\\r\\n").c_str());
|
|
|
|
|
|
|
|
|
|
|
|
return err;
|
|
|
|
return err;
|
|
|
|
}
|
|
|
|
}
|
|
|
|