‘); 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 < 3){ player.CurrentTime(0); } var adsManager = player.Ima.GetAdsManager(); adsManager.SetVolume(player.Volume()); }); $(‘.Video-close-floating’).On(‘click’, function(){ WVM[‘player_state’ + videoId][‘CANCEL_FLOATING’] = true; WVM.IS_FLOATING = false; $(‘#media-container-‘ + videoId).Css(‘width’, “100%”); $(‘#media-container-‘ + videoId).RemoveClass(‘floating-video’); $(‘#media-placeholder-‘ + videoId).Css(‘display’, ‘none’); player.Pause(); player.Ima.GetAdsManager().Pause(); }); if(hideClose){ setTimeout(function(){ $(‘.Video-close-floating’).Css(‘display’, ‘none’); $(‘.Video-close-floating’).Remove(); }, 500); } }, 500); } else{ //wait 500 sec call again setTimeout(function(){ WVM.AddMuteButton(videoId, player, hideClose); }, 500); } }; WVM.AddFloatingAbility = function(videoId, player){ var deviceName = ‘desktop’; if($(‘#media-container-‘ + videoId).Length > 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(!WADS.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(!WADS.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() < offsetBack){ if(WVM.IS_FLOATING){ changed = true; } WVM.IS_FLOATING = false; $(‘#media-container-‘ + videoId).Css(‘width’, “100%”); $(‘#media-container-‘ + videoId).RemoveClass(‘floating-video’); $(‘#media-placeholder-‘ + videoId).Css(‘display’, ‘none’); $(‘#media-container-‘ + videoId + ‘ .Now-playing-container’).Css(‘display’, ‘block’); } if($(‘#next-dropdown-accordion-button-‘ + videoId).Find(‘i’).HasClass(‘fa-chevron-up’)){ //console.Log(“show it”); if(deviceName == “desktop” && !$(‘#Media-container-‘ + videoId).HasClass(‘floating-video’)){ $(‘#media-container-‘ + videoId + ” ” + ‘.Page-carousel-wrapper’).Show(); $(‘#media-container-‘ + videoId + ” ” + ‘.Mobile-list-wrapper’).Hide(); //console.Log(“showing desktop”); if(!WVM.Player_state218582[‘CAROUSEL_INIT’]){ WVM.SetupCarousel(videoId); } }else{ if(changed){ //default closed for mobile/floating player $(‘#next-dropdown-accordion-button-‘ + videoId).Find(‘i’).RemoveClass(‘fa-chevron-up’); $(‘#next-dropdown-accordion-button-‘ + videoId).Find(‘i’).AddClass(‘fa-chevron-down’); $(‘#media-container-‘ + videoId + ” ” + ‘.Page-carousel-wrapper’).Hide(); $(‘#media-container-‘ + videoId + ” ” + ‘.Mobile-list-wrapper’).Hide(); var currVideoId = WVM[‘player_state’ + videoId][‘VIDEO_ID’]; var nextVideoId = WVM.GetNextPlaylistIndex(currVideoId); var myTitle = WVM.GetPlaylistData(videoId, currVideoId, ‘noprefixtitle’); $(‘#video-slider-nexttitle’ + videoId).Css(‘display’, ‘inline’); $(‘#video-slider-nexttitle’ + videoId).Html(myTitle); }else{ $(‘#media-container-‘ + videoId + ” ” + ‘.Page-carousel-wrapper’).Hide(); $(‘#media-container-‘ + videoId + ” ” + ‘.Mobile-list-wrapper’).Show(); } } }else{ $(‘#media-container-‘ + videoId + ” ” + ‘.Page-carousel-wrapper’).Hide(); $(‘#media-container-‘ + videoId + ” ” + ‘.Mobile-list-wrapper’).Hide(); } } ); $(‘#media-container-‘ + videoId + ‘ .Video-close’).On(‘click’,function(){ //set back to paused and stop floating WVM[‘player_state’ + videoId][‘CANCEL_FLOATING’] = true; WVM.IS_FLOATING = false; $(‘#media-container-‘ + videoId).Css(‘width’, “100%”); $(‘#media-container-‘ + videoId).RemoveClass(‘floating-video’); $(‘#media-placeholder-‘ + videoId).Css(‘display’, ‘none’); player.Pause(); player.Ima.GetAdsManager().Pause(); //$(“.Now-playing-container”).FadeOut(100); //$(“.Mobile-flexbox-video-splitter”).AddClass(“full-width”); }); } }; WVM.SetupCarousel = function(fullVideoId, player){ // initialize Masonry after all images have loaded //alert(“setting up carousel”); $(‘#page-carousel-‘ + fullVideoId).Css(‘display’, ‘block’); WVM[‘player_state’ + fullVideoId][‘CAROUSEL_INIT’] = true; if($(‘#page-carousel-‘ + fullVideoId).Length > 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_state218582[‘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_state218582[‘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 < WVM.Playlist_ids.Length; x++){ var myMediaId = WVM.Playlist_ids[x]; if(myMediaId == mediaId){ return x; } } return null; }; //unimportant stuff like tracking… Don’t put anything platform specific here WVM.FinishPlayer = function(player, playerState, playerSettings){ var percentsPlayedInterval = 25; //player.Off(‘loadedmetadata’); player.On(‘loadedmetadata’, function(){ if(playerState.PLAYER_META){ return; } playerState.PLAYER_META = true; WVM.Sendbeacon(“loadedmetadata”, true, playerState.VIDEO_ID, playerState.VIDEO_TITLE); }); //player.Off(‘ready’); player.On(‘ready’, function(){ playerState.PLAYER_READY = true; }); //player.Off([‘waiting’, ‘pause’]); player.On([‘waiting’, ‘pause’], function() { playerState.IS_PLAYING = false; $(‘.Vjs-loading-spinner’).RemoveClass(‘badspinner’); }); //player.Off(‘playing’); player.On(‘playing’, function() { console.Log(‘playing’); }); //player.Off(‘adstart’); player.On(‘adstart’, function(){ console.Log(“starting ads”); WVM.LastAdRequest = new Date().GetTime() / 1000; playerState.AD_IS_PLAYING = true; playerState.PLAYED_AD = true; WVM.Sendbeacon(“adstart”, true, playerState.VIDEO_ID, playerState.VIDEO_TITLE); }); //player.Off(‘adend’); player.On(‘adend’, function(){ var playPromise = null; console.Log(“ad end”); playerState.AD_IS_PLAYING = false; setTimeout(function(){ if(!PlayerState.IS_PLAYING || player.Paused()){ console.Log(“restarting after ad”); playPromise = player.Play(); WVM.PrintPromise(playPromise, “adend”); } }, 500); WVM.LastAdRequest = new Date().GetTime() / 1000; WVM.Sendbeacon(“adend”, true, playerState.VIDEO_ID, playerState.VIDEO_TITLE); }); //player.Off(‘timeupdate’); player.On(‘timeupdate’, function(){ playerState.IS_PLAYING = true; var fullDuration = this.Duration() * 1000; var fullCurrent = this.CurrentTime() * 1000; var rand = parseInt(Math.Random() * 100); //console.Log(“timeupdate ” + fullCurrent + ” out of ” + fullDuration); if(rand > 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 <= 99; percent = _i += percentsPlayedInterval) { if (percentPlayed >= percent && __indexOf.Call(playerState[‘PERCENTS_TRACKED’], percent) < 0) { if (percentPlayed !== 0) { WVM.Sendbeacon(‘percent-‘ + percent, true, playerState.VIDEO_ID, playerState.VIDEO_TITLE); } if (percentPlayed > 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_state218582’]; }; } if(!WVM.RawTimeupdateEvent){ WVM.RawTimeupdateEvent = function(e){ var playerState = WVM[‘player_state218582’]; 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; };.
Lamberg confirmed to ABC57 that there were no comments provided. However, the South Bend Housing Authority no longer holds the authority to house individuals. There is a requirement for a new executive director at the South Bend Housing Authority.
Just like Lamberg did, tenants say the new director will be inheriting a lot of problems, I was able to talk with.
However, they also mentioned that they are still observing FBI employees in South Bend Housing Authority premises.
Tenant Dakota Crawford expressed, “Overall, they don’t perform a significant amount of upkeep.” “During my tenure in this residence, I have not experienced any maintenance work despite residing here for 6 years.”
Tenants of the South Bend Housing Authority are frustrated with what they describe as a lack of upkeep in their residences.
Crawford stated, “Without being questioned, assumptions were made about us and we are often harassed without any knowledge of our thoughts,” Crawford said. “We do not have a good quality of life,”
Tenant Lashonda Wright expressed, “individuals they demean, individuals they intimidate. Economically disadvantaged, as I previously mentioned, highly unskilled. It’s disheartening to admit. As if we are mere unknowns, they handle us, and we are present for assistance.”
Rodney Gadson, the president and CEO of the South Bend Tenant Association, expressed, “having personally experienced the situation, I can confidently share what I have observed myself,” including issues with rodents, cockroaches, and bedbugs.
The housing authority has confirmed that its director, Dr. Catherine Lamberg, has been dismissed.
“Where’s the plan for getting out?” Gadson asked.
Currently, a fresh director is required.
Crawford remarked, “Provide us with the standard of housing that they claim HUD will offer.” “I wish for them to show greater concern for the individuals residing in their accommodations.”
Wright expressed his desire to witness an individual who actively engages with the community, attentively listening to their concerns and understanding their priorities.
Gadson expressed, “We desire to collaborate with them. As we acquire a fresh director, and hopefully a deputy as well, the following is the plan moving ahead. Housing supporters such as myself would have preferred to cultivate a stronger rapport.”
In 2019, former director Tonya Robinson was terminated unanimously by the board of commissioners, shortly after Lamberg inherited a corrupt housing authority.
Robinson, who later led officials from the FBI, allegedly stole nearly $6 million from the housing authority. He is now facing federal charges, and four others were also implicated. After the raid on three properties, Robinson’s time was suspended.
However, some argue that the FBI may still be investigating.
He mentioned that it is possible for some type of staff investigation to determine whether it is the person himself or the process itself. There is definitely something ongoing. The reason for being here is because they have been taking pictures around this court laurel, claiming to be tenants themselves.
Gadson said that he wants to completely replace the board of commissioners of the housing authority. Additionally, he wants to see a new director alongside the deputy director.