using addListener with WordPress audio player

Posted by Jacob on Stack Overflow See other posts from Stack Overflow or by Jacob
Published on 2010-04-23T23:28:12Z Indexed on 2010/04/23 23:33 UTC
Read the original article Hit count: 394

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about flash

Related posts about JavaScript