I have a very simple website with an html5 video and a html5 audio that is triggered on and off with two simple buttons. the audio all works gloriously fine in Safari, but will not work in Chrome.
my website is www.rossfraser.co (that is not .com)
my code for the audio is this:
<div align="center">
<audio>
<source src="audio/site-jingle.mp3" type="audio/mpeg">
</audio>
</div>
<audio id="player" src="audio/site-jingle.mp3" type="audio/mpeg" loop></audio>
<div style="text-align:center">
<button onclick="document.getElementById('player').play()">JINGLE</button>
<button onclick="document.getElementById('player').pause()">NO JINGLE</button>
</div>
Any help would be GREATLY appreciated. Thanks!
I think I have the solution. MP3 with 192kbps doesn't work.
MP3 with 128 works fine!!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With