Commit 4fd2b3ea authored by Sergio Ammirata's avatar Sergio Ammirata

Add peer type to advanced stats

parent 75e7ef3d
Pipeline #39511 passed with stages
in 1 minute and 38 seconds
......@@ -63,6 +63,7 @@ void rist_sender_peer_statistics(struct rist_peer *peer)
cJSON_AddNumberToObject(peer_obj, "flow_id", peer->adv_flow_id);
cJSON_AddNumberToObject(peer_obj, "id", peer->adv_peer_id);
cJSON_AddStringToObject(peer_obj, "cname", peer->receiver_name);
cJSON_AddStringToObject(peer_obj, "type", peer->is_data ? "data" : "rtcp");
cJSON *json_stats = cJSON_AddObjectToObject(peer_obj, "stats");
cJSON_AddNumberToObject(json_stats, "quality", Q);
cJSON_AddNumberToObject(json_stats, "sent", (double)peer->stats_sender_instant.sent);
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