1
Friends, I have an Html5 player with all standard controllers. I would like to make a volume controller in this same style:
My code so far
<audio id="demo" src="http://audio.ibeat.org/content/p1rj1s/p1rj1s_-_rockGuitar.mp3"></audio>
<div>
<button onclick="document.getElementById('demo').play()">Reproduzir o áudio</button>
<button onclick="document.getElementById('demo').pause()">Pausar o áudio</button>
<button onclick="document.getElementById('demo').volume+=0.1">Aumentar o volume</button>
<button onclick="document.getElementById('demo').volume-=0.1">Diminuir o volume</button>
</div>
and I would like instead of those buttons that appear to increase and decrease the volume to be a bar in the same style as the one I posted above. If anyone could help me, I’d appreciate it. Grateful from now on.
Thank you! That’s exactly what I was looking for.
– Gabriel Gouveia