|
|
| |
| |
|
|
| |
|
PKL_HandleTrackLaunched() |
|
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 player loads a new media file and starts to play it..
The function receives one argument (myReturnedObject), which is an Object that contains the following information:
- artist
- title
- file
- player
Example Code
function PKL_HandleTrackLaunched(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)
****/
}
|
|
|
|
 |
 |
 |
|
| |
|
|
|