Skip to content
Snippets Groups Projects
Commit a9b2446f authored by Daniel Müller's avatar Daniel Müller :speech_balloon:
Browse files

Default volume 30

parent 679fc14f
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,12 @@ ...@@ -26,7 +26,12 @@
vs.type = "range" vs.type = "range"
vs.min = 1 vs.min = 1
vs.max = 100 vs.max = 100
vs.value = 100 vs.value = 30
// Set the audio volume to default value. This needs to be delayed due to BBB audio stream stuff
window.setTimeout(() => {
document.getElementById("remote-media").volume = Math.pow(vs.value / 100.0, 2)
}, 1000)
vs.oninput = function() { vs.oninput = function() {
document.getElementById("remote-media").volume = Math.pow(this.value / 100.0, 2) document.getElementById("remote-media").volume = Math.pow(this.value / 100.0, 2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment