zynga/jukebox — Issue #2: Unclear how to stop playback
Author: helloluis
Created: 2012-01-16 02:33:26+00:00
State: open

I've got a background music loop playing like this:

var settings = {
resources : [ 'sprite.mp3' ],
autoplay : 'theme',
spritemap : { 'theme' : { start : 0.0, end : 80.0, loop : true }
};

Game.jukebox = new Jukebox(settings);

The theme music plays automatically as expected, but I'm unable to call Game.jukebox.stop() as one would expect according to the documentation. The Jukebox object is properly initialized, but it's unclear how to actually stop a looping track once it's gotten started.