var showPleaseWaitTimeOut = 1000; #lds-6282e3cf3f972avideoLoader-wrapper { position: fixed; left: 0 !important; width: 100% !important; height: 100% !important; z-index: 1000; margin: 0 !important; } #lds-6282e3cf3f972avideoLoader { display: block; position: relative; left: 50%; top: 50%; width: 150px; height: 150px; margin: -175px 0 0 -75px; border-radius: 50%; border: 3px solid transparent; border-top-color: #3498db; -webkit-animation: spin 2s linear infinite; /* Chrome, Opera 15+, Safari 5+ */ animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */ z-index: 1001; -webkit-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; } #lds-6282e3cf3f972avideoLoader:before { content: ""; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px; border-radius: 50%; border: 3px solid transparent; border-top-color: #e74c3c; -webkit-animation: spin 3s linear infinite; /* Chrome, Opera 15+, Safari 5+ */ animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */ } #lds-6282e3cf3f972avideoLoader:after { content: ""; position: absolute; top: 15px; left: 15px; right: 15px; bottom: 15px; border-radius: 50%; border: 3px solid transparent; border-top-color: #f9c922; -webkit-animation: spin 1.5s linear infinite; /* Chrome, Opera 15+, Safari 5+ */ animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */ } @-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: rotate(0deg); /* IE 9 */ transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */ } 100% { -webkit-transform: rotate(360deg); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: rotate(360deg); /* IE 9 */ transform: rotate(360deg); /* Firefox 16+, IE 10+, Opera */ } } @keyframes spin { 0% { -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: rotate(0deg); /* IE 9 */ transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */ } 100% { -webkit-transform: rotate(360deg); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: rotate(360deg); /* IE 9 */ transform: rotate(360deg); /* Firefox 16+, IE 10+, Opera */ } } #lds-6282e3cf3f972avideoLoader-wrapper .lds-6282e3cf3f972avideoLoader-section { position: fixed; top: 0; width: 50%; height: 100%; background: #00000077; z-index: 1000; -webkit-transform: translateX(0); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: translateX(0); /* IE 9 */ transform: translateX(0); /* Firefox 16+, IE 10+, Opera */ } #lds-6282e3cf3f972avideoLoader-wrapper .lds-6282e3cf3f972avideoLoader-section.section-left { left: 0; } #lds-6282e3cf3f972avideoLoader-wrapper .lds-6282e3cf3f972avideoLoader-section.section-right { right: 0; } #lds-6282e3cf3f972avideoLoader-wrapper .lds-6282e3cf3f972avideoLoader-section.section-left { -webkit-transform: translateX(0); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: translateX(0); /* IE 9 */ transform: translateX(0); /* Firefox 16+, IE 10+, Opera */ -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); } #lds-6282e3cf3f972avideoLoader-wrapper .lds-6282e3cf3f972avideoLoader-section.section-right { -webkit-transform: translateX(0); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: translateX(0); /* IE 9 */ transform: translateX(0); /* Firefox 16+, IE 10+, Opera */ -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000); } /* Loaded */ .loaded #lds-6282e3cf3f972avideoLoader-wrapper .lds-6282e3cf3f972avideoLoader-section.section-left { -webkit-transform: translateX(-100%); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: translateX(-100%); /* IE 9 */ transform: translateX(-100%); /* Firefox 16+, IE 10+, Opera */ } .loaded #lds-6282e3cf3f972avideoLoader-wrapper .lds-6282e3cf3f972avideoLoader-section.section-right { -webkit-transform: translateX(100%); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: translateX(100%); /* IE 9 */ transform: translateX(100%); /* Firefox 16+, IE 10+, Opera */ } .loaded #lds-6282e3cf3f972avideoLoader { opacity: 0; } .loaded #lds-6282e3cf3f972avideoLoader-wrapper { visibility: hidden; -webkit-transform: translateY(-100%); /* Chrome, Opera 15+, Safari 3.1+ */ -ms-transform: translateY(-100%); /* IE 9 */ transform: translateY(-100%); /* Firefox 16+, IE 10+, Opera */ -webkit-transition: all 0.3s 1s ease-out; transition: all 0.3s 1s ease-out; } var avideoLoader = '
'; var webSiteRootURL = 'http://videos.proyectolanuevatierra.com/'; var my_users_id = 0; var my_identification = "Unknown User"; var player; // AVideo Analytics (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); ga('create', 'UA-96597943-1', 'auto', 'aVideo'); ga('aVideo.send', 'pageview'); var autoPlayAjax=false;#adOverlay{min-width: 640px;}.video-js .vjs-overlay-background, .video-js .vjs-overlay-no-background { max-height: 50%; max-width: 100%; width: 100%; margin-left:-5px; overflow: hidden; }.vjs-chromecast-button .vjs-icon-placeholder {width: 20px;height: 20px;.video-js .vjs-seek-button {font-size: 25px;width: 2em !important;}var videoJsId = "mainVideo";var isCompressed = false;var _adWasPlayed = 0;var autoplay = false;var playNextURL = ''; { "@context": "http://schema.org/", "@type": "VideoObject", "name": "GHOSTS in the MACHINE (sub - esp)", "description": "GHOSTS in the MACHINE (sub - esp)", "thumbnailUrl": [ "http://videos.proyectolanuevatierra.com/videos/v_220514104850_vc19b/v_220514104850_vc19b.jpg?cache=16525361301652536131" ], "uploadDate": "2022-05-14T01:48:50", "duration": "PT0H0M1S", "contentUrl": "http://videos.proyectolanuevatierra.com/video/202/ghosts-in-the-machine-sub---esp?channelName=LANUEVATIERRA", "embedUrl": "http://videos.proyectolanuevatierra.com/videoEmbeded/202?autoplay=0&controls=1&loop=0&mute=0&t=0", "interactionCount": "3", "@id": "http://videos.proyectolanuevatierra.com/v/202?channelName=LANUEVATIERRA", "datePublished": "2022-05-14", "interactionStatistic": [ { "@type": "InteractionCounter", "interactionService": { "@type": "WebSite", "name": "VIDEOS LA NUEVA TIERRA", "@id": "http://videos.proyectolanuevatierra.com/" }, "interactionType": "http://schema.org/LikeAction", "userInteractionCount": "3" }, { "@type": "InteractionCounter", "interactionType": "http://schema.org/WatchAction", "userInteractionCount": "3" } ] } /* if it is IE */ @media all and (-ms-high-contrast:none){ nav ul.items-container li:first-child { display: block; flex: 0 1 auto; /* Default */ } } #mysearch.in, #mysearch.collapsing { display: block!important; } #myNavbar.in, #myNavbar.collapsing { display: block!important; } #searchForm { width: 100%; margin-left: 5px; white-space: nowrap; } #searchForm .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left-width: 0; } #searchForm input { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right-width: 0; } #rightProfileButton{ padding: 0; margin-left: 5px; margin-right: 40px; border: 0; background: none; background-color: transparent; } #rightLoginButton{ margin-left: 5px; margin-right: 40px; } #navbarRegularButtons{ max-width: 70%; /* remove the scroll because the dropsown menus does not work */ /*overflow-x: auto;*/ /*overflow-y: hidden;*/ } #navbarRegularButtons span.hidden-mdx{ max-width: 15vw; display: inline-block; } #navbarRegularButtons .btn{ overflow: hidden; } #navbarRegularButtons::-webkit-scrollbar { height: 4px; } @media (max-width : 992px) { #searchForm input{ width: 100px; } } @media (max-width : 767px) { #searchForm { padding-left: 10px; } #rightLoginButton, #rightProfileButton{ margin-right: 5px; margin-left: 0; } #searchForm > div{ width: 100%; } .mobilesecondnav { position: absolute; left: 40%; right: 5px; } #mysearch{ /* width: 100%; */ position: absolute; right: 0; left: 0; padding-left: 0px; padding-right: 0px; background-color: #FFF; } #myNavbar{ position: absolute; right: 0; top: 50px; background-color: #FFF; padding: 4px; width: 50%; } #mainNavBar .navbar-brand{ width: 100% !important; text-align: center; } #mainNavBar .navbar-brand>img { display: unset; } #myNavbar ul.right-menus{ display: block; } #myNavbar ul.right-menus li{ margin: 0; padding: 0; } #myNavbar ul.right-menus .btn, #myNavbar ul.right-menus .btn-group{ margin: 2px; width: 100%; } #myNavbar ul.right-menus .btn-group{ margin: 0; } nav ul.items-container li:first-child { display: list-item; } #navbarRegularButtons span.hidden-mdx { max-width: 100vw; } .globalsearchfield { width: 90% !important; } .searchli { width: 100%; margin-right: 0; margin-left: 0; } .searchdiv { } .navbar-toggle { margin-right: 5px !important; } .left-side { padding: 0 5px; } .searchul{ padding-left: 0px; } } li.navsub-toggle .badge { float: right; } li.navsub-toggle a + ul { padding-left: 15px; } .navbar-lang-btn .select2-container{ margin: 8px 0; } .navbar-lang-btn .select2-selection{ border-color: #00000077 !important; }

