E-Kuerschner / useAudioPlayer

React hooks for controlling audio on the web
MIT License
315 stars 35 forks source link

HTML5 Audio pool exhausted, returning potentially locked audio object. Is this because of this library or not? #117

Closed Aryan570 closed 1 year ago

Aryan570 commented 1 year ago

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

export default MyComponent;



**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)
Aryan570 commented 1 year ago

Nothing wrong with the library , i had to just put load in the dependency in useeffect.