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
{{ message }}
Repository navigation
The method 'onStopped' isn't defined for the type 'QuickPlay'. #18
var quickplay = QuickPlay(...);
quickplay.onStopped = ({bool wasUser}) => xxxx;
I do have some concerns about this method.
wasUser makes no sense as a user can't stop a quick play. I'm like to remove the param before the next release.
there is a 'slight' chance that the onStopped will never get call if the play completes before the onStopped method is set.
I think this should be an argument to quickplay rather than a setter.
Activity
bsutton commentedon Aug 6, 2020
This is by intent.
Its intended for short audio that you just start and forget.
If you want to stop audio then you need to use SoundPlayer.
bsutton commentedon Aug 6, 2020
Actually I miss read this.
QuickPlay does have an onStopped setter:
var quickplay = QuickPlay(...);
quickplay.onStopped = ({bool wasUser}) => xxxx;
I do have some concerns about this method.
I think this should be an argument to quickplay rather than a setter.