true : false ); var chromeLessPlayerControls = document.createElement('div'); $('#customplayerwrapper-0-2').prepend(chromeLessPlayerControls); chromeLessPlayerControls.id = 'chromeLessPlayerControls-0-2'; var playEle = $(chromeLessPlayerControls); playEle.css('display','none'); var hidePlayButton = setInterval(function() { if(chromelessOffset_0_2 != undefined) { setTimeout(function() { playEle.css('display','block'); if(0){ playEle.css('display', 'none'); } clearInterval(hidePlayButton); },500); } },100); playEle.addClass('chromeLessPlayerControls'); playEle.css('zIndex','100'); var playImage = document.createElement('img'); playImage.setAttribute('id','customPlayButtonImage-0-2'); $(chromeLessPlayerControls).append(playImage); $(playImage).css('display', 'none'); if(playerControlIconStyle_0_2.toUpperCase()=='CUSTOM'){ playImage.setAttribute('src',customPlayIconSrc); $(playImage).css('display', 'block'); if(customPlayIconWidth && customPlayIconHeight){ $(playImage).css('width', customPlayIconWidth); $(playImage).css('height', customPlayIconHeight); } if(customPlayIconSrc.trim()== '' || typeof customPlayIconSrc == 'undefined'){ playImage.setAttribute('src',eval(playerIconColor+'DefaultPlayButtonSrc')); } }else{ playEle.addClass(playerIconColor+'Play'); } var vOrigin = '0'; var hOrigin = '0'; if(playerControlIconStyle_0_2.toUpperCase()=='CUSTOM' && (customPlayIconX && customPlayIconY)){ playEle.css('top', parseInt(customPlayIconY) -chromelessOffset_0_2 +"px"); playEle.css('left', customPlayIconX); }else{ if(playerControlsPosition == 'Top Left'){ var intervalPlay_0_2 = setInterval(function() { if(widthDiv_0_2 < heightDiv_0_2) { playEle.css('top', 0 + "px"); playEle.css('left', 0); } else{ playEle.css('left', 0 + "px"); playEle.css('top', 0); } if(chromelessOffset_0_2 != undefined) { clearInterval(intervalPlay_0_2); } },500); }else if(playerControlsPosition == 'Top Right'){ var playShift_0_2 =0; vOrigin = '100%'; if(enableMutingControls && mutingControlsPosition == 'Top Right'){ playShift_0_2 = playShift_0_2 + 48; vOrigin = '200%'; } if(enableFullscreenControls && fullscreenControlsPosition == 'Top Right'){ playShift_0_2 = playShift_0_2 + 48; vOrigin = '200%'; } if(enableMutingControls && enableFullscreenControls){ vOrigin = '300%'; } var intervalPlay_0_2 = setInterval(function() { if(widthDiv_0_2 < heightDiv_0_2) { playEle.css('top', 0 + "px"); playEle.css('right', playShift_0_2 + "px"); } else{ playEle.css('right', 0 + playShift_0_2 + "px"); playEle.css('top', 0); } if(chromelessOffset_0_2 != undefined) { clearInterval(intervalPlay_0_2); } },500); hOrigin = '0'; }else if(playerControlsPosition == 'Bottom Left'){ var intervalPlay_0_2 = setInterval(function() { if(widthDiv_0_2 < heightDiv_0_2) { playEle.css('bottom', 0 + "px"); playEle.css('left', 0); } else{ playEle.css('left', 0 + "px"); playEle.css('bottom', 0); } if(chromelessOffset_0_2 != undefined) { clearInterval(intervalPlay_0_2); } },500); vOrigin = '0'; hOrigin = '100%'; }else if(playerControlsPosition == 'Bottom Right'){ vOrigin = '100%'; hOrigin = '100%'; var playShift_0_2 = 0; if(enableMutingControls && mutingControlsPosition == 'Bottom Right'){ playShift_0_2 = playShift_0_2 + 48; vOrigin = '200%'; } if(enableFullscreenControls && fullscreenControlsPosition == 'Bottom Right'){ playShift_0_2 = playShift_0_2 + 48; vOrigin = '200%'; } if(enableMutingControls && enableFullscreenControls){ vOrigin = '300%'; } var intervalPlay_0_2 = setInterval(function() { if(widthDiv_0_2 < heightDiv_0_2) { playEle.css('bottom', 0 + "px"); playEle.css('right', playShift_0_2 + "px"); } else{ playEle.css('right', 0 + playShift_0_2 + "px"); playEle.css('bottom', 0); } if(chromelessOffset_0_2 != undefined) { clearInterval(intervalPlay_0_2); } },500); } } $(playEle).css('cursor','pointer'); $(playEle).click(function(){ if(playing_0_2){ mediaElement.pause(); }else{ mediaElement.play(); } }); playEle.css("-ms-transform-origin", (vOrigin+' '+hOrigin)); playEle.css("-webkit-transform-origin", (vOrigin+' '+hOrigin)); playEle.css("transform-origin", (vOrigin+' '+hOrigin)); playEle.css("-ms-transform", "scale("+scale+","+scale+")"); playEle.css("-webkit-transform", "scale("+scale+","+scale+")"); playEle.css("transform", "scale("+scale+","+scale+")");} if(enableFullscreenControls && chromeLess){ var fsIconColor = fullscreenIconColor; var fullScreen = document.createElement('div'); $('#customplayerwrapper-0-2').prepend(fullScreen); fullScreen.id = 'fullSceen-0-2'; var fsEle = $(fullScreen); fsEle.addClass('chromeLessPlayerControls'); fsEle.css('display', 'none'); var hideFullScreenButton = setInterval(function() { if(chromelessOffset_0_2 != undefined) { setTimeout(function() { fsEle.css('display','block'); if(0){ fsEle.css('display','none'); } clearInterval(hideFullScreenButton); },500); } },100); fsEle.css('zIndex','100'); var fullscreenImage = document.createElement('img'); fullscreenImage.setAttribute('id','customFullscreenButtonImage-0-2'); $(fullScreen).append(fullscreenImage); $(fullscreenImage).css('display', 'none'); if(fullscreenIconStyle_0_2.toUpperCase()=='CUSTOM'){ fullscreenImage.setAttribute('src',customFullscreenIconSrc); $(fullscreenImage).css('display', 'block'); if(customFullscreenIconWidth && customFullscreenIconHeight){ $(fullscreenImage).css('width', customFullscreenIconWidth); $(fullscreenImage).css('height', customFullscreenIconHeight); } if(customFullscreenIconSrc.trim()== '' || typeof customFullscreenIconSrc == 'undefined'){ $(fullscreenImage).attr('src',eval(fsIconColor+'DefaultFullscreenButtonSrc')); } }else{ fsEle.addClass(fsIconColor+'FullScreen'); } var vOrigin = '0'; var hOrigin = '0'; if(fullscreenIconStyle_0_2.toUpperCase()=='CUSTOM' && (customFullscreenIconX && customFullscreenIconY)){ fsEle.css('top', parseInt(customFullscreenIconY) -chromelessOffset_0_2 +"px"); fsEle.css('left', customFullscreenIconX); }else{ if(fullscreenControlsPosition == 'Top Left'){ var fullShift_0_2 = 0; if(enableMutingControls && mutingControlsPosition == 'Top Left'){ vOrigin = '-100%'; fullShift_0_2 = fullShift_0_2 + 48; } if(enablePlayerControls && playerControlsPosition == 'Top Left'){ vOrigin = '-100%'; fullShift_0_2 = fullShift_0_2 + 48; } if(enablePlayerControls && enableMutingControls){ vOrigin = '-200%'; } var intervalFull_0_2 = setInterval(function() { if(widthDiv_0_2 < heightDiv_0_2) { fsEle.css('top', 0 + "px"); fsEle.css('left', fullShift_0_2 + "px"); } else{ fsEle.css('left', fullShift_0_2 + "px"); fsEle.css('top', 0); } if(chromelessOffset_0_2 != undefined) { clearInterval(intervalFull_0_2); } },500); }else if(fullscreenControlsPosition == 'Top Right'){ vOrigin = '100%'; hOrigin = '100%'; var intervalFull_0_2 = setInterval(function() { if(widthDiv_0_2 < heightDiv_0_2) { fsEle.css('top', 0); fsEle.css('right', 0 + "px"); } else{ fsEle.css('right', 0 + "px"); fsEle.css('top', 0); } if(chromelessOffset_0_2 != undefined) { clearInterval(intervalFull_0_2); } },500); hOrigin = '0'; }else if(fullscreenControlsPosition == 'Bottom Left'){ var fullShift_0_2 = 0; vOrigin = '0'; if(enableMutingControls && mutingControlsPosition == 'Bottom Left'){ fullShift_0_2 = fullShift_0_2 + 48; vOrigin = '-100%'; } if(enablePlayerControls && playerControlsPosition == 'Bottom Left'){ fullShift_0_2 = fullShift_0_2 + 48; vOrigin = '-100%'; } if(enablePlayerControls && enableMutingControls){ vOrigin = '-200%'; } var intervalFull_0_2 = setInterval(function() { if(widthDiv_0_2 < heightDiv_0_2) { fsEle.css('bottom', 0 + "px"); fsEle.css('left', fullShift_0_2 + "px"); } else{ fsEle.css('left', fullShift_0_2 + "px"); fsEle.css('bottom', 0); } if(chromelessOffset_0_2 != undefined) { clearInterval(intervalFull_0_2); } },500); hOrigin = '100%'; }else if(fullscreenControlsPosition == 'Bottom Right'){ vOrigin = '100%'; hOrigin = '100%'; var fullShift_0_2 = 0; var intervalFull_0_2 = setInterval(function() { if(widthDiv_0_2 < heightDiv_0_2) { fsEle.css('bottom', 0 + "px"); fsEle.css('right', fullShift_0_2 + "px"); } else{ fsEle.css('right', 0 + fullShift_0_2 + "px"); fsEle.css('bottom', 0); } if(chromelessOffset_0_2 != undefined) { clearInterval(intervalFull_0_2); } },500); } } $(fsEle).css('cursor','pointer'); $(fsEle).click(function(event){ video = document.getElementById("customplayer-0-2"); player_0_2.enterFullScreen(); playing_0_2 = true; player_0_2_previewImage.style.display="none"; video.addEventListener('pause', function(){ playing_0_2 = false; stopQuartileTracking_0_2(); }, false); video.addEventListener('webkitendfullscreen', function(){ if(playing_0_2){ canvasVideo.play(); if(muted_0_2)canvasVideo.mute(); else if(!muted_0_2)canvasVideo.unmute(); if(playButtonDiv) playButtonDiv.style.opacity = 0; startQuartileTracking_0_2(); } else{ playing_0_2 = false; if(playButtonDiv) playButtonDiv.style.opacity = 100; stopQuartileTracking_0_2(); } toggleChromelessPlay_0_2(); }, false); }); fsEle.css("-ms-transform-origin", (vOrigin+' '+hOrigin)); fsEle.css("-webkit-transform-origin", (vOrigin+' '+hOrigin)); fsEle.css("transform-origin", (vOrigin+' '+hOrigin)); fsEle.css("-ms-transform", "scale("+scale+","+scale+")"); fsEle.css("-webkit-transform", "scale("+scale+","+scale+")"); fsEle.css("transform", "scale("+scale+","+scale+")");} $('#layer-0-2').mousemove(function() { });$('#layer-0-2').mouseover(function() { });$('#layer-0-2').mouseleave(function() { }); var vidWidth = parseInt("300px"); if( vidWidth >= 50 && vidWidth < 55 ){ $('#layer-0-2 .mejs-time-rail').css('display','none'); $('#layer-0-2 .mejs-time').css('display','none'); $('#layer-0-2 .mejs-volume-button').css('display','none'); $('#layer-0-2 .mejs-fullscreen-button').css('display','none');}else if ( vidWidth >= 55 && vidWidth < 100){ $('#layer-0-2 .mejs-time-rail').css('display','none'); $('#layer-0-2 .mejs-time').css('display','none');}else if(vidWidth >= 100 && vidWidth < 180){ $('#layer-0-2 .mejs-time').css('display','none');} if(theme == 'light'){ $('#layer-0-2 .mejs-controls').addClass('light-theme'); $('#layer-0-2 .mejs-controls .mejs-button button').addClass('dark-theme'); $('#layer-0-2 .mejs-time-current').css('background','black');} hideControls_0_2(); $(document).mousemove(function() { hideControls_0_2(); }); $(document).mouseover(function() { hideControls_0_2(); }); $(document).mouseleave(function() { hideControls_0_2(); }); $(window).on('blur focus', function(e) { var prevType = $(this).data('prevType'); if (prevType != e.type) { hideControls_0_2(); } $(this).data('prevType', e.type); }); 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 buttonSrc = iconColor+'DefaultPauseButtonSrc'; $('#customPlayButtonImage-0-2').attr('src',eval(buttonSrc)); }else{ $('#customPlayButtonImage-0-2').attr('src', customPauseIconSrc); $('#customPlayButtonImage-0-2').css('display', 'block'); } }else{ if(customPlayIconSrc.trim() == '' || typeof customPlayIconSrc == 'undefined'){ $('#customPlayButtonImage-0-2').attr('src',eval(iconColor+'DefaultPlayButtonSrc')); }else{ $('#customPlayButtonImage-0-2').attr('src', customPlayIconSrc); $('#customPlayButtonImage-0-2').css('display', 'block'); } } }else{ if(playing_0_2 || isAutoPlay){ playEle.removeClass(iconColor+'Play'); playEle.addClass(iconColor+'Pause'); }else{ playEle.removeClass(iconColor+'Pause'); playEle.addClass(iconColor+'Play'); } } }} 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'); $('.mejs-controls').css('visibility','hidden');} function showControls_0_2() { $('.mejs-controls').css('display','block'); $('.mejs-controls').css('visibility','visible');} mediaElement.addEventListener('loadeddata', function(event) { if (typeof positionVidWall_0_2 === 'function') { if (typeof jQuery !== 'undefined') { $("#customplayerwrapper-0-2 .mejs-layers").hide(); positionVidWall_0_2(window.parent.window); } } player_ready_0_2 = true; duration_0_2 = mediaElement.duration; if (confirmedDuration_0_2) { duration_0_2 = confirmedDuration_0_2; } endTime = duration_0_2; if(startTime > 0){ dontLogSeek_0_2 = 1; mediaElement.setCurrentTime(startTime); } if (autocheck) { if(!0){ dontLogVolChange_0_2 = 1; mediaElement.setMuted(true); } if(!autoCheckView_0_2){ setTimeout(function(){ mediaElement.play(); toggleChromelessMute_0_2(); },autoplayDelay_0_2); }else{ toggleChromelessMute_0_2(); } toggleChromelessMute_0_2(); } autoWait_0 = false; screenViewed[0] = 0; if (typeof parent.window.ns_4_32236_oy141224.videoCallback === 'function') { parent.window.ns_4_32236_oy141224.videoCallback(); } for(i=0; i < autoEvents_0.length; i++){ var variables = autoEvents_0[i]; checkAutoEvents(variables[0], variables[1], variables[2], variables[3], variables[4], variables[5], variables[6], variables[7], variables[8], variables[9]); } if(autoEvents_0.length == 0){ screenViewed[0] = 1; } }, false); mediaElement.addEventListener('click', function(event){ if(!playing_0_2){ mediaElement.play(); } else { mediaElement.pause(); } }, false); mediaElement.addEventListener('seeked', function(event) { var cvEvent = new CustomEvent("CustomVideoClick", {}); if(!dontLogSeek_0_2) cvLog_0_2('seek_video_click', Math.floor(mediaElement.currentTime), cvEvent); dontLogSeek_0_2 = 0; }, false); mediaElement.addEventListener('play', function(event) { $('.mejs-overlay-loading').css('display', 'none'); play_started_0_2 = 1; if(showPlayButtonOverlay) { $('#layer-0-2 .mejs-overlay-button').css('display','block'); } else{ $('#layer-0-2 .mejs-overlay-button').css('display','none'); } toggleReplay_0_2(showReplay, theme, 'remove'); playing_0_2 = 1; toggleChromelessPlay_0_2(); if(!statLogged_0_2 && autocheck){ cvLog_0_2('play_video_auto', Math.floor(mediaElement.currentTime), event); statLogged_0_2 = 1; logTPTracking_0_2('AutoPlay'); }else{ if(!dontLogPlay_0_2)logTPTracking_0_2('Play'); if(play_done_0_2 && !dontLogPlay_0_2){ play_done_0_2 = 0; cvLog_0_2('replay_video_click', Math.floor(mediaElement.currentTime), event); }else{ if(!isReturnAutoPlay_0_2 && !autoCheckView_0_2 && !dontLogPlay_0_2) { cvLog_0_2('play_video_click', Math.floor(mediaElement.currentTime), event); if(unmuteView_0_2 == '1'){ autoUnmuted_0_2 = 1; mediaElement.setMuted(false); toggleChromelessMute_0_2(true); } } else { if('0' == '1'){ if(!muted_0_2){ mediaElement.setMuted(false); player_element_0_2.muted=false; toggleChromelessMute_0_2(true); } } isReturnAutoPlay_0_2 = 0; } } } setTimeout(function(){ if((endTime > 0) && ((Math.floor(mediaElement.currentTime) != endTime) && !
Agape Group Home Santa Maria,
Ncis La Fanfiction Deeks' Trust Issues,
Cristina Mark And Kieran Scene,
Powerlifting Usa Magazine Back Issues,
Where Is Chicago Pd Filming Today,
Articles B
bartow high school football state championship