Skip to content

The method 'onStopped' isn't defined for the type 'QuickPlay'. #18

Closed

Description

@zxl777

sounds: 1.0.0-beta.5

The method 'onStopped' isn't defined for the type 'QuickPlay'.

Activity

  1. bsutton commented on Aug 6, 2020

    @bsutton
    Owner

    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.

  2. bsutton commented on Aug 6, 2020

    @bsutton
    Owner

    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.

    1. wasUser makes no sense as a user can't stop a quick play. I'm like to remove the param before the next release.
    2. 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions