Play an audio and set volume with JS
Posted: 07 Dec 2020, 07:20
I'm trying to create a script for a web page that has an audio like this:
What I need to do is a script that plays the audio and sets its volume at 50%. How to do?
Code: Select all
<div class='class1' id='id1'>
<audio src='link_to_audio' controls='' preload='none' controlslist='nodownload'>
</audio>
</div>