diff --git a/assets/js/components/calls/window.js b/assets/js/components/calls/window.js index 6d6cde91..8bb3f9a4 100644 --- a/assets/js/components/calls/window.js +++ b/assets/js/components/calls/window.js @@ -820,8 +820,17 @@ class CallWindow extends CustomEvents { const memberEl = this.getMemberNameEl(peerID); + let callsCount = 0; + + script_processor_analysis_node.onaudioprocess = (e) => { + + // Do not update count each time + callsCount++; + if(callsCount < 5) + return; + callsCount = 0; + - script_processor_analysis_node.onaudioprocess = function(e) { analyzer_node.getByteFrequencyData(freq_data); let count = 0;