native-audio icon indicating copy to clipboard operation
native-audio copied to clipboard

Web error on audio end - TypeError: this.notifyListeners is not a function

Open jlachniet opened this issue 1 year ago • 1 comments

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:

  1. Load a sound file on web and play it
  2. 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

jlachniet avatar Jun 14 '24 22:06 jlachniet

Can you try again i updated the code

riderx avatar Aug 27 '24 17:08 riderx