I'm trying to get an audio file to play in the background and it isn't working, any insight on it?
<audio id="bgmusic" preload hidden loop src="music.mp3"></audio>
<script>
function Play() {
var $audio = $('#bgmusic');
$audio.get(0).play();
}
</script>
Aucun commentaire:
Enregistrer un commentaire