native-audio
native-audio copied to clipboard
Web error on audio end - TypeError: this.notifyListeners is not a function
Describe the bug When an audio file finishes playing on web, the following error is logged to the console:
Uncaught TypeError: this.notifyListeners is not a function
at Audio.onEnded (web-Y6QFRADA.js?v=8a6a27d7:76:10)
To Reproduce Steps to reproduce the behavior:
- Load a sound file on web and play it
- Wait for the sound to finish playing
Expected behavior No error to be logged
Screenshots N/A
Desktop (please complete the following information): Windows 11 Chrome 126
Smartphone (please complete the following information): N/A
Additional context Issue seems to have been introduced by this commit: https://github.com/Cap-go/native-audio/commit/4d1e72096e7506bd1370bd2ca055a9bfe81423c8
Can you try again i updated the code