Answers for "javascript set audio volume"

1

play an audio at a specific volume in javascript

var music = new audio({
    loop: true,
    volume: 1,
    src: ['music.mp3']
})

//or 

var music = new Audio('music.mp3');
music.loop = true;
music.volume = 0.2;
Posted by: Guest on August-10-2021
1

set audio element volume html

var vid = document.getElementById("myVideo");
vid.volume = 0.2;
Posted by: Guest on August-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language