Skip to content

Playback.dispose() Does Not Stop Playback in Cocoon for iOS #373

Description

@Joncom
var music:Playback = pack.getSound("music");
music.play();
music.dispose();

Expected behavior: Music should not play because dispose() was called immediately.

Environments where expected behavior occurs:

  • Chrome 56.0.2924.87 (64-bit) on Mac
  • Chrome 55.0.2883.91 on Android
  • Safari 10.0.3 (12602.4.8) on Mac
  • Safari on iOS 10.2
  • Cocoon (aka CocoonJS) on Android

Environments where expected behavior does NOT occur:

  • Cocoon (aka CocoonJS) on iOS 10.2

In Cocoon on iOS, the above code results in the entire audio playing through. However, if you were to call dispose a few moments later instead, it would properly halt the audio.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions