|
|
| |
| |
|
|
| |
|
PKL_HandleTrackStarted() |
|
IMPORTANT NOTE: Event Handlers must be enabled by setting the "PKL_EventsEnabled" variable to "true" in the pickle.js file.
Example
var PKL_EventsEnabled = true;
Description
This function is automatically "pinged" when the player's "play" button is clicked, or if the "play" function was triggered via Javascript.
The function receives one argument (myReturnedObject), which is an Object that contains the following information:
- artist
- title
- file
- player
Example Code
function PKL_HandleTrackStarted(myReturnedObject){
var retval = "";
for(var prop in myReturnedObject){
retval += prop + " : " + myReturnedObject[prop];
}
alert(retval);
/*** Alerts something similar to:
artist : My Artist Name
title : My Track Title
file : http://www/path/to/file.mp3
player : PKL_PLAYER (The current "Player ID" used in the establishing DIV)
****/
}
|
|
|
|
 |
 |
 |
|
| |
|
|
|