|
Function that checks the current volume value Function: /** *To get the current volume value * *@return float value from 0.0 to 1.0 */ function getVolume(); Example:
//Triggers each time the volume is changed.
function onVolumeChange(data){
//Display current volume value
alert(player.getVolume());
}
//Initialize the interface
player = new JarisFLVPlayer("Id_Of_Player_Object");
//Adds volume change event listener
player.addListener(JarisFLVPlayer.event.VOLUME_CHANGE, "onVolumeChange");
//Lower the volume a bit
player.volume(0.7);
|