diff --git a/package-lock.json b/package-lock.json
index c173e1c2..9e74e8be 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "mirotalksfu",
- "version": "1.8.86",
+ "version": "1.8.87",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "mirotalksfu",
- "version": "1.8.86",
+ "version": "1.8.87",
"license": "AGPL-3.0",
"dependencies": {
"@aws-sdk/client-s3": "^3.842.0",
diff --git a/package.json b/package.json
index 9ac81dd4..8dbece33 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "mirotalksfu",
- "version": "1.8.86",
+ "version": "1.8.87",
"description": "WebRTC SFU browser-based video calls",
"main": "Server.js",
"scripts": {
diff --git a/public/js/Brand.js b/public/js/Brand.js
index 65418702..72999e9d 100644
--- a/public/js/Brand.js
+++ b/public/js/Brand.js
@@ -76,7 +76,7 @@ let BRAND = {
},
about: {
imageUrl: '../images/mirotalk-logo.gif',
- title: 'WebRTC SFU v1.8.86',
+ title: 'WebRTC SFU v1.8.87',
html: `
diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js
index 528e5b66..d01798fd 100644
--- a/public/js/RoomClient.js
+++ b/public/js/RoomClient.js
@@ -9,7 +9,7 @@
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
- * @version 1.8.86
+ * @version 1.8.87
*
*/
diff --git a/public/js/VolumeProcessor.js b/public/js/VolumeProcessor.js
index adb73479..65dfdfe2 100644
--- a/public/js/VolumeProcessor.js
+++ b/public/js/VolumeProcessor.js
@@ -1,7 +1,8 @@
-// volume-processor.js
+'use strict';
class VolumeProcessor extends AudioWorkletProcessor {
constructor() {
super();
+ this.silenceThreshold = 0.01;
}
process(inputs, outputs, parameters) {
@@ -23,11 +24,13 @@ class VolumeProcessor extends AudioWorkletProcessor {
const rms = Math.sqrt(sum / inputData.length);
const volume = Math.max(0, Math.min(1, rms * 10));
- // Send volume data for UI updates
- this.port.postMessage({
- type: 'volumeIndicator',
- volume: volume,
- });
+ // Only send if not silent
+ if (volume > this.silenceThreshold) {
+ this.port.postMessage({
+ type: 'volumeIndicator',
+ volume: volume,
+ });
+ }
return true;
}