|
|
| |
| |
|
|
| |
|
PKL_HandleTrackDone() |
|
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 a track reaches the end and is "done" playing.
The function receives one argument (myReturnedObject), which is an Object that contains the following information:
- artist
- title
- file
- player
Example Code
function PKL_HandleTrackDone(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)
****/
}
|
|
|
|
 |
 |
 |
|
| |
|
|
|