English - 202

var seachFormIsRunning = 0; $(document).ready(function () { setTimeout(function () { $('.nav li.navsub-toggle a:not(.selected) + ul').hide(); var navsub_toggle_selected = $('.nav li.navsub-toggle a.selected'); navsub_toggle_selected.next().show(); navsub_toggle_selected = navsub_toggle_selected.parent(); var navsub_toggle_selected_stop = 24; while (navsub_toggle_selected.length) { if ($.inArray(navsub_toggle_selected.prop('localName'), ['li', 'ul']) == -1) break; if (navsub_toggle_selected.prop('localName') == 'ul') { navsub_toggle_selected.show().prev().addClass('selected'); } navsub_toggle_selected = navsub_toggle_selected.parent(); navsub_toggle_selected_stop--; if (navsub_toggle_selected_stop < 0) break; } }, 500); $('.nav').on('click', 'li.navsub-toggle a:not(.selected)', function (e) { var a = $(this), b = a.next(); if (b.length) { e.preventDefault(); a.addClass('selected'); b.slideDown(); var c = a.closest('.nav').find('li.navsub-toggle a.selected').not(a).removeClass('selected').next(); if (c.length) c.slideUp(); } }); $('#searchForm').submit(function (event) { if (seachFormIsRunning) { event.preventDefault(); return false; } seachFormIsRunning = 1; var str = $('#searchFormInput').val(); if (isMediaSiteURL(str)) { event.preventDefault(); console.log("searchForm is URL " + str); seachFormPlayURL(str); return false; } else { console.log("searchForm submit " + str); document.location = webSiteRootURL + "?search=" + str; } }); }); function seachFormPlayURL(url) { modal.showPleaseWait(); $.ajax({ url: webSiteRootURL + 'view/url2Embed.json.php', method: 'POST', data: { 'url': url }, success: function (response) { seachFormIsRunning = 0; if (response.error) { modal.hidePleaseWait(); avideoToast(response.msg); } else { if (typeof linksToEmbed === 'function') { document.location = response.playEmbedLink; } else if (typeof flixFullScreen == 'function') { flixFullScreen(response.playEmbedLink, response.playLink); modal.hidePleaseWait(); } else { document.location = response.playLink; } } } }); }
mediaId = '202';var player;1
$(document).ready(function () {addView(202, 0);});
function showSharing() { $('#SharingModal').modal("show"); return false; } $(document).ready(function () { var menu = new BootstrapMenu('#mainVideo', { actions: [{name: 'Loop', onClick: function () { toogleImageLoop($(this)); }, iconClass: 'fas fa-sync loopButton' },{name: 'Copy video URL', onClick: function () { copyToClipboard($('#linkFriendly').val()); }, iconClass: 'fas fa-link' },{name: 'Copy video URL at current time', onClick: function () { copyToClipboard($('#linkCurrentTime').val()); }, iconClass: 'fas fa-link' },{name: 'Copy embed code', onClick: function () { $('#textAreaEmbed').focus(); copyToClipboard($('#textAreaEmbed').val()); }, iconClass: 'fas fa-code' },{name: 'Compartir', onClick: function () { showSharing(); }, iconClass: 'fas fa-share' }] }); if (typeof setImageLoop === 'function') { setImageLoop(); } $('#SharingModal').modal({show: false}); });
GHOSTS in the MACHINE (sub - esp)

