Reputation: 3331
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!
Upvotes: 0
Views: 4673
Reputation: 761
You can simply just do this:
audio.sound = .5
Before you call audio.play ()
Upvotes: -1