Hey folks, the issue is that I want to play the audio sound on page load. But it plays only after I click on some button. (i am using nextjs 12)
In _app.js:
useEffect(() => {
const birds = new Audio(soundurl);
birds.setAttribute("muted", true);
birds.play();
}); //no deps array is provided
Now, this also doesnt play when i refresh the page.
Can anyone please help with this?