A Milwaukee food hall opening soon plays host this Wednesday to a Waukesha Christmas Parade fundraiser – WDJT

To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video
MILWAUKEE (CBS 58)–This season of giving takes on an even more significant meaning as we remember those affected by the tragic events of last month’s Waukesha Christmas Parade. A special fundraiser will be happening Wednesday, Dec. 22 at the soon-to-open 3rd Street Market Hall. The event will be located on the first floor where the Grand Avenue Mall used to be in downtown Milwaukee.
Up to 15 different food vendors will be featured with 100% of the proceeds being donated to the United for Waukesha Community Fund.
The cost of admission is $100. It gets you two drink tickets as well. The fundraiser runs from 5 p.m. to 8 p.m. on Wednesday. Click here to find out all the details about the event or purchase tickets online.
Another side to the food hall is the rented space (when available) to perspective entrepreneurs who are looking for assistance with start ups.  There’s also an industrial kitchen shared among the vendors.  Joshua Wolter, Director of Operations of Dairyland, says this is a great opportunity for up and coming small businesses, an opportunity he didn’t necessarily have.  If you interested in filling a space, click here
.vjs-control-bar{ } .video-close-floating { z-index: 2147483640 !important; } .media-container.floating-video.desktop-ad-is-sticky{ top: 140px; } .media-container.floating-video.desktop-ad-is-sticky-noad{ top: 50px; } .media-container.floating-video.mobile-ad-is-sticky{ top: 118px; } .media-container.floating-video.mobile-ad-is-sticky-noad{ top: 56px; }

var __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
var WVM = WVM || {};

WVM.SITE_NAME = "";
WVM.IS_STREAMING = false;

WVM.detectIE = function(){

};
if(!WVM.custParams){
var VIDEO_WIDTH = $("#media-placeholder-173849").width();
var VIDEO_HEIGHT = Math.floor(VIDEO_WIDTH * (9 / 16));
var isMobile2 = 'no';
var url = '';

WVM.custParams = '&cust_params=site%3D' + url + '%26ismobile%3D' + isMobile2 + '%26page%3D' + '%26playerwidth%3D' + VIDEO_WIDTH + '%26playerheight%3D' + VIDEO_HEIGHT;
}

WVM.getAdTagUrl = function(){
var adTag = '';
if(WVM.SITE_NAME == 'telemundowi'){
adTag = 'https://pubads.g.doubleclick.net/gampad/ads?sz=640×480&iu=/7089059/telemundowi_video_pre_roll&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]' + WVM.custParams;
}else if(WVM.SITE_NAME == 'cbs58'){
adTag = 'https://pubads.g.doubleclick.net/gampad/ads?sz=640×480&iu=/7089059/cbs58_video_pre_roll&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]' + WVM.custParams;
}
else if(WVM.SITE_NAME == 'abc57'){
adTag = 'https://pubads.g.doubleclick.net/gampad/ads?sz=640×480&iu=/7089059/abc57_video_pre_roll&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]' + WVM.custParams;
}
return adTag;
};
WVM.getFirstPrerollUrl = function(){
var adTag = '';
if(WVM.SITE_NAME == 'telemundowi'){
adTag = 'https://pubads.g.doubleclick.net/gampad/ads?sz=640×480&iu=/7089059/telemundowi_video_pre_roll&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&url=[referrer_url]&description_url=[description_url]&correlator=[timestamp]' + WVM.custParams;
}else if(WVM.SITE_NAME == 'cbs58'){
adTag = 'https://pubads.g.doubleclick.net/gampad/live/ads?iu=/7089059/CBS58_RevFirstPreRoll&description_url=https%3A%2F%2Fwww.cbs58.com&env=vp&impl=s&correlator=&tfcd=0&npa=0&gdfp_req=1&output=vast&sz=640×480&unviewed_position_start=1&correlator=[timestamp]' + WVM.custParams;
}
else if(WVM.SITE_NAME == 'abc57'){
adTag = 'https://pubads.g.doubleclick.net/gampad/live/ads?iu=/7089059/ABC57_FirstPreroll&description_url=https%3A%2F%2Fwww.abc57.com&env=vp&impl=s&correlator=&tfcd=0&npa=0&gdfp_req=1&output=vast&sz=640×480&unviewed_position_start=1&correlator=[timestamp]' + WVM.custParams;
}
return adTag;
};
WVM.firstPrerollTagUrl = WVM.firstPrerollTagUrl || WVM.getFirstPrerollUrl();
WVM.adTagUrl = WVM.adTagUrl || WVM.getAdTagUrl();

//WVM.adTagUrl = 'https://pubads.g.doubleclick.net/gampad/ads?sz=640×480&iu=/124319096/external/single_ad_samples&ciu_szs=300×250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=[timestamp]';

console.log(WVM.firstPrerollTagUrl);
console.log(WVM.adTagUrl);

WVM.activePlayer = WVM.activePlayer || null;
WVM.activeVideoId = WVM.activeVideoId || null;
WVM.lastAdRequest = WVM.lastAdRequest || null;
WVM.lastLoadedVideo = new Date().getTime() / 1000;
WVM.device_name = 'desktop';
if(!WVM.playlist_ids || WVM.playlist_ids.length <= 0){
WVM.playlist_index = -1;
WVM.playlist_ids = new Array();

WVM.playlist_ids.push(173849);

WVM.playlist_ids.push(175388);

WVM.playlist_ids.push(175380);

WVM.playlist_ids.push(175375);

WVM.playlist_ids.push(175385);

WVM.playlist_ids.push(175381);

WVM.playlist_ids.push(175374);

WVM.playlist_ids.push(175383);

WVM.playlist_ids.push(175387);

WVM.playlist_ids.push(175376);

WVM.playlist_ids.push(175386);

WVM.playlist_ids.push(175343);

WVM.playlist_ids.push(175340);

for(var x = 0;x < WVM.playlist_ids.length; x++){
if(WVM.playlist_index == WVM.playlist_ids[x]){
WVM.playlist_index = x;
}
}
}

WVM.ACTIVE_PLAYING = false;
WVM.videoads = null;
WVM.useMobilePlayer = WVM.useMobilePlayer || null;
if(WVM.activeVideoId == null){
WVM.activeVideoId = 173849;
}

