Search code examples
javascriptvideo-streaminghtml5-videohtml5-audio

How does youtube volume controls work internally?


I'm curious how Youtube allows you to control the speaker volume through embedded controls in their website? Can Javascript control the speaker output? Thanks in advance.


Solution

  • You can assign the volume property of the audio or video element to set the output volume.