X
Tap here to go to the mobile version of the site.

Support Forum

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

Posted

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.

Additional System Details

Installed Plug-ins

  • Adobe PDF Plug-In For Firefox and Netscape 11.0.11
  • GEPlugin
  • Google Update
  • Intel web components for Intel® Identity Protection Technology
  • Intel web components updater - Installs and updates the Intel web components
  • Next Generation Java Plug-in 11.45.2 for Mozilla browsers
  • NVIDIA 3D Vision Streaming plugin for Mozilla browsers
  • NVIDIA 3D Vision plugin for Mozilla browsers
  • NPWLPG
  • Picasa plugin
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Shockwave Flash 17.0 r0
  • 5.1.40416.0
  • iTunes Detector Plug-in

Application

  • Firefox 38.0.1
  • User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
  • Support URL: https://support.mozilla.org/1/firefox/38.0.1/WINNT/en-US/

Extensions

  • NoScript 2.6.9.26 ({73a6fe31-595d-460b-a920-fcc0f8843232})
  • Speed Dial [FVD] - New Tab Page, Sync... 7.0.1.1-signed (pavel.sherbakov@gmail.com)
  • Adblock Plus 2.6.9.1-signed ({d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}) (Inactive)

Javascript

  • incrementalGCEnabled: True

Graphics

  • adapterDescription: NVIDIA GeForce GT 620
  • adapterDescription2:
  • adapterDeviceID: 0x1049
  • adapterDeviceID2:
  • adapterDrivers: nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
  • adapterDrivers2:
  • adapterRAM: 1024
  • adapterRAM2:
  • adapterSubsysID: 097710de
  • adapterSubsysID2:
  • adapterVendorID: 0x10de
  • adapterVendorID2:
  • direct2DEnabled: True
  • directWriteEnabled: True
  • directWriteVersion: 6.3.9600.17795
  • driverDate: 2-5-2015
  • driverDate2:
  • driverVersion: 9.18.13.4752
  • driverVersion2:
  • info: {u'AzureCanvasBackend': u'direct2d 1.1', u'AzureFallbackCanvasBackend': u'cairo', u'AzureContentBackend': u'direct2d 1.1', u'AzureSkiaAccelerated': 0}
  • isGPU2Active: False
  • numAcceleratedWindows: 1
  • numTotalWindows: 1
  • webglRenderer: Google Inc. -- ANGLE (NVIDIA GeForce GT 620 Direct3D11 vs_5_0 ps_5_0)
  • windowLayerManagerRemote: True
  • windowLayerManagerType: Direct3D 11

Modified Preferences

Misc

  • User JS: No
  • Accessibility: Yes
philipp
  • Top 25 Contributor
  • Moderator
5306 solutions 23425 answers

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

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

Question owner

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!).

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!).
philipp
  • Top 25 Contributor
  • Moderator
5306 solutions 23425 answers

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)...

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)...
jscher2000
  • Top 10 Contributor
8704 solutions 71122 answers

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.

If there isn't an add-on to manage this globally... The following snippet of code sets the volume of every &lt;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. <code>var players=document.getElementsByTagName("video"); for(var i=0;i&lt;players.length;i++) players[i].volume=0.5;</code> 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.

Question owner

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.

I assume from your reply: 1. To lower the volume "...every <video> tag in a page to 50%" I need to add this code somewhere on a page using the Web Console. 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.
jscher2000
  • Top 10 Contributor
8704 solutions 71122 answers

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.

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: * http://www.w3schools.com/html/html5_video.asp * http://mediaelementjs.com/ * http://html5video.org/ - ''but slider incorrectly shows 100%'' 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.
jscher2000
  • Top 10 Contributor
8704 solutions 71122 answers

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.

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.

Modified by jscher2000