MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / updateVolume

Function updateVolume

assets/js/video.js:120–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118// updateVolume updates the video's volume
119// and disables the muted state if active
120function updateVolume() {
121 if (video.muted) {
122 video.muted = false;
123 }
124
125 video.volume = volume.value;
126}
127
128// updateVolumeIcon updates the volume icon so that it correctly reflects
129// the volume of the video

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected