Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 487 Bytes

The volume property is available to you on the [[audio]] or [[video]] elements via JavaScript.

This property contains the volume (0 - 9) of the selected media element. This property is only available after the video is loaded with the load method.

document
  .querySelector('audioOrVideoSelector')
  .volume // returns the current playback rate

  document
    .querySelector('audioOrVideoSelector')
    .volume = 8 // make it almost as loud as it can go