jitsi-meet/resources/prosody-plugins/mod_speakerstats.lua
damencho 3b4037553a Adds server-side speaker stats handling.
Adds the component which receives the messages from client and a module which enabled on a virtual host will start advertising the component. When clients discover the component they will send message to the component with the name of the room where the dominant speaker event happen.
2018-12-28 13:54:29 +00:00

8 lines
306 B
Lua

local speakerstats_component
= module:get_option_string(
"speakerstats_component", "speakerstats"..module.host);
-- Advertise speaker stats so client can pick up the address and start sending
-- dominant speaker events
module:add_identity("component", "speakerstats", speakerstats_component);