• Resolved wemnael

    (@wemnael)


    Hi, Just updated to the latest version and it literally broken my entire website, including admin. When accessing it I only see a black screen with a play button. And some code

    <!DOCTYPE html><html translate="no"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="robots" content="noindex"><link rel="stylesheet" /><style type="text/css">html,body,.aiovg-player .video-js {width: 100%;height: 100%;margin: 0;padding: 0;overflow: hidden;}@font-face {font-family: 'aiovg-icons';src: url('https://hristosinafrica.org/wp-content/plugins/all-in-one-video-gallery/public/assets/fonts/aiovg-icons.eot?j6tmf3');src: url('https://hristosinafrica.org/wp-content/plugins/all-in-one-video-gallery/public/assets/fonts/aiovg-icons.eot?j6tmf3#iefix') format('embedded-opentype'),url('https://hristosinafrica.org/wp-content/plugins/all-in-one-video-gallery/public/assets/fonts/aiovg-icons.ttf?j6tmf3') format('truetype'),url('https://hristosinafrica.org/wp-content/plugins/all-in-one-video-gallery/public/assets/fonts/aiovg-icons.woff?j6tmf3') format('woff'),url('https://hristosinafrica.org/wp-content/plugins/all-in-one-video-gallery/public/assets/fonts/aiovg-icons.svg?j6tmf3#aiovg-icons') format('svg');font-weight: normal;font-style: normal;font-display: swap;}[class^="aiovg-icon-"],[class*=" aiovg-icon-"] {/* use !important to prevent issues with browser extensions that change fonts */font-family: 'aiovg-icons' !important;speak: none;color: #666;font-style: normal;font-weight: normal;font-variant: normal;text-transform: none;line-height: 1;/* Better Font Rendering =========== */-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}.aiovg-icon-download:before {content: "\e9c7";}.aiovg-icon-whatsapp:before {content: "\ea93";}.aiovg-player .video-js.vjs-youtube-mobile .vjs-poster {display: none;}.aiovg-player .video-js.vjs-ended .vjs-poster {display: block;}.aiovg-player .video-js:not(.vjs-has-started) .vjs-text-track-display {display: none;}.aiovg-player .video-js.vjs-ended .vjs-text-track-display {display: none;}.aiovg-player .video-js.vjs-error .vjs-loading-spinner {display: none;}.aiovg-player .video-js.vjs-waiting.vjs-paused .vjs-loading-spinner {display: none;}.aiovg-player .video-js .vjs-big-play-button {width: 1.5em;height: 1.5em;top: 50%;left: 50%;margin-top: 0;margin-left: 0;background-color: rgba( 0, 0, 0, 0.6 );border: none;border-radius: 50%;font-size: 6em;line-height: 1.5em;transform: translateX( -50% ) translateY( -50% );}.aiovg-player .video-js:hover .vjs-big-play-button,.aiovg-player .video-js .vjs-big-play-button:focus {background-color: rgba( 0, 0, 0, 0.7 );}.aiovg-player.vjs-waiting .video-js .vjs-big-play-button {display: none;}.aiovg-player .video-js.vjs-waiting.vjs-paused.vjs-error .vjs-big-play-button {display: none;}.aiovg-player .video-js.vjs-waiting.vjs-paused .vjs-big-play-button {display: block;}.aiovg-player .video-js.vjs-ended .vjs-big-play-button {display: block;}.aiovg-player .video-js.vjs-no-control-bar .vjs-control-bar {display: none;}.aiovg-player .video-js.vjs-ended .vjs-control-bar {display: none;}.aiovg-player .video-js .vjs-current-time,.aiovg-player .video-js .vjs-duration {display: block;}.aiovg-player .video-js .vjs-subtitles-button .vjs-icon-placeholder:before {content: "\f10d";}.aiovg-player .video-js .vjs-menu li {text-transform: Capitalize;}.aiovg-player .video-js .vjs-menu li.vjs-selected:focus,.aiovg-player .video-js .vjs-menu li.vjs-selected:hover {background-color: #fff;color: #2b333f;}.aiovg-player .video-js.vjs-quality-menu .vjs-quality-menu-button-4K-flag:after,.aiovg-player .video-js.vjs-quality-menu .vjs-quality-menu-button-HD-flag:after {background-color: #F00;}.aiovg-player .video-js .vjs-quality-selector .vjs-quality-menu-item-sub-label {position: absolute;width: 4em;right: 0;font-size: 75%;font-weight: bold;text-align: center;text-transform: none;}.aiovg-player .video-js.vjs-4k .vjs-quality-selector:after,.aiovg-player .video-js.vjs-hd .vjs-quality-selector:after {position: absolute;width: 2.2em;height: 2.2em;top: 0.5em;right: 0;padding: 0;background-color: #F00;border-radius: 2em;font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;font-size: 0.7em;font-weight: 300;content: "";color: inherit;text-align: center;letter-spacing: 0.1em;line-height: 2.2em;pointer-events: none;}.aiovg-player .video-js.vjs-4k .vjs-quality-selector:after {content: "4K";}.aiovg-player .video-js.vjs-hd .vjs-quality-selector:after {content: "HD";}.aiovg-player .video-js .vjs-playback-rate .vjs-playback-rate-value {font-size: 1.2em;line-height: 2.6em;}.aiovg-player .video-js .vjs-share {margin: 5px;cursor: pointer;}.aiovg-player .video-js .vjs-share a {display: flex;margin: 0;padding: 10px;background-color: rgba( 0, 0, 0, 0.5 );border-radius: 1px;font-size: 15px;color: #fff;}.aiovg-player .video-js .vjs-share:hover a {background-color: rgba( 0, 0, 0, 0.7 );}.aiovg-player .video-js .vjs-share .vjs-icon-share {line-height: 1;}.aiovg-player .video-js.vjs-has-started .vjs-share {display: block;visibility: visible;opacity: 1;transition: visibility .1s,opacity .1s;}.aiovg-player .video-js.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-share {visibility: visible;opacity: 0;transition: visibility 1s,opacity 1s;}.aiovg-player .video-js .vjs-modal-dialog-share-embed {background: #111 !important;}.aiovg-player .video-js .vjs-modal-dialog-share-embed .vjs-close-button {margin: 7px;}.aiovg-player .video-js .vjs-share-embed {display: flex !important;flex-direction: column;justify-content: center;align-items: center;width: 100%;height: 100%;}.aiovg-player .video-js .vjs-share-embed-content {width: 100%;}.aiovg-player .video-js .vjs-share-buttons {text-align: center;}.aiovg-player .video-js .vjs-share-button {display: inline-block;margin: 2px;width: 40px;height: 40px;line-height: 1;vertical-align: middle;}.aiovg-player .video-js .vjs-share-button,.aiovg-player .video-js .vjs-share-button:hover,.aiovg-player .video-js .vjs-share-button:focus {text-decoration: none;}.aiovg-player .video-js .vjs-share-button:hover {opacity: 0.9;}.aiovg-player .video-js .vjs-share-button-facebook {background-color: #3B5996;}.aiovg-player .video-js .vjs-share-button-twitter {background-color: #55ACEE;}.aiovg-player .video-js .vjs-share-button-linkedin {background-color: #006699;}.aiovg-player .video-js .vjs-share-button-pinterest {background-color: #C00117;}.aiovg-player .video-js .vjs-share-button-tumblr {background-color: #28364B;}.aiovg-player .video-js .vjs-share-button-whatsapp {background-color: #25d366;}.aiovg-player .video-js .vjs-share-button span {color: #fff;font-size: 24px;line-height: 40px;}.aiovg-player .video-js .vjs-embed-code {margin: 20px;}.aiovg-player .video-js .vjs-embed-code p {margin: 0 0 7px 0;font-size: 11px;text-align: center;text-transform: uppercase;}.aiovg-player .video-js .vjs-embed-code input {width: 100%;padding: 7px;background: #fff;border: 1px solid #fff;color: #000;}.aiovg-player .video-js .vjs-embed-code input:focus {border: 1px solid #fff;outline-style: none;}.aiovg-player .video-js .vjs-download {margin: 5px;cursor: pointer;}.aiovg-player .video-js .vjs-has-share.vjs-download {margin-top: 50px;}.aiovg-player .video-js .vjs-download a {display: flex;margin: 0;padding: 10px;background-color: rgba( 0, 0, 0, 0.5 );border-radius: 1px;font-size: 15px;color: #fff;}.aiovg-player .video-js .vjs-download:hover a {background-color: rgba( 0, 0, 0, 0.7 );}.aiovg-player .video-js .vjs-download .aiovg-icon-download {color: inherit;}.aiovg-player .video-js.vjs-has-started .vjs-download {display: block;visibility: visible;opacity: 1;transition: visibility .1s,opacity .1s;}.aiovg-player .video-js.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-download {visibility: visible;opacity: 0;transition: visibility 1s,opacity 1s;}.aiovg-player .video-js .vjs-logo {opacity: 0;cursor: pointer;}.aiovg-player .video-js.vjs-has-started .vjs-logo {opacity: 0.5;transition: opacity 0.1s;}.aiovg-player .video-js.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-logo {opacity: 0;transition: opacity 1s;}.aiovg-player .video-js.vjs-has-started .vjs-logo:hover {opacity: 1;}.aiovg-player .video-js .vjs-logo img {max-width: 100%;}.aiovg-player .video-js.vjs-ended .vjs-logo {display: none;}#aiovg-contextmenu {position: absolute;top: 0;left: 0;margin: 0;padding: 0;background-color: #2B333F;background-color: rgba( 43, 51, 63, 0.7 );border-radius: 2px;z-index: 9999999999; /* make sure it shows on fullscreen */}#aiovg-contextmenu .aiovg-contextmenu-content {margin: 0;padding: 8px 12px;font-family: Arial, Helvetica, sans-serif;font-size: 11px;color: #FFF;white-space: nowrap;cursor: pointer;}</style></head><body data-rsssl=1 id="body" class="aiovg-player vjs-waiting"><video-js id="player" class="vjs-fill" style="width: 100%; height: 100%;" controls playsinline preload="metadata"></video-js><script src="https://hristosinafrica.org/wp-content/plugins/all-in-one-video-gallery/vendor/videojs/video.min.js?v=7.21.1" type="text/javascript"></script><script type="text/javascript">'use strict';// Varsvar settings = {"controlBar":{"children":["PlayToggle","CurrentTimeDisplay","progressControl","durationDisplay","SubtitlesButton","AudioTrackButton","PlaybackRateMenuButton","qualitySelector","VolumePanel","fullscreenToggle"]},"playbackRates":[0.5,0.75,1,1.5,2],"suppressNotSupportedError":true,"aiovg":{"postID":0,"postType":"page","share":false,"embed":false,"download":0,"cc_load_policy":0,"showLogo":0,"contextmenuLabel":"","i18n":{"stream_not_found":"This stream is currently not live. Please check back or refresh your page."}}};settings.html5 = {vhs: {overrideNative: ! videojs.browser.IS_ANY_SAFARI,}};var overlays = [];/*** Merge attributes.** @since 2.0.0* @param {array} attributes Attributes array.* @return {string} str Merged attributes string to use in an HTML element.*/function combineAttributes( attributes ) {var str = '';for ( var key in attributes ) {str += ( key + '="' + attributes[ key ] + '" ' );}return str;}/*** Convert SRT to WebVTT.** @since 2.6.3*/function srtToWebVTT( data ) {// Remove dos newlinesvar srt = data.replace( /\r+/g, '' );// Trim white space start and endsrt = srt.replace( /^\s+|\s+$/g, '' );// Get cuesvar cuelist = srt.split( '\n\n' );var result = "";if ( cuelist.length > 0 ) {result += "WEBVTT\n\n";for ( var i = 0; i < cuelist.length; i = i+1 ) {result += convertSrtCue( cuelist[ i ] );}}return result;}function convertSrtCue( caption ) {// Remove all html tags for security reasons// srt = srt.replace( /<[a-zA-Z\/][^>]*>/g, '' );var cue = "";var s = caption.split( /\n/ );// Concatenate muilt-line string separated in array into onewhile ( s.length > 3 ) {for ( var i = 3; i < s.length; i++ ) {s[2] += "\n" + s[ i ]}s.splice( 3, s.length - 3 );}var line = 0;// Detect identifierif ( ! s[0].match( /\d+:\d+:\d+/ ) && s[1].match( /\d+:\d+:\d+/ ) ) {cue += s[0].match( /\w+/ ) + "\n";line += 1;}// Get time stringsif ( s[ line ].match( /\d+:\d+:\d+/ ) ) {// Convert time stringvar m = s[1].match( /(\d+):(\d+):(\d+)(?:,(\d+))?\s*--?>\s*(\d+):(\d+):(\d+)(?:,(\d+))?/ );if ( m ) {cue += m[1] + ":" + m[2] + ":" + m[3] + "." + m[4] + " --> " + m[5] + ":" + m[6] + ":" + m[7] + "." + m[8] + "\n";line += 1;} else {// Unrecognized timestringreturn "";}} else {// File format error or comment linesreturn "";}// Get cue textif ( s[ line ] ) {cue += s[ line ] + "\n\n";}return cue;}function addSrtTextTrack( player, track, mode ) {var xmlhttp;if ( window.XMLHttpRequest ) {xmlhttp = new XMLHttpRequest();} else {xmlhttp = new ActiveXObject( 'Microsoft.XMLHTTP' );};xmlhttp.onreadystatechange = function() {if ( 4 == xmlhttp.readyState && 200 == xmlhttp.status ) {if ( xmlhttp.responseText ) {var vttText = srtToWebVTT( xmlhttp.responseText );if ( '' != vttText ) {var vttBlob = new Blob([ vttText ], { type : 'text/vtt' });var blobURL = URL.createObjectURL( vttBlob );var trackObj = {src: blobURL,srclang: track.srclang,label: track.label,kind: 'subtitles'};if ( '' != mode ) {trackObj.mode = mode;}player.addRemoteTextTrack( trackObj, true );}}}};xmlhttp.open( 'GET', track.src, true );xmlhttp.send();}/*** Update video views count.** @since 2.0.0*/function updateViewsCount() {var xmlhttp;if ( window.XMLHttpRequest ) {xmlhttp = new XMLHttpRequest();} else {xmlhttp = new ActiveXObject( 'Microsoft.XMLHTTP' );};xmlhttp.onreadystatechange = function() {if ( 4 == xmlhttp.readyState && 200 == xmlhttp.status ) {if ( xmlhttp.responseText ) {// Do nothing}}};xmlhttp.open( 'GET', 'https://hristosinafrica.org/wp-admin/admin-ajax.php?action=aiovg_update_views_count&post_id=0&security=80b896fdd2', true );xmlhttp.send();}/*** Initialize the player.** @since 2.0.0*/function initPlayer() {var player = videojs( 'player', settings );// Maintained for backward compatibilityif ( typeof window['onPlayerInitialized'] === 'function' ) {window.onPlayerInitialized( player );}// Dispatch an eventvar evt = document.createEvent( 'CustomEvent' );evt.initCustomEvent( 'player.init', false, false, { player: player } );window.dispatchEvent( evt );// On player readyplayer.ready(function() {document.getElementById( 'body' ).className = 'aiovg-player';});// On metadata loadedplayer.one( 'loadedmetadata', function() {// Standard quality selectorvar qualitySelector = document.getElementsByClassName( 'vjs-quality-selector' );if ( qualitySelector.length > 0 ) {var nodes = qualitySelector[0].getElementsByClassName( 'vjs-menu-item' );for ( var i = 0; i < nodes.length; i++ ) {var node = nodes[ i ];var textNode = node.getElementsByClassName( 'vjs-menu-item-text' )[0];var resolution = textNode.innerHTML.replace( /\D/g, '' );if ( resolution >= 2160 ) {node.innerHTML += '<span class="vjs-quality-menu-item-sub-label">4K</span>';} else if ( resolution >= 720 ) {node.innerHTML += '<span class="vjs-quality-menu-item-sub-label">HD</span>';}}}// Add support for SRTif ( settings.aiovg.hasOwnProperty( 'tracks' ) ) {for ( var i = 0, max = settings.aiovg.tracks.length; i < max; i++ ) {var track = settings.aiovg.tracks[ i ];var mode = '';if ( 0 == i && 1 == settings.aiovg.cc_load_policy ) {mode = 'showing';}if ( /srt/.test( track.src.toLowerCase() ) ) {addSrtTextTrack( player, track, mode );} else {var trackObj = {src: track.src,srclang: track.srclang,label: track.label,kind: 'subtitles'};if ( '' != mode ) {trackObj.mode = mode;}player.addRemoteTextTrack( trackObj, true );}}}});// Fired the first time a video is playedplayer.one( 'play', function() {if ( 'aiovg_videos' == settings.aiovg.postType ) {updateViewsCount();}});player.on( 'playing', function() {player.trigger( 'controlsshown' );});player.on( 'ended', function() {player.trigger( 'controlshidden' );});// Standard quality selectorplayer.on( 'qualitySelected', function( event, source ) {var resolution = source.label.replace( /\D/g, '' );player.removeClass( 'vjs-4k' );player.removeClass( 'vjs-hd' );if ( resolution >= 2160 ) {player.addClass( 'vjs-4k' );} else if ( resolution >= 720 ) {player.addClass( 'vjs-hd' );}});// HLS quality selectorvar src = player.src();if ( /.m3u8/.test( src ) || /.mpd/.test( src ) ) {if ( settings.controlBar.children.indexOf( 'qualitySelector' ) !== -1 ) {player.qualityMenu();};};// Offsetvar offset = {};if ( settings.aiovg.start ) {offset.start = settings.aiovg.start;}if ( settings.aiovg.end ) {offset.end = settings.aiovg.end;}if ( Object.keys( offset ).length > 1 ) {offset.restart_beginning = false;player.offset( offset );}// Share / Embedif ( settings.aiovg.share || settings.aiovg.embed ) {overlays.push({content: '<span class="vjs-icon-share"></span>',class: 'vjs-share',align: 'top-right',start: 'controlsshown',end: 'controlshidden',showBackground: false});}// Downloadif ( settings.aiovg.download ) {var __class = 'vjs-download';if ( settings.aiovg.share || settings.aiovg.embed ) {__class += ' vjs-has-share';}overlays.push({content: '<span class="aiovg-icon-download"></span>',class: __class,align: 'top-right',start: 'controlsshown',end: 'controlshidden',showBackground: false});}// Logoif ( settings.aiovg.showLogo ) {var attributes = [];attributes['src'] = settings.aiovg.logoImage;if ( settings.aiovg.logoMargin ) {settings.aiovg.logoMargin = settings.aiovg.logoMargin - 5;}var align;switch ( settings.aiovg.logoPosition ) {case 'topleft':align = 'top-left';attributes['style'] = 'margin: ' + settings.aiovg.logoMargin + 'px;';break;case 'topright':align = 'top-right';attributes['style'] = 'margin: ' + settings.aiovg.logoMargin + 'px;';break;case 'bottomright':align = 'bottom-right';attributes['style'] = 'margin: ' + settings.aiovg.logoMargin + 'px;';break;default:align = 'bottom-left';attributes['style'] = 'margin: ' + settings.aiovg.logoMargin + 'px;';break;}if ( settings.aiovg.logoLink ) {attributes['onclick'] = "top.window.location.href='" + settings.aiovg.logoLink + "';";}overlays.push({content: '',class: 'vjs-logo',align: align,start: 'controlsshown',end: 'controlshidden',showBackground: false});}// Overlayif ( overlays.length > 0 ) {player.overlay({content: '',overlays: overlays});if ( settings.aiovg.share || settings.aiovg.embed ) {var options = {};options.content = document.getElementById( 'vjs-share-embed' );options.temporary = false;var ModalDialog = videojs.getComponent( 'ModalDialog' );var modal = new ModalDialog( player, options );modal.addClass( 'vjs-modal-dialog-share-embed' );player.addChild( modal );var wasPlaying = true;document.getElementById( 'vjs-share-embed-button' ).addEventListener( 'click', function() {wasPlaying = ! player.paused;modal.open();});modal.on( 'modalclose', function() {if ( wasPlaying ) {player.play();}});}if ( settings.aiovg.embed ) {document.getElementById( 'vjs-copy-embed-code' ).addEventListener( 'focus', function() {document.getElementById( 'vjs-copy-embed-code' ).select();document.execCommand( 'copy' );});}}}initPlayer();// Custom contextmenuif ( settings.aiovg.contextmenuLabel ) {var contextmenu = document.getElementById( 'aiovg-contextmenu' );var timeout_handler = '';document.addEventListener( 'contextmenu', function( e ) {if ( 3 === e.keyCode || 3 === e.which ) {e.preventDefault();e.stopPropagation();var width = contextmenu.offsetWidth,height = contextmenu.offsetHeight,x = e.pageX,y = e.pageY,doc = document.documentElement,scrollLeft = ( window.pageXOffset || doc.scrollLeft ) - ( doc.clientLeft || 0 ),scrollTop = ( window.pageYOffset || doc.scrollTop ) - ( doc.clientTop || 0 ),left = x + width > window.innerWidth + scrollLeft ? x - width : x,top = y + height > window.innerHeight + scrollTop ? y - height : y;contextmenu.style.display = '';contextmenu.style.left = left + 'px';contextmenu.style.top = top + 'px';clearTimeout( timeout_handler );timeout_handler = setTimeout(function() {contextmenu.style.display = 'none';}, 1500 );}});if ( settings.aiovg.logoLink ) {contextmenu.addEventListener( 'click', function() {top.window.location.href = settings.aiovg.logoLink;});}document.addEventListener( 'click', function() {contextmenu.style.display = 'none';});}// Custom errorvideojs.hook( 'beforeerror', function( player, err ) {var error = player.error();// Prevent current error from being cleared outif ( err === null ) {return error;}// But allow changing to a new errorif ( err.code == 2 || err.code == 4 ) {var src = player.src();if ( /.m3u8/.test( src ) || /.mpd/.test( src ) ) {return {code: err.code,message: settings.aiovg.i18n.stream_not_found};}}return err;});</script></body></html>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Apologies. I believe that you are using a multi-lingual plugin and the conflict should come there. Please let me know which plugin you use. Anyhow, we have started testing the release again. Please wait. We will get back to you on this as soon as possible.

    Plugin Contributor wpvideogallery

    (@wpvideogallery)

    I see that you have submitted another post on the same issue. So, we are closing this post considering duplicate. Kindly use your other post for further discussion.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘last update has broken my websie’ is closed to new replies.