WVM.player173849 = null;
WVM.player_settings173849 = {
autoplay_next : true ,
slider : null
};
WVM.player_state173849 = {
IS_PLAYING: false,
PLAYER_META : false,
PLAYER_READY : false,
CAROUSEL_INIT : false,
AD_IS_PLAYING: false,
AD_ERROR: false,
VIDEO_ID : 173849,
ORIGINAL_ID : 173849,
VIDEO_URL : "",
VIDEO_TITLE: "3rd St, Market 715",
START_SENT: false,
CANCEL_FLOATING: true,
COMPLETE_EVENT: null,
PERCENTS_TRACKED : []
};
WVM.playlist_data173849 = JSON.parse('[{"id":173849,"tags":null,"video_id":"173849","url":null,"type":"hls","directory_id":"59","has_captions":"yes","title":"3rd St, Market 715","description":null,"length":"221","status":"2","active":"yes","start_date":"2021-12-21 09:41:21","end_date":"2036-01-01 00:00:00","display_settings":null,"channel_url":"cbs58news","imageurl":"https://videopostercdn.weigelbroadcasting.com/cbs58news/3rd st market 715_1640101182-CBS58 980×551.jpg?1640101331","caption_url":"https://wsocdn.weigelbroadcasting.com/cbs58news/3rd st market 715_1640101182/captions-en.vtt","renditions":{"master":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/3rd st market 715_1640101182.mp4","hls":"https://wsocdn.weigelbroadcasting.com/cbs58news/3rd st market 715_1640101182/hls_index.m3u8"},"video_options":{"nowplaying_active":false,"nowplaying_title":false,"nowplaying_titleright":false,"nowplaying_slider":false,"nowplaying_expanded":false,"nowplaying_floating":false},"images":[{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/3rd st market 715_1640101182-CBS58 320×180.jpg?1640101301","dimensions":"1280×720","priority":"1"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/3rd st market 715_1640101182-CBS58 480×270.jpg?1640101321","dimensions":"320×180","priority":"2"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/3rd st market 715_1640101182-CBS58 980×551.jpg?1640101331","dimensions":"480×270","priority":"3"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/3rd st market 715_1640101182-Default.jpg?1640101313","dimensions":"980×551","priority":"4"}],"filename":"3rd st market 715_1640101182.mp4","preview_image":"https://videopostercdn.weigelbroadcasting.com/cbs58news/3rd st market 715_1640101182-Default.jpg?1640101313","image_preview":"https://videopostercdn.weigelbroadcasting.com/cbs58news/3rd st market 715_1640101182-Default.jpg?1640101313","hls_rendition":"https://wsocdn.weigelbroadcasting.com/cbs58news/3rd st market 715_1640101182/hls_index.m3u8","master_rendition":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/3rd st market 715_1640101182.mp4","noprefixtitle":"3rd St, Market 715","duration":"3:41","prefix":"NOW: ","story_title":"3rd St, Market 715"},{"id":"175388","video_id":"175388","url":null,"type":"hls","directory_id":"59","has_captions":"yes","title":"State Republican lawmakers propose giving Legislature final say…","description":null,"length":"51","status":"2","active":"yes","start_date":"2022-01-11 18:30:09","end_date":"2036-01-01 00:00:00","display_settings":null,"channel_url":"cbs58news","imageurl":"https://videopostercdn.weigelbroadcasting.com/cbs58news/lawmakers fiscal responsibility_1641947383-CBS58 980×551.jpg?1641947424","caption_url":"https://wsocdn.weigelbroadcasting.com/cbs58news/lawmakers fiscal responsibility_1641947383/captions-en.vtt","renditions":{"master":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/lawmakers fiscal responsibility_1641947383.mp4","hls":"https://wsocdn.weigelbroadcasting.com/cbs58news/lawmakers fiscal responsibility_1641947383/hls_index.m3u8"},"video_options":{"nowplaying_active":false,"nowplaying_title":false,"nowplaying_titleright":false,"nowplaying_slider":false,"nowplaying_expanded":false,"nowplaying_floating":false},"images":[{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/lawmakers fiscal responsibility_1641947383-CBS58 320×180.jpg?1641947418","dimensions":"1280×720","priority":"1"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/lawmakers fiscal responsibility_1641947383-CBS58 480×270.jpg?1641947414","dimensions":"320×180","priority":"2"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/lawmakers fiscal responsibility_1641947383-CBS58 980×551.jpg?1641947424","dimensions":"480×270","priority":"3"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/lawmakers fiscal responsibility_1641947383-Default.jpg?1641947441","dimensions":"980×551","priority":"4"}],"filename":"lawmakers fiscal responsibility_1641947383.mp4","preview_image":"https://videopostercdn.weigelbroadcasting.com/cbs58news/lawmakers fiscal responsibility_1641947383-CBS58 980×551.jpg?1641947424","image_preview":"https://videopostercdn.weigelbroadcasting.com/cbs58news/lawmakers fiscal responsibility_1641947383-CBS58 980×551.jpg?1641947424","hls_rendition":"https://wsocdn.weigelbroadcasting.com/cbs58news/lawmakers fiscal responsibility_1641947383/hls_index.m3u8","master_rendition":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/lawmakers fiscal responsibility_1641947383.mp4","noprefixtitle":"State Republican lawmakers propose giving Legislature final say…","duration":"0:51","prefix":"NOW: ","story_title":"State Republican lawmakers propose giving Legislature final say in federal aid distribution"},{"id":"175380","video_id":"175380","url":null,"type":"hls","directory_id":"59","has_captions":"yes","title":"Family confirms 20-year-old Donniesha Harris killed in hit-and-run…","description":null,"length":"93","status":"2","active":"yes","start_date":"2022-01-11 17:33:22","end_date":"2036-01-01 00:00:00","display_settings":null,"channel_url":"cbs58news","imageurl":"https://videopostercdn.weigelbroadcasting.com/cbs58news/hit and run death_1641943976-CBS58 980×551.jpg?1641944030","caption_url":"https://wsocdn.weigelbroadcasting.com/cbs58news/hit and run death_1641943976/captions-en.vtt","renditions":{"master":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/hit and run death_1641943976.mp4","hls":"https://wsocdn.weigelbroadcasting.com/cbs58news/hit and run death_1641943976/hls_index.m3u8"},"video_options":{"nowplaying_active":false,"nowplaying_title":false,"nowplaying_titleright":false,"nowplaying_slider":false,"nowplaying_expanded":false,"nowplaying_floating":false},"images":[{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/hit and run death_1641943976-CBS58 320×180.jpg?1641944043","dimensions":"1280×720","priority":"1"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/hit and run death_1641943976-CBS58 480×270.jpg?1641944037","dimensions":"320×180","priority":"2"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/hit and run death_1641943976-CBS58 980×551.jpg?1641944030","dimensions":"480×270","priority":"3"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/hit and run death_1641943976-Default.jpg?1641944022","dimensions":"980×551","priority":"4"}],"filename":"hit and run death_1641943976.mp4","preview_image":"https://videopostercdn.weigelbroadcasting.com/cbs58news/hit and run death_1641943976-CBS58 980×551.jpg?1641944030","image_preview":"https://videopostercdn.weigelbroadcasting.com/cbs58news/hit and run death_1641943976-CBS58 980×551.jpg?1641944030","hls_rendition":"https://wsocdn.weigelbroadcasting.com/cbs58news/hit and run death_1641943976/hls_index.m3u8","master_rendition":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/hit and run death_1641943976.mp4","noprefixtitle":"Family confirms 20-year-old Donniesha Harris killed in hit-and-run…","duration":"1:33","prefix":"NOW: ","story_title":"Family confirms 20-year-old Donniesha Harris killed in hit-and-run near 108th St. and Morgan "},{"id":"175375","video_id":"175375","url":null,"type":"hls","directory_id":"59","has_captions":"yes","title":"Fight continues over redistricting maps in Milwaukee","description":null,"length":"111","status":"2","active":"yes","start_date":"2022-01-11 17:12:18","end_date":"2036-01-01 00:00:00","display_settings":null,"channel_url":"cbs58news","imageurl":"https://videopostercdn.weigelbroadcasting.com/cbs58news/aldermanic maps_1641942697-CBS58 980×551.jpg?1641942757","caption_url":"https://wsocdn.weigelbroadcasting.com/cbs58news/aldermanic maps_1641942697/captions-en.vtt","renditions":{"master":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/aldermanic maps_1641942697.mp4","hls":"https://wsocdn.weigelbroadcasting.com/cbs58news/aldermanic maps_1641942697/hls_index.m3u8"},"video_options":{"nowplaying_active":false,"nowplaying_title":false,"nowplaying_titleright":false,"nowplaying_slider":false,"nowplaying_expanded":false,"nowplaying_floating":false},"images":[{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/aldermanic maps_1641942697-CBS58 320×180.jpg?1641942762","dimensions":"1280×720","priority":"1"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/aldermanic maps_1641942697-CBS58 480×270.jpg?1641942774","dimensions":"320×180","priority":"2"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/aldermanic maps_1641942697-CBS58 980×551.jpg?1641942757","dimensions":"480×270","priority":"3"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/aldermanic maps_1641942697-Default.jpg?1641942768","dimensions":"980×551","priority":"4"}],"filename":"aldermanic maps_1641942697.mp4","preview_image":"https://videopostercdn.weigelbroadcasting.com/cbs58news/aldermanic maps_1641942697-CBS58 980×551.jpg?1641942757","image_preview":"https://videopostercdn.weigelbroadcasting.com/cbs58news/aldermanic maps_1641942697-CBS58 980×551.jpg?1641942757","hls_rendition":"https://wsocdn.weigelbroadcasting.com/cbs58news/aldermanic maps_1641942697/hls_index.m3u8","master_rendition":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/aldermanic maps_1641942697.mp4","noprefixtitle":"Fight continues over redistricting maps in Milwaukee","duration":"1:51","prefix":"NOW: ","story_title":"Fight continues over redistricting maps in Milwaukee"},{"id":"175385","video_id":"175385","url":null,"type":"hls","directory_id":"59","has_captions":"yes","title":"u2019Putting a plea out there:u2019 Family of missing Waukesha woman…","description":null,"length":"120","status":"2","active":"yes","start_date":"2022-01-11 17:39:28","end_date":"2036-01-01 00:00:00","display_settings":null,"channel_url":"cbs58news","imageurl":"https://videopostercdn.weigelbroadcasting.com/cbs58news/missing women in panama_1641944302-CBS58 980×551.jpg?1641944374","caption_url":"https://wsocdn.weigelbroadcasting.com/cbs58news/missing women in panama_1641944302/captions-en.vtt","renditions":{"master":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/missing women in panama_1641944302.mp4","hls":"https://wsocdn.weigelbroadcasting.com/cbs58news/missing women in panama_1641944302/hls_index.m3u8"},"video_options":{"nowplaying_active":false,"nowplaying_title":false,"nowplaying_titleright":false,"nowplaying_slider":false,"nowplaying_expanded":false,"nowplaying_floating":false},"images":[{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/missing women in panama_1641944302-CBS58 320×180.jpg?1641944382","dimensions":"1280×720","priority":"1"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/missing women in panama_1641944302-CBS58 480×270.jpg?1641944386","dimensions":"320×180","priority":"2"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/missing women in panama_1641944302-CBS58 980×551.jpg?1641944374","dimensions":"480×270","priority":"3"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/missing women in panama_1641944302-Default.jpg?1641944378","dimensions":"980×551","priority":"4"}],"filename":"missing women in panama_1641944302.mp4","preview_image":"https://videopostercdn.weigelbroadcasting.com/cbs58news/missing women in panama_1641944302-CBS58 980×551.jpg?1641944374","image_preview":"https://videopostercdn.weigelbroadcasting.com/cbs58news/missing women in panama_1641944302-CBS58 980×551.jpg?1641944374","hls_rendition":"https://wsocdn.weigelbroadcasting.com/cbs58news/missing women in panama_1641944302/hls_index.m3u8","master_rendition":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/missing women in panama_1641944302.mp4","noprefixtitle":"u2019Putting a plea out there:u2019 Family of missing Waukesha woman…","duration":"2:00","prefix":"NOW: ","story_title":"u2019Putting a plea out there:u2019 Family of missing Waukesha woman in Panama calls for more help"},{"id":"175381","video_id":"175381","url":null,"type":"hls","directory_id":"59","has_captions":"yes","title":"Doctors weigh in on accuracy of PCR, rapid antigen Covid-19 tests","description":null,"length":"109","status":"2","active":"yes","start_date":"2022-01-11 17:34:55","end_date":"2036-01-01 00:00:00","display_settings":null,"channel_url":"cbs58news","imageurl":"https://videopostercdn.weigelbroadcasting.com/cbs58news/covid 19 test accuracy_1641944054-CBS58 980×551.jpg?1641944180","caption_url":"https://wsocdn.weigelbroadcasting.com/cbs58news/covid 19 test accuracy_1641944054/captions-en.vtt","renditions":{"master":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/covid 19 test accuracy_1641944054.mp4","hls":"https://wsocdn.weigelbroadcasting.com/cbs58news/covid 19 test accuracy_1641944054/hls_index.m3u8"},"video_options":{"nowplaying_active":false,"nowplaying_title":false,"nowplaying_titleright":false,"nowplaying_slider":false,"nowplaying_expanded":false,"nowplaying_floating":false},"images":[{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/covid 19 test accuracy_1641944054-CBS58 320×180.jpg?1641944171","dimensions":"1280×720","priority":"1"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/covid 19 test accuracy_1641944054-CBS58 480×270.jpg?1641944167","dimensions":"320×180","priority":"2"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/covid 19 test accuracy_1641944054-CBS58 980×551.jpg?1641944180","dimensions":"480×270","priority":"3"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/covid 19 test accuracy_1641944054-Default.jpg?1641944176","dimensions":"980×551","priority":"4"}],"filename":"covid 19 test accuracy_1641944054.mp4","preview_image":"https://videopostercdn.weigelbroadcasting.com/cbs58news/covid 19 test accuracy_1641944054-CBS58 980×551.jpg?1641944180","image_preview":"https://videopostercdn.weigelbroadcasting.com/cbs58news/covid 19 test accuracy_1641944054-CBS58 980×551.jpg?1641944180","hls_rendition":"https://wsocdn.weigelbroadcasting.com/cbs58news/covid 19 test accuracy_1641944054/hls_index.m3u8","master_rendition":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/covid 19 test accuracy_1641944054.mp4","noprefixtitle":"Doctors weigh in on accuracy of PCR, rapid antigen Covid-19 tests","duration":"1:49","prefix":"NOW: ","story_title":"Doctors weigh in on accuracy of PCR, rapid antigen Covid-19 tests"},{"id":"175374","video_id":"175374","url":null,"type":"hls","directory_id":"59","has_captions":"yes","title":"Tommy Thompson weighs in on run for governor, reflects on UW…","description":null,"length":"119","status":"2","active":"yes","start_date":"2022-01-11 17:10:39","end_date":"2036-01-01 00:00:00","display_settings":null,"channel_url":"cbs58news","imageurl":"https://videopostercdn.weigelbroadcasting.com/cbs58news/tommy thompson_1641942607-CBS58 980×551.jpg?1641942668","caption_url":"https://wsocdn.weigelbroadcasting.com/cbs58news/tommy thompson_1641942607/captions-en.vtt","renditions":{"master":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/tommy thompson_1641942607.mp4","hls":"https://wsocdn.weigelbroadcasting.com/cbs58news/tommy thompson_1641942607/hls_index.m3u8"},"video_options":{"nowplaying_active":false,"nowplaying_title":false,"nowplaying_titleright":false,"nowplaying_slider":false,"nowplaying_expanded":false,"nowplaying_floating":false},"images":[{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/tommy thompson_1641942607-CBS58 320×180.jpg?1641942657","dimensions":"1280×720","priority":"1"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/tommy thompson_1641942607-CBS58 480×270.jpg?1641942686","dimensions":"320×180","priority":"2"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/tommy thompson_1641942607-CBS58 980×551.jpg?1641942668","dimensions":"480×270","priority":"3"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/tommy thompson_1641942607-Default.jpg?1641942678","dimensions":"980×551","priority":"4"}],"filename":"tommy thompson_1641942607.mp4","preview_image":"https://videopostercdn.weigelbroadcasting.com/cbs58news/tommy thompson_1641942607-CBS58 980×551.jpg?1641942668","image_preview":"https://videopostercdn.weigelbroadcasting.com/cbs58news/tommy thompson_1641942607-CBS58 980×551.jpg?1641942668","hls_rendition":"https://wsocdn.weigelbroadcasting.com/cbs58news/tommy thompson_1641942607/hls_index.m3u8","master_rendition":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/tommy thompson_1641942607.mp4","noprefixtitle":"Tommy Thompson weighs in on run for governor, reflects on UW…","duration":"1:59","prefix":"NOW: ","story_title":"Tommy Thompson weighs in on run for governor, reflects on UW System "},{"id":"175383","video_id":"175383","url":null,"type":"hls","directory_id":"59","has_captions":"yes","title":"Wisconsin pediatric diabetes cases increase as u2019alarmingu2019…","description":null,"length":"121","status":"2","active":"yes","start_date":"2022-01-11 17:36:39","end_date":"2036-01-01 00:00:00","display_settings":null,"channel_url":"cbs58news","imageurl":"https://videopostercdn.weigelbroadcasting.com/cbs58news/covid diabetes link in children_1641944095-CBS58 980×551.jpg?1641944273","caption_url":"https://wsocdn.weigelbroadcasting.com/cbs58news/covid diabetes link in children_1641944095/captions-en.vtt","renditions":{"master":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/covid diabetes link in children_1641944095.mp4","hls":"https://wsocdn.weigelbroadcasting.com/cbs58news/covid diabetes link in children_1641944095/hls_index.m3u8"},"video_options":{"nowplaying_active":false,"nowplaying_title":false,"nowplaying_titleright":false,"nowplaying_slider":false,"nowplaying_expanded":false,"nowplaying_floating":false},"images":[{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/covid diabetes link in children_1641944095-CBS58 320×180.jpg?1641944259","dimensions":"1280×720","priority":"1"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/covid diabetes link in children_1641944095-CBS58 480×270.jpg?1641944256","dimensions":"320×180","priority":"2"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/covid diabetes link in children_1641944095-CBS58 980×551.jpg?1641944273","dimensions":"480×270","priority":"3"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/covid diabetes link in children_1641944095-Default.jpg?1641944288","dimensions":"980×551","priority":"4"}],"filename":"covid diabetes link in children_1641944095.mp4","preview_image":"https://videopostercdn.weigelbroadcasting.com/cbs58news/covid diabetes link in children_1641944095-CBS58 980×551.jpg?1641944273","image_preview":"https://videopostercdn.weigelbroadcasting.com/cbs58news/covid diabetes link in children_1641944095-CBS58 980×551.jpg?1641944273","hls_rendition":"https://wsocdn.weigelbroadcasting.com/cbs58news/covid diabetes link in children_1641944095/hls_index.m3u8","master_rendition":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/covid diabetes link in children_1641944095.mp4","noprefixtitle":"Wisconsin pediatric diabetes cases increase as u2019alarmingu2019…","duration":"2:01","prefix":"NOW: ","story_title":"Wisconsin pediatric diabetes cases increase as u2019alarmingu2019 new study finds link with COVID-19"},{"id":"175387","video_id":"175387","url":null,"type":"hls","directory_id":"59","has_captions":"yes","title":"Carroll University students foster 7 HAWS dogs during third annual…","description":null,"length":"106","status":"2","active":"yes","start_date":"2022-01-11 18:16:22","end_date":"2036-01-01 00:00:00","display_settings":null,"channel_url":"cbs58news","imageurl":"https://videopostercdn.weigelbroadcasting.com/cbs58news/carroll university dogs_1641946542-CBS58 980×551.jpg?1641946595","caption_url":"https://wsocdn.weigelbroadcasting.com/cbs58news/carroll university dogs_1641946542/captions-en.vtt","renditions":{"master":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/carroll university dogs_1641946542.mp4","hls":"https://wsocdn.weigelbroadcasting.com/cbs58news/carroll university dogs_1641946542/hls_index.m3u8"},"video_options":{"nowplaying_active":false,"nowplaying_title":false,"nowplaying_titleright":false,"nowplaying_slider":false,"nowplaying_expanded":false,"nowplaying_floating":false},"images":[{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/carroll university dogs_1641946542-CBS58 320×180.jpg?1641946606","dimensions":"1280×720","priority":"1"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/carroll university dogs_1641946542-CBS58 480×270.jpg?1641946588","dimensions":"320×180","priority":"2"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/carroll university dogs_1641946542-CBS58 980×551.jpg?1641946595","dimensions":"480×270","priority":"3"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/carroll university dogs_1641946542-Default.jpg?1641946601","dimensions":"980×551","priority":"4"}],"filename":"carroll university dogs_1641946542.mp4","preview_image":"https://videopostercdn.weigelbroadcasting.com/cbs58news/carroll university dogs_1641946542-CBS58 980×551.jpg?1641946595","image_preview":"https://videopostercdn.weigelbroadcasting.com/cbs58news/carroll university dogs_1641946542-CBS58 980×551.jpg?1641946595","hls_rendition":"https://wsocdn.weigelbroadcasting.com/cbs58news/carroll university dogs_1641946542/hls_index.m3u8","master_rendition":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/carroll university dogs_1641946542.mp4","noprefixtitle":"Carroll University students foster 7 HAWS dogs during third annual…","duration":"1:46","prefix":"NOW: ","story_title":"Carroll University students foster 7 HAWS dogs during third annual animal behavior program"},{"id":"175376","video_id":"175376","url":null,"type":"hls","directory_id":"59","has_captions":"yes","title":"Alex Hook returns to school part-time after lawnmower accident","description":null,"length":"120","status":"2","active":"yes","start_date":"2022-01-11 17:13:52","end_date":"2036-01-01 00:00:00","display_settings":null,"channel_url":"cbs58news","imageurl":"https://videopostercdn.weigelbroadcasting.com/cbs58news/alex hook returns to school_1641942785-CBS58 980×551.jpg?1641942849","caption_url":"https://wsocdn.weigelbroadcasting.com/cbs58news/alex hook returns to school_1641942785/captions-en.vtt","renditions":{"master":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/alex hook returns to school_1641942785.mp4","hls":"https://wsocdn.weigelbroadcasting.com/cbs58news/alex hook returns to school_1641942785/hls_index.m3u8"},"video_options":{"nowplaying_active":false,"nowplaying_title":false,"nowplaying_titleright":false,"nowplaying_slider":false,"nowplaying_expanded":false,"nowplaying_floating":false},"images":[{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/alex hook returns to school_1641942785-CBS58 320×180.jpg?1641942840","dimensions":"1280×720","priority":"1"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/alex hook returns to school_1641942785-CBS58 480×270.jpg?1641942836","dimensions":"320×180","priority":"2"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/alex hook returns to school_1641942785-CBS58 980×551.jpg?1641942849","dimensions":"480×270","priority":"3"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/alex hook returns to school_1641942785-Default.jpg?1641942844","dimensions":"980×551","priority":"4"}],"filename":"alex hook returns to school_1641942785.mp4","preview_image":"https://videopostercdn.weigelbroadcasting.com/cbs58news/alex hook returns to school_1641942785-CBS58 980×551.jpg?1641942849","image_preview":"https://videopostercdn.weigelbroadcasting.com/cbs58news/alex hook returns to school_1641942785-CBS58 980×551.jpg?1641942849","hls_rendition":"https://wsocdn.weigelbroadcasting.com/cbs58news/alex hook returns to school_1641942785/hls_index.m3u8","master_rendition":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/alex hook returns to school_1641942785.mp4","noprefixtitle":"Alex Hook returns to school part-time after lawnmower accident","duration":"2:00","prefix":"NOW: ","story_title":"Alex Hook returns to school part-time after lawnmower accident"},{"id":"175386","video_id":"175386","url":null,"type":"hls","directory_id":"59","has_captions":"yes","title":"Milwaukee public officials call upon Governor Evers to fire DA…","description":null,"length":"126","status":"2","active":"yes","start_date":"2022-01-11 18:05:40","end_date":"2036-01-01 00:00:00","display_settings":null,"channel_url":"cbs58news","imageurl":"https://videopostercdn.weigelbroadcasting.com/cbs58news/milwaukee county public officials call for dismissal of da chisholm_1641945906-CBS58 980×551.jpg?1641945959","caption_url":"https://wsocdn.weigelbroadcasting.com/cbs58news/milwaukee county public officials call for dismissal of da chisholm_1641945906/captions-en.vtt","renditions":{"master":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/milwaukee county public officials call for dismissal of da chisholm_1641945906.mp4","hls":"https://wsocdn.weigelbroadcasting.com/cbs58news/milwaukee county public officials call for dismissal of da chisholm_1641945906/hls_index.m3u8"},"video_options":{"nowplaying_active":false,"nowplaying_title":false,"nowplaying_titleright":false,"nowplaying_slider":false,"nowplaying_expanded":false,"nowplaying_floating":false},"images":[{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/milwaukee county public officials call for dismissal of da chisholm_1641945906-CBS58 320×180.jpg?1641945953","dimensions":"1280×720","priority":"1"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/milwaukee county public officials call for dismissal of da chisholm_1641945906-CBS58 480×270.jpg?1641945957","dimensions":"320×180","priority":"2"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/milwaukee county public officials call for dismissal of da chisholm_1641945906-CBS58 980×551.jpg?1641945959","dimensions":"480×270","priority":"3"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/milwaukee county public officials call for dismissal of da chisholm_1641945906-Default.jpg?1641945955","dimensions":"980×551","priority":"4"}],"filename":"milwaukee county public officials call for dismissal of da chisholm_1641945906.mp4","preview_image":"https://videopostercdn.weigelbroadcasting.com/cbs58news/milwaukee county public officials call for dismissal of da chisholm_1641945906-CBS58 980×551.jpg?1641945959","image_preview":"https://videopostercdn.weigelbroadcasting.com/cbs58news/milwaukee county public officials call for dismissal of da chisholm_1641945906-CBS58 980×551.jpg?1641945959","hls_rendition":"https://wsocdn.weigelbroadcasting.com/cbs58news/milwaukee county public officials call for dismissal of da chisholm_1641945906/hls_index.m3u8","master_rendition":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/milwaukee county public officials call for dismissal of da chisholm_1641945906.mp4","noprefixtitle":"Milwaukee public officials call upon Governor Evers to fire DA…","duration":"2:06","prefix":"NOW: ","story_title":"Milwaukee public officials call upon Governor Evers to fire DA John Chisholm "},{"id":"175343","video_id":"175343","url":null,"type":"hls","directory_id":"59","has_captions":"yes","title":"UW Health doctor talks about the latest developments in the pandemic","description":null,"length":"425","status":"2","active":"yes","start_date":"2022-01-11 10:01:25","end_date":"2036-01-01 00:00:00","display_settings":null,"channel_url":"cbs58news","imageurl":"https://videopostercdn.weigelbroadcasting.com/cbs58news/dr pothof intervew_1641916789-CBS58 980×551.jpg?1641916900","caption_url":"https://wsocdn.weigelbroadcasting.com/cbs58news/dr pothof intervew_1641916789/captions-en.vtt","renditions":{"master":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/dr pothof intervew_1641916789.mp4","hls":"https://wsocdn.weigelbroadcasting.com/cbs58news/dr pothof intervew_1641916789/hls_index.m3u8"},"video_options":{"nowplaying_active":false,"nowplaying_title":false,"nowplaying_titleright":false,"nowplaying_slider":false,"nowplaying_expanded":false,"nowplaying_floating":false},"images":[{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/dr pothof intervew_1641916789-CBS58 320×180.jpg?1641916906","dimensions":"1280×720","priority":"1"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/dr pothof intervew_1641916789-CBS58 480×270.jpg?1641916909","dimensions":"320×180","priority":"2"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/dr pothof intervew_1641916789-CBS58 980×551.jpg?1641916900","dimensions":"480×270","priority":"3"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/dr pothof intervew_1641916789-Default.jpg?1641916904","dimensions":"980×551","priority":"4"}],"filename":"dr pothof intervew_1641916789.mp4","preview_image":"https://videopostercdn.weigelbroadcasting.com/cbs58news/dr pothof intervew_1641916789-CBS58 980×551.jpg?1641916900","image_preview":"https://videopostercdn.weigelbroadcasting.com/cbs58news/dr pothof intervew_1641916789-CBS58 980×551.jpg?1641916900","hls_rendition":"https://wsocdn.weigelbroadcasting.com/cbs58news/dr pothof intervew_1641916789/hls_index.m3u8","master_rendition":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/dr pothof intervew_1641916789.mp4","noprefixtitle":"UW Health doctor talks about the latest developments in the pandemic","duration":"7:05","prefix":"NOW: ","story_title":"UW Health doctor talks about the latest developments in the pandemic"},{"id":"175340","video_id":"175340","url":null,"type":"hls","directory_id":"59","has_captions":"yes","title":"37th annual Waukesha JanBoree returns this weekend","description":null,"length":"219","status":"2","active":"yes","start_date":"2022-01-11 09:54:25","end_date":"2036-01-01 00:00:00","display_settings":null,"channel_url":"cbs58news","imageurl":"https://videopostercdn.weigelbroadcasting.com/cbs58news/waukesha janboree interview_1641916399-CBS58 980×551.jpg?1641916497","caption_url":"https://wsocdn.weigelbroadcasting.com/cbs58news/waukesha janboree interview_1641916399/captions-en.vtt","renditions":{"master":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/waukesha janboree interview_1641916399.mp4","hls":"https://wsocdn.weigelbroadcasting.com/cbs58news/waukesha janboree interview_1641916399/hls_index.m3u8"},"video_options":{"nowplaying_active":false,"nowplaying_title":false,"nowplaying_titleright":false,"nowplaying_slider":false,"nowplaying_expanded":false,"nowplaying_floating":false},"images":[{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/waukesha janboree interview_1641916399-CBS58 320×180.jpg?1641916495","dimensions":"1280×720","priority":"1"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/waukesha janboree interview_1641916399-CBS58 480×270.jpg?1641916502","dimensions":"320×180","priority":"2"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/waukesha janboree interview_1641916399-CBS58 980×551.jpg?1641916497","dimensions":"480×270","priority":"3"},{"url":"https://videopostercdn.weigelbroadcasting.com/cbs58news/waukesha janboree interview_1641916399-Default.jpg?1641916500","dimensions":"980×551","priority":"4"}],"filename":"waukesha janboree interview_1641916399.mp4","preview_image":"https://videopostercdn.weigelbroadcasting.com/cbs58news/waukesha janboree interview_1641916399-CBS58 980×551.jpg?1641916497","image_preview":"https://videopostercdn.weigelbroadcasting.com/cbs58news/waukesha janboree interview_1641916399-CBS58 980×551.jpg?1641916497","hls_rendition":"https://wsocdn.weigelbroadcasting.com/cbs58news/waukesha janboree interview_1641916399/hls_index.m3u8","master_rendition":"https://stream2-cdn.weigelbroadcasting.com/cbs58news/waukesha janboree interview_1641916399.mp4","noprefixtitle":"37th annual Waukesha JanBoree returns this weekend","duration":"3:39","prefix":"NOW: ","story_title":"37th annual Waukesha JanBoree returns this weekend"}]');

