1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 14:11:59 +01:00

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
This commit is contained in:
Wilson
2025-01-19 08:29:11 -03:00
committed by GitHub
parent f0eda2ba0b
commit 90c2c5c01b

View File

@@ -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);