‘);
}
adCountDown = setInterval(function() {
var timeRemaining = IDG.video.players[‘bcplayer-page’].vjs.ima3.adsManager.getRemainingTime();
var timeRemainingRounded = Math.round(timeRemaining);
if (Math.round(timeRemaining) > 0 && $(“#bcplayer-pageCountdown”).hasClass(‘hidden’)) {
$(“#bcplayer-pageCountdown”).removeClass(‘hidden’)
}
var timeUnit;
if (timeRemainingRounded == 1) {
timeUnit = ‘second’;
}
else {
timeUnit = ‘seconds’;
}
$(“#bcplayer-pageCountdown .countdown”).html(Math.round(timeRemaining) + ‘ ‘ + timeUnit + ‘.’);
}, 1000);
}
});
this.on(“adend”, function(){

if (adCountDown) {
clearInterval(adCountDown);
}
$(“#bcplayer-pageCountdown”).remove();
});

this.on(“adserror”,function(event){
try {
IDG.GPT.backfillCompanionIfAllEmpty(“gpt-skin”);
}
catch(e) {
console.log (“Unusable IDG.GPT: “+ e);
}
if (adCountDown) {
clearInterval(adCountDown);
}
$(‘#bcplayer-pageCountdown’).remove();
});

//this fixes weird behavior we were seeing with landscape full-screen videos coming out of full-screen mode on android devices – IDGTV-1208
this.on(“fullscreenchange”, function(){
if(this.isFullscreen()) {
$(‘meta[name=viewport]’).attr(‘content’, ‘width=device-width, initial-scale=1, maximum-scale=1’);
}
else {
$(‘meta[name=viewport]’).attr(‘content’, ‘width=device-width, initial-scale=1’);
}
});

});

});
});
});

Popular

Featured videos from IDG.tv



Source link

Content Disclaimer 

This Content is Generated from RSS Feeds, if your content is featured and you would like to be removed, please Contact Us With your website address and name of site you wish to be removed from.

Note:

You can control what content is distributed in your RSS Feed by using your Website Editor.   If you are looking to make money from running your own business at home, visit the links below.

Tech Shop Offers


Music & Hifi Offers


Shop Categories