(function () { var VPNBCSettings={ playerFlavor:"EmbeddedPlayer", playerMode:"Offsite", flavorVersion:"5/28/2014", debug:false, context:this, playerDivContainers:{ playerParentContainer:"TPVideoPlayerContainer", playlistContainer:"plcontainer", //TPVideoPlaylistContainer mainPlaylist:"TPVideoMainPlaylist", restStatePlaylist:"TPVideoRestStatePlaylist", playlistTitle:"TPVideoPlayerPlaylistTitle", title:"TPVideoPlayerTitle", //nnd$longTitle header:"TPVideoPlaylistHeader", shareButtons:"TPVideoPlayerShareButtonsContainer", showPlaylists:"TPVideoPlaylistTaxonomyContainer", description:"TPVideoPlayerDescription", restState:"TPVideoPlayerRestState", restPlayButton:"TPVideoPlayerRestPlayButton", ad300x60:"TPVideoPlayerAd300x60", ad300x250:"TPVideoPlayerAd300x250", sourceAndDate:"TPVideoPlayerSourceDate" // note use associated feed for endslate }, defaultFeedId:"nnd_NBCNews", baseFeedUrl:"http://feed.theplatform.com/f/2E2eJC/", baseGUIDUrl:"http://feed.theplatform.com/f/2E2eJC/nnd_NBCNews?form=json&pretty=true&range=-40&byGuid=", feedParameters:"?form=json&pretty=true&callback=$pdk.NBCplayer.PlaylistModule.RenderData&context=123", restState:true, shareButtons:false, displayPlaylist:false, continuousPlay:false, adCompanions:false, metaData:true, readHash:true, restStateResizeMethod:function(obj){ var player=document.getElementById("player"); parNode=player.parentNode; player.style.width=obj.width+"px"; player.style.height=obj.height+"px"; if (parNode){ parNode.style.width=obj.width+"px"; parNode.style.height=obj.height+"px"; } var brandArea=document.getElementById("brandArea"); brandArea.style.width=obj.width+"px"; }, SetUpSpecifics:function(){ $pdk.controller.addEventListener("NBCplayerNotification", function(data) {$pdk.NBCplayer.GetSkin(data);}); }, PrePDKinit:function () { // no playlist - see core }, CustomEvents: function (e) { if (!$pdk.NBCplayer.isCurrentlyAd) { if (e.type == "OnMediaUnpause") { $("#brandArea").hide(); } if (e.type == "OnMediaPause") { $("#brandArea").show(); } } }, OnMediaRollOut:function(){ $pdk.NBCplayer.inVideoArea=false; if (!$pdk.NBCplayer.inBrandArea){ $("#brandArea").hide(); } }, OnMediaRollOver:function(){ $pdk.NBCplayer.inVideoArea=true; $("#brandArea").show(); }, InitSpecifics:function(){ this.playerWidth=function(){return (window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);}; this.playerHeight=function(){return (window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-60;}; $pdk.controller.addEventListener("OnMediaRollOver",function(){$pdk.NBCplayer.OnMediaRollOver();}); $pdk.controller.addEventListener("OnMediaRollOut",function(){$pdk.NBCplayer.OnMediaRollOut();}); }, PreCustomPDKLoadActions:function(e) { }, PostCustomPDKLoadActions:function(e) { }, PostCustomMediaEndActions:function(e){ $("#player").hide(); if (!this.inEndState){ this.inEndState=true; var z=$("#player"); var cw=z[0].clientWidth; var ch=z[0].clientHeight; this.endSlateOn = true; var endSlateHtml="
More Videos on nbcnews.com
"; $('#'+$pdk.NBCplayer.playerDivContainers.playerParentContainer+' .tpContainer').append(endSlateHtml); $('#TPVideoPlayerContainer .tpContainer .tpLayout').css('position','absolute'); $('#TPVideoPlayerContainer .tpContainer .tpLayout .tpPlayer .player').css('top','-1000px'); var endSlate=new $pdk.NBCplayer.PlaylistModuleFLEXInstanseable(); endSlate.id="TPVideoEndPlaylist"; endSlate.entryClickMethod=function(entry){ var url=entry.canonical; window.open(url,"_blank"); }; var thisGuid=$pdk.NBCplayer.DataStoreModule.guid; var createPlaylist=function(data){ var playlistIndex=-1; $.each(data.entries, function (i, elem) { if (elem.guid === thisGuid) { playlistIndex = i; return false; } }); try{ if (playlistIndex>-1){ data.entries.splice(playlistIndex,1); } } catch(eeee){ } var parent = $('#TPVideoEndSlate .relatedvideos'); //var parent = $('#TPVideoPlayerRestState'); endSlate.InsertPlaylist( { id:"endState", parentDiv: parent, data:data, startAt: 0, callback: function(){ $('#TPVideoEndSlate').show(); $(".TPVideoEndPlaylist").css("width",ch); $pdk.NBCplayer.canHideBrand=false; $("#TPVideoPlayerContainerSizer").append($("#brandArea")); $("#brandArea").show(); } } ); }; $("#tpContainerSizer").append($("#brandArea")); var asPlay=$pdk.NBCplayer.DataStoreModule.associatedPlaylist.substr($pdk.NBCplayer.DataStoreModule.associatedPlaylist.indexOf("2E2eJC/")+7).replace(/\//ig,""); $pdk.NBCplayer.DataStoreModule.RequestFeed(asPlay,createPlaylist); } }, PreCustomMediaStartActions:function(e) { if (e.data.baseClip.isAd) { $pdk.NBCplayer.isCurrentlyAd = true; $("#brandArea").hide(); } else { $("#brandArea").show(); $pdk.NBCplayer.isCurrentlyAd = false; setTimeout(function () { $("#brandArea").fadeOut('slow'); }, 4000); } }, GetSkin:function(e){ $('#dateOnly').html($pdk.NBCplayer.DataStoreModule.date); this.askedForSkin=true; if (!this.askedForSkin){ this.askedForSkin=true; var sourceId= $pdk.NBCplayer.DataStoreModule.sourceId; sourceId=sourceId.replace(/dev/ig,"nnd"); var sourceSkin=sourceId+"_skin"; var urlList = "http://data.msnbc.msn.com/VideoRendering/PlaylistTemplate/"+sourceSkin+"?jsoncallback=$pdk.NBCplayer.ProcessSkin"; $.ajax({ type: "GET", url: urlList, async: false, cache: true, dataType: "script", crossDomain: true, error: function(xhr, textStatus, errorThrown){ $pdk.controller.dispatchEvent('NBCplayerOnFeedError',errorThrown); alert(errorThrown); } }); } }, ProcessSkin:function(odata){ this.UpdateLogoBar(odata); }, UpdateLogoBar:function(oData){ var brandLogo="http://media3.s-nbcnews.com/i/MSNBC/Components/Video/_Player/Offsite%20Player%20Creative/NBCNews-Logo-250x27.png"; //http://data.msnbc.msn.com/VideoRendering/PlaylistTemplate/nnd_26548304_skin?jsoncallback=$pdk.NBCplayer.ShowPlayerTaxonomy.GetList if (oData.id){ $('#SourceLogo').html(''+oData.name+''); $("#TPLogoSource").html(''+oData.name); // $('#BrandLogo').html(''); $('#BrandLogo').html(''); } else{ //defaults } }, CreatePlaylistNameContainer:function(playlistName) { }, CrateMetaDataContainers:function() { if (this.metaData){ try{ $("#tpContainerSizer").after('
Visit nbcnews.com
'); } catch(err){ $("#player").after('
Visit nbcnews.com
'); } } $('#player').after('
nbcnews.comwatch now
'); var functionClick = function () { $pdk.NBCplayer.PlayVideo(); }; if (!$pdk.NBCplayer.isFlash) { functionClick = function () { $pdk.NBCplayer.PlayVideo($pdk.NBCplayer.DataStoreModule.guid); }; } $pdk.NBCplayer.canHideBrand=false; $("#playIcon").bind({ click:functionClick }); $("#brandArea").bind({ mouseenter:function(){ $pdk.NBCplayer.inBrandArea=true; $("#brandArea").show(); }, mouseleave:function(){ if ($pdk.NBCplayer.canHideBrand){ $pdk.NBCplayer.inBrandArea=false; if (!$pdk.NBCplayer.inVideoArea){ $("#brandArea").hide(); } } }}); } }; //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ $pdk.NBCplayer.InitSettings(VPNBCSettings); if (!window.console) console = {log: function(msg) {if ($pdk.NBCplayer.debug) {alert('Console Log: '+msg);} }, error: function(msg) {if ($pdk.NBCplayer.debug) {alert('Error Log: '+msg);} }}; // for IE window.onload=function(){ $pdk.NBCplayer.defaultFeedId="nnd_NBCNews"; $pdk.NBCplayer.GetGUID(); // nn_08bwi_menino_130429, $pdk.NBCplayer.GetFeedID(); //'nbcnewsdev' rachel joe $pdk.NBCplayer.GetShowSource(); $pdk.NBCplayer.CheckToUseMPXDev(); $pdk.NBCplayer.debug = $pdk.NBCplayer.GetQuery("debug",""); $pdk.NBCplayer.autoPlay = ($pdk.NBCplayer.GetQuery("autoplay","false")=="true"); $pdk.NBCplayer.SetUpSpecifics(); $pdk.NBCplayer.FreeWheelModule.Init(); var suppressInit = $pdk.NBCplayer.GetQuery("init",""); if (suppressInit != "false") { $pdk.NBCplayer.Init(); } }; var videoReportingObj={}; var reportMatrix={ videoAdEnd :{map:"videoAdcomplete"}, videoEnd:{map:"videoComplete"}, videoScrub:{map:"videoScrub"}, video75Complete:{map:"video75"}, video50Complete:{map:"video50"}, video25Complete:{map:"video25"}, videoStart:{map:"videoStart"}, videoAdStart:{map:"videoAdstart"} } $pdk.controller.addEventListener('NBCplayerVideoInit', function(reportData){ videoReportingObj=reportData.data; // console.log(videoReportingObj); }); $pdk.controller.addEventListener("NBCplayerReport", function (e) { if (!reportMatrix[e.data.reportType]){ return; } videoReportingObj.canonicalUrl=e.data.canonoical; videoReportingObj.headline=$pdk.NBCplayer.DataStoreModule.title; videoReportingObj.deviceRender=($pdk.NBCplayer.isMobileDevice)?"mobile":"web"; // (mobile,web) videoReportingObj.description=$pdk.NBCplayer.DataStoreModule.description; videoReportingObj.pubdate=$pdk.NBCplayer.DataStoreModule.date; videoReportingObj.brand=($pdk.NBCplayer.DataStoreModule.source.indexOf("Today")>-1)?"Today":"NBCNews"; videoReportingObj.show=$pdk.NBCplayer.DataStoreModule.source; videoReportingObj.duration=e.data.duration; videoReportingObj.filename=$pdk.NBCplayer.DataStoreModule.guid; videoReportingObj.report=reportMatrix[e.data.reportType].map; videoReportingObj.videoType = $pdk.NBCplayer.DataStoreModule.videoType; videoReport(videoReportingObj); }); })(); var fw_config = function() { return { //playerProfile: "169843:nbcnews_as3_live", //siteSectionId: "MSNBC_Default" siteSectionId: "NBC_off_site_embed" // turn off ads // playerProfile: "ADS OFF", // siteSectionId: "MSNBC_Default OFF" }; } window.analyticsState = { documentId: '', // NewsCms/Entries/123421 title: '', // In Yellen Hearing, Senators Push for Fed Changes pageName: '', //non-content page (landing): NBCNews|section:business|topic:consumer content page: NBCNews:[content type]:[title] canonicalUrl: '', contentType: "video", // article | video | gallery | etc. summary: '', emphasis: '', // breaking brand: '', // NBCNews authors: '', // brian williams,richard engel primarySection: '', // pop culture secondSections: '', // business,politics primaryTopic: '', // consumer secondaryTopics: '', // mental health,insurance storyline: '', // Royal Baby feature: '', // 30 Seconds to Know show: '', // Nightly News | Meet the Press | Dateline published: '', // 11/14/2013 09:10:34 searchTerm: '', // obamacare socialVector: '', // facebook | twitter | email | etc. video:{} }; var videoReport=function(obj){ if (!obj){obj={};} analyticsState.canonicalUrl=obj.canonicalUrl; analyticsState.pageName="NBC News:video:"+obj.headline; analyticsState.pageTitle=analyticsState.pageName; analyticsState.features=""; analyticsState.subSection=""; analyticsState.contentGroup=""; analyticsState.siteVersion=obj.deviceRender; // (mobile,web) analyticsState.searchTerm=""; analyticsState.contentType="video"; analyticsState.primarySection=""; analyticsState.topics=obj.topics; analyticsState.storyline=""; analyticsState.headline=obj.headline; analyticsState.shortPageTitle=obj.headline; analyticsState.shortSummary=obj.description; analyticsState.publishDate=obj.pubdate; analyticsState.emphasis=""; analyticsState.excerpt=""; analyticsState.authors=""; analyticsState.brand=obj.brand; analyticsState.searchTerm=""; analyticsState.socialVector=""; analyticsState.video.name=obj.headline; analyticsState.videoType = obj.videoType; analyticsState.videoPlayerType = "embedded"; analyticsState.show=obj.show; analyticsState.video.length=obj.duration; analyticsState.video.id=obj.filename; analyticsState.documentId=obj.wbId; analyticsState.section=""; //console.log(obj.report,analyticsState); _satellite.track(obj.report); }; _satellite.pageBottom();