• cbarnardo

    (@cbarnardo)


    Hello,

    I am trying to add an event listener that will send a notification when the player is started

    AudioPlayer.embed(“audioplayer”, {
    soundFile: soundfile,
    titles: title,
    artists: artist,
    });

    AudioPlayer.addListener(“audioplayer”, “PLAY”, function() {alert(“playing”)});

    but I am getting this error

    getPlayer(playerID) is undefined
    getPlayer(playerID).addListener(type, func);

    Any ideas? I see its supported in the code but I can not find any docs on how to do it. Any help would be greatly appreciated. This is with the standalone player.

    Barnardo

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Audio Player] Adding an event listener’ is closed to new replies.