PageSourceSearch

https://www.radiolive.co.nz/livestream/js/universalJW7.0_v-s4.js

js radiolive.co.nz collected 2026-10-02 03:28:12 UTC 3,543 bytes, 130 lines download raw bytes

1var ScRandom = Math.ceil(Math.random()*1000000000);
2
3var adCall= 'http://ad.au.doubleclick.net/N4100/pfadx/'+domain+';sz=1x1;sect=video-player;sect1='+sect1+';sect2='+sect2+';sect3='+sect3+';dcmt=text/xml;ord='+ScRandom+'?';	
4
5
6 jwplayer(playerTarget).setup({
7     width: playerWidth,
8	 height: playerHeight,
9	analytics: {
10    enabled: false
11  },
12
13	autostart:'true',
14	abouttext:': Copyright MediaWorksNZ',
15		skin:pathToSkin,
16       primary: "flash",
17  playlist: [{
18        sources: [
19	{file: "rtmpe://"+streamingServer+"/live/"+streamingLocation, type: "rtmp"},
20	{file: "http://live-non-geo.mediaworks.co.nz/hls-live/_definst_/"+streamingLocation+"/playlist.m3u8" }
21
22	]
23    }],
24	
25		   advertising: {
26			client: 'googima',
27			schedule: {
28				preroll: {offset: 'pre',tag: adCall}
29			}
30				
31			,admessage: 'Advertisement '
32			,adcounterdynamic: ' '
33			}
34
35  });
36   
37
38//Set JW player volume
39jwplayer().setVolume(80);
40  
41  jQuery(document).ready(function(){
42	   jwplayer(playerTarget).onPlay(function() {
43		 _scdav0LS()
44	  });
45		jwplayer(playerTarget).onComplete(function() {
46		 _scdav2LS()
47	  });
48  
49   });
50  
51var ScRandom = Math.ceil(Math.random()*1000000000);
52var clientid = "nz-canwest-dav";
53var vcid = "c06";
54var sfcode = "nz";
55var cgcode = netratingsCGCode;
56var title = netratingsTitle;
57var prod = "sc";
58
59var pingTime="";
60var intervalID="";
61
62//Legacy Beacon Variables
63
64var currentDuration = 0;
65var duration = 0;
66var davImg0 = new Image();
67
68
69
70function googleTrack(ou,title)
71 { 
72_gaq.push(['_trackEvent', 'audioStream', title+' | '+ou, document.URL]);
73};
74
75
76
77//Fire DAV0
78function _scdav0LS()
79{
80
81
82var currentTime=jwplayer().getPosition();
83
84//alert("play event sent to NNR - current time="+ currentTime);
85	var ScImgSrc;
86	duration = Math.floor(0); 	//Gets rid of decimals for duration
87
88	var ScRandom = Math.ceil(Math.random()*1000000000);
89            ScImgSrc = 'http://secure-' + sfcode + '.imrworldwide.com/cgi-bin/m?ci=' + clientid;
90            ScImgSrc += '&cg=' + cgcode;//Program/Section Name
91            ScImgSrc += '&tl=dav0-' + title; //Title of the Stream
92            ScImgSrc += '&c6=' + prod + ',' + vcid + escape('');//VideoCensus ID - specified by Nielsen - varies per entity
93	        ScImgSrc += '&ou=' + ou + escape('');
94            ScImgSrc += '&cc=1';//Cookie Check (Always on)
95	        ScImgSrc += '&sd=' + duration + escape('');
96            ScImgSrc += '&rnd=' + ScRandom;
97            
98            davImg0 = "";
99            davImg0 = new Image();
100            davImg0.src = ScImgSrc;
101			googleTrack(ou,title);
102
103	}
104	//Fire DAV0
105function _scdav2LS()
106{
107	var ScImgSrc;
108	duration = Math.floor(0); 	//Gets rid of decimals for duration
109
110	var ScRandom = Math.ceil(Math.random()*1000000000);
111            ScImgSrc = 'http://secure-' + sfcode + '.imrworldwide.com/cgi-bin/m?ci=' + clientid;
112            ScImgSrc += '&cg=' + cgcode;//Program/Section Name
113            ScImgSrc += '&tl=dav2-' + title;//Title of the Stream
114            ScImgSrc += '&c6=' + prod + ',' + vcid + escape('');//VideoCensus ID - specified by Nielsen - varies per entity
115	        ScImgSrc += '&ou=' + ou + escape('');
116            ScImgSrc += '&cc=1';//Cookie Check (Always on)
117	        ScImgSrc += '&sd=' + duration + escape('');
118            ScImgSrc += '&rnd=' + ScRandom;
119            
120            davImg0 = "";
121            davImg0 = new Image();
122            davImg0.src = ScImgSrc;
123	    }
124		
125		
126
127			
128function help_button(){
129	window.open(vidurl,'Help','width=1500,height=800,toolbar=no,location=no,copyhistory=no,scrollbars=1,directories=no,status=yes,menubar=no');
130}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.