var onPlay = function(data) { // `data` is an object containing properties specific to that event }; player.on('play', onPlay);