var showPleaseWaitTimeOut = 1000; #lds-62c543734e6d7avideoLoader-wrapper { position: fixed; left: 0 !important; width: 100% !important; height: 100% !important; z-index: 1000; margin: 0 !important; } #lds-62c543734e6d7avideoLoader { 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-62c543734e6d7avideoLoader: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-62c543734e6d7avideoLoader: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-62c543734e6d7avideoLoader-wrapper .lds-62c543734e6d7avideoLoader-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-62c543734e6d7avideoLoader-wrapper .lds-62c543734e6d7avideoLoader-section.section-left { left: 0; } #lds-62c543734e6d7avideoLoader-wrapper .lds-62c543734e6d7avideoLoader-section.section-right { right: 0; } #lds-62c543734e6d7avideoLoader-wrapper .lds-62c543734e6d7avideoLoader-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-62c543734e6d7avideoLoader-wrapper .lds-62c543734e6d7avideoLoader-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-62c543734e6d7avideoLoader-wrapper .lds-62c543734e6d7avideoLoader-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-62c543734e6d7avideoLoader-wrapper .lds-62c543734e6d7avideoLoader-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-62c543734e6d7avideoLoader { opacity: 0; } .loaded #lds-62c543734e6d7avideoLoader-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 showPleaseWaitTimeOut = 1000; #lds-62c543734e6d7avideoLoader-wrapper { position: fixed; left: 0 !important; width: 100% !important; height: 100% !important; z-index: 1000; margin: 0 !important; } #lds-62c543734e6d7avideoLoader { 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-62c543734e6d7avideoLoader: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-62c543734e6d7avideoLoader: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-62c543734e6d7avideoLoader-wrapper .lds-62c543734e6d7avideoLoader-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-62c543734e6d7avideoLoader-wrapper .lds-62c543734e6d7avideoLoader-section.section-left { left: 0; } #lds-62c543734e6d7avideoLoader-wrapper .lds-62c543734e6d7avideoLoader-section.section-right { right: 0; } #lds-62c543734e6d7avideoLoader-wrapper .lds-62c543734e6d7avideoLoader-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-62c543734e6d7avideoLoader-wrapper .lds-62c543734e6d7avideoLoader-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-62c543734e6d7avideoLoader-wrapper .lds-62c543734e6d7avideoLoader-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-62c543734e6d7avideoLoader-wrapper .lds-62c543734e6d7avideoLoader-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-62c543734e6d7avideoLoader { opacity: 0; } .loaded #lds-62c543734e6d7avideoLoader-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 = 'https://flixhouse.com/'; var my_users_id = 0; var my_identification = "Unknown User"; var player; var _serverTime = "1657095027"; var _serverDBTime = "1657120227"; var _serverTimeString = "2022-07-06 01:10:27"; var _serverDBTimeString = "2022-07-06 08:10:27"; var _serverTimezone = "America/Los_Angeles"; var avideoModalIframeFullScreenCloseButton = " $(document).ready(function () { YPTHidenavbar(); });
  • mediaId = '2517';var player;1
    function showSharing() { $('#SharingModal').modal("show"); return false; } $(document).ready(function () { var menu = new BootstrapMenu('#mainVideo', { actions: [{name: 'Share', onClick: function () { showSharing(); }, iconClass: 'fas fa-share' }] }); if (typeof setImageLoop === 'function') { setImageLoop(); } $('#SharingModal').modal({show: false}); });
    Want to watch this again later?
    Sign in to add this video to a playlist. Login
    $(document).ready(function () { loadPL251762c5437359551(); }); var _loadPL251762c5437359551_timeout; function loadPL251762c5437359551(){ clearTimeout(_loadPL251762c5437359551_timeout); ; if(typeof $('#addBtn251762c5437359551').webuiPopover !== 'function' || typeof loadPlayLists !== 'function'){ _loadPL251762c5437359551_timeout = setTimeout(function(){loadPL251762c5437359551()}, 1000); }else{ loadPlayLists('2517', '62c5437359551'); $('#addBtn251762c5437359551').webuiPopover(); $('#addPlayList251762c5437359551').click(function () { modal.showPleaseWait(); $.ajax({ url: 'https://flixhouse.com/objects/playlistAddNew.json.php', method: 'POST', data: { 'videos_id': 2517, 'status': $('#publicPlayList251762c5437359551').is(":checked") ? "public" : "private", 'name': $('#playListName251762c5437359551').val() }, success: function (response) { if (response.status>0) { playList = []; reloadPlayLists(); loadPlayLists('2517', '62c5437359551'); $('#playListName251762c5437359551').val(""); $('#publicPlayList251762c5437359551').prop('checked', true); } modal.hidePleaseWait(); } }); return false; }); } }
    Category:
    Rating:
    Description:
    With archaeological discoveries, astounding fulfillment of prophecies, the Bible is not only a trustworthy historical account but the Book that reveals the God you were created to know.
    $(document).ready(function () { $("#shareBtn").click(function () { $(".menusDiv").not("#shareDiv").slideUp(); $("#shareDiv").slideToggle(); return false; }); });
    .playlistList .videoLink { display: inline-flex; } $(document).ready(function () { setAutoplay(true); });
    var fading = false; var autoPlaySources = []; var autoPlayURL = ''; var autoPlayPoster = ''; var autoPlayThumbsSprit = ''; $(document).ready(function () { });
    $(function () { /** showAlertMessage **/ /** showAlertMessage END **/ });
    var playListsAdding = false; var playList = []; function reloadPlayLists() { //console.log('reloadPlayLists'); $.ajax({ url: webSiteRootURL + 'objects/playlists.json.php', success: function (response) { playList = response; reloadPlayListButtons(); } }); } function reloadPlayListButtons() { //console.log('reloadPlayListButtons'); $('.watchLaterBtnAdded').hide(); $('.favoriteBtnAdded').hide(); $('.watchLaterBtn').show(); $('.favoriteBtn').show(); for (var i in playList) { if (!playList[i].id || (playList[i].status !== 'watch_later' && playList[i].status !== 'favorite')) { continue; } for (var x in playList[i].videos) { if (typeof (playList[i].videos[x]) === 'object') { if (playList[i].status === 'watch_later') { $('.watchLaterBtn' + playList[i].videos[x].videos_id).hide(); $('.watchLaterBtnAdded' + playList[i].videos[x].videos_id).show(); } else if (playList[i].status === 'favorite') { $('.favoriteBtn' + playList[i].videos[x].videos_id).hide(); $('.favoriteBtnAdded' + playList[i].videos[x].videos_id).show(); } } } } } loadPlayListsResponseObject = {timestamp: 0, response: false}; function loadPlayLists(videos_id, crc) { //console.log('loadPlayLists'); if (loadPlayListsResponseObject.timestamp + 5000 < Date.now()) { loadPlayListsResponseObject.timestamp = Date.now(); loadPlayListsResponseObject.response = []; setTimeout(function () { $.ajax({ url: 'https://flixhouse.com/objects/playlists.json.php', cache: true, success: function (response) { loadPlayListsResponseObject.response = response; loadPlayListsResponse(loadPlayListsResponseObject.response, videos_id, crc); } }); ; }, 500); } else { if (loadPlayListsResponseObject.response) { loadPlayListsResponse(loadPlayListsResponseObject.response, videos_id, crc); } else { setTimeout(function () { loadPlayLists(videos_id, crc); }, 1500); } } } function loadPlayListsResponse(response, videos_id, crc) { //console.log('loadPlayListsResponse'); //console.log(response, videos_id, crc); $('.searchlist' + videos_id + crc).html(''); for (var i in response) { if (!response[i].id) { continue; } var icon = "fa fa-lock" if (response[i].status == "public") { icon = "fa fa-globe" } else if (response[i].status == "watch_later") { icon = "fas fa-clock" } else if (response[i].status == "favorite") { icon = "fas fa-heart" } var checked = ""; for (var x in response[i].videos) { if (typeof (response[i].videos[x]) === 'object' && response[i].videos[x].videos_id == videos_id) { checked = "checked"; } } var randId = (("_" + response[i].id) + videos_id) + Math.random(); $(".searchlist" + videos_id + crc).append(' ' + response[i].name_translated + '
    '); } $('.searchlist' + videos_id + crc).btsListFilter('#searchinput' + videos_id + crc, {itemChild: 'span'}); $('.playListsVideosIds' + videos_id).change(function () { if (playListsAdding) { return false; } playListsAdding = true; addVideoToPlayList(videos_id, $(this).is(":checked"), $(this).val()); return false; }); } function addVideoToPlayList(videos_id, isChecked, playlists_id) { //console.log('addVideoToPlayList'); modal.showPleaseWait(); $.ajax({ url: 'https://flixhouse.com/objects/playListAddVideo.json.php', method: 'POST', data: { 'videos_id': videos_id, 'add': isChecked, 'playlists_id': playlists_id }, success: function (response) { reloadPlayLists(); //console.log(".playListsIds_" + playlists_id + '_videos_id_' + videos_id); $(".playListsIds_" + playlists_id + '_videos_id_' + videos_id).prop("checked", isChecked); modal.hidePleaseWait(); setTimeout(function () { playListsAdding = false }, 500); } }); } $(document).ready(function () { reloadPlayLists(); }); $(document).ready(function () { }); if ('mediaSession' in navigator) { navigator.mediaSession.metadata = new MediaMetadata({"title":"Tetelestai","artist":"Encourage TV","album":"TV Series","artwork":[{"src":"https:\/\/flixhousecom.cdn.ypt.me\/videos\/serie_playlists_5ffe09b363ae5\/serie_playlists_5ffe09b363ae5_96.jpg?cache=1657081879_1657081879","sizes":"96x96","type":"image\/jpg"},{"src":"https:\/\/flixhousecom.cdn.ypt.me\/videos\/serie_playlists_5ffe09b363ae5\/serie_playlists_5ffe09b363ae5_128.jpg?cache=1657081879_1657081879","sizes":"128x128","type":"image\/jpg"},{"src":"https:\/\/flixhousecom.cdn.ypt.me\/videos\/serie_playlists_5ffe09b363ae5\/serie_playlists_5ffe09b363ae5_192.jpg?cache=1657081879_1657081879","sizes":"192x192","type":"image\/jpg"},{"src":"https:\/\/flixhousecom.cdn.ypt.me\/videos\/serie_playlists_5ffe09b363ae5\/serie_playlists_5ffe09b363ae5_256.jpg?cache=1657081879_1657081879","sizes":"256x256","type":"image\/jpg"},{"src":"https:\/\/flixhousecom.cdn.ypt.me\/videos\/serie_playlists_5ffe09b363ae5\/serie_playlists_5ffe09b363ae5_384.jpg?cache=1657081879_1657081879","sizes":"384x384","type":"image\/jpg"},{"src":"https:\/\/flixhousecom.cdn.ypt.me\/videos\/serie_playlists_5ffe09b363ae5\/serie_playlists_5ffe09b363ae5_512.jpg?cache=1657081879_1657081879","sizes":"512x512","type":"image\/jpg"}]}); setActionHandlerIfSupported('play', function () { /* Code excerpted. */ player.play(); }); setActionHandlerIfSupported('pause', function () { /* Code excerpted. */ player.pause(); }); setActionHandlerIfSupported('stop', function () { /* Code excerpted. */ player.pause(); }); setActionHandlerIfSupported('seekbackward', function () { /* Code excerpted. */ player.currentTime(player.currentTime() - 5); }); setActionHandlerIfSupported('seekforward', function () { /* Code excerpted. */ player.currentTime(player.currentTime() + 5); }); setActionHandlerIfSupported('seekto', function () { /* Code excerpted. */ console.log('mediaSession seekto'); }); setActionHandlerIfSupported('previoustrack', function () { /* Code excerpted. */ try { player.playlist.previous(); } catch (e) { } }); setActionHandlerIfSupported('nexttrack', function () { /* Code excerpted. */ try { player.playlist.next(); } catch (e) { if (playNextURL) { playNext(playNextURL); } } }); setActionHandlerIfSupported('skipad', function () { /* Code excerpted. */ console.log('mediaSession skipad'); }); setPlaylistUpdate(); } function setPlaylistUpdate() { if (typeof player == 'undefined' || typeof player.playlist == 'undefined') { setTimeout(function () { setPlaylistUpdate(); }, 1000); return false; } console.log('setPlaylistUpdate'); player.on('playlistitem', function () { updateMediaSessionMetadata(); }); } function updateMediaSessionMetadata() { videos_id = 0; key = 0; live_servers_id = 0; live_schedule_id = 0; if (player.playlist) { index = player.playlist.currentIndex(); videos_id = playerPlaylist[index].videos_id; } else if (mediaId) { videos_id = mediaId; } else if (isLive) { key = isLive.key; live_servers_id = isLive.live_servers_id; live_schedule_id = isLive.live_schedule_id; } if (videos_id) { console.log('updateMediaSessionMetadata', videos_id); $.ajax({ url: webSiteRootURL + 'plugin/PlayerSkins/mediaSession.json.php', method: 'POST', data: { 'videos_id': videos_id, 'key': key, 'live_servers_id': live_servers_id, 'live_schedule_id': live_schedule_id, }, success: function (response) { navigator.mediaSession.metadata = new MediaMetadata(response); } }); } } function setActionHandlerIfSupported(action, func) { try { navigator.mediaSession.setActionHandler(action, func); } catch (e) { if (e.name != "TypeError") throw e; } } /*selected=en_US*/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%'});}); /*selected=en_US*/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%'});}); var downloadProtectionToken = 'b0NiUkJPUGNFNnVIWjQwbXVGdHhjVkVQVFdwaGc1ZkpqQUViZ1JhQWp5YTRiMVFSTTJ6OTgwRGROWEtIOGFhbQ==';var session_id = 'dc1f7ca0a6d096c5c296aa036dc865dc';var tsFilesCDN = ''; var videoJsResolutionSwitcherDefault = "'Auto'"; var playVideoOnFullscreen = false function showSharing62c543735c04e() { if ($('#mainVideo').length) { $('#SharingModal62c543735c04e').appendTo("#mainVideo"); } else { $('#SharingModal62c543735c04e').appendTo("body"); } $('#SharingModal62c543735c04e').modal("show"); $('.modal-backdrop').hide(); return false; } $(document).ready(function () { $('#SharingModal62c543735c04e').modal({show: false}); }); function tooglePlayersocial(){showSharing62c543735c04e();}var originalVideo; var adTagOptions; var _adTagUrl = ''; var player; $(document).ready(function () { originalVideo = $('#mainVideo').clone(); /* prepareStartPlayerJS_onPlayerReady = 5, prepareStartPlayerJS_getDataSetup = 0 */ if (typeof player === 'undefined' && $('#mainVideo').length) { player = videojs('mainVideo',{errorDisplay: false,'playbackRates':[0.5, 1, 1.5, 2]}); } player.ready(function () { player.persistvolume({ namespace: 'AVideo' });var err = this.error(); if (err && err.code) { $('.vjs-error-display').hide(); $('#mainVideo').find('.vjs-poster').css({'background-image': 'url(https://flixhouse.com/plugin/Live/view/Offline.jpg)'}); } tracks = player.textTracks(); for (let i = 0; i < tracks.length; i++) { let track = tracks[i]; track.mode = 'disabled'; if (track.kind === 'captions' && track.language === 'US') { track.mode = 'showing'; } } player.on('play', function () { addView(2517, this.currentTime()); _addViewBeaconAdded = false; }); player.on('timeupdate', function () { var time = Math.round(this.currentTime()); playerCurrentTime = time; var url = 'https://flixhouse.com/video/2517/ep-01-in-the-beginning'; if (url.indexOf('?') > -1) { url += '&t=' + time; } else { url += '?t=' + time; } $('#linkCurrentTime, .linkCurrentTime').val(url); if (time >= 5 && time % 1 === 0) { addView(2517, time); }else{ addViewFromCookie(); addViewSetCookie(PHPSESSID, 2517, time, seconds_watching_video); } }); player.on('ended', function () { var time = Math.round(this.currentTime()); addView(2517, time); });playNextURL = 'https://flixhouse.com/video/1325/joseph-and-his-brethren';player.on('ended', function () {setTimeout(function(){if(playNextURL){playNext(playNextURL);}},playerHasAds()?10000:500);}); var Button = videojs.getComponent('Button'); var playListProgramButton = videojs.extend(Button, { //constructor: function(player, options) { constructor: function () { Button.apply(this, arguments); this.addClass('playListProgram-button'); this.controlText("playListProgram"); }, handleClick: function () { console.log('playListProgramButton clicked'); $('#playListHolder').fadeToggle(); } }); videojs.registerComponent('playListProgramButton', playListProgramButton); player.getChild('controlBar').addChild('playListProgramButton', {}, getPlayerButtonIndex('fullscreenToggle') - 1); function playListFadeIn() { $('#playListHolder').fadeIn(); } function playListFadeOut() { $('#playListHolder').fadeOut(); } function startTrackDisplayPlayListHolder() { if ($(".vjs-text-track-display").length === 0) { setTimeout(function () { startTrackDisplayPlayListHolder(); }, 1000); } } 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); });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;