$(document).ready(function() { BooskaPlayer.on('error', function() { BooskaPlayer.load({ file:"//static.booska-p.com/technical-difficulties.mp4", }); player.play(); }); BooskaPlayer.onReady(function() { function eachTime(time){ if (time.position >= 5 && $("#pstat").html() == 'x') { $("#pstat").html('y'); $.ajax({ type: 'GET', cache: false, url: '//www.booska-p.com/includes/ajax/xkz.php' }); } } BooskaPlayer.onTime(eachTime); BooskaPlayer.onAdImpression(function(event){ //lancer $.ajax({ type: 'GET', cache: false, url: '//www.booska-p.com/includes/ajax/xkz.php?x=0' }); }); BooskaPlayer.onAdClick(function(event){ //clicker $.ajax({ type: 'GET', cache: false, url: '//www.booska-p.com/includes/ajax/xkz.php?x=1' }); }); BooskaPlayer.onAdComplete(function(event){ //Fini $.ajax({ type: 'GET', cache: false, url: '//www.booska-p.com/includes/ajax/xkz.php?x=2' }); }); }); });
x
x(ipa)