ukasz123 / soundpool

Soundpool plugin for Flutter
88 stars 63 forks source link

Catch when the sound is completed. #109

Closed chrislaurie-io closed 10 months ago

chrislaurie-io commented 1 year ago

When I invoke pool.play, I would like to know when that sound has done playing. I have some visual indicators that a specific sound is linked to, and I want to change them when done.

Some form of stream I can listen to for a change of state would be great.

ukasz123 commented 10 months ago

Under the hood plugin uses (and tries to pretend to be) the Soundpool API from Android. There is no callback on playback finished available.