-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
This is a feature request.
We can start playback of an audio slot with .play() method. However, we don't know when it has stopped playing. As we are using AudioScheduledSourceNode for the audio instance, we can also know when the audio stops either by user initiated stop or the natural stop when the buffer reaches the end. It would be useful to add an event that we could listen to know when the audio stopped.
https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/ended_event