Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(speaker-stats): calculate total dominant speaker time if user is dominant and has no previous speaker time
Gabriel Borleaaf010728279b
diff --git a/resources/prosody-plugins/mod_speakerstats_component.lua b/resources/prosody-plugins/mod_speakerstats_component.luaindex 26df7647da..a49cb6d031 100644--- a/resources/prosody-plugins/mod_speakerstats_component.lua+++ b/resources/prosody-plugins/mod_speakerstats_component.lua@@ -151,7 +151,7 @@ function occupant_joined(event)-- and skip focus if sneaked into the tableif values.nick ~= nil and values.nick ~= 'focus' thenlocal totalDominantSpeakerTime = values.totalDominantSpeakerTime;- if totalDominantSpeakerTime > 0 or room:get_occupant_jid(jid) == nil then+ if totalDominantSpeakerTime > 0 or room:get_occupant_jid(jid) == nil or values:isDominantSpeaker() then-- before sending we need to calculate current dominant speaker stateif values:isDominantSpeaker() thenlocal timeElapsed = math.floor(socket.gettime()*1000 - values._dominantSpeakerStart);