[Plugin: Audio Player] js listeners not working – addListener
-
This is a really great player but I’m having a problem interfacing to it with Javascript. The problem is I need to get Javascript notifications of play/pause/stop events and I can’t get them to work at all. I’m using the standalone player. For example, I’ve tried both of the methods below and the alert() is never called:
AudioPlayer.addListener('audio-file-1877702', 'play', function(dat) { alert(dat); });
p = AudioPlayer.getPlayer('audio-file-1877702');
p.addListener('play', function(dat) { alert(dat); });
This is a real problem since there are is an ExternalInterface.call() only for ‘play’ (activate) and ‘pause’ (onStop), but there isn’t one for ‘stop’, as shown in the source code. I’ve got to have the ‘stop’ event to resume a slideshow when a song finishes.
Am I doing something wrong? Any help really appreciated!
- The topic ‘[Plugin: Audio Player] js listeners not working – addListener’ is closed to new replies.