Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for this sounds package! It's very useful.
I ran into an issue when using
SoundPlayerUI
in one of my app.When the sound is playing, and navigator happens (i.e. back to previous screen), the sound would keep on playing in the background.
Assertion error is thrown on
dispose()
, but it was not the culprit (I asked a question here to flutter team). I found the handling ofasync/await
in SoundPlayerUI is not consistent and could hide more issues than the one I ran into.Before I recognised, I ended up rewrote all
.then().catchError()
into normaltry... catch...
withasync/await
:PThis fixed the issue that sound left playing in background for me.
I ran into another issue when I paused the player, switch to another app, then switch back, click resume,
ERR_PLAYER_IS_NULL
was thrown from the platform invocation. Will try to look at it later