summaryrefslogtreecommitdiff
path: root/jitsi-meet/prosody-plugins/mod_speakerstats.lua
diff options
context:
space:
mode:
authorAntoine Ouvrard <antoine.ouvrard@nereide.fr>2020-11-23 10:28:32 +0100
committerAntoine Ouvrard <antoine.ouvrard@nereide.fr>2020-11-23 10:28:32 +0100
commitd3277d65639ef43230b71305922b5ccf33d86083 (patch)
tree87455d87a534c1bcb33a34290b840b68e573df96 /jitsi-meet/prosody-plugins/mod_speakerstats.lua
initial commit
Diffstat (limited to 'jitsi-meet/prosody-plugins/mod_speakerstats.lua')
-rw-r--r--jitsi-meet/prosody-plugins/mod_speakerstats.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/jitsi-meet/prosody-plugins/mod_speakerstats.lua b/jitsi-meet/prosody-plugins/mod_speakerstats.lua
new file mode 100644
index 0000000..9651c4f
--- /dev/null
+++ b/jitsi-meet/prosody-plugins/mod_speakerstats.lua
@@ -0,0 +1,7 @@
+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);