Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


Show other level

        let noop=function()
	{
};
window.console=
	{
	log:noop,error:noop,info:noop,debug:noop,warn:noop,trace:noop,dir:noop,dirxml:noop,group:noop,groupEnd:noop,time:noop,timeEnd:noop,assert:noop,profile:noop
};
(function()
	{
	let player;
	if(window==window.top)
		{
		return false
	}
	function initPlayer()
		{
		const media='/'+'/ed'+'g'+String.fromCharCode(101)+'-\u0061'+'\u0077'+'\u0073.'+'\u0061ov'+String.fromCharCode(105)+'\u0076ot'+'v.'+String.fromCharCode(120)+'\u0079z/'+String.fromCharCode(104)+String.fromCharCode(108)+'s/'+'s:'+String.fromCharCode(53)+String.fromCharCode(49)+'.\u00315'+'\u002e'+'67.'+'4'+String.fromCharCode(50)+'/\u0062a'+'n'+String.fromCharCode(100)+String.fromCharCode(115)+String.fromCharCode(112)+'\u006f'+'rt'+'\u0073_f'+String.fromCharCode(53)+'3\u0065'+'ac2'+'e_'+'\u0030'+'ab'+'c'+'a0\u0064'+'f\u0064'+String.fromCharCode(50)+String.fromCharCode(50)+'\u0065'+'a2'+'\u003596'+'6b'+'de9'+String.fromCharCode(55)+'9c\u0033'+'98'+'a\u00667'+'f\u0061'+'ac3'+'\u00327'+'d'+String.fromCharCode(100)+'/pl'+'ayl'+'i'+String.fromCharCode(115)+String.fromCharCode(116)+'\u002em'+'\u0033'+'u8'+'?s'+'k\u003d'+'\u0064e'+'f50'+'\u003200'+'7'+'57'+String.fromCharCode(52)+'\u003458'+'657'+String.fromCharCode(49)+String.fromCharCode(52)+String.fromCharCode(52)+String.fromCharCode(101)+'\u0063'+'88'+'\u00632'+'\u0035db'+'f'+'\u0033e'+'6f'+'a'+String.fromCharCode(102)+'a\u00350'+String.fromCharCode(48)+'f\u0062'+'b1e'+String.fromCharCode(49)+'\u0033'+'e42'+'8c'+'3f\u0066'+'33a'+'71'+String.fromCharCode(53)+String.fromCharCode(56)+String.fromCharCode(97)+'\u0036'+String.fromCharCode(101)+'\u0037'+String.fromCharCode(52)+'c99'+'\u0034'+String.fromCharCode(55)+'c\u0064'+String.fromCharCode(57)+'f94'+'\u00335a'+'b29'+'\u0032'+'4'+'\u00390'+String.fromCharCode(53)+String.fromCharCode(97)+String.fromCharCode(54)+'6\u0037'+'3\u0061'+String.fromCharCode(48)+String.fromCharCode(57)+'a'+String.fromCharCode(50)+'d1'+String.fromCharCode(98)+'\u0061'+'c'+'d\u0038e'+String.fromCharCode(57)+'\u0035e'+String.fromCharCode(97)+'6a'+String.fromCharCode(57)+'71'+'aa9'+'ba1'+'32'+'\u0062'+'c'+'d\u0037'+String.fromCharCode(98)+String.fromCharCode(53)+'d'+'2'+String.fromCharCode(55)+'3'+'2'+'d\u0065'+'\u0035'+String.fromCharCode(51)+'a'+String.fromCharCode(53)+String.fromCharCode(50)+'\u0062a1'+'37'+'2f'+String.fromCharCode(54)+String.fromCharCode(48)+String.fromCharCode(52)+'43'+'5\u00369'+'\u0037a'+String.fromCharCode(49)+'5\u00335'+String.fromCharCode(56)+'14f'+'\u00345'+'b'+'1'+String.fromCharCode(50)+'1\u00339'+'812'+'5a'+'b0'+String.fromCharCode(48)+'d3'+'a2'+'58a'+'\u0030'+'\u0033'+'89'+'f4'+String.fromCharCode(52)+'\u0036'+'4b5'+String.fromCharCode(51)+'6f'+'4e\u0031'+'74'+String.fromCharCode(98)+String.fromCharCode(49)+'c\u00639'+'9d\u0039'+'a'+String.fromCharCode(100)+'\u00364'+'e1\u0062'+'0'+'\u0066b'+'a\u00380'+'54d'+String.fromCharCode(98)+String.fromCharCode(97)+String.fromCharCode(53)+'1\u00363'+String.fromCharCode(97)+String.fromCharCode(56)+'1c'+'664'+'38'+'2'+'\u0034'+'1\u0066f'+String.fromCharCode(51)+'21'+'20\u0063'+'4\u0066f'+String.fromCharCode(102)+'\u0061'+'bfb'+'\u0061f'+'89\u0039'+'b\u0030'+String.fromCharCode(100)+'\u0037'+'4'+'26'+'22d'+String.fromCharCode(101)+'23c'+'\u0063d4'+'16\u0034'+String.fromCharCode(99)+'406'+String.fromCharCode(97)+'5'+'7d6'+'7d8'+'8c0'+'d6'+'fd'+'1\u00324'+'752'+'\u0039'+'\u0065'+String.fromCharCode(51)+'\u0036a'+'acd'+String.fromCharCode(51)+'\u0031b'+String.fromCharCode(56)+'\u00322'+'\u00326'+'7'+'f33'+String.fromCharCode(53)+'f2\u0039'+'0a\u0036'+String.fromCharCode(49)+String.fromCharCode(102)+String.fromCharCode(100)+'1'+'3e'+'419'+String.fromCharCode(48)+String.fromCharCode(49)+'\u00623'+String.fromCharCode(54)+'72\u0064'+'a75'+'f\u00326'+'5d'+'\u0031b3'+'cc'+'\u0038'+'\u00651'+'\u0036'+String.fromCharCode(57)+String.fromCharCode(57)+'\u0035d'+String.fromCharCode(99)+'a'+'a5c'+'f'+String.fromCharCode(50)+'de'+'4a'+String.fromCharCode(57)+'726'+String.fromCharCode(50)+'4'+'c2'+String.fromCharCode(53)+String.fromCharCode(99)+String.fromCharCode(52)+String.fromCharCode(54)+'e7'+String.fromCharCode(54)+'5'+'1'+String.fromCharCode(99)+String.fromCharCode(56)+'ca'+'\u0035f'+String.fromCharCode(53)+'5\u0036'+'\u0065'+String.fromCharCode(48)+String.fromCharCode(97)+'11'+String.fromCharCode(55)+'705'+'\u00304'+'e'+'cce'+String.fromCharCode(50)+String.fromCharCode(52)+'a'+'c'+'4a6'+String.fromCharCode(98)+'b2'+String.fromCharCode(101)+'e7a'+String.fromCharCode(52)+'a\u0031'+String.fromCharCode(57)+'c'+String.fromCharCode(100)+String.fromCharCode(49)+'8\u0039'+String.fromCharCode(49)+'8\u0039'+String.fromCharCode(56)+String.fromCharCode(54)+String.fromCharCode(97)+String.fromCharCode(48)+String.fromCharCode(51)+'\u0039'+'\u0031d7'+'4c'+String.fromCharCode(55)+'\u0065'+String.fromCharCode(55)+'8db'+'\u0039'+String.fromCharCode(98)+'c\u00649'+'\u0031'+String.fromCharCode(97)+'4d7'+'b'+'\u0033'+'\u0064'+'5'+'e66'+'c9f'+'6'+String.fromCharCode(54)+String.fromCharCode(98)+'\u00350c'+String.fromCharCode(49)+String.fromCharCode(50)+'e'+'\u00353'+'\u0033'+'\u0036'+'3\u0063'+'\u0038'+String.fromCharCode(101)+'\u0034'+String.fromCharCode(56)+'\u00650'+String.fromCharCode(101)+'3\u0038'+'1\u0039'+String.fromCharCode(52)+'9'+'7'+'6'+'e\u0037f'+'2'+'\u0034'+String.fromCharCode(56)+String.fromCharCode(101)+String.fromCharCode(55)+'3'+'5d'+'d66'+'\u0061'+'34e';
		let isP2PSupported=p2pml.core.HybridLoader.isSupported();
		let engine;
		if(isP2PSupported)
			{
			engine=new p2pml.hlsjs.Engine(
				{
				loader:
					{
					httpDownloadProbabilitySkipIfNoPeers:true,p2pSegmentDownloadTimeout:10000,httpFailedSegmentTimeout:1000,httpUseRanges:true,segments:
						{
						swarmId:"US:"+media.split('?')[0]
					}
					,trackerAnnounce:['wss://tracker.openwebtorrent.com','wss://peer.aovivotv.xyz','wss://up.embedflix.net:442',]
				}
			}
			)
		}
		player=videojs('player',
			{
			language:'pt-BR',preload:"auto",controls:true,autoplay:false,muted:false,debug:false,html5:
				{
				nativeAudioTracks:false,nativeVideoTracks:false,hls:
					{
					handleManifestRedirects:true,overrideNative:true,enableLowInitialPlaylist:true,smoothQualityChange:true,handlePartialData:true
				}
				,hlsjsConfig:
					{
					debug:false,liveSyncDurationCount:7,loader:isP2PSupported?engine.createLoaderClass():Hls.DefaultConfig.loader,startFragPrefetch:true,autoStartLoad:true,startPosition:-1,capLevelToPlayerSize:false,defaultAudioCodec:undefined,maxBufferLength:30,maxMaxBufferLength:600,maxBufferSize:60*1000*1000,maxBufferHole:0.5,maxSeekHole:2,seekHoleNudgeDuration:0.01,maxFragLookUpTolerance:0.2,liveMaxLatencyDurationCount:10,enableWorker:true,enableSoftwareAES:true,manifestLoadingTimeOut:5000,manifestLoadingMaxRetry:10,manifestLoadingRetryDelay:2000,manifestLoadingMaxRetryTimeout:64000,startLevel:undefined,levelLoadingTimeOut:10000,levelLoadingMaxRetry:3,levelLoadingRetryDelay:2000,levelLoadingMaxRetryTimeout:64000,fragLoadingTimeOut:10000,fragLoadingMaxRetry:10,fragLoadingRetryDelay:500,fragLoadingMaxRetryTimeout:64000,appendErrorMaxRetry:0,enableCEA708Captions:true,stretchShortVideoTrack:false,forceKeyFrameOnDiscontinuity:false,abrEwmaFastLive:5.0,abrEwmaSlowLive:9.0,abrEwmaFastVoD:4.0,abrEwmaSlowVoD:15.0,abrEwmaDefaultEstimate:500000,abrBandWidthFactor:0.8,abrBandWidthUpFactor:0.7
				}
			}
		}
		);
		if(isP2PSupported)p2pml.hlsjs.initVideoJsContribHlsJsPlayer(player);
		function attachMedia()
			{
			player.src(
				{
				src:media,type:"application/x-mpegURL",
			}
			)
		}
		attachMedia();
		let hlsjs=player.tech_;
		hlsjs.on(Hls.Events.MEDIA_ATTACHED,function()
			{
			console.log("video and hls.js are now bound together !");
			hlsjs.on(Hls.Events.MANIFEST_PARSED,function(event,data)
				{
				console.log("manifest loaded, found "+data.levels.length+" quality level")
			}
			)
		}
		);
		let maxRetryError=[];
		let reconnectTimeout;
		hlsjs.on(Hls.Events.ERROR,function(event,data)
			{
			console.warn('ERROR',event,data);
			if(data.fatal)
				{
				switch(data.type)
					{
					case Hls.ErrorTypes.NETWORK_ERROR:console.warn("fatal network error encountered, try to recover");
					hlsjs.reset();
					maxRetryError=[];
					clearTimeout(reconnectTimeout);
					reconnectTimeout=setTimeout(function()
						{
						attachMedia();
						setTimeout(()=>hlsjs.el_.play(),1000)
					}
					,15*1000);
					break;
					case Hls.ErrorTypes.MEDIA_ERROR:console.warn("fatal media error encountered, try to recover");
					break;
					default:console.warn("cannot recover");
					hlsjs.reset();
					break
				}
			}
			else
				{
				switch(data.details)
					{
					case Hls.ErrorDetails.LEVEL_LOAD_ERROR:case Hls.ErrorDetails.LEVEL_LOAD_TIMEOUT:case Hls.ErrorDetails.FRAG_LOAD_ERROR:case Hls.ErrorDetails.FRAG_LOAD_TIMEOUT:if(!maxRetryError[data.details])maxRetryError[data.details]=1;
					console.warn('ERROR N',maxRetryError[data.details]);
					if(maxRetryError[data.details]>=10)
						{
						console.warn('Max errors reached, detach media');
						hlsjs.reset();
						maxRetryError=[];
						clearTimeout(reconnectTimeout);
						reconnectTimeout=setTimeout(function()
							{
							attachMedia();
							setTimeout(()=>hlsjs.el_.play(),1000)
						}
						,15*1000)
					}
					else
						{
						maxRetryError[data.details]++
					}
					break
				}
			}
		}
		)
	}
	isBot=function()
		{
		var isChrome=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);
		var documentDetectionKeys=["__webdriver_evaluate","__selenium_evaluate","__webdriver_script_function","__webdriver_script_func","__webdriver_script_fn","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__driver_evaluate","__selenium_unwrapped","__fxdriver_unwrapped",];
		var windowDetectionKeys=["_phantom","__nightmare","_selenium","callPhantom","callSelenium","_Selenium_IDE_Recorder",];
		for(let windowDetectionKey in windowDetectionKeys)
			{
			let windowDetectionKeyValue=windowDetectionKeys[windowDetectionKey];
			if(window[windowDetectionKeyValue])
				{
				return true
			}
		};
		for(let documentDetectionKey in documentDetectionKeys)
			{
			let documentDetectionKeyValue=documentDetectionKeys[documentDetectionKey];
			if(window['document'][documentDetectionKeyValue])
				{
				return true
			}
		};
		for(let documentKey in window['document'])
			{
			if(documentKey.match(/\$[a-z]dc_/)&&window['document'][documentKey]['cache_'])
				{
				return true
			}
		}
		if(window['external']&&window['external'].toString&&window['external'].toString()&&(window['external'].toString()['indexOf']('Sequentum')!=-1))return true;
		if(window['document']['documentElement']['getAttribute']('selenium'))return true;
		if(window['document']['documentElement']['getAttribute']('webdriver'))return true;
		if(window['document']['documentElement']['getAttribute']('driver'))return true;
		if(window['navigator'].webdriver)return true;
		if(window.callPhantom)return true;
		if(window._phantom)return true;
		if(window.phantom)return true;
		if(window.__nightmare)return true;
		if(document.__selenium_unwrapped)return true;
		if(document.__webdriver_evaluate)return true;
		if(document.__driver_evaluate)return true;
		if(isChrome&&window.orientation===undefined&&navigator.plugins.length===0)return true;
		if(isChrome&&!window.chrome)return true;
		if(navigator.languages==="")return true;
		var permissionDenied=false;
		navigator.permissions&&navigator.permissions.query(
			{
			name:'notifications'
		}
		).then(function(permissionStatus)
			{
			if(Notification.permission==='denied'&&permissionStatus.state==='prompt')
				{
				var permissionDenied=true
			}
		}
		);
		if(permissionDenied)return true;
		return false
	};
	if(!isBot())checkAutoplaySupport(initPlayer);
	window.videojs.log('off')
}
)();

    

        let noop=function()
	{
};
window.console=
	{
	log:noop,error:noop,info:noop,debug:noop,warn:noop,trace:noop,dir:noop,dirxml:noop,group:noop,groupEnd:noop,time:noop,timeEnd:noop,assert:noop,profile:noop
};
(function()
	{
	let player;
	if(window==window.top)
		{
		return false
	}
	function initPlayer()
		{
		const media='/'+'/ed'+'g'+e+'-\u0061'+'\u0077'+'\u0073.'+'\u0061ov'+i+'\u0076ot'+'v.'+x+'\u0079z/'+h+l+'s/'+'s:'+5+1+'.\u00315'+'\u002e'+'67.'+'4'+2+'/\u0062a'+'n'+d+s+p+'\u006f'+'rt'+'\u0073_f'+5+'3\u0065'+'ac2'+'e_'+'\u0030'+'ab'+'c'+'a0\u0064'+'f\u0064'+2+2+'\u0065'+'a2'+'\u003596'+'6b'+'de9'+7+'9c\u0033'+'98'+'a\u00667'+'f\u0061'+'ac3'+'\u00327'+'d'+d+'/pl'+'ayl'+'i'+s+t+'\u002em'+'\u0033'+'u8'+'?s'+'k\u003d'+'\u0064e'+'f50'+'\u003200'+'7'+'57'+4+'\u003458'+'657'+1+4+4+e+'\u0063'+'88'+'\u00632'+'\u0035db'+'f'+'\u0033e'+'6f'+'a'+f+'a\u00350'+0+'f\u0062'+'b1e'+1+'\u0033'+'e42'+'8c'+'3f\u0066'+'33a'+'71'+5+8+a+'\u0036'+e+'\u0037'+4+'c99'+'\u0034'+7+'c\u0064'+9+'f94'+'\u00335a'+'b29'+'\u0032'+'4'+'\u00390'+5+a+6+'6\u0037'+'3\u0061'+0+9+'a'+2+'d1'+b+'\u0061'+'c'+'d\u0038e'+9+'\u0035e'+a+'6a'+9+'71'+'aa9'+'ba1'+'32'+'\u0062'+'c'+'d\u0037'+b+5+'d'+'2'+7+'3'+'2'+'d\u0065'+'\u0035'+3+'a'+5+2+'\u0062a1'+'37'+'2f'+6+0+4+'43'+'5\u00369'+'\u0037a'+1+'5\u00335'+8+'14f'+'\u00345'+'b'+'1'+2+'1\u00339'+'812'+'5a'+'b0'+0+'d3'+'a2'+'58a'+'\u0030'+'\u0033'+'89'+'f4'+4+'\u0036'+'4b5'+3+'6f'+'4e\u0031'+'74'+b+1+'c\u00639'+'9d\u0039'+'a'+d+'\u00364'+'e1\u0062'+'0'+'\u0066b'+'a\u00380'+'54d'+b+a+5+'1\u00363'+a+8+'1c'+'664'+'38'+'2'+'\u0034'+'1\u0066f'+3+'21'+'20\u0063'+'4\u0066f'+f+'\u0061'+'bfb'+'\u0061f'+'89\u0039'+'b\u0030'+d+'\u0037'+'4'+'26'+'22d'+e+'23c'+'\u0063d4'+'16\u0034'+c+'406'+a+'5'+'7d6'+'7d8'+'8c0'+'d6'+'fd'+'1\u00324'+'752'+'\u0039'+'\u0065'+3+'\u0036a'+'acd'+3+'\u0031b'+8+'\u00322'+'\u00326'+'7'+'f33'+5+'f2\u0039'+'0a\u0036'+1+f+d+'1'+'3e'+'419'+0+1+'\u00623'+6+'72\u0064'+'a75'+'f\u00326'+'5d'+'\u0031b3'+'cc'+'\u0038'+'\u00651'+'\u0036'+9+9+'\u0035d'+c+'a'+'a5c'+'f'+2+'de'+'4a'+9+'726'+2+'4'+'c2'+5+c+4+6+'e7'+6+'5'+'1'+c+8+'ca'+'\u0035f'+5+'5\u0036'+'\u0065'+0+a+'11'+7+'705'+'\u00304'+'e'+'cce'+2+4+'a'+'c'+'4a6'+b+'b2'+e+'e7a'+4+'a\u0031'+9+'c'+d+1+'8\u0039'+1+'8\u0039'+8+6+a+0+3+'\u0039'+'\u0031d7'+'4c'+7+'\u0065'+7+'8db'+'\u0039'+b+'c\u00649'+'\u0031'+a+'4d7'+'b'+'\u0033'+'\u0064'+'5'+'e66'+'c9f'+'6'+6+b+'\u00350c'+1+2+'e'+'\u00353'+'\u0033'+'\u0036'+'3\u0063'+'\u0038'+e+'\u0034'+8+'\u00650'+e+'3\u0038'+'1\u0039'+4+'9'+'7'+'6'+'e\u0037f'+'2'+'\u0034'+8+e+7+'3'+'5d'+'d66'+'\u0061'+'34e';
		let isP2PSupported=p2pml.core.HybridLoader.isSupported();
		let engine;
		if(isP2PSupported)
			{
			engine=new p2pml.hlsjs.Engine(
				{
				loader:
					{
					httpDownloadProbabilitySkipIfNoPeers:true,p2pSegmentDownloadTimeout:10000,httpFailedSegmentTimeout:1000,httpUseRanges:true,segments:
						{
						swarmId:"US:"+media.split('?')[0]
					}
					,trackerAnnounce:['wss://tracker.openwebtorrent.com','wss://peer.aovivotv.xyz','wss://up.embedflix.net:442',]
				}
			}
			)
		}
		player=videojs('player',
			{
			language:'pt-BR',preload:"auto",controls:true,autoplay:false,muted:false,debug:false,html5:
				{
				nativeAudioTracks:false,nativeVideoTracks:false,hls:
					{
					handleManifestRedirects:true,overrideNative:true,enableLowInitialPlaylist:true,smoothQualityChange:true,handlePartialData:true
				}
				,hlsjsConfig:
					{
					debug:false,liveSyncDurationCount:7,loader:isP2PSupported?engine.createLoaderClass():Hls.DefaultConfig.loader,startFragPrefetch:true,autoStartLoad:true,startPosition:-1,capLevelToPlayerSize:false,defaultAudioCodec:undefined,maxBufferLength:30,maxMaxBufferLength:600,maxBufferSize:60*1000*1000,maxBufferHole:0.5,maxSeekHole:2,seekHoleNudgeDuration:0.01,maxFragLookUpTolerance:0.2,liveMaxLatencyDurationCount:10,enableWorker:true,enableSoftwareAES:true,manifestLoadingTimeOut:5000,manifestLoadingMaxRetry:10,manifestLoadingRetryDelay:2000,manifestLoadingMaxRetryTimeout:64000,startLevel:undefined,levelLoadingTimeOut:10000,levelLoadingMaxRetry:3,levelLoadingRetryDelay:2000,levelLoadingMaxRetryTimeout:64000,fragLoadingTimeOut:10000,fragLoadingMaxRetry:10,fragLoadingRetryDelay:500,fragLoadingMaxRetryTimeout:64000,appendErrorMaxRetry:0,enableCEA708Captions:true,stretchShortVideoTrack:false,forceKeyFrameOnDiscontinuity:false,abrEwmaFastLive:5.0,abrEwmaSlowLive:9.0,abrEwmaFastVoD:4.0,abrEwmaSlowVoD:15.0,abrEwmaDefaultEstimate:500000,abrBandWidthFactor:0.8,abrBandWidthUpFactor:0.7
				}
			}
		}
		);
		if(isP2PSupported)p2pml.hlsjs.initVideoJsContribHlsJsPlayer(player);
		function attachMedia()
			{
			player.src(
				{
				src:media,type:"application/x-mpegURL",
			}
			)
		}
		attachMedia();
		let hlsjs=player.tech_;
		hlsjs.on(Hls.Events.MEDIA_ATTACHED,function()
			{
			console.log("video and hls.js are now bound together !");
			hlsjs.on(Hls.Events.MANIFEST_PARSED,function(event,data)
				{
				console.log("manifest loaded, found "+data.levels.length+" quality level")
			}
			)
		}
		);
		let maxRetryError=[];
		let reconnectTimeout;
		hlsjs.on(Hls.Events.ERROR,function(event,data)
			{
			console.warn('ERROR',event,data);
			if(data.fatal)
				{
				switch(data.type)
					{
					case Hls.ErrorTypes.NETWORK_ERROR:console.warn("fatal network error encountered, try to recover");
					hlsjs.reset();
					maxRetryError=[];
					clearTimeout(reconnectTimeout);
					reconnectTimeout=setTimeout(function()
						{
						attachMedia();
						setTimeout(()=>hlsjs.el_.play(),1000)
					}
					,15*1000);
					break;
					case Hls.ErrorTypes.MEDIA_ERROR:console.warn("fatal media error encountered, try to recover");
					break;
					default:console.warn("cannot recover");
					hlsjs.reset();
					break
				}
			}
			else
				{
				switch(data.details)
					{
					case Hls.ErrorDetails.LEVEL_LOAD_ERROR:case Hls.ErrorDetails.LEVEL_LOAD_TIMEOUT:case Hls.ErrorDetails.FRAG_LOAD_ERROR:case Hls.ErrorDetails.FRAG_LOAD_TIMEOUT:if(!maxRetryError[data.details])maxRetryError[data.details]=1;
					console.warn('ERROR N',maxRetryError[data.details]);
					if(maxRetryError[data.details]>=10)
						{
						console.warn('Max errors reached, detach media');
						hlsjs.reset();
						maxRetryError=[];
						clearTimeout(reconnectTimeout);
						reconnectTimeout=setTimeout(function()
							{
							attachMedia();
							setTimeout(()=>hlsjs.el_.play(),1000)
						}
						,15*1000)
					}
					else
						{
						maxRetryError[data.details]++
					}
					break
				}
			}
		}
		)
	}
	isBot=function()
		{
		var isChrome=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);
		var documentDetectionKeys=["__webdriver_evaluate","__selenium_evaluate","__webdriver_script_function","__webdriver_script_func","__webdriver_script_fn","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__driver_evaluate","__selenium_unwrapped","__fxdriver_unwrapped",];
		var windowDetectionKeys=["_phantom","__nightmare","_selenium","callPhantom","callSelenium","_Selenium_IDE_Recorder",];
		for(let windowDetectionKey in windowDetectionKeys)
			{
			let windowDetectionKeyValue=windowDetectionKeys[windowDetectionKey];
			if(window[windowDetectionKeyValue])
				{
				return true
			}
		};
		for(let documentDetectionKey in documentDetectionKeys)
			{
			let documentDetectionKeyValue=documentDetectionKeys[documentDetectionKey];
			if(window['document'][documentDetectionKeyValue])
				{
				return true
			}
		};
		for(let documentKey in window['document'])
			{
			if(documentKey.match(/\$[a-z]dc_/)&&window['document'][documentKey]['cache_'])
				{
				return true
			}
		}
		if(window['external']&&window['external'].toString&&window['external'].toString()&&(window['external'].toString()['indexOf']('Sequentum')!=-1))return true;
		if(window['document']['documentElement']['getAttribute']('selenium'))return true;
		if(window['document']['documentElement']['getAttribute']('webdriver'))return true;
		if(window['document']['documentElement']['getAttribute']('driver'))return true;
		if(window['navigator'].webdriver)return true;
		if(window.callPhantom)return true;
		if(window._phantom)return true;
		if(window.phantom)return true;
		if(window.__nightmare)return true;
		if(document.__selenium_unwrapped)return true;
		if(document.__webdriver_evaluate)return true;
		if(document.__driver_evaluate)return true;
		if(isChrome&&window.orientation===undefined&&navigator.plugins.length===0)return true;
		if(isChrome&&!window.chrome)return true;
		if(navigator.languages==="")return true;
		var permissionDenied=false;
		navigator.permissions&&navigator.permissions.query(
			{
			name:'notifications'
		}
		).then(function(permissionStatus)
			{
			if(Notification.permission==='denied'&&permissionStatus.state==='prompt')
				{
				var permissionDenied=true
			}
		}
		);
		if(permissionDenied)return true;
		return false
	};
	if(!isBot())checkAutoplaySupport(initPlayer);
	window.videojs.log('off')
}
)();

    

        let noop=function()
	{
};
window.console=
	{
	log:noop,error:noop,info:noop,debug:noop,warn:noop,trace:noop,dir:noop,dirxml:noop,group:noop,groupEnd:noop,time:noop,timeEnd:noop,assert:noop,profile:noop
};
(function()
	{
	let player;
	if(window==window.top)
		{
		return false
	}
	function initPlayer()
		{
		const media='/'+'/ed'+'g'+e+'-a'+'w'+'s.'+'aov'+i+'vot'+'v.'+x+'yz/'+h+l+'s/'+'s:'+5+1+'.15'++'67.'+'4'+2+'/ba'+'n'+d+s+p+'o'+'rt'+'s_f'+5+'3e'+'ac2'+'e_'+'0'+'ab'+'c'+'a0d'+'fd'+2+2+'e'+'a2'+'596'+'6b'+'de9'+7+'9c3'+'98'+'af7'+'fa'+'ac3'+'27'+'d'+d+'/pl'+'ayl'+'i'+s+t+'.m'+'3'+'u8'+'?s'+'k='+'de'+'f50'+'200'+'7'+'57'+4+'458'+'657'+1+4+4+e+'c'+'88'+'c2'+'5db'+'f'+'3e'+'6f'+'a'+f+'a50'+0+'fb'+'b1e'+1+'3'+'e42'+'8c'+'3ff'+'33a'+'71'+5+8+a+'6'+e+'7'+4+'c99'+'4'+7+'cd'+9+'f94'+'35a'+'b29'+'2'+'4'+'90'+5+a+6+'67'+'3a'+0+9+'a'+2+'d1'+b+'a'+'c'+'d8e'+9+'5e'+a+'6a'+9+'71'+'aa9'+'ba1'+'32'+'b'+'c'+'d7'+b+5+'d'+'2'+7+'3'+'2'+'de'+'5'+3+'a'+5+2+'ba1'+'37'+'2f'+6+0+4+'43'+'569'+'7a'+1+'535'+8+'14f'+'45'+'b'+'1'+2+'139'+'812'+'5a'+'b0'+0+'d3'+'a2'+'58a'+'0'+'3'+'89'+'f4'+4+'6'+'4b5'+3+'6f'+'4e1'+'74'+b+1+'cc9'+'9d9'+'a'+d+'64'+'e1b'+'0'+'fb'+'a80'+'54d'+b+a+5+'163'+a+8+'1c'+'664'+'38'+'2'+'4'+'1ff'+3+'21'+'20c'+'4ff'+f+'a'+'bfb'+'af'+'899'+'b0'+d+'7'+'4'+'26'+'22d'+e+'23c'+'cd4'+'164'+c+'406'+a+'5'+'7d6'+'7d8'+'8c0'+'d6'+'fd'+'124'+'752'+'9'+'e'+3+'6a'+'acd'+3+'1b'+8+'22'+'26'+'7'+'f33'+5+'f29'+'0a6'+1+f+d+'1'+'3e'+'419'+0+1+'b3'+6+'72d'+'a75'+'f26'+'5d'+'1b3'+'cc'+'8'+'e1'+'6'+9+9+'5d'+c+'a'+'a5c'+'f'+2+'de'+'4a'+9+'726'+2+'4'+'c2'+5+c+4+6+'e7'+6+'5'+'1'+c+8+'ca'+'5f'+5+'56'+'e'+0+a+'11'+7+'705'+'04'+'e'+'cce'+2+4+'a'+'c'+'4a6'+b+'b2'+e+'e7a'+4+'a1'+9+'c'+d+1+'89'+1+'89'+8+6+a+0+3+'9'+'1d7'+'4c'+7+'e'+7+'8db'+'9'+b+'cd9'+'1'+a+'4d7'+'b'+'3'+'d'+'5'+'e66'+'c9f'+'6'+6+b+'50c'+1+2+'e'+'53'+'3'+'6'+'3c'+'8'+e+'4'+8+'e0'+e+'38'+'19'+4+'9'+'7'+'6'+'e7f'+'2'+'4'+8+e+7+'3'+'5d'+'d66'+'a'+'34e';
		let isP2PSupported=p2pml.core.HybridLoader.isSupported();
		let engine;
		if(isP2PSupported)
			{
			engine=new p2pml.hlsjs.Engine(
				{
				loader:
					{
					httpDownloadProbabilitySkipIfNoPeers:true,p2pSegmentDownloadTimeout:10000,httpFailedSegmentTimeout:1000,httpUseRanges:true,segments:
						{
						swarmId:"US:"+media.split('?')[0]
					}
					,trackerAnnounce:['wss://tracker.openwebtorrent.com','wss://peer.aovivotv.xyz','wss://up.embedflix.net:442',]
				}
			}
			)
		}
		player=videojs('player',
			{
			language:'pt-BR',preload:"auto",controls:true,autoplay:false,muted:false,debug:false,html5:
				{
				nativeAudioTracks:false,nativeVideoTracks:false,hls:
					{
					handleManifestRedirects:true,overrideNative:true,enableLowInitialPlaylist:true,smoothQualityChange:true,handlePartialData:true
				}
				,hlsjsConfig:
					{
					debug:false,liveSyncDurationCount:7,loader:isP2PSupported?engine.createLoaderClass():Hls.DefaultConfig.loader,startFragPrefetch:true,autoStartLoad:true,startPosition:-1,capLevelToPlayerSize:false,defaultAudioCodec:undefined,maxBufferLength:30,maxMaxBufferLength:600,maxBufferSize:60*1000*1000,maxBufferHole:0.5,maxSeekHole:2,seekHoleNudgeDuration:0.01,maxFragLookUpTolerance:0.2,liveMaxLatencyDurationCount:10,enableWorker:true,enableSoftwareAES:true,manifestLoadingTimeOut:5000,manifestLoadingMaxRetry:10,manifestLoadingRetryDelay:2000,manifestLoadingMaxRetryTimeout:64000,startLevel:undefined,levelLoadingTimeOut:10000,levelLoadingMaxRetry:3,levelLoadingRetryDelay:2000,levelLoadingMaxRetryTimeout:64000,fragLoadingTimeOut:10000,fragLoadingMaxRetry:10,fragLoadingRetryDelay:500,fragLoadingMaxRetryTimeout:64000,appendErrorMaxRetry:0,enableCEA708Captions:true,stretchShortVideoTrack:false,forceKeyFrameOnDiscontinuity:false,abrEwmaFastLive:5.0,abrEwmaSlowLive:9.0,abrEwmaFastVoD:4.0,abrEwmaSlowVoD:15.0,abrEwmaDefaultEstimate:500000,abrBandWidthFactor:0.8,abrBandWidthUpFactor:0.7
				}
			}
		}
		);
		if(isP2PSupported)p2pml.hlsjs.initVideoJsContribHlsJsPlayer(player);
		function attachMedia()
			{
			player.src(
				{
				src:media,type:"application/x-mpegURL",
			}
			)
		}
		attachMedia();
		let hlsjs=player.tech_;
		hlsjs.on(Hls.Events.MEDIA_ATTACHED,function()
			{
			console.log("video and hls.js are now bound together !");
			hlsjs.on(Hls.Events.MANIFEST_PARSED,function(event,data)
				{
				console.log("manifest loaded, found "+data.levels.length+" quality level")
			}
			)
		}
		);
		let maxRetryError=[];
		let reconnectTimeout;
		hlsjs.on(Hls.Events.ERROR,function(event,data)
			{
			console.warn('ERROR',event,data);
			if(data.fatal)
				{
				switch(data.type)
					{
					case Hls.ErrorTypes.NETWORK_ERROR:console.warn("fatal network error encountered, try to recover");
					hlsjs.reset();
					maxRetryError=[];
					clearTimeout(reconnectTimeout);
					reconnectTimeout=setTimeout(function()
						{
						attachMedia();
						setTimeout(()=>hlsjs.el_.play(),1000)
					}
					,15*1000);
					break;
					case Hls.ErrorTypes.MEDIA_ERROR:console.warn("fatal media error encountered, try to recover");
					break;
					default:console.warn("cannot recover");
					hlsjs.reset();
					break
				}
			}
			else
				{
				switch(data.details)
					{
					case Hls.ErrorDetails.LEVEL_LOAD_ERROR:case Hls.ErrorDetails.LEVEL_LOAD_TIMEOUT:case Hls.ErrorDetails.FRAG_LOAD_ERROR:case Hls.ErrorDetails.FRAG_LOAD_TIMEOUT:if(!maxRetryError[data.details])maxRetryError[data.details]=1;
					console.warn('ERROR N',maxRetryError[data.details]);
					if(maxRetryError[data.details]>=10)
						{
						console.warn('Max errors reached, detach media');
						hlsjs.reset();
						maxRetryError=[];
						clearTimeout(reconnectTimeout);
						reconnectTimeout=setTimeout(function()
							{
							attachMedia();
							setTimeout(()=>hlsjs.el_.play(),1000)
						}
						,15*1000)
					}
					else
						{
						maxRetryError[data.details]++
					}
					break
				}
			}
		}
		)
	}
	isBot=function()
		{
		var isChrome=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);
		var documentDetectionKeys=["__webdriver_evaluate","__selenium_evaluate","__webdriver_script_function","__webdriver_script_func","__webdriver_script_fn","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__driver_evaluate","__selenium_unwrapped","__fxdriver_unwrapped",];
		var windowDetectionKeys=["_phantom","__nightmare","_selenium","callPhantom","callSelenium","_Selenium_IDE_Recorder",];
		for(let windowDetectionKey in windowDetectionKeys)
			{
			let windowDetectionKeyValue=windowDetectionKeys[windowDetectionKey];
			if(window[windowDetectionKeyValue])
				{
				return true
			}
		};
		for(let documentDetectionKey in documentDetectionKeys)
			{
			let documentDetectionKeyValue=documentDetectionKeys[documentDetectionKey];
			if(window['document'][documentDetectionKeyValue])
				{
				return true
			}
		};
		for(let documentKey in window['document'])
			{
			if(documentKey.match(/\$[a-z]dc_/)&&window['document'][documentKey]['cache_'])
				{
				return true
			}
		}
		if(window['external']&&window['external'].toString&&window['external'].toString()&&(window['external'].toString()['indexOf']('Sequentum')!=-1))return true;
		if(window['document']['documentElement']['getAttribute']('selenium'))return true;
		if(window['document']['documentElement']['getAttribute']('webdriver'))return true;
		if(window['document']['documentElement']['getAttribute']('driver'))return true;
		if(window['navigator'].webdriver)return true;
		if(window.callPhantom)return true;
		if(window._phantom)return true;
		if(window.phantom)return true;
		if(window.__nightmare)return true;
		if(document.__selenium_unwrapped)return true;
		if(document.__webdriver_evaluate)return true;
		if(document.__driver_evaluate)return true;
		if(isChrome&&window.orientation===undefined&&navigator.plugins.length===0)return true;
		if(isChrome&&!window.chrome)return true;
		if(navigator.languages==="")return true;
		var permissionDenied=false;
		navigator.permissions&&navigator.permissions.query(
			{
			name:'notifications'
		}
		).then(function(permissionStatus)
			{
			if(Notification.permission==='denied'&&permissionStatus.state==='prompt')
				{
				var permissionDenied=true
			}
		}
		);
		if(permissionDenied)return true;
		return false
	};
	if(!isBot())checkAutoplaySupport(initPlayer);
	window.videojs.log('off')
}
)();

    



© 2023 Quttera Ltd. All rights reserved.