Sunday 30 June 2013 20:06. Viewed: 1655 times
Buy This Song
Share with your friends
"); jQuery("#logoetc").prepend(""); jQuery("#companion760overlay").hide(); //moving the comments to MainCol-A jQuery('#playerCmnts').appendTo('#dnn_row1_main_A'); jQuery("#playerCmnts").css("height", "315px"); jQuery("#playerCmnts").css("visibility", "visible"); jQuery('#playerCmnts').fadeIn(1000); }); var flashAID="";//the article id var pauseFrom="adverts";//variable to handle players current state of interaction var adbreak=""; var ispad=""; var streamer=""; var streamerHLS=""; var iospath=""; var deviceAgent = navigator.userAgent.toLowerCase(); var agentID = deviceAgent.match(/(iphone|ipod|ipad)/); var isAndroid = deviceAgent.indexOf("android") > -1; //&& ua.indexOf("mobile"); var hitEvent = (agentID) ? "touchend" : "click"; var nav = navigator.userAgent.indexOf('Safari'); var canplay="true"; var flyoverInterval = new Object();//make globalVars object to reference vars later var ord=Math.random()*10000000000000000; var midrollCounter="0"; var midrollBreak=""; var currentPlayerPosition="0"; /************************************************************/ //override page targetting for adverts while in testing mode sect1=root; var path = window.location.hostname; //sect1="tv3"; //sect2="video"; //sect3="ondemand"; //sect4="drama"; //sect5="html5dev"; //sect6=""; site=sect1.toLowerCase();//grab the current video player site if(site=="tv3"){ flashSI="www.tv3.co.nz"; var cat="6";//for extras at end of video sloc="tv3"; } else{ flashSI="www.tv3.co.nz"; sloc="tv3"; } if(sect4=="currentaffairs"){ flashSI="www.tv3.co.nz"; var cat="6";//for extras at end of video sloc="3news"; } if((path=="www.four.co.nz")||(path=="edit.four.co.nz")){ flashSI="www.four.co.nz"; var cat="6";//for extras at end of video sloc="four"; } var geo= "geo"; if(geo=="geomob"){ //geo="geo"; } var titleForNNR ="THE X FACTOR-Ep 21: Benny Tipene - California"; var tagsForRelated="auditions,Guy Sebastian,Melanie Blatt,the x factor nz,Daniel Bedingfield,"; tagsForRelated = tagsForRelated.replace(/'/g, "").toLowerCase(); var catsForNNR="ON DEMAND,REALITY,THE X FACTOR,TV3,EXTRAS,SONGS,SHOWS,X Factor NZ,TX,Songs,Performers,Episodes,Songs Page Rotator,Latest Rotator,Benny,Live Show - Ep Twenty One,"; catsForNNR = catsForNNR.replace(/'/g, "").toLowerCase(); var cats="cats=ON DEMAND;cats=REALITY;cats=THE X FACTOR;cats=TV3;cats=EXTRAS;cats=SONGS;cats=SHOWS;cats=X Factor NZ;cats=TX;cats=Songs;cats=Performers;cats=Episodes;cats=Songs Page Rotator;cats=Latest Rotator;cats=Benny;cats=Live Show - Ep Twenty One;"; cats = cats.replace(/'/g, ""); cats = cats.replace(/ /g, "-").toLowerCase(); var tags="tags=auditions;tags=Guy Sebastian;tags=Melanie Blatt;tags=the x factor nz;tags=Daniel Bedingfield;"; tags = tags.replace(/'/g, ""); tags = tags.replace(/ /g, "-").toLowerCase(); wheretrep = wheret.replace("\/",""); wheretrep = wheretrep.replace("TV3",sloc.toUpperCase()); var youtube=""; //midrolls var midRollString = ""; if(midRollString==""){ midRollString="99:99:99"; } var postRollString="00:02:26"; var domain = flashSI;//for adserving and stats var video ="/transfer/30062013/BENNY_3006"; //location of file var videoCheck ="/transfer/30062013/BENNY_3006"; //location of file var videoFolder = sloc;// application instance var imagePlaceholder="http://cdn.tv3.co.nz/tv/AM/2012/12/13/93660/benny-3006.jpg"; // date check for 700K crossover var videoDate = new Date("2013/06/30");//get current video date // date check for h264 crossover var videoDateh264 = new Date("2013/06/30");//get current video date var videoOrAudio=""; var os=""; var mp3=""; var type=""; var playerTarget="flashPlayerDisp"; var companion760 ="companion760"; var companion470 ="companion470"; var companion4x4 ="companion4x4";//ad selector companion var companion6x1 ="companion6x1";//background takeover companion var flashPath=""; var flashPath330=""; var netRatingsContentGroup =""; --> ",""); thirdparty ="true"; document.getElementById('ad_banner').innerHTML = ''; } content = content.replace(/(\r\n|\n|\r)/gm,"");//strip out new lines incase they are affecting re-write //if the companion strings is one of our s if(companion=="true"){ //only if there is a main companion banner if (type == "StaticResource") { document.getElementById(targetid).innerHTML = ""; } else if (type == "HTMLResource") { if(thirdparty=="true"){ jQuery("#"+targetid).writeCapture().html('"); if (agentID) { jQuery("#flashPlayerDispBorder").append("Sorry, this video is not available on your device
"); } else{ jQuery("#flashPlayerDispBorder").append(""); } setTimeout(function() { var color = jQuery("#flashdetect").css("visibility","visible"); }, 2000);//after2 seconds show flash message var relatedMRSS="http://www.3news.co.nz/DesktopModules/Article%20Presentation/External.aspx?tabid=363&moduleid=18554&videoOnly=1&numbertoshow=6&keyword="+tagsForRelated+""; if (String(video).substring(String(video).length, String(video).length - 4) == ".mp3") { video = String(video).substring(0, String(video).length - 4); /*alert(video);*/ type="mp3"; video=video; videoOrAudio="audio"; } else{ type="mp4"; video=video; videoOrAudio="video"; } videoTime=videoDate.getTime();//convert it to time nowDate = new Date("2011/07/18");//time 700k started getting encoded nowTime = nowDate.getTime();//convert to time if(type=="mp4"){ if (videoTime > nowTime) { //video=sloc+""+video+"_700K"; if(geo=="geo"){ if(agentID){ video=sloc+""+video+"_700K"; } else{ video=video+"_700K"; } } else if(geo=="geomob") { if(agentID){ video=sloc+""+video+"_700K"; } else{ video=video+"_700K"; } } else{ video=sloc+""+video+"_700K"; } } else{ if(geo=="geo"){ video=video+"_330K"; } else{ video=sloc+""+video+"_330K"; } } } videoTimeh264=videoDateh264.getTime();//convert it to time nowDateh264 = new Date("2010/07/25");//time h256 started getting encoded nowTimeh264 = nowDateh264.getTime();//convert to time if(type=="mp4"){ if (videoTimeh264 > nowTimeh264) { flashPath=""+type+":"+video+"."+type; } else{ type="flv"; flashPath=""+type+":"+video+"."+type; } } else{ flashPath=""+type+":"+video; } flashPath330 = flashPath.replace("_700K","_330K"); var playerApp = sloc; if(playerApp=="four"){playerApp="c4";} if(geo=="geo"){ // streamer ='rtmps://50a3bc1624217.streamlock.net/vod_rtmp/_definst_'; streamer ='rtmpe://nzcontent.mediaworks.co.nz:80/'+playerApp+'/_definst_'; streamerHLS ='https://50a3bc1624217.streamlock.net/vod_https/_definst_'; } else if(geo=="geomob") { streamer ='rtmps://50a3bc1624217.streamlock.net/vod/_definst_'; streamer ='rtmpe://nzcontent.mediaworks.co.nz:80/'+playerApp+'/_definst_'; streamerHLS ='https://50a3bc1624217.streamlock.net/hls-vod/_definst_'; } else{ streamer ='rtmpe://vod-non-geo.mediaworks.co.nz/vod/_definst_'; streamerHLS ='http://vod-non-geo.mediaworks.co.nz/hls-vod/_definst_'; } netRatingsContentGroup=wheretrep+"-"+videoOrAudio+""; //the main pre roll call var sitetarget = sloc; if(sitetarget=="3news"){sitetarget="tv3";} var adCall="http://ad.au.doubleclick.net/pfadx/www."+sitetarget+".co.nz;sz=512x288;sect="+videoOrAudio+"-player;sect1="+sect1+";sect2="+sect2+";sect3="+sect3+";sect4="+sect4+";sect5="+sect5+";sect6="+sect6+";genre=null;show=null;tile=1;kw=videotest;"+ums+";"+tags+";"+cats+";dcmt=text/xml;ord="+ord+"?"; var adCallLeader = adCall.replace("video-player;","video-player;sponsor=true;"); var adCallLeaderEnd = adCall.replace("video-player;","video-player;sponsorEnd=true;"); var adCallOrig = adCall; //loop for midroll placements //will create 5 sets of 5 ad solts for(j=1;j -1){ //set this variable if midroll point reached, will stop player launching pause ads pauseFrom ="midrolls"; adbreak="midrolls"; } if( time > -1){ //pauseFrom ="midrolls"; adbreak="midrolls"; } if( ttime2 > -1){ //this happens bang on midroll - will pause player to prevent player going over time currentPlayerPosition = time; //pauseFrom ="midrolls"; adbreak="midrolls"; if(agentID){} else{ //jwplayer().pause(); } companionAdMidroll();//removed background takeovers } if(time=="900"){ //alert("hasFlash="+hasFlash); if((ispad=="true")&&(ispadTimeUsed!=time)&&(hasFlash==true)){ setTimeout("loadInISPAd()", 1000); } } //Flyover logic var flyoverTimes= [10];//array of possible flyout times if((jQuery.inArray(time,flyoverTimes) > -1)&&(flyoverInteractedWith==false)&&(flyoverCookie!=flyoverCookieVersion)&&(flyover5x1fromDoubleClick=="true")&&(flyoverTimeUsed!=time)){ //if the set times are the current time and no bodys played with flyover yet and its not in their cookies and doubleclick said a fly over can occur then: flyoverCount+=1;//up the counter incase we want to use later to limit views flyover=true;//boolean incase we want to use later flyoverAppear(call5x1VodFlyoverVars.id,call5x1VodFlyoverVars.method,call5x1VodFlyoverVars.url,call5x1VodFlyoverVars.imageurl);//call the function that will launch the ad } flyoverTimeUsed = time;//set the timeUsed so it doesnt repeat on partial seconds ispadTimeUsed = time;//set the timeUsed so it doesnt repeat on partial seconds }); jwplayer().onPlay(function() { var vcid = "c06"; var videoTitle = ""+videoOrAudio+"-"+titleForNNR+"-jw-"+os; var ou = "http%3A//"+domain+"/video/" _scdav0(netRatingsContentGroup,vcid,videoTitle,ou); jwplayer().getPlaylist() }); jwplayer().onFullscreen(function(obj){ //toggle the pauseFrom so pause on demands dont fire on fullscreen but will refire once out of fullscreen if(obj.fullscreen==true){ pauseFrom="fullscreen"; } else{ if(agentID) { pauseFrom="iosFromFullscreenDone"; } else { pauseFrom=""; } } }); jwplayer().onComplete(function() { _scdav2(); if(os!="ios"){ } }); jwplayer().onReady( function(event){ }); jwplayer().onSeek( function(event){ pauseFrom="seek"; setTimeout(function() {pauseFrom=""; }, 8000);//after 3 second reset pauseFrom so pauseOnDemand works }); } }//end initialize jQuery(document).ready(function() { //launch the player //if no ad selecter attempt to set up the player if((call4x4AdSelectorVars.id=="")||(call4x4AdSelectorVars.id==undefined)){ initialize(); } function nextVideo(url){ //used to force next video window.location = url; } var ScRandom = Math.ceil(Math.random()*1000000000); var pingTime=""; var intervalID=""; //Legacy Beacon Variables var currentDuration = 0; var duration = 0; var davImg0 = new Image(); });//end document.ready //Fire DAV0 function _scdav0(netRatingsContentGroup,vcid,videoTitle,ou) { var currentTime=jwplayer().getPosition(); if(parseInt(currentTime)==0){ var ScImgSrc; duration = Math.floor(0); //Gets rid of decimals for duration var ScRandom = Math.ceil(Math.random()*1000000000); ScImgSrc = 'http://secure-nz.imrworldwide.com/cgi-bin/m?ci=nz-canwest-dav'; ScImgSrc += '&cg=' + netRatingsContentGroup;//Program/Section Name ScImgSrc += '&tl=dav0-' + videoTitle; //Title of the Stream ScImgSrc += '&c6=sc,' + vcid + escape('');//VideoCensus ID - specified by Nielsen - varies per entity ScImgSrc += '&ou=' + ou + escape(''); ScImgSrc += '&cc=1';//Cookie Check (Always on) ScImgSrc += '&sd=' + duration + escape(''); ScImgSrc += '&rnd=' + ScRandom; davImg0 = ""; davImg0 = new Image(); davImg0.src = ScImgSrc; } } //Fire DAV2 function _scdav2(netRatingsContentGroup,vcid,videoTitle,ou) { var ScImgSrc; duration = Math.floor(0); //Gets rid of decimals for duration var ScRandom = Math.ceil(Math.random()*1000000000); ScImgSrc = 'http://secure-nz.imrworldwide.com/cgi-bin/m?ci=nz-canwest-dav'; ScImgSrc += '&cg=' + netRatingsContentGroup;//Program/Section Name ScImgSrc += '&tl=dav2-' + videoTitle;//Title of the Stream ScImgSrc += '&c6=sc,' + vcid + escape('');//VideoCensus ID - specified by Nielsen - varies per entity ScImgSrc += '&ou=' + ou + escape(''); ScImgSrc += '&cc=1';//Cookie Check (Always on) ScImgSrc += '&sd=' + duration + escape(''); ScImgSrc += '&rnd=' + ScRandom; davImg0 = ""; davImg0 = new Image(); davImg0.src = ScImgSrc; } //end tracking /* ]]> */ //put gerneric player functions here //function to handle pause events from outside the player function pausePlayVideo(message,from){ pauseFrom=from; if(message=="play"){ jwplayer().play(); } else{ if(pauseFrom!="user") { jwplayer().pause(); } if(dartsayspause==true){ if((pauseFrom=="flyover")||(pauseFrom=='call4x4AdSelector')){} else{ LoadPauseOverlay(call4x1VodPauseAdVars.id,call4x1VodPauseAdVars.method,call4x1VodPauseAdVars.url,null,'pause'); } } } } //function to recieve instructions from add selector function dynamicPreRoll(cust,choice){ AdPauseClose();//close the container initialize("adselector",cust,choice);//reset JWPlayer with new adselecter choices //initialize();//reset JWPlayer with new adselecter choices //pauseFrom='';//reset this so usual pause works again //jwplayer().play(); } var call4x4AdSelectorVars = new Object();//make globalVars object to reference vars later var adSelecterCount =0; function call4x4AdSelector(id,method,url) { document.getElementById('ad_banner').innerHTML = ''; adSelecterCount +=1;// add one to the count so it doesnt get called again call4x4AdSelectorVars.id = id; call4x4AdSelectorVars.method = method; call4x4AdSelectorVars.url = url; if(adSelecterCount0){ pauseFrom="ios"; var tag = document.getElementsByTagName('video')[0]; midrollCounter=midrollCounter+1; } } } hideCompaionOverlayAds();//remove midroll companions pauseFrom="";//reset pause from } function doSeek(time) { var tag = document.getElementsByTagName('video')[0]; pauseFrom="ios"; tag.pause(); tag.currentTime = time; tag.play(); }; function removeAnimation(){ document.getElementById('telstraclear').innerHTML=""; } //set variable to universally use as flash detector for html5 toggles var hasFlash = jwplayer.utils.hasFlash(); //this area is used to display more video options to users who cant access geo blocked content var loadMobileOptionsVar = new Object();//make globalVars object to reference vars later document.write(unescape('%3Cscript language="JavaScript" src="http://www.tv3.co.nz/DesktopModules/Article%20Presentation/External.aspx?tabid=817&moduleid=18514&numberToShow=8&daysToShow=7" type="text/javascript"%3E%3C/script%3E')); var holder =""; holder+=''; holder+='We have detected that you are using a mobile device. Unfortunately this video is unavailable on your device due to licensing restrictions. Please select an alternative show below.
'; var callback = function(data) { for(i=0;i= 3) { holder+=''; holder+=''; holder+=''; holder+=''; holder+=''; holder+=''+data.items[i].title+''; holder+='
'; holder+=''; holder+='Aired: '; holder+='
'; holder+=''; if(i==3){ holder+=''; } } } if(sloc=="four"){ holder+='View all titles available on this device
'; } else{ holder+='View all titles available on this device
'; } loadMobileOptionsVar.holder = holder;//load content into object div } function loadMobileOptions(){ document.getElementById('flashPlayerDispBorder').innerHTML=holder; jQuery("#flashPlayerDispBorder").css("height", "500px"); jQuery("#flashPlayerDispWrap").css("height", "500px"); jQuery("#playerVODJW").css("height", "500px"); }sf giants gold rush gold rush windows 8 Emanuel Steward nyc.gov SAT
কোন মন্তব্য নেই:
একটি মন্তব্য পোস্ট করুন