Like Ra's Naughty Forum
Initial Volume in Videos - Printable Version

+- Like Ra's Naughty Forum (https://www.likera.com/forum/mybb)
+-- Forum: Technical section (https://www.likera.com/forum/mybb/Forum-Technical-section)
+--- Forum: Site (https://www.likera.com/forum/mybb/Forum-Site)
+--- Thread: Initial Volume in Videos (/Thread-Initial-Volume-in-Videos)



Initial Volume in Videos - krinlyc - 01 Nov 2025

Hi  Ra,

is it possible that you set the initial volume to say 30% or so?

Every single video starts at 100% volume. There are some videos here that were recorded at an incredibly high volume.

I'm deaf at the moment...

krin


RE: Initial Volume in Videos - Like Ra - 02 Nov 2025

(01 Nov 2025, 08:22 )krinlyc Wrote: Every single video starts at 100% volume.


What is your computer/volume setting? If it's set to 50%, do videos overwrite it to 100%?


RE: Initial Volume in Videos - krinlyc - 02 Nov 2025

(02 Nov 2025, 02:26 )Like Ra Wrote:
(01 Nov 2025, 08:22 )krinlyc Wrote: Every single video starts at 100% volume.


What is your computer/volume setting? If it's set to 50%, do videos overwrite it to 100%?

My Computer Windows Volume Setting is about 30% and no vids do not overwrite - das wäre ja auch noch besser -
I do wear headphones most of the time.

In other apps Spotify, youtube and such I have a preset which works quite nicely.

The following vid is soooo loud: https://www.likera.com/forum/mybb/attachment.php?aid=68929


RE: Initial Volume in Videos - Like Ra - 02 Nov 2025

(02 Nov 2025, 08:47 )krinlyc Wrote: The following vid is soooo loud
I see that it's from twitter. Can you drop a link to the post?


RE: Initial Volume in Videos - Like Ra - 02 Nov 2025

There is no volume preset in the HTML video tag:

https://www.w3schools.com/tags/tag_video.asp


RE: Initial Volume in Videos - krinlyc - 04 Nov 2025

https://stackoverflow.com/questions/33747398/html-audio-tag-volume

Code:
<audio autoplay id="myaudio">
  <source src="http://lel.com/link/to/stream.m3u">
</audio>

<script>
  var audio = document.getElementById("myaudio");
  audio.volume = 0.2;
</script>
Maybe it does work for video too?


RE: Initial Volume in Videos - Like Ra - 04 Nov 2025

Aha! Great idea!
Possibly something like

Code:
var videos=document.getElementsByTagName("video");
for(let i = 0;i < videos.length; i++)
{
   videos[i].volume = 0.2;
}



RE: Initial Volume in Videos - Like Ra - 04 Nov 2025

Thanks to ChatGPT:

Code:
<script async type="text/javascript">
  document.addEventListener("DOMContentLoaded", () => {
    for (const video of document.querySelectorAll("video")) {
      video.volume = 0.2;
    }
  });
</script>

And a test:

Code:
document.querySelectorAll("video")[0].volume



RE: Initial Volume in Videos - Like Ra - 04 Nov 2025

Done! And it works!