You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SoundPlayer emits events when a state changes:
onStarted
onStopped
onPaused
onResume
It looks like there may be some inconsistency in how these are generated and from where.
It looks like the SoundPlayer will generate these events (in some situations) and the plugin code (java/object-c) will generate them in some cases.
It would seem more appropriate that these events are generated via the plugin in all cases as it really is the primary source and there are some situations where the plugin will generate these events without action in the dart code.
It also looks like we don't have a 'resume' event coming up from the plugin.
So I think the correct action.
The java/object plugin logic should generate the events.
The only circumstances where the dart code should generate the events is if we find some scenario where a state change needs to be reflected by the plugin can't possibly know about it. At this point I can't think of any valid circumstances.
Activity
bsutton commentedon Aug 16, 2020
Starting point in the java code is:
PlaybackStateUpdater
bsutton commentedon Oct 9, 2020
This code has been rewritten as part of the pigeon upgrade.