jwplayer().onAdTime(function(event){
var remaining = Math.round(event.duration-event.position);
var position = Math.round(event.position);
var quartile = Math.round(event.duration/4);
var first = quartile;
var second = (quartile*2);
var third = (quartile*3);
console.log(“progress”,"The ad completes in “+ remaining +” seconds.“);
if(position==first){
console.log(”firstq",“First Quartile Reached”);
} else if(positionsecond){
console.log("secondq","Second Quartile Reached");
} else if(positionthird){
console.log(“thirdq”,“Third Quartile Reached”);
}
});
Best Regards,
Cooper
This question has received the maximum number of answers.