5

So i have created audio with javascript like this:

var sound1 = new Audio("audio.mp3");

Now I want to set the volume of the audio, I have tried:

sound1.volume(0.5);

yes, i know its probably something to do with the syntax but I can't find any info on how to do this anywhere

0 Answers0