Commit f65436a1 authored by Olivier Crête's avatar Olivier Crête

Print SDP answer

parent 2bb0f72e
...@@ -140,8 +140,11 @@ mss_http_server_handle_message (MssHttpServer *server, ...@@ -140,8 +140,11 @@ mss_http_server_handle_message (MssHttpServer *server,
msg_type = json_object_get_string_member (msg, "msg"); msg_type = json_object_get_string_member (msg, "msg");
if (g_str_equal(msg_type, "answer")) { if (g_str_equal(msg_type, "answer")) {
const gchar *answer_sdp = json_object_get_string_member (msg, "sdp");
g_debug ("Received answer:\n %s", answer_sdp);
g_signal_emit (server, signals[SIGNAL_SDP_ANSWER], 0, connection, g_signal_emit (server, signals[SIGNAL_SDP_ANSWER], 0, connection,
json_object_get_string_member (msg, "sdp")); answer_sdp);
} else if (g_str_equal(msg_type, "candidate")) { } else if (g_str_equal(msg_type, "candidate")) {
JsonObject *candidate; JsonObject *candidate;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment