You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2019/09/19 04:24:37 UTC

[openmeetings] branch master updated: [OPENMEETINGS-2112] 'user speaks' calculation is improved

This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new 1d4bc82  [OPENMEETINGS-2112] 'user speaks' calculation is improved
1d4bc82 is described below

commit 1d4bc8261c29cd6458f1611e17df38c7351aae9a
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Thu Sep 19 11:24:23 2019 +0700

    [OPENMEETINGS-2112] 'user speaks' calculation is improved
---
 .../src/main/java/org/apache/openmeetings/web/room/raw-settings.js     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-settings.js b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-settings.js
index 7105777..22d71b5 100644
--- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-settings.js
+++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-settings.js
@@ -86,7 +86,8 @@ var MicLevel = (function() {
 					}
 					vol = Math.sqrt(favg / al);
 					vals.push(vol);
-					_micActivity(vol > vals.min());
+					const min = vals.min();
+					_micActivity(vol > min + 5); // magic number
 					canvasCtx.fillStyle = color;
 					if (horiz) {
 						canvasCtx.fillRect(0, 0, WIDTH * vol / 100, HEIGHT);