From f9e3b50a9b79ea4764edd3e68a7eebf0ca0dfc9f Mon Sep 17 00:00:00 2001 From: amnonbb Date: Mon, 16 Sep 2024 11:51:56 +0300 Subject: [PATCH] Add display property on leave or unpublish event --- src/plugins/janus_videoroom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/janus_videoroom.c b/src/plugins/janus_videoroom.c index f6f7b2aeb8..0b5f722784 100644 --- a/src/plugins/janus_videoroom.c +++ b/src/plugins/janus_videoroom.c @@ -4416,6 +4416,8 @@ static void janus_videoroom_leave_or_unpublish(janus_videoroom_publisher *partic json_object_set_new(info, "event", json_string(is_leaving ? (kicked ? "kicked" : "leaving") : "unpublished")); json_object_set_new(info, "room", string_ids ? json_string(participant->room_id_str) : json_integer(participant->room_id)); json_object_set_new(info, "id", string_ids ? json_string(participant->user_id_str) : json_integer(participant->user_id)); + if(participant->display) + json_object_set_new(info, "display", json_string(participant->display)); gateway->notify_event(&janus_videoroom_plugin, NULL, info); } if(is_leaving) {