I'm using the NextJs for my Project, and I wanted to have a toggle-play pause button. But I'm getting this error in console.log
The AudioContext was not allowed to start. It must be resumed after a user gesture on the page.
This one is the main problem -HTML5 Audio pool is exhausted, returning potentially locked audio object .this message keeps on repeating in the console.
Maybe it's a problem with my coding, but could you help?
My Component code -
**Expected behavior**
It should toggle play and pause.
If this is not because of the library . I'm so sorry for creating this issue.
![image](https://github.com/E-Kuerschner/useAudioPlayer/assets/91080682/6fe49a5a-f143-48fc-ad03-8ca9714afcd2)
I'm using the NextJs for my Project, and I wanted to have a toggle-play pause button. But I'm getting this error in console.log
This one is the main problem -HTML5 Audio pool is exhausted, returning potentially locked audio object .this message keeps on repeating in the console. Maybe it's a problem with my coding, but could you help? My Component code -
export default MyComponent;