|
Function that gets the amount of bytes currently loaded Function: /** *To check the bytes loaded * *@return The amount of bytes loaded */ function getBytesLoaded(); Example:
//Triggers each time the playback has paused or started.
function onPlayPause(data){
//Display bytes loaded
alert(player.getBytesLoaded());
}
//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();
|