Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Więcej informacji

How do I set default html5 video volume to 50%?

more options

Every time I play a video in Firefox (example: Huffington Post Article with video) it starts with volume at 100%. I immediately have to scramble to adjust volume lower. It is extremely aggravating. I understand this is due to html5 video volume default is 100%. I NEED TO SET DEFAULT VOLUME TO 50%. If there is no solution, I will be have to go to another browser.

Every time I play a video in Firefox (example: Huffington Post Article with video) it starts with volume at 100%. I immediately have to scramble to adjust volume lower. It is extremely aggravating. I understand this is due to html5 video volume default is 100%. I NEED TO SET DEFAULT VOLUME TO 50%. If there is no solution, I will be have to go to another browser.

Wszystkie odpowiedzi (7)

more options

hello, if there's no solution within firefox, you can set firefox to 50% volume in the windows sound mixer...

more options

My windows sound mixer is already set to LESS THAN 50%. Videos starting at 100% in Firefox should NOT start at 100%. My eardrums need a break. I need this fixed, or I will have to go to another browser (which I don't want to do!).

more options

in the windows sound mixer you can set application specific volume levels - so you can set firefox to half of the normal value (20% for example)...

more options

If there isn't an add-on to manage this globally...

The following snippet of code sets the volume of every <video> tag in a page to 50%. It could be applied using a user script. However, if the player is add after this code runs, then it would have the default volume level.

var players=document.getElementsByTagName("video"); for(var i=0;i<players.length;i++) players[i].volume=0.5;

I tested this by using Firefox's Web Console to run it. (Ctrl+Shift+k or Developer menu) It seems to stop working after full screening the media, even if returning to the page. Not sure what that changes.

Someone will need to work on that a bit more to make it convenient to use.

more options

I assume from your reply:

1. To lower the volume "...every

2. You believe I know where to place this code.

3. Further, from your sentence "It seems to stop working after full screening the media, even if returning to the page." that once the page is left, all returns to normal (100%) and you have to do it all over again per page.

Which leads to the questions, "Do you understand that I need the default level to be 50% on every page?"

Please note: I am not a developer. I have not spent the time learning to code using whatever engine runs Firefox. So when you reply, I need the answer to be in layman's terms. That being said, I have done a little research and hear mostly that "HTML5 video volume=.50" needs to be inserted somewhere. It seems to work for those who have tried it.

more options

Sorry, I was half talking to myself there.

I created a user script to apply that code to video elements in pages when you load them. In order to test it out you need the Greasemonkey extension installed and enabled.

The Greasemonkey extension is here: https://addons.mozilla.org/firefox/addon/greasemonkey/

The script is here: https://greasyfork.org/en/scripts/10197-set-html5-video-volume

It worked on these example pages:

I can't tell whether it does anything on YouTube. I think Google is setting the volume based on what you did on the previous video.

more options

By the way, if you didn't find Firefox in the sound mixer, try starting some media, then click the volume icon in the notification area, then Mixer, and hopefully you will see something like the attached (which is from Windows 7). Here you can cap the volume for Firefox.

Zmodyfikowany przez jscher2000 - Support Volunteer w dniu