JavaScript API: getCurrentTime

Function that checks the current playing time in seconds

Function:

/**
 *To check the current playing time
 *
 *@return The current playing time in seconds.
 */
function getCurrentTime();

Example:

//Triggers each time the playback has paused or started.
function onPlayPause(data){
    //Display current time
    alert(player.getCurrentTime());
}

//Initialize the interface
player = new JarisFLVPlayer("Id_Of_Player_Object");

//Adds play pause event listener
player.addListener(JarisFLVPlayer.event.PLAY_PAUSE, "onPlayPause");

//Start the playback
player.play();
Fork me on GitHub