Updated: Nov 27, 2022 / 08:14 PM EST. (Math.floor(mediaElement.currentTime) > endTime)) ){ clearInterval(cInterval_0_2); cInterval_0_2 = setInterval(function(){ if(parseFloat(endTime) <= parseFloat(mediaElement.currentTime)){ clearInterval(cInterval_0_2); mediaElement.pause(); } },1000); } else if (startTime > 0){ dontLogSeek_0_2 = 1; mediaElement.setCurrentTime(startTime); clearInterval(cInterval_0_2); cInterval_0_2 = setInterval(function(){ if(parseFloat(endTime) <= parseFloat(mediaElement.currentTime)){ clearInterval(cInterval_0_2); mediaElement.pause(); } },1000); } else{ dontLogSeek_0_2 = 1; mediaElement.setCurrentTime(0); clearInterval(cInterval_0_2); cInterval_0_2 = setInterval(function(){ if(parseFloat(endTime) <= parseFloat(mediaElement.currentTime)){ clearInterval(cInterval_0_2); mediaElement.pause(); } },1000); } },100); volInterval_0_2 = setInterval(volCheck_0_2, 1000); startQuartileTracking_0_2(); }, false); mediaElement.addEventListener('pause', function(event) { stopQuartileTracking_0_2(); clearInterval(cInterval_0_2); clearInterval(volInterval_0_2); if ((Math.floor(mediaElement.currentTime) != Math.floor(duration_0_2)) && (playing_0_2)){ logTPTracking_0_2('Pause'); cvLog_0_2('pause_video_click', Math.floor(mediaElement.currentTime), event); } playing_0_2 = 0; toggleChromelessPlay_0_2(); }, false); mediaElement.addEventListener('ended', function(event) { autoUnmuted_0_2 = false; hideControls_0_2(); stopQuartileTracking_0_2(); clearInterval(cInterval_0_2); clearInterval(volInterval_0_2); playing_0_2 = 0; play_done_0_2 = 1; dontLogSeek_0_2 = 1; cvLog_0_2('stop_video_auto', Math.floor(mediaElement.currentTime), event); if(showPlayButtonOverlay) $('#layer-0-2 .mejs-overlay-button').css('display','block'); $('.mejs-poster').show(); toggleChromelessPlay_0_2(); dontLogLoop_0_2 = 1; toggleReplay_0_2(showReplay, theme, 'add'); }, false); } }); } cvResize_0_2(1); setUpTrackingVars_0_2(); }; function hideChromelessMute_0_2() { $('#chromeLessMute-0-2').css('display','none'); } function showChromelessMute_0_2() { $('#chromeLessMute-0-2').css('display','block'); } function hideChromelessPlay_0_2() { $('#chromeLessPlayerControls-0-2').css('display','none'); } function showChromelessPlay_0_2() { $('#chromeLessPlayerControls-0-2').css('display','block'); } function toggleChromelessMute_0_2(isAutoUnmute){ var muteEle = $('#chromeLessMute-0-2'); var iconColor = 'light'; if(muteEle){ if(muteIconStyle_0_2.toUpperCase()=='CUSTOM'){ $(muteEle).removeClass(iconColor+'UnMute'); $(muteEle).removeClass(iconColor+'Mute'); if(player_element_0_2.muted){ if(customMuteIconSrc == '' || typeof customMuteIconSrc == 'undefined'){ $('#customMuteButtonImage-0-2').attr('src',eval(iconColor+'DefaultMuteButtonSrc')); }else{ $('#customMuteButtonImage-0-2').attr('src', customMuteIconSrc); $('#customMuteButtonImage-0-2').css('display', 'block'); } }else{ if(customUnMuteIconSrc == '' || typeof customUnMuteIconSrc == 'undefined'){ $('#customMuteButtonImage-0-2').attr('src',eval(iconColor+'DefaultUnMuteButtonSrc')); }else{ $('#customMuteButtonImage-0-2').attr('src', customUnMuteIconSrc); $('#customMuteButtonImage-0-2').css('display', 'block'); } } }else{ if(player_element_0_2.muted){ muteEle.removeClass(iconColor+'UnMute'); muteEle.addClass(iconColor+'Mute'); }else{ muteEle.removeClass(iconColor+'Mute'); muteEle.addClass(iconColor+'UnMute'); } } } } function toggleChromelessPlay_0_2(isAutoPlay){ var playEle = $('#chromeLessPlayerControls-0-2'); var iconColor = 'light'; if(playEle){ if(playerControlIconStyle_0_2.toUpperCase()=='CUSTOM' && isChromeless){ playEle.removeClass(iconColor+'Play'); playEle.removeClass(iconColor+'Pause'); if(playing_0_2 || isAutoPlay){ if(customPauseIconSrc.trim() == '' || typeof customPauseIconSrc == 'undefined'){ var imageSrc = iconColor+'DefaultPauseButtonSrc'; $('#customPlayButtonImage-0-2').attr('src',eval(imageSrc)); }else{ $('#customPlayButtonImage-0-2').attr('src', customPauseIconSrc); } $('#customPlayButtonImage-0-2').css('display', 'initial'); }else{ if(customPlayIconSrc == '' || typeof customPlayIconSrc == 'undefined'){ $('#customPlayButtonImage-0-2').attr('src',eval(iconColor+'DefaultPlayButtonSrc')); }else{ $('#customPlayButtonImage-0-2').attr('src', customPlayIconSrc); } $('#customPlayButtonImage-0-2').css('display', 'initial'); } }else{ if(playing_0_2 || isAutoPlay){ playEle.removeClass(iconColor+'Play'); playEle.addClass(iconColor+'Pause'); }else{ playEle.removeClass(iconColor+'Pause'); playEle.addClass(iconColor+'Play'); } } } } function volCheck_0_2(){ /*var cvEvent = new CustomEvent("CustomVideoClick", {});*/ var cvEvent = document.createEvent("CustomEvent"); var mediaElement = player_element_0_2; var pMuted = mediaElement.muted; var vol = mediaElement.volume; if(!dontLogVolChange_0_2){ if (muted_0_2 !== pMuted) { muted_0_2 = pMuted; if (Math.floor(mediaElement.currentTime) > 1) { if (pMuted) { cvLog_0_2('mute_video_click', Math.floor(mediaElement.currentTime), cvEvent); logTPTracking_0_2('Mute'); } else { cvLog_0_2('unmute_video_click', Math.floor(mediaElement.currentTime), cvEvent); logTPTracking_0_2('Unmute'); unmuteHappened_0_2=true; } } }else{ if (!pMuted) { if (vol_0_2 !== vol) { unmuteHappened_0_2=true; if (vol_0_2 > vol) { cvLog_0_2('voldown_video_click', Math.floor(mediaElement.currentTime), cvEvent); } else { cvLog_0_2('volup_video_click', Math.floor(mediaElement.currentTime), cvEvent); } } } } doRestartPlayback_0_2(); } else{ muted_0_2 = pMuted; } vol_0_2 = vol; dontLogVolChange_0_2 = 0; } function doRestartPlayback_0_2(){ if(!0 && 0 && !restartPlaybackDone_0_2 && unmuteHappened_0_2){ restartPlaybackDone_0_2 = true; dontLogSeek_0_2 = 1; player_element_0_2.setCurrentTime(0); } } function toggleReplay_0_2(showReplay, theme, toggle) { var cssclass = 'bigreplay'; if(showReplay){ /*if(theme == 'light') cssclass = 'bigreplay-white';*/ if(toggle == 'add'){ $('#layer-0-2 .mejs-overlay-button').addClass(cssclass); }else{ $('#layer-0-2 .mejs-overlay-button').removeClass(cssclass); } } } function hideControls_0_2() { $('.mejs-controls').css('display','none'); } function showControls_0_2() { $('.mejs-controls').css('display','block'); } function cvLog_0_2(stat_log, time, event) { setTimeout(function(){ if ((stat_log == "stop_video_auto") && (time==0)) { time = parseInt(duration_0_2); } if (stat_log == "stop_video_auto") { checkQuartileTracking_0_2(); } if (time < 0 ) {time=0;} if (time > duration_0_2) {time = duration_0_2;} var customStartTime = 0 > 0 ? Talk about the game. In their first season after leaving the Georgia High School Association (GHSA) for the Georgia Association of Private and Parochial . LHS Safety, 8:11 Class AAA. // Worcester County Assistant District Attorney, Michigan Medicaid Dental Coverage 2022, Hidden Acres Jack Russell Terriers, Articles B