WVM.getPlaylistData = function(playerId, mediaId, fieldName){
var data = WVM['playlist_data' + playerId];
var retVal = null;
$.each(data, function(i,item){
//console.log("item ");
//console.log(item);
//console.log("mediaId " + mediaId + " VS " + item['video_id']);
if(item['video_id'] == mediaId){
//console.log("match");
retVal = item[fieldName];
}
});
if(retVal == null){
//alert("null field " + playerId + " fieldName " + fieldName);
}
return retVal;
};

WVM.addMuteButton = function(videoId, player, hideClose){
if(WVM.player_state173849.PLAYER_READY && (WVM.player_state173849.PLAYER_META || WVM.IS_STREAMING)){

var $videoEl = $('#html5-video-' + videoId); //Video element
$videoEl.append('

‘ +
‘ +
‘ +
  UNMUTE

‘);

if(!WVM.IS_STREAMING){
$videoEl.append(‘‘ +
‘ +
‘);
}
setTimeout(function(){
$(‘.mute-overlay’).on(‘touchstart click’, function(e){
if(e.handled === false) return;
e.stopPropagation();
e.preventDefault();
e.handled = true;

player.muted(false);
//console.log(« volumee  » + WVM.activePlayer.volume());
$(this).hide();
$(this).css(‘display’, ‘none’);
var currentTime = player.currentTime();
if(currentTime 0){
if(deviceName == ‘desktop’){
WVM.VIDEO_TOP = $(‘#media-container-‘ + videoId).offset().top;
}else{
WVM.VIDEO_TOP = $(‘#media-container-‘ + videoId).offset().top – $(‘.next-dropdown-accordion’).height();
}
if(deviceName == ‘desktop’){
WVM.VIDEO_HEIGHT = $(‘#html5-video-‘ + videoId).outerHeight();
}else{
WVM.VIDEO_HEIGHT = $(‘#html5-video-‘ + videoId).outerHeight();
}
WVM.CONTAINER_HEIGHT = $(‘#media-container-‘ + videoId).height();
//console.log(« container height:  » + WVM.CONTAINER_HEIGHT);
$(window).on( « resize », function() {
if(deviceName == ‘desktop’){
WVM.VIDEO_TOP = $(‘#media-container-‘ + videoId).offset().top;
}else{
WVM.VIDEO_TOP = $(‘#media-container-‘ + videoId).offset().top – $(‘.next-dropdown-accordion’).height();
}
if(deviceName == ‘desktop’){
WVM.VIDEO_HEIGHT = $(‘#html5-video-‘ + videoId).outerHeight();
}else{
WVM.VIDEO_HEIGHT = $(‘#html5-video-‘ + videoId).outerHeight();
}
WVM.CONTAINER_HEIGHT = $(‘#media-container-‘ + videoId).height();
console.log(« container height:  » + WVM.CONTAINER_HEIGHT);
});

//console.log(« VIDEOTOP:  » + WVM.VIDEO_TOP);
//console.log(« VIDEOHEIGHT:  » + WVM.VIDEO_HEIGHT);

$(window).on( « scroll », function() {
if(!WVM.IS_FLOATING){
if(deviceName == ‘desktop’){
WVM.CONTAINER_HEIGHT = $(‘#media-container-‘ + videoId).height();
}else{
WVM.CONTAINER_HEIGHT = $(‘#media-container-‘ + videoId +  » .hlsvideo-wrapper »).height() +
$(‘#media-container-‘ + videoId +  » .now-playing-container »).height();
}
}

//var top = $(‘#media-container-‘ + videoId).offset().top;
var offset = WVM.VIDEO_TOP + (WVM.VIDEO_HEIGHT / 2);
var offsetBack = WVM.VIDEO_TOP;
var changed = false;
//console.log(« VIDEOTOP:  » + WVM.VIDEO_TOP);
//console.log(« VIDEOHEIGHT:  » + WVM.VIDEO_HEIGHT);
//console.log(« scrolltop  » + $(window).scrollTop());
//only float if playing
var isPlaying = WVM[‘player_state’ + videoId][‘IS_PLAYING’] || WVM[‘player_state’ + videoId][‘AD_IS_PLAYING’];
if(isPlaying){
$(‘.vjs-loading-spinner’).hide();
}

var offsetFloatAd = 99999999;
if(deviceName == ‘desktop’ && $(‘#float_anchor’).length > 0){
offsetFloatAd = $(‘#float_anchor’).offset().top – WVM.VIDEO_HEIGHT;
//console.log(« float anchor offset top  » + offsetFloatAd);

}

if($(window).scrollTop() > offset && isPlaying && !WVM[‘player_state’ + videoId][‘CANCEL_FLOATING’]){
$(‘#media-placeholder-‘ + videoId).height(WVM.CONTAINER_HEIGHT);
$(‘#media-placeholder-‘ + videoId).css(‘display’, ‘block’);
if(!WVM.IS_FLOATING){
changed = true;
}
WVM.IS_FLOATING = true;
$(‘#media-container-‘ + videoId).addClass(‘floating-video’);

var sWidth = window.innerWidth || document.documentElement.clientWidth;
var sHeight = window.innerHeight || document.documentElement.clientHeight;
if(sWidth > 900 && WADS.IS_STICKING){
$(‘#media-container-‘ + videoId).addClass(‘desktop-ad-is-sticky’);
}
else if(WADS.IS_STICKING){
if(!TOP_AD_VIEWED){
$(‘#media-container-‘ + videoId).addClass(‘mobile-ad-is-sticky’);
}else{
$(‘#media-container-‘ + videoId).addClass(‘mobile-ad-is-sticky-noad’);
}
}
else if(!WADS.IS_STICKING){
if(!TOP_AD_VIEWED){
$(‘#media-container-‘ + videoId).removeClass(‘desktop-ad-is-sticky’);
}else{
$(‘#media-container-‘ + videoId).addClass(‘desktop-ad-is-sticky-noad’);
}
}

//set right
var sWidth = window.innerWidth || document.documentElement.clientWidth;
var sHeight = window.innerHeight || document.documentElement.clientHeight;
if(deviceName == ‘desktop’ || sWidth > 900){
var leftPos2 = $(‘aside’).get(0).getBoundingClientRect().left;
var leftPos = $(‘aside’).offset().left ;
$(‘#media-container-‘ + videoId).css(‘left’, leftPos + « px »);
var newWidth = Math.floor(sWidth / 3.5);
$(‘#media-container-‘ + videoId).css(‘width’, newWidth + « px »);

}
else{
$(‘#media-container-‘ + videoId).css(‘width’, « 100% !important »);
$(‘#media-container-‘ + videoId + ‘ .now-playing-container’).css(‘display’, ‘block’);
$(‘#media-container-‘ + videoId + ‘ .next-dropdown-accordion’).css(‘display’, ‘block’);
}

//floating-video
$(‘#media-container-‘ + videoId +  »  » + ‘.page-carousel-wrapper’).hide();
setTimeout(function(){
var hWrapper = $(‘.floating-video .hlsvideo-wrapper’).height();
var npWidth = $(‘.floating-video .now-playing-container’).height();
var ndWidth = $(‘.floating-video .next-dropdown-header’).height() + 20;
var scrollerHeight = sHeight – (hWrapper + npWidth + ndWidth);
scrollerHeight = 180;
//scrollerHeight = parseInt(scrollerHeight * 0.5);
if(WVM.device_name == ‘desktop’){
$(‘#media-container-‘ + videoId +  »  » +  » .mobile-list-videos »).height(scrollerHeight);
}
}, 100);
}else if($(window).scrollTop() 0){
var container = document.querySelector(‘#page-carousel-‘ + fullVideoId);
imagesLoaded( container, function() {
var screenWidth = window.innerWidth || document.documentElement.clientWidth;
if(screenWidth > 850){
WVM.IS_DESKTOP = true;
$(‘#page-carousel-‘ + fullVideoId + ‘ .page-carousel-lg-slides’).css(‘display’, ‘block’);

WVM[‘player_settings’ + fullVideoId].slider = $(‘#page-carousel-‘ + fullVideoId).bxSlider({
maxSlides: 4,
minSlides: 4,
slideWidth: 305,
infiniteLoop: false,
hideControlOnEnd: true,
useCSS: true,
pager: false,
slideMargin: 15,
moveSlides: 1,
nextText: ‘‘,
prevText: ‘
});
}else{
WVM.IS_DESKTOP = false;
$(‘.page-carousel-wrapper’).css(‘display’, ‘block’);
}
});
}

};

WVM.setupToggleButton = function(fullVideoId, player){
if($(‘.nextplay-switch-‘ + fullVideoId).length > 0){
new DG.OnOffSwitchAuto({
cls:’.nextplay-switch-‘ + fullVideoId,
height: 24,
trackColorOn:’#F9F9F9′,
trackColorOff:’#222’,
textColorOn: ‘#222’,
textColorOff: ‘#222′,
textOn:’On’,
textOff:’Off’,
listener:function(name, checked){
var theVal = 1;
if(!checked){
theVal = 0;
}

$.ajax({
url: ‘/ajax/update_autoplay_video/’,
data: {
autoplay_on: theVal
},
type: ‘POST’,
dataType: ‘json’,
success: function(data)
{
WVM[‘player_settings’ + fullVideoId][‘autoplay’] = checked;
},
error : function(){
console.log(« Error loading video »);
}
});
}
});
}
};

WVM.setupAccordionButton = function(fullVideoId){
var deviceName = ‘desktop’;
$(‘#next-dropdown-accordion-button-‘ + fullVideoId).on(‘click’, function(){
if($(this).find(‘i’).hasClass(‘fa-chevron-up’)){
//hide
$(this).find(‘i’).removeClass(‘fa-chevron-up’);
$(this).find(‘i’).addClass(‘fa-chevron-down’);
if(deviceName == « desktop » && !$(‘#media-container-‘ + fullVideoId).hasClass(‘floating-video’)){
$(‘#media-container-‘ + fullVideoId +  »  » + ‘.page-carousel-wrapper’).slideUp();
$(‘#media-container-‘ + fullVideoId +  »  » + ‘.mobile-list-wrapper’).hide();

}else{
$(‘#media-container-‘ + fullVideoId +  »  » + ‘.mobile-list-wrapper’).slideUp();
$(‘#media-container-‘ + fullVideoId +  »  » + ‘.page-carousel-wrapper’).hide();
}
var currVideoId = WVM[‘player_state’ + fullVideoId][‘VIDEO_ID’];
var nextVideoId = WVM.getNextPlaylistIndex(currVideoId);
//playerId, mediaId, fieldName
var myTitle = WVM.getPlaylistData(fullVideoId, nextVideoId, ‘noprefixtitle’);
//alert(« Getting title  » + myTitle);
$(‘#video-slider-nexttitle’ + fullVideoId).css(‘display’, ‘inline’);
$(‘#video-slider-nexttitle’ + fullVideoId).html(myTitle);
}else{
//expand
$(this).find(‘i’).addClass(‘fa-chevron-up’);
$(this).find(‘i’).removeClass(‘fa-chevron-down’);
$(‘#media-container-‘ + fullVideoId +  »  » + ‘.mobile-list-wrapper’).css(‘display’, ‘block’);
if(deviceName == « desktop » && !$(‘#media-container-‘ + fullVideoId).hasClass(‘floating-video’)){
$(‘#media-container-‘ + fullVideoId +  »  » + ‘.page-carousel-wrapper’).css(‘display’, ‘block’);
$(‘#media-container-‘ + fullVideoId +  »  » + ‘.page-carousel-wrapper’).slideDown();
$(‘#media-container-‘ + fullVideoId +  »  » + ‘.mobile-list-wrapper’).hide();
if(!WVM.player_state173849[‘CAROUSEL_INIT’]){
WVM.setupCarousel(fullVideoId);
}

}else{
$(‘#media-container-‘ + fullVideoId +  »  » + ‘.mobile-list-wrapper’).slideDown();
$(‘#media-container-‘ + fullVideoId +  »  » + ‘.page-carousel-wrapper’).hide();

if(!$(‘#media-container-‘ + fullVideoId).hasClass(‘floating-video’)){
if(!WVM.player_state173849[‘CAROUSEL_INIT’]){
WVM.setupCarousel(fullVideoId);
}
}
}

$(‘#video-slider-nexttitle’ + fullVideoId).css(‘display’, ‘none’);
}
});
var currVideoId = WVM[‘player_state’ + fullVideoId][‘VIDEO_ID’];
//console.log(« current Video  » + currVideoId);
var nextVideoId = WVM.getNextPlaylistIndex(currVideoId);
var myTitle = WVM.getPlaylistData(fullVideoId, nextVideoId, ‘noprefixtitle’);
//console.log(« setting title  » + myTitle);
$(‘#video-slider-nexttitle’ + fullVideoId).css(‘display’, ‘inline’);
$(‘#video-slider-nexttitle’ + fullVideoId).html(myTitle);

};
WVM.sendbeacon = function(action, nonInteraction, value, eventLabel) {
var eventCategory = ‘Video’;
if (window.ga) {
//console.log(« sending action:  » + action +  » val:  » + value +  » label  » + eventLabel);
ga(‘send’, ‘event’, {
‘eventCategory’: eventCategory,
‘eventAction’: action,
‘eventLabel’: eventLabel,
‘eventValue’: value,
‘nonInteraction’: nonInteraction
});
}
};

WVM.getNextPlaylistIndex = function(mediaId, returnArrayIndex){
var currId = null;
if(mediaId == null){
return null;
}
for(var x =0; x < WVM.playlist_ids.length; x++){
var myMediaId = WVM.playlist_ids[x];
if(myMediaId == mediaId){
currId = myMediaId;
break;
}
}
var nextId = x + 1;

if(nextId < WVM.playlist_ids.length && currId !== null){
if(!returnArrayIndex){
return WVM.playlist_ids[nextId];
}else{
return nextId;
}
}
return null;
};

WVM.getPlaylistArrayId = function(mediaId){
for(var x =0; x 20){
if(fullDuration > 1 && ((fullDuration – fullCurrent) > 1) && !$(‘.vjs-loading-spinner’).hasClass(‘badspinner’)){
console.log(« hiding spinner »);
$(‘.vjs-loading-spinner’).addClass(‘badspinner’);
}
}
var duration_time = Math.floor(this.duration());

//this is a hack because the end video event is not firing…
var current_time = Math.floor(this.currentTime());
if ( current_time > 0 && ( fullCurrent >= (fullDuration – 10) )){
var currId = playerState.VIDEO_ID;
var newMediaId = WVM.getNextPlaylistIndex(currId);
//if(playerSettings.autoplay_next && newMediaId){
if(newMediaId){
if(‘desktop’ == « iphone » && playerState.AD_ERROR){
console.log(« skipped timeupdate end »);
}else{
WVM.load_video(newMediaId, true, playerState.ORIGINAL_ID);
}
}
}

if(!playerState.START_SENT){
WVM.sendbeacon(‘start’, true, playerState.VIDEO_ID, playerState.VIDEO_TITLE);
playerState.START_SENT = true;
}

var currentTime, duration, percent, percentPlayed, _i;
currentTime = Math.round(this.currentTime());
duration = Math.round(this.duration());
percentPlayed = Math.round(currentTime / duration * 100);
for (percent = _i = 0; _i = percent && __indexOf.call(playerState[‘PERCENTS_TRACKED’], percent) 0) {
playerState[‘PERCENTS_TRACKED’].push(percent);
}
}
}

});
//player.off(‘ended’);
player.on(‘ended’, function(){
console.log(« ended »);
playerState.IS_PLAYING = false;
WVM.sendbeacon(« complete », true, playerState.VIDEO_ID, playerState.VIDEO_TITLE);
var currId = playerState.VIDEO_ID;
var newMediaId = WVM.getNextPlaylistIndex(currId);
//if(playerSettings.autoplay_next && newMediaId){
if(newMediaId){
WVM.load_video(newMediaId, true, playerState.ORIGINAL_ID);
}else{
console.log(« Playlist complete (no more videos) »);
}

});

//player.off(‘adserror’);
player.on(‘adserror’, function(e){
//$(‘#ima-ad-container’).remove();
WVM.lastAdRequest = new Date().getTime() / 1000;
console.log(e);
console.log(« ads error »);

var errMessage = e[‘data’][‘AdError’][‘l’];

playerState.AD_IS_PLAYING = false;
playerState.IS_PLAYING = false;

// && errMessage == ‘The VAST response document is empty.’
if(!playerState.AD_ERROR){
var dTime = new Date().getTime();
WVM.firstPrerollTagUrl = WVM.getFirstPrerollUrl();
console.log(« calling backup ad tag url:  » + WVM.firstPrerollTagUrl);
WVM.activePlayer.ima.changeAdTag(WVM.firstPrerollTagUrl + « ? » + dTime);
WVM.activePlayer.ima.requestAds();

//WVM.activePlayer.src({
// src: masterSrc,
// type: ‘video/mp4’
//});
//WVM.firstPrerollTagUrl = «  »;
}
playerState.AD_ERROR = true;
});

//player.off(‘error’);
player.on(‘error’, function(event) {
if (player.error().code === 4) {
player.error(null); // clear out the old error
player.options().sources.shift(); // drop the highest precedence source
console.log(« now doing src »);
console.log(player.options().sources[0]);
player.src(player.options().sources[0]); // retry
return;
}
});

//player.off(‘volumechange’);
player.on(‘volumechange’, function(event) {
console.log(event);

var theHeight = $(‘#media-container-‘ + playerState.ORIGINAL_ID + ‘ .vjs-volume-level’).css(‘height’);
var cssVolume = 0;
if(theHeight){
cssVolume = parseInt(theHeight.replace(‘%’,  »));
}
var theVolume = player.volume();
if(theVolume > 0.0 || cssVolume > 0){
$(‘#media-container-‘ + playerState.ORIGINAL_ID + ‘ .mute-overlay’).css(‘display’, ‘none’);
}else{
$(‘#media-container-‘ + playerState.ORIGINAL_ID + ‘ .mute-overlay’).css(‘display’, ‘block’);
}
});
WVM.reinitRawEvents(playerState.ORIGINAL_ID);
setInterval(function(){
WVM.reinitRawEvents(playerState.ORIGINAL_ID);
}, 2000);
}
if(!WVM.rawCompleteEvent){
WVM.rawCompleteEvent = function(e){
var playerState = WVM[‘player_state173849’];
};
}
if(!WVM.rawTimeupdateEvent){
WVM.rawTimeupdateEvent = function(e){
var playerState = WVM[‘player_state173849’];
var rawVideoElem = document.getElementById(‘html5-video-‘ + playerState[‘ORIGINAL_ID’] + ‘_html5_api’);
var fullCurrent = rawVideoElem.currentTime * 1000;
var fullDuration = rawVideoElem.duration * 1000;
var current_time = Math.floor(rawVideoElem.currentTime);
console.log(« raw timeupdate:  » + fullCurrent +  » out of  » + fullDuration);

if ( current_time > 0 && ( fullCurrent >= (fullDuration – 50) )){
var currId = playerState.VIDEO_ID;
var newMediaId = WVM.getNextPlaylistIndex(currId);
if(newMediaId){
console.log(« loading new video from rawtimeupdate »);
WVM.load_video(newMediaId, true, playerState.ORIGINAL_ID);
}
}
if(!$(‘.vjs-loading-spinner’).hasClass(‘badspinner’)){
$(‘.vjs-loading-spinner’).addClass(‘badspinner’)
}
};
}

WVM.reinitRawEvents = function(playerId){
var playerState = WVM[‘player_state’ + playerId];
var rawVideoElem = document.getElementById(‘html5-video-‘ + WVM[‘player_state’ + playerId][‘ORIGINAL_ID’] + ‘_html5_api’);

//COMPLETE EENT
if( WVM[‘player_state’ + playerId].COMPLETE_EVENT){
rawVideoElem.removeEventListener(‘ended’, WVM.rawCompleteEvent, false);
}
rawVideoElem.addEventListener(‘ended’, WVM.rawCompleteEvent, false);

//TIME UPDATE EVENT
if( WVM[‘player_state’ + playerId].TIMEUPDATE_EVENT){
rawVideoElem.removeEventListener(‘ended’, WVM.rawTimeupdateEvent, false);
}
rawVideoElem.addEventListener(‘ended’, WVM.rawTimeupdateEvent, false);

WVM[‘player_state’ + playerId].COMPLETE_EVENT = true;
WVM[‘player_state’ + playerId].TIMEUPDATE_EVENT = true;
};


console.log(« desktop »);
WVM.detectIE = function() {
var ua = window.navigator.userAgent;

var msie = ua.indexOf(‘MSIE ‘);
if (msie > 0) {
// IE 10 or older => return version number
return parseInt(ua.substring(msie + 5, ua.indexOf(‘.’, msie)), 10);
}

var trident = ua.indexOf(‘Trident/’);
if (trident > 0) {
// IE 11 => return version number
var rv = ua.indexOf(‘rv:’);
return parseInt(ua.substring(rv + 3, ua.indexOf(‘.’, rv)), 10);
}

var edge = ua.indexOf(‘Edge/’);
if (edge > 0) {
// Edge (IE 12+) => return version number
return parseInt(ua.substring(edge + 5, ua.indexOf(‘.’, edge)), 10);
}

// other browser
return false;
};

function initPlayer173849(){
var firstPlayer = false;
var fullVideoId = 173849;

var muted = true;

muted = false;

var vjsOptions = {
autoplay: WVM.autoplayAllowed,
playsinline : true,
muted: muted,
debug: true,
replay: false,
controlBar: {
volumePanel: {
inline: false
}
},
};
var wrapperDiv = document.getElementById(‘html5-video-173849’);
var player = videojs(‘html5-video-173849’, vjsOptions);
console.log(« initing player 173849 »);
var initAdDisplayContainer = function() {
console.log(« init ads »);
WVM.lastAdRequest = new Date().getTime() / 1000;
player.ima.initializeAdDisplayContainer();
wrapperDiv.removeEventListener(‘click’, initAdDisplayContainer);
}
var handleVolumeChange = function(e){
$(‘#media-container-‘ + fullVideoId + ‘ .mute-overlay’).css(‘display’, ‘none’);
};

var handleComplete = function(e){
console.log(« ad completed »);
WVM.lastAdRequest = new Date().getTime() / 1000;
WVM.reinitRawEvents(fullVideoId);
};
var firstLoaded = false;
var handleLoaded = function(e){
if(!firstLoaded){
firstLoaded = true;
player.ima.getAdsManager().setVolume(0);
}
};
console.log(« first preroll url:  » + WVM.firstPrerollTagUrl);
var imaOptions = {
id: ‘html5-video-173849’,
adTagUrl: WVM.firstPrerollTagUrl,
vpaidMode: google.ima.ImaSdkSettings.VpaidMode.INSECURE,
adsManagerLoadedCallback: function(e){

player.ima.addEventListener(google.ima.AdEvent.Type.VOLUME_CHANGED,handleVolumeChange);
player.ima.addEventListener(google.ima.AdEvent.Type.COMPLETE,handleComplete);
player.ima.addEventListener(google.ima.AdEvent.Type.LOADED, handleLoaded);
}
};
player.ima(imaOptions);

if (!WVM.autoplayAllowed) {

wrapperDiv.addEventListener(‘click’, initAdDisplayContainer);

}else{
WVM.lastAdRequest = new Date().getTime() / 1000;
}
WVM.activePlayer = player;
WVM.finishPlayer(player, WVM.player_state173849, WVM.player_settings173849);

//SETUP THE OPTIONS

WVM.setupAccordionButton(fullVideoId, player);

var playPromise = null;

//hack for bxslider click events not registering in chrome
var clickType = ‘click’;
if(window.navigator.userAgent.toLowerCase().indexOf(« chrome ») > 0) {
clickType = ‘mousedown’;
}
$(‘#media-container-‘ + fullVideoId + ‘ a.videolink’).on(clickType, function()
{
//alert(« loading video with player id  » + fullVideoId);
var mid = this.id.split(‘_’)[1];
var newIndex = WVM.getPlaylistArrayId(mid);
WVM.load_video(mid, true, fullVideoId, newIndex);
});
}

if(!WVM.load_video){
WVM.load_video = function(mediaID, changeAd, playerId)
{
var currDate = new Date().getTime() / 1000;
//console.log(« currDate  » + currDate +  » vs  » + (WVM.lastLoadedVideo + 1).toString());
if(currDate < (WVM.lastLoadedVideo + 1)){
//don't load video if video was loaded a sec ago
return;
}
var playerSettings = WVM['player_settings' + playerId];
var playerState = WVM['player_state' + playerId];
var playPromise = null;

WVM.sendbeacon('changevideo', true, playerState.ORIGINAL_ID, playerState.VIDEO_TITLE);
WVM.lastLoadedVideo = currDate;

//alert("loading video " + mediaID);
var nextVideoId = WVM.getNextPlaylistIndex(mediaID);
if(nextVideoId == null){
$('#media-container-' + playerId + ' .video-slider-nextlabel').hide();
$('#media-container-' + playerId + ' .video-slider-nexttitle').hide();
}else{
$('#media-container-' + playerId + ' .video-slider-nextlabel').show();
$('#media-container-' + playerId + ' .video-slider-nexttitle').show();
}

$('#media-container-' + playerId + ' #video_title_' + playerId).addClass('blurme');
WVM['player_state' + playerId]['VIDEO_ID'] = mediaID;

$('#media-container-' + playerId + ' #video_title_' + playerId).removeClass('blurme');

var mTitle = WVM.getPlaylistData(playerId, mediaID, "prefix") + WVM.getPlaylistData(playerId, mediaID, "story_title");
var mid = WVM.getPlaylistData(playerId, mediaID, "video_id");
var hlsSrc = WVM.getPlaylistData(playerId, mediaID, "hls_rendition");
var masterSrc = WVM.getPlaylistData(playerId, mediaID, 'master_rendition');
var hasCaptions = WVM.getPlaylistData(playerId, mediaID, 'has_captions');
var captionUrl = WVM.getPlaylistData(playerId, mediaID, 'caption_url');
var vidUrl = WVM.getPlaylistData(playerId, mediaID, 'url');
var vidTitle = WVM.getPlaylistData(playerId, mediaID, 'noprefixtitle');

WVM.activePlayer.pause();

var sixtySecondsAgo = (new Date().getTime() / 1000) – 60;
//console.log(sixtySecondsAgo + " VS ");
//console.log(WVM.lastAdRequest);
playerState.START_SENT = false;
playerState.PERCENTS_TRACKED = [];
var has_prerolls = true;
try {
var playPromise = null;
//WVM.activePlayer.reset();
if(changeAd && WVM.lastAdRequest 0.0 || cssVolume > 0){
$(‘#media-container-‘ + playerState.ORIGINAL_ID + ‘ .mute-overlay’).css(‘display’, ‘none’);
}else{
$(‘#media-container-‘ + playerState.ORIGINAL_ID + ‘ .mute-overlay’).css(‘display’, ‘block’);
}
//cant believe I have to do this…. re-init all events
//WVM.finishPlayer(WVM.activePlayer, playerState, playerSettings);

}
}

WVM.autoplayAllowed = false;
WVM.autoplayRequiresMute = false;
var didCheck;
WVM.printPromise = function(playPromise, theType){
if (playPromise !== undefined) {
playPromise.then(_ => {
console.log(« PLAY-PROMISE: success for  » + theType);
})
.catch(error => {
console.log(« PLAY-PROMISE: failure for  » + theType);
});
}
};
function checkUnmutedAutoplaySupport(callback) {
canAutoplay.video({
timeout: 500, muted: false
})
.then(({
result, error
}) => {
if(result === false) {
// Unmuted autoplay is not allowed.
checkMutedAutoplaySupport(callback);
} else {
// Unmuted autoplay is allowed.
WVM.autoplayAllowed = true;
WVM.autoplayRequiresMute = false;
callback();
}
})
}

function checkMutedAutoplaySupport(callback) {
canAutoplay
.video({
timeout: 500,
muted: true
})
.then(({
result, error
}) => {
if(result === false) {
// Muted autoplay is not allowed.

WVM.autoplayAllowed = false;
WVM.autoplayRequiresMute = false;
} else {
// Muted autoplay is allowed.

WVM.autoplayAllowed = true;
WVM.autoplayRequiresMute = true;
}
callback();
});
}
if(!didCheck){
checkUnmutedAutoplaySupport(function(){
initPlayer173849();
});
didCheck = true;
}else{
initPlayer173849();
}
<!– Hide Mobile side –>
To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video

source

Vous aimerez aussi...