From 90c2c5c01b32a9c71a26ca03bed9db10cd08215b Mon Sep 17 00:00:00 2001 From: Wilson <63026676+hypeARM@users.noreply.github.com> Date: Sun, 19 Jan 2025 08:29:11 -0300 Subject: [PATCH] Update main.js Prevent the volume from remaining the same when the player is paused with the volume at zero If you pause the player, reset the volume and play it again, you will see that the player will have the volume at 100% for a moment --- web/js/3las/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/js/3las/main.js b/web/js/3las/main.js index 7784272..3af2619 100644 --- a/web/js/3las/main.js +++ b/web/js/3las/main.js @@ -11,6 +11,7 @@ function createStream() { try { const settings = new _3LAS_Settings(); Stream = new _3LAS(null, settings); + Stream.Volume = $('#volumeSlider').val(); Stream.ConnectivityCallback = OnConnectivityCallback; } catch (error) { console.error("Initialization Error: ", error);