Skip to content

Commit

Permalink
Autoplay
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinvennitti committed Sep 17, 2024
1 parent fe52083 commit 00047a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
const code = result.data;

let newAudio = new Audio('sounds/' + code + '.mp3');
newAudio.autoplay = true;


console.log('audio:');
Expand Down Expand Up @@ -186,8 +187,8 @@

console.log('audio ready to play');

//playAudio();
pauseAudio();
playAudio();
// pauseAudio();

}
}
Expand Down

0 comments on commit 00047a5

Please sign in to comment.