Next video starts in 5 seconds
‘);
nbcVideoPageUtils.player442(‘featuredPlayer’+nbcVideoPageUtils.videoStillSeq,videoIDForThePlatform,625,352);
nbcVideoPageUtils.videoStillSeq+=1;
} } else { console.log (“**** LN 448 | METADATA GATHERED, THIS SHOULDN’t BE EXECUTING! ****”);
jQuery(‘#featuredPlayerContainer’).html(“);
nbcVideoPageUtils.player442(‘featuredPlayer’+nbcVideoPageUtils.videoStillSeq,videoIDForThePlatform,625,352);
nbcVideoPageUtils.videoStillSeq+=1; s. pageName = nbcVideoPageUtils.currentClipTitle;
//s. tl();
} }
});
}
// Displays Sochi Promo banner if video content is categorized as Winter-Olympics
displayOlympicsBanner = function(featureDataCategory){ if(featureDataCategory == “Olympics-Winter”){ if($(“#olympicsBanner”).length
“); $(“#featuredSummaryShare”).addClass(“sochiStyles”); } } else { if($(“#olympicsBanner”).length){ $(“#olympicsBanner”).remove(); $(“#featuredSummaryShare”).removeClass(“sochiStyles”); } } } nbcVideoPageUtils.mobileStart = function() { var __protocol = ‘http’; if (location.protocol == ‘https:’) { __protocol = ‘https’ } console.log (“**** MOBILE START ****”); nbcVideoPageUtils.hasMobileStarted = true; var now = jQuery.now(); // Parameter string for HTML5 Omniture Beacon var hlsAdditionalTrackingValues=”|trackVars=eVar11,eVar12,eVar13,eVar14,eVar27,eVar36,eVar37,eVar38,eVar39,eVar40,eVar41,eVar42,eVar43,eVar45,eVar47,eVar48,eVar50,prop2,prop8,prop9,prop20,prop42,prop43,prop44,prop45,prop46,prop50,products,eVar9,eVar10|trackEvents=event20,event21,event22,event23,event24,event25,event26,event27,event28,event29,event30,event31,event81,event82,event70,event71,event72,event73,event74,event75,event76,event77,event78,event79,event80|prop2=|prop8=|prop9=|eVar9=”+nbc.siteKey+”|eVar10=”+nbc.callLetters+”|prop20=”+nbcVideoPageUtils.RSID+”|eVar36=Video|eVar27=Flash|eVar37=”+nbcVideoPageUtils.currentClipTitle+”|eVar39=Video Player|eVar41=|eVar42=|eVar45=”+nbc.brand+”|eVar47=normal|prop50=”+nbcVideoPageUtils.currentClipTitle+”|eVar48=fullplayer|eVar42=|a.media.name=eVar40|mediaCategoryVars=eVar36|mediaIdVars=eVar50|trackMilestones=25%25,50%25,75%25|pageName=” + nbcu.pageName; player = new Player(“featuredPlayer”); nbcVideoPageUtils.currentPlayerRuntime = player._runtime; player.fp.bgcolor = “0x131313”; player.fp.wmode = “opaque”; player.logLevel = “warn”; player.allowFullScreen = “true”; // Cypress Omniture Plugin if(nbc.video.config.htmlOmniture == true) { player.pluginOmniture = “type=tracking|priority=1|URL=/includes/omnitureMedia.js|account=”+ mmModule.omni +”|jsInstanceName=nbcu|visitorNamespace=nbcuniversal|dc=122|host=oimg.nbcuni.com|secureHost=osimg.nbcuni.com” + hlsAdditionalTrackingValues; } if(nbc.htmlPreroll == true) { try { var isThisAndroid = nbcVPUTools.VK(); var thisUserAgent = navigator.userAgent; var fwDeviceSetting = “_hh”; var playerProfile = “_mobile_js”; if( thisUserAgent.match(/(iPad)/g )) { fwDeviceSetting = “_tab” } else if (nbc.isMobile == “false”) { playerProfile = “_desktop_html”; fwDeviceSetting = “”; } else if (isThisAndroid) { fwDeviceSetting = ( thisUserAgent.match(/(Mobile)/g) ? “_hh” : “_tab” ); } player.pluginFreeWheel = “type=adcomponent|URL=”+nbc.video.pdkPath+”/pdk/js/plugins/freewheel.js|priority=9|isLive=” + nbcVideoPageUtils.thisIsALiveStream + “|networkId=” + nbcVideoPageUtils.fwNetworkID + “|playerProfile=” + nbcVideoPageUtils.fwNetworkID + “: “ots” + nbcVideoPageUtils.fwsiteKey + playerProfile + “|siteSectionNetworkId=” + nbcVideoPageUtils.fwNetworkID + “|videoAssetNetworkId=” + nbcVideoPageUtils.fwNetworkID + “|siteSectionId=” + nbc.video.fwSSID + fwDeviceSetting + “|autoPlayType=autoPlay|adManagerUrl=http://adm.fwmrm.net/p/ots” + nbcVideoPageUtils.fwsiteKey + nbcVideoPageUtils.fwNetwork + “/AdManager.js|serverUrl=http://5D4A1.v.fwmrm.net/ad/g/1|fallbackVideoAssetId=” + nbcVideoPageUtils.freewheelFallbackID + “|keyValues=pagetype=” + nbc.omniture.pageType + “&referral=” + nbc.domain + “&width=” + nbcVideoPageUtils.playerWidth + “&height=” + nbcVideoPageUtils.playerHeight + “&srcPageUrl=”+ encodeURIComponent(location.href.replace(/[?].*#/, ‘#’)) +”&mediaUrl=” + encodeURIComponent(location.href.replace(/[?].*#/, ‘#’)) + “&sponsor=” + nbcVideoPageUtils.adContentGroup + “&zipcode=” + nbc.gptParams.pageData.zipcode+”&sensitivecontent=”+((nbc.gptParams.pageData.sensitive !== “”) ? nbc.gptParams.pageData.sensitive : “false”); console.warn(“nbcVideoPageUtils.mobileStart | Tremor HTML5 plugin active.”); } catch(e) { alert(“nbcVideoPageUtils.mobileStart | Tremor HTML5 plugin failure”); } } if(jQuery.inArray( “comscore”, nbc.loadVideoPlugins ) > -1) { player.pluginComScore = “type=tracking|URL=”+nbc.video.pdkPath+”/pdk/js/plugins/comScore.js|priority=5|trackEachChapter=true|c1=1|c2=6035083|c3=”+ nbcVideoPageUtils.videoReleaseId +”|c4=”+nbc.brand+”|c6=”+escape(nbc.brand)+”|c7=”+document.location.href+”|c8=”+encodeURIComponent(document.title)+”c9=”+document.domain; } if(jQuery.inArray( “streamsense”, nbc.loadVideoPlugins ) > -1) { player.pluginStreamsense = “type=analytics|URL=https://sb.scorecardresearch.com/c2/plugins/streamsense_plugin_theplatform.js|priority=4|c2=6035083|persistentlabels=c3=*null,c4=” + encodeURIComponent(nbc.brand) + “,c6=*null”; } player.pluginConviva=”type=reporting|url=http://livepassdl.conviva.com/thePlatform/ConvivaThePlatformPlugin.js|customerId=c3.TP-NbcUniversal|priority=3|cdnName=AKAMAI|serviceUrl=http%3A%2F%2Flivepass.conviva.com”; player.playerURL = location.href; // DO NOT TOUCH player.backgroundColor = “0x131313”; player.controlBackgroundColor = “0x131313”; player.controlColor = “0xBEBEBE”; player.controlFrameColor = “0x545759”; player.controlHoverColor = “0xBEBEBE”; player.controlSelectedColor = “0x00CCFF”; player.frameColor = “0x545759”; player.pageBackgroundColor = “0x131313”; player.playProgressColor = “0x00CCFF”; player.scrubberColor = “0xBEBEBE”; player.scrubberFrameColor = “0x00CCFF”; player.scrubTrackColor = “0xBEBEBE”; player.textBackgroundColor = “0x383838”; player.textColor = “0xBEBEBE”; player.loadProgressColor = “0x5D9070”; player.layoutUrl = “/templates/nbc_mobileplayer_layout”; player.skinUrl = nbc.video.pdkPath+’/pdk/skins/brushed/brushed.json’; player.showControlsBeforeVideo=true; player.releaseUrl = __protocol + “://link.theplatform.com/s/”+nbc.pdkAcct+”/”+nbcVideoPageUtils.forcedCorrectPid+”?manifest=m3u&format=SMIL”; player.autoPlay = false; player.useDefaultPlayOverlay = true; nbcVideoPageUtils.omnitureInit(); player.bind(“featuredPlayer”); U. log(“VIDEO PAGE FEATURE | “+ player.releaseUrl); U. log(“VIDEO PAGE FEATURE | iOS player configuration complete!”); } if(!nbcVideoPageUtils.platformOmnitureActivate) { //NBCUOmniture.initialize(‘nbcu’); } nbcVideoPageUtils.videoReplay = function(targetScope) { nbcVideoPageUtils.countdownValue = 4; try { U. log(“Attempting to clear timer.”); clearTimeout(startTimer); clearInterval(ecCountdown); } catch(e) { U. log(e); U. log(“Timer not present, moving on…”); } if(targetScope == null) { targetScope == “*”; U. log(“nbcVideoPageUtils.videoReplay: WARNING: Scope not defined, defaulting to wildcard.”) } jQuery(‘#endcard’).fadeOut(); if($(‘.shareLink’).hasClass(‘active’)){ $(‘.shareLink’).removeClass(‘active’); $(‘.linkBox’).fadeOut(‘fast’); $(‘.linkBox .zclip’).remove(); } if($(‘.shareEmbed’).hasClass(‘active’)){ $(‘.shareEmbed’).removeClass(‘active’); $(‘.embedBox’).fadeOut(‘fast’); $(‘.embedBox .zclip’).remove(); } tpController.clickPlayButton(targetScope); } nbcVideoPageUtils.resetPreroll = function() { var content = { id:nbcVideoPageUtils.videoReleaseId, title:nbcVideoPageUtils.currentClipTitle, site:nbc.siteKey, zone:nbc.zone, descriptionUrl:location.href, sect:nbc.section, sub:””, contentgroup:nbcVideoPageUtils.currentClipAdCampaign, pid:nbcVideoPageUtils.currentClipContentCode, hascompanion:”companion”, companionexists:true, pt:’fullplayer’, videoDescriptionUrl:nbcVideoPageUtils.videoSocialShare, catetory:’fullplayer’ } try { if(console) { console.warn(“Attempting to re-write Tremor plugin data…”); } AcudeoSetContentData(content); } catch(e) { if(console) { console.warn(“nbcVideoPageUtils.resetPreroll | Call to AcudeoSetContentData(content) | ” + e); } } } // START SOCIALIZE SHARE BAR ON ENDCARD function socializeEndcardShare(choseVideoUrl,choseOldSchoolUrl,choseCmsId,choseVideoTitle) { var videoSummary = $(“.feature_summary_top”).find(“.summary”).text() // If oldschool url is not loaded from bottom list of videos // Then assumed it’s the right-rail list of videos if (choseOldSchoolUrl == null || choseOldSchoolUrl == “”){ choseOldSchoolUrl = $(“#featuredSummaryShare”).find(“span.featureContentOldSchoolUrl”).html(); } if(choseVideoTitle == null || choseVideoTitle == “”){ choseVideoTitle = $(“#featuredSummaryShare”).find(“div.headline-full”).html(); } $(“#endcard #socialTools .twitter”).html(““); $(“#endcard #socialTools .fbRecommend”).html(“”); $(“#endcard #socialTools .gplus”).html(“”); jQuery.ajax({ url: ‘https://platform.twitter.com/widgets.js’, dataType: ‘script’, cache:true});
FB.XFBML.parse();
gapi.plusone.go();
};
// END SOCIALIZE SHARE BAR ON ENDCARD nbcVideoPageUtils.goToNextClip = function(evt) { console.warn(“nbcVideoPageUtils.goToNextClip: Is it an ad?”+evt.data.baseClip.isAd); if(evt.data.baseClip.isAd == false) { U. log(“start timer “+startTimer); if( startTimer == 1 ) { if(jQuery(‘#feature_rr_list > li.next_playing’).length > 0) { nextUpThumbnail = jQuery(‘#feature_rr_list > li.next_playing img’).attr(‘src’);
jQuery(‘div.nextUpThumbnail’).css({‘background-image’:’url(‘+nextUpThumbnail+’)’}); nextUpCopy = jQuery(‘#feature_rr_list > li.next_playing span.feature_rr_item_desc’).html();
jQuery(‘div.nextUpInfo’).html(nextUpCopy);
jQuery(“#endcard”).fadeIn(“fast”);
socializeEndcardShare(); startTimeMS = (new Date()).getTime(); nbcVideoPageUtils.countdownValue = 4; timerStep = 5000; startTimer = setTimeout(“nbcVideoPageUtils.triggerNextClip()”,5000); ecCountdown = setInterval(“nbcVideoPageUtils.endcardCountdown()”,1000); } else {
jQuery(‘div.nextUp’).hide();
jQuery(‘div.countdownContainer’).hide();
jQuery(“#endcard”).fadeIn(“fast”);
socializeEndcardShare();
} } else { if(jQuery(‘#feature_rr_list > li.next_playing’).length > 0) { nextUpThumbnail = jQuery(‘#feature_rr_list > li.next_playing img’).attr(‘src’);
jQuery(‘div.nextUpThumbnail’).css({‘background-image’:’url(‘+nextUpThumbnail+’)’}); nextUpCopy = jQuery(‘#feature_rr_list > li.next_playing span.feature_rr_item_desc’).html();
jQuery(‘div.nextUpInfo’).html(nextUpCopy); startTimeMS = (new Date()).getTime(); timerStep = 5000; startTimer = setTimeout(“nbcVideoPageUtils.triggerNextClip()”,5000); } else {
jQuery(‘div.nextUp’).hide();
jQuery(‘div.countdownContainer’).hide();
} jQuery(“#endcard”).fadeIn(“fast”);
socializeEndcardShare();
forceEventHandlers(); /* if(timerPaused == false){
timerEventsOn();
}*/ embeddedPlayerHTML = ‘the ‘+’ipt>’; jQuery(‘.shareBoxes .linkBox fieldset’).html(‘‘); jQuery(‘.shareBoxes .embedBox fieldset’).html(‘‘); jQuery(‘#endcard div.countdownContainer span.countdown’).html(’05’); if(jQuery(‘#feature_rr_list > li.next_playing’).length > 0) { ecCountdown = setInterval(“nbcVideoPageUtils.endcardCountdown()”,1000); } // dont put parsing of Social Widgets – WE have all together in one function } } } nbcVideoPageUtils.triggerNextClip = function() { try { U. log(“Attempting to clear timer.”); clearTimeout(startTimer); clearInterval(ecCountdown); } catch(e) { U. log(e); U. log(“Timer not present, moving on…”); } U. log(“Jump to next clip here.”); try { triggerNextVideoTarget = jQuery(‘li.next_playing > a’).attr(‘id’); jQuery(‘#’+triggerNextVideoTarget).trigger(‘click’,’autoplay’); jQuery(‘#’+triggerNextVideoTarget).trigger(‘click’,’autoplay’); jQuery(“#endcard”).fadeOut(“slow”); //timerEventsOff(); if($(‘.shareLink’).hasClass(‘active’)){ $(‘.shareLink’).removeClass(‘active’); $(‘.linkBox’).fadeOut(‘fast’); $(‘.linkBox .zclip’).remove(); } if($(‘.shareEmbed’).hasClass(‘active’)){ $(‘.shareEmbed’).removeClass(‘active’); $(‘.embedBox’).fadeOut(‘fast’); $(‘.embedBox .zclip’).remove(); } } catch(e) { alert(e); } } nbcVideoPageUtils.countdownValue = 4; nbcVideoPageUtils.endcardCountdown = function() { if(nbcVideoPageUtils.countdownValue > 0) { U. log(nbcVideoPageUtils.countdownValue); if(nbcVideoPageUtils.countdownValue > 4) { jQuery(‘#endcard div.countdownContainer span.countdown’).text(nbcVideoPageUtils.countdownValue); } else { jQuery(‘#endcard div.countdownContainer span.countdown’).text(‘0’+nbcVideoPageUtils.countdownValue); } nbcVideoPageUtils.countdownValue-=1; } else { clearInterval(ecCountdown); U. log(“Clear”); } } nbcVideoPageUtils.pageTitleParser = function (preferredTitle) { var titlePipeLocation = document.title.indexOf(“|”); var shortPageTitle = document.title.slice(0,(titlePipeLocation-1)); switch(preferredTitle) { case “fullTitle”: return document.title; break; case “shortTitle”: return shortPageTitle; break; } } nbcVideoPageUtils.omnitureInit = function() { var trackedTitle = nbcVideoPageUtils.pageTitleParser(‘shortTitle’); console.log (“**** DELIVERY BUNDLE FROM thePLATFORM ****”); console.log (“**** ADDING thePLATFORM OMNITURE BEACON | 10/10/2014 @1330H | GLOBAL RE-ACTIVATION ****”); var cleanMkt = nbc.market.replace(“nbc”,””); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar8″,”D=c8″,”division”); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar9″,”D=c9″,”business unit”); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar10″,nbc.callLetters,”station”); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar11″,NBCUPDKOmniture.date.getTime,”minute”); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar12″,NBCUPDKOmniture.date.getHour,”hour”); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar13″,NBCUPDKOmniture.date.getDayOfWeek,”day”); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar14″,NBCUPDKOmniture.date.getDate,”date”); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar27″,nbcVideoPageUtils.currentPlayerRuntime,”runtime”); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar36″,”noprogram”,”program”); // check on this one NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar37″,trackedTitle,”title”); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar38″,”normal”,”screen”); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar39″,”Video Player”,”contentGroup”); // REMOVE NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar42″,”noguid”,”guid”); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar43″, document.URL,”href”); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar45″,nbc.callLetters,”provider”); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar47″,nbcVideoPageUtils.isLongForm,”longform”); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar48″,”fullplayer”,”nbc.omniture.playerType”); NBCUPDKOmniture.trackingEventFactory.setDefault(“eVar50″,nbcVideoPageUtils.videoReleaseId,”clipid”); // props NBCUPDKOmniture.trackingEventFactory.setDefault(“prop8″,”nbc”,”division”); NBCUPDKOmniture.trackingEventFactory.setDefault(“prop9″,nbc.siteKey,”business unit”); NBCUPDKOmniture.trackingEventFactory.setDefault(“prop10″,nbc.callLetters,”station”); NBCUPDKOmniture.trackingEventFactory.setDefault(“prop20″,”nbcotsvideo”+cleanMkt,”rsid”); NBCUPDKOmniture.trackingEventFactory.setDefault(“prop42”, “noguid”,”guid”); NBCUPDKOmniture.trackingEventFactory.setDefault(“prop43”, “noclipid”,”clipid”); NBCUPDKOmniture.trackingEventFactory.setDefault(“prop44”, “normal”,”screen”); NBCUPDKOmniture.trackingEventFactory.setDefault(“prop46″,nbcVideoPageUtils.isLongForm,”longform”); NBCUPDKOmniture.trackingEventFactory.setDefault(“prop45″, 0,”bitrate”); if(nbc.isMobile == “true”) { NBCUPDKOmniture.trackingEventFactory.setDefault(“prop48”, “mobile web”,”desktopormobile”); } else { NBCUPDKOmniture.trackingEventFactory.setDefault(“prop48”, “desktop”,”desktopormobile”); } NBCUPDKOmniture.trackingEventFactory.setDefault(“prop50″,nbcVideoPageUtils.currentClipTitle,”title”); // overrides NBCUPDKOmniture.trackingEventFactory.setOverride(“eVar10″,nbc.callLetters,”provider”); //NBCUPDKOmniture.trackingEventFactory.setOverride(“prop48″, nbc.omniture.playerType,”nbc.omniture.playerType”); // attach the pdk controller PDKTrackingEvents.bus.initialize($pdk.controller); console.log (“**** nbcVideoPageUtils.omnitureInit | SUCCESS! ****”); } jQuery(document).ready(function() { if (navigator.userAgent.match(/like Mac OS X/i)) { // DO NOTHING } else { tpController.addEventListener(“OnMediaEnd”,”nbcVideoPageUtils.goToNextClip”); } $(‘#endcard’).css({‘visibility’:’visible’,’display’:’none’}); $(‘.linkBox’).css({‘visibility’:’visible’,’display’:’none’}); $(‘.embedBox’).css({‘visibility’:’visible’,’display’:’none’}); }); //Timer pause functions for embed and link popups pauseTimer = function(){ clearTimeout(startTimer); clearInterval(ecCountdown); timerCount=0; remainingTime = timerStep – ((new Date()).getTime() – startTimeMS); timerStep = remainingTime; timerPaused = true; }; resumeTimer = function(){ if (!timerCount){ timerCount=1; timerPaused = false; startTimeMS = (new Date()).getTime(); startTimer = setTimeout(“nbcVideoPageUtils.triggerNextClip()”,remainingTime); ecCountdown = setInterval(“nbcVideoPageUtils.endcardCountdown()”,1000); } } //Pause and resume timer on window blur and focus (ie Facebook/Twitter login) var isIE = (navigator.appName == “Microsoft Internet Explorer”); function timerEventsOn(){ if (isIE){ document.onfocusout = function(){pauseTimer();} document.onfocusin = function(){resumeTimer();} } else{ window.onblur = function(){pauseTimer();} window.onfocus = function(){resumeTimer();} } } function timerEventsOff(){ if (isIE){ document.onfocusout = null; document.onfocusin = null; } else{ window.onblur = null; window.onfocus = null; } } //]]> VIDENTE MÁLAGA TAROT MÁLAGA