Initial Volume in Videos

8 Replies, 160 Views

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
(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%?
(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/attach...?aid=68929
(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?
There is no volume preset in the HTML video tag:

https://www.w3schools.com/tags/tag_video.asp
https://stackoverflow.com/questions/3374...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?
(This post was last modified: 04 Nov 2025, 22:45 by Like Ra.)
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;
}
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
(This post was last modified: 04 Nov 2025, 22:52 by Like Ra.)
Done! And it works!