Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Joncom opened this issue Apr 2, 2017 · 0 comments
Open

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

Joncom opened this issue Apr 2, 2017 · 0 comments

Comments

@Joncom
Copy link

Joncom commented Apr 2, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant