using addListener with WordPress audio player
- by Jacob
Hi, I'm trying to add a listener for the stop event in the word press audio player but usage seems to be undocumented. I'm hoping someone who knows a little flash can look at the code and tell me how it works:
In the code at http://tools.assembla.com/1pixelout/browser/audio-player/trunk/source/classes/Application.as I see a snippet with this:
ExternalInterface.call("AudioPlayer.onStop", _options.playerID);
I was hoping that would let me capture the event in javascript with ("player" is the ID of my player)
AudioPlayer.addListener("player", "AudioPlayer.onStop", function() { alert('stopped'); });
But my javascript function never seems to get called