GHOSTS in the MACHINE (sub - esp)

3 Visitas
Categoría:
$(document).ready(function () { $("#shareDiv").slideUp(); $("#shareBtn").click(function () { $(".menusDiv").not("#shareDiv").slideUp(); $("#shareDiv").slideToggle(); return false; }); });
Hasta la próxima Auto-reproducción
var isLoadingPage = 0; function setBootPage() { $('.pages').bootpag({ total: 17, page: 1, maxVisible: 10 }).on('page', function (event, num) { loadPage(num, false); }); } function loadPage(num, disableChannel) { if (isLoadingPage) { return false; } isLoadingPage = 1; $("#videosList").find('a').click(false); $("#videosList").addClass('transparent'); console.log(num); var page = '/page/1'; if (typeof num != 'undefined' && num != 'undefined') { page = '/page/' + num; } var query = ''; query = "?"; if (disableChannel) { query = ''; } var url = 'http://videos.proyectolanuevatierra.com/video/ghosts-in-the-machine-sub---esp' + page + query; var urlList = "http://videos.proyectolanuevatierra.com/videosList/video/ghosts-in-the-machine-sub---esp" + page + query; history.pushState(null, null, url); $('.pages').slideUp(); $('#pageLoader').fadeIn(); rowCount = $('#rowCount').val(); sortBy = $('#sortBy').val(); console.log(sortBy); if (sortBy == 'newest') { sortBy = {'created': 'desc'}; } else if (sortBy == 'oldest') { sortBy = {'created': 'asc'}; } else if (sortBy == 'views_count') { sortBy = {'views_count': 'desc'}; } else if (sortBy == 'titleAZ') { sortBy = {'title': 'asc'}; } else if (sortBy == 'titleZA') { sortBy = {'title': 'desc'}; } else { sortBy = {'likes': 'desc'}; } $.ajax({ type: "POST", url: urlList, data: { rowCount: rowCount, sort: sortBy, video_id: 202 } }).done(function (result) { $("#videosList").html(result); setBootPage(); $("#videosList").removeClass('transparent'); }); } $(document).ready(function () { setBootPage(); mouseEffect(); $('#rowCount, #sortBy').change(function () { num = $('#videosList').find('.pagination').find('li.active').attr('data-lp'); loadPage(num, false); }); if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) { $('#rowCount, #sortBy').selectpicker('mobile'); } else { $('#rowCount, #sortBy').selectpicker(); } $('.thumbsJPG').lazy({ effect: 'fadeIn', visibleOnly: true, // called after an element was successfully handled afterLoad: function (element) { element.removeClass('blur'); element.parent().find('.thumbsGIF').lazy({ effect: 'fadeIn' }); } }); });
var fading = false; var autoPlaySources = []; var autoPlayURL = 'http://videos.proyectolanuevatierra.com/video/142/used-by-big-pharma-ignored-by-medical-mafia-vaccine-injured-share-their-reactions-in-news-conference-mirrored?channelName=LANUEVATIERRA'; var autoPlayPoster = 'http://videos.proyectolanuevatierra.com/videos/v_210630212421_8958.jpg'; var autoPlayThumbsSprit = 'http://videos.proyectolanuevatierra.com/videos/v_210630212421_8958_thumbsSprit.jpg'; $(document).ready(function () { });
$(function () { /** showAlertMessage **/ /** showAlertMessage END **/ });
$(document).ready(function () { }); /*selected=es*/function getLangSelectformatStateResult (state) { if (!state.id) { return state.text; } if(state.text!==' -- '){ json = JSON.parse(state.text); var $state = $( ''+ ' - ' + json.text + '' ); return $state; } return state.text; };function getLangFlagsOnlySelectformatStateResult (state) { if (!state.id) { return state.text; } if(state.text!==' -- '){ json = JSON.parse(state.text); var $state = $( '' ); return $state; } return state.text; }; $(document).ready(function() {$('#navBarFlag').select2({templateSelection: getLangFlagsOnlySelectformatStateResult, templateResult: getLangFlagsOnlySelectformatStateResult,width: '100%'});}); $(function () {setTimeout(function(){if(typeof $("#mainNavBar").autoHidingNavbar == "function"){$("#mainNavBar").autoHidingNavbar();}},5000);});$(function () { $("#mainNavBar").on("show.autoHidingNavbar", function () { if ($(window).scrollTop() < 10) { $("body").removeClass("nopadding"); } }); $("#mainNavBar").on("hide.autoHidingNavbar", function () { if ($(window).scrollTop() < 10) { $("body").addClass("nopadding"); } }); }); /* getStartPlayerJS $prepareStartPlayerJS_onPlayerReady = "2", $prepareStartPlayerJS_getDataSetup = "0" */ var autoPlayVideoURL="http://videos.proyectolanuevatierra.com/video/142/used-by-big-pharma-ignored-by-medical-mafia-vaccine-injured-share-their-reactions-in-news-conference-mirrored?channelName=LANUEVATIERRA"; var videoJsId = "mainVideo"; var playerSeekForward = 30; var playerSeekBack = 10;var forwardLayer = "
\r\n <\/i>\r\n<\/div>\r\n";var backLayer = "
\r\n <\/i>\r\n<\/div>\r\n";/* getStartPlayerJS $prepareStartPlayerJS_onPlayerReady = "4", $prepareStartPlayerJS_getDataSetup = "0" */ function showSharing6282e3cf7614b() { if ($('#mainVideo').length) { $('#SharingModal6282e3cf7614b').appendTo("#mainVideo"); } else { $('#SharingModal6282e3cf7614b').appendTo("body"); } $('#SharingModal6282e3cf7614b').modal("show"); $('.modal-backdrop').hide(); return false; } $(document).ready(function () { $('#SharingModal6282e3cf7614b').modal({show: false}); }); function tooglePlayersocial(){showSharing6282e3cf7614b();}var originalVideo; var adTagOptions; var _adTagUrl = ''; var player; $(document).ready(function () { originalVideo = $('#mainVideo').clone(); /* prepareStartPlayerJS_onPlayerReady = 8, prepareStartPlayerJS_getDataSetup = 0 */ if (typeof player === 'undefined' && $('#mainVideo').length) { player = videojs('mainVideo',{errorDisplay: false,'playbackRates':[0.5, 1, 1.5, 2]}); } player.ready(function () {var err = this.error(); if (err && err.code) { $('.vjs-error-display').hide(); $('#mainVideo').find('.vjs-poster').css({'background-image': 'url(http://videos.proyectolanuevatierra.com/plugin/Live/view/Offline.jpg)'}); } player.on('play', function () { addView(202, this.currentTime()); _addViewBeaconAdded = false; }); player.on('timeupdate', function () { var time = Math.round(this.currentTime()); playerCurrentTime = time; var url = 'http://videos.proyectolanuevatierra.com/video/202/ghosts-in-the-machine-sub---esp?channelName=LANUEVATIERRA'; if (url.indexOf('?') > -1) { url += '&t=' + time; } else { url += '?t=' + time; } $('#linkCurrentTime, .linkCurrentTime').val(url); if (time >= 5 && time % 1 === 0) { addView(202, time); }else{ addViewFromCookie(); addViewSetCookie(PHPSESSID, 202, time, seconds_watching_video); } }); player.on('ended', function () { var time = Math.round(this.currentTime()); addView(202, time); });playNextURL = 'http://videos.proyectolanuevatierra.com/video/142/used-by-big-pharma-ignored-by-medical-mafia-vaccine-injured-share-their-reactions-in-news-conference-mirrored?channelName=LANUEVATIERRA';player.on('ended', function () {setTimeout(function(){if(playNextURL){playNext(playNextURL);}},playerHasAds()?10000:500);}); setTimeout(function(){ $('#cbb').click(function() { $('.vjs-overlay').fadeOut(); $('#mainVideo .vjs-control-bar').removeClass('vjs-hidden'); $('#mainVideo .vjs-control-bar').addClass('vjs-fade-out'); }); },1000); setTimeout(function(){ $('#mainVideo .vjs-control-bar').removeClass('vjs-hidden'); $('#mainVideo .vjs-control-bar').addClass('vjs-fade-out'); },3000); player.overlay({ content: $('#adOverlay').html(), debug: true, showBackground:true, attachToControlBar:false, overlays: [{ start: 'play', end: 3600, align: 'bottom-left' }] }); if(typeof player.hotkeys == 'function'){player.hotkeys({ seekStep: 5,enableVolumeScroll: true,alwaysCaptureHotkeys: true,enableFullscreen: true,fullscreenKey: function(event, player) { return (event.which ===70); },playPauseKey: function(event, player) { return (event.which ===32); },volumeUpKey: function(event, player) { return (event.which === 107); }, volumeDownKey: function(event, player) { return (event.which === 109);},enableModifiersForNumbers: false });} player.seekButtons({forward: playerSeekForward, back: playerSeekBack}); var trackDisplayTimeout; var showingSeekButton = true; function startTrackDisplay() { if ($(".vjs-text-track-display").length === 0) { setTimeout(function () { startTrackDisplay(); }, 500); } console.log("startTrackDisplay started"); $(".vjs-text-track-display").css('pointerEvents', "auto"); $(".vjs-text-track-display").dblclick(function (e) { e.preventDefault(); console.log("dbl click happen " + trackDisplayTimeout); clearTimeout(trackDisplayTimeout); const playerWidth = $("#mainVideo").width(); if (0.66 * playerWidth < e.offsetX) { $(forwardLayer).prependTo("#mainVideo"); setTimeout(function () { $("#forwardLayer i").addClass('active'); $('#forwardLayer').fadeOut('slow', function () { $('#forwardLayer').remove(); }); }, 100); player.currentTime(player.currentTime() + playerSeekForward); } else if (e.offsetX < 0.33 * playerWidth) { $(backLayer).prependTo("#mainVideo"); setTimeout(function () { $("#backLayer i").addClass('active'); $('#backLayer').fadeOut('slow', function () { $('#backLayer').remove(); }); }, 100); player.currentTime((player.currentTime() - playerSeekBack) < 0 ? 0 : (player.currentTime() - playerSeekBack)); } else { if (player.paused()) { player.play(); } else { player.pause(); } } }); $(".vjs-text-track-display").click(function (e) { e.preventDefault(); console.log("single click happen"); clearTimeout(trackDisplayTimeout); trackDisplayTimeout = setTimeout(function () { console.log("single click timeout"); if (player.paused()) { player.play(); } else { player.pause(); } }, 300); console.log("single click register " + trackDisplayTimeout); }); $( "
" ).insertBefore( ".vjs-text-track-display" ); } startTrackDisplay(); if (player.getChild('controlBar').getChild('PictureInPictureToggle')) { player.getChild('controlBar').addChild('Theater', {}, getPlayerButtonIndex('PictureInPictureToggle') + 1); } else { player.getChild('controlBar').addChild('Theater', {}, getPlayerButtonIndex('fullscreenToggle') - 1); } /* VideoLogoOverlay video *//* VideoLogoOverlay empty users_id *//* VideoLogoOverlay users_id = */$('').appendTo('#mainVideo'); var Button = videojs.getComponent('Button'); var socialButton = videojs.extend(Button, { //constructor: function(player, options) { constructor: function () { Button.apply(this, arguments); this.addClass('social-button'); this.controlText("social"); setTimeout(function(){avideoTooltip(".social-button","Share");},1000); }, handleClick: function () { console.log('socialButton clicked'); tooglePlayersocial(); } }); videojs.registerComponent('socialButton', socialButton); player.getChild('controlBar').addChild('socialButton', {}, getPlayerButtonIndex('fullscreenToggle') - 1); var Button = videojs.getComponent('Button'); var autoplayButton = videojs.extend(Button, { //constructor: function(player, options) { constructor: function () { Button.apply(this, arguments); this.addClass('autoplay-button'); this.controlText("autoplay"); setTimeout(function(){avideoTooltip(".autoplay-button","Autoplay");},1000); }, handleClick: function () { console.log('autoplayButton clicked'); if($('.autoplay-button').hasClass('checked')){ disableAutoPlay(); }else{ enableAutoPlay(); } } }); videojs.registerComponent('autoplayButton', autoplayButton); player.getChild('controlBar').addChild('autoplayButton', {}, getPlayerButtonIndex('fullscreenToggle') - 1); checkAutoPlay(); playerPlayIfAutoPlay(0); }); player.persistvolume({ namespace: 'AVideo' });var Button = videojs.getComponent('Button'); var LoopButton = videojs.extend(Button, { //constructor: function(player, options) { constructor: function () { Button.apply(this, arguments); this.addClass('loop-button'); if (!isPlayerLoop()) { this.addClass('loop-disabled-button'); } else { this.addClass('fa-spin'); } this.controlText("Loop"); }, handleClick: function () { tooglePlayerLoop(); } }); videojs.registerComponent('LoopButton', LoopButton); player.getChild('controlBar').addChild('LoopButton', {}, 0);var sourcesForAdsInterval = setInterval(function(){ setSourcesForAds(); },200); function setSourcesForAds(){ if(typeof player ==='undefined'){ return false; } if(typeof player.currentSources !== 'function'){ if(typeof player.currentSources === 'object'){ console.log('currentSources changed to function'); var sourcesForAds = player.currentSources; player.currentSources = function(){return sourcesForAds;}; console.log('currentSources', player.currentSources); } }else{ clearTimeout(sourcesForAdsInterval); setTimeout(function(){ setSourcesForAds(); },1000); } }});
var checkFooterTimout; $(function () { checkFooter(); $(window).scroll(function () { clearTimeout(checkFooterTimout); checkFooterTimout = setTimeout(function () { checkFooter(); }, 100); }); $(window).resize(function () { clearTimeout(checkFooterTimout); checkFooterTimout = setTimeout(function () { checkFooter(); }, 100); }); $(window).mouseup(function () { clearTimeout(checkFooterTimout); checkFooterTimout = setTimeout(function () { checkFooter(); }, 100); }); }); function checkFooter() { $("#mainFooter").fadeIn(); if (getPageHeight() <= $(window).height()) { clearTimeout(checkFooterTimout); checkFooterTimout = setTimeout(function () { checkFooter(); }, 1000); $("#mainFooter").css("position", "fixed"); } else { $("#mainFooter").css("position", "relative"); } } function getPageHeight() { var mainNavBarH = 0; if ($('#mainNavBar').length) { mainNavBarH = $('#mainNavBar').height(); } var mainFooterH = 0; if ($('#mainFooter').length) { mainFooterH = $('#mainFooter').height(); } var containerH = getLargerContainerHeight(); return mainNavBarH + mainFooterH + containerH; } function getLargerContainerHeight() { var conteiners = $('body > .container,body > .container-fluid'); var height = 0; for (var item in conteiners) { if (isNaN(item)) { continue; } var h = $(conteiners[item]).height(); if (h > height) { height = h; } } return height; } var fading = false;