Nothing fancy here, I just want the audio to play at a desired volume level.
var audio = new Audio('mysound.mp3');
audio.play();
I assume there are parameters I can pass into audio.play, but I've had a hard time finding a good reference.
Thanks!
答案 0 :(得分:2)
You set volume like so
audio.volume = 0.75; // 75%
答案 1 :(得分:0)
You can simply just do this:
audio.sound = .5
Before you call audio.play ()