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.
Expected behavior: Music should not play because
dispose()
was called immediately.Environments where expected behavior occurs:
Environments where expected behavior does NOT occur:
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.