I embedded a background audio into my website which autoplays on visit.
The source of the audio is a online stream hotlink.
I already managed to do that and its working well.
Now i want to turn down the volume of the stream because the audio should just stay in the background and entertain the visitors instead of giving them ear cancer due to loudness.
I already searched the forums but i always found solutions for turning the volume of a video.
I also searched for the parameters of the audio tag but there seems no volume parameter for the audio tag.
Oh and don't worry about legalities.
The stream i use for the website has no copyright and i am permitted to use it on my website.
A quick response would be appreciated!
Thanks, C.C.!
解决方案
Theres no volume attribute supported by browsers so you must set the volume property in JavaScript
var audio = document.getElementById("myaudio");
audio.volume = 0.2;