To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video

player.on('ended', (e) => { console.log(e); }); //var hls = player.tech(k).hls; var band = []; var k=0; var hls = player.tech().hls; player.on('timeupdate', function() { //console.log(hls); //console.log(player.tech_); /* //console.log(player.tech.hls.stats.bandwidth); //console.log(player.tech(k).hls.stats.buffered[0].end); band.push=player.tech(k).hls.systemBandwidth; myChart.config.data.labels.push(k); myChart.data.datasets.forEach((dataset) => { dataset.data.push(player.tech(k).hls.bandwidth/1000); jQuery("#band").text('Prędkość: ' + Math.round(player.tech(k).hls.stats.bandwidth/1000) + ' kbps'); jQuery("#packet").text('Pakiety: ' + player.tech(k).hls.stats.mediaRequestsErrored +' błędne / '+player.tech(k).hls.stats.mediaRequests); jQuery("#trans").text('Pobrano: ' + Math.round(player.tech(k).hls.stats.mediaBytesTransferred*1.3/1000000) + ' MB'); if(typeof player.tech(k).hls.stats.buffered[0] !== 'undefined') jQuery("#bufor").text('Bufor video: ' + Math.round(player.tech(k).hls.stats.buffered[0].end - player.tech(k).hls.stats.currentTime) + ' s'); jQuery("#czas").text('Pobrane video: ' + Math.round(player.tech(k).hls.stats.mediaSecondsLoaded) + ' s'); if (dataset.data.length >= 30) { dataset.data.shift(); myChart.config.data.labels.shift(); } myChart.update(); }); k++;*/ }); player.tech().on('usage', event => { console.log(event.name); if (event.name === 'hls-live-resync') { console.log('hls-live-resync'); } if (event.name === 'hls-webvtt') { const tracks = player.remoteTextTracks(); for (let i = 0; i < tracks.length; i++) { const track = tracks[i]; if(track.kind==='subtitles' && track.language === 'pol') { console.log(track.language + '/'+track.id); track.mode = 'showing'; } } } }); videojs.prototype.stop = function(){ this.trigger('stop'); this.off('stop'); this.stopTrackingProgress(); this.stopTrackingCurrentTime(); return this; }; player.tech().on("retryplaylist", event => { //alert(event.name); if(errors_count<10) { restore(); //const myModal = player.createModal('Trwa łączenie z serwerem...'); //myModal.addClass('vjs-my-custom-modal'); $( ".popler-error" ).remove(); $(".video-js").append("
Trwa łączenie z serwerem...
") errors_count++ console.log(errors_count) } else { // player.pause(); //player.src({}); $("#player_wrap").append("
Błąd odtwarzania1...
") //errors_count=0; } }); player.on('volumechange',function() { if(player.muted()==false) jQuery('.mute-info').hide(); }); player.on('play', function() { /*player.hlsLevels[0].auto=0; player.hlsLevels[0].bandwidth=5628270; player.hlsLevels[0].banned=false; player.hlsLevels[0].bitrate=5628; player.hlsLevels[0].height=720; player.hlsLevels[0].id=0; player.hlsLevels[1].auto=0; player.hlsLevels[1].bandwidth=5628270; player.hlsLevels[1].banned=false; player.hlsLevels[1].bitrate=5628; player.hlsLevels[1].height=360; player.hlsLevels[1].id=1;*/ let domain = (new URL(player.src())); host = domain.hostname; console.log(host); console.log('gra2'); source(); $('#player_wrap').removeClass("is-finished-live"); //errors_count=0; top.postMessage("Popler play", "*"); $( ".popler-error" ).remove(); console.log(player.currentTime()); }); player.on("pause", function () { top.postMessage("Popler pause", "*"); }); player.on("adend", function() { console.log('koniec'); player.play(); }); player.one('play', function() { //player.textTracks()[0].mode = 'showing'; var settings = player.textTrackSettings; //console.log(player); var settings = this.textTrackSettings; settings.setValues({ "backgroundColor": "#000", "backgroundOpacity": "0", "edgeStyle": "uniform", }); settings.updateDisplay(); var isVolumeMuted = player.muted(); console.log(isVolumeMuted); if(isVolumeMuted) $(".video-js").append("
Unmute!
"); uniqueip(); }); player.on('error', function() { console.log('The following error occurred:', this.error()); $(".video-js").append("
Trwa łączenie z serwerem....
") $(".vjs-error-display").hide(); console.log('Error count='+errors_count); if(errors_count<10) { errors_count++; console.log('Error count='+errors_count); setTimeout(restore(), 5000); } else { player.stop; $(".video-js").append("
Błąd odtwarzania2...
") //errors_count=0; } }); var related_videos = [ {thumb: '/livethumbs/AmiganerI.jpg',url: '//popler.tv/live/AmiganerI',title: '', duration:'live'},{thumb: '/livethumbs/AmiganerII.jpg',url: '//popler.tv/live/AmiganerII',title: '', duration:'live'},{thumb: '/livethumbs/AmiganerIII.jpg',url: '//popler.tv/live/AmiganerIII',title: '', duration:'live'},{thumb: '/livethumbs/BoehserOnkel.jpg',url: '//popler.tv/live/BoehserOnkel',title: '', duration:'live'},{thumb: '/livethumbs/Bordon.jpg',url: '//popler.tv/live/Bordon',title: '', duration:'live'},{thumb: '/livethumbs/CinemaMovies.jpg',url: '//popler.tv/live/CinemaMovies',title: '', duration:'live'},{thumb: '/livethumbs/DHunter1968.jpg',url: '//popler.tv/live/DHunter1968',title: 'Der deutsche Film Kanal von DHunter1968', duration:'live'},{thumb: '/livethumbs/djmarcproject.jpg',url: '//popler.tv/live/djmarcproject',title: '', duration:'live'},{thumb: '/livethumbs/EdelsClassic.jpg',url: '//popler.tv/live/EdelsClassic',title: '', duration:'live'},{thumb: '/livethumbs/emocje14.jpg',url: '//popler.tv/live/emocje14',title: 'Bank Pekao 1. Liga, 28. kolejka: AZS AGH Kraków - Decka Pelplin', duration:'live'},{thumb: '/livethumbs/GCNCyberTV.jpg',url: '//popler.tv/live/GCNCyberTV',title: '', duration:'live'},{thumb: '/livethumbs/GCNEmpowerTV.jpg',url: '//popler.tv/live/GCNEmpowerTV',title: 'GCN Empower TV ', duration:'live'}, ]; jQuery(".video-js").append(''); player.nuevo({shareMenu: false,contextMenu: false,qualityMenu: false,zoomMenu:true,speedMenu:false, shareTitle: 'EdelsMovies', shareUrl: document.referrer, //related: related_videos, shareEmbed: 'https://popler.tv/live', videoInfo: true}); //player.pip(); player.chromecast({ button: 'controlbar',metatitle: 'EdelsMovies', }); //player.airplay(); player.filters(); //player.offline({offlineImage: "https://images.popler.tv/snap/fs004/21/emocje1_579f2ba6-4e18-4a62-8b0a-eafa38757b10.jpg", offlineTimeout:5}); //player.playlist(myplaylist); player.log.level('all'); var options = { time: '10', locale: "pl", adLabel: "Reklama", id: 'player_wrap2', adTagUrl: '' }; google.ima.settings.setDisableCustomPlaybackForIOS10Plus(true); var contentPlayer = document.getElementById('player_wrap2_html5_api'); if ((navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/Android/i)) && contentPlayer.hasAttribute('controls')) { contentPlayer.removeAttribute('controls'); } var startEvent = 'click'; if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/Android/i)) { startEvent = 'touchend'; } player.ima(options); player.one(startEvent, function() { player.ima.initializeAdDisplayContainer(); console.log('ima'); }); //object_html('https://api.popler.tv/object.php'); /* setInterval(function() { object_html('https://api.popler.tv/object.php'); }, 10000); function check_time() { $.each(obiekty,function(index, value){ //console.log('My array has at position ' + index + ', this value: ' + value['title'][0]); if(obiekty[index].time) var g1 = new Date(obiekty[index].time); else var g1 = new Date(); if(obiekty[index].seconds>0) { var g1=new Date(startat.getTime() + obiekty[index].seconds*1000); } if(obiekty[index].timedo && obiekty[index].timedo!=0) var timedo = new Date(obiekty[index].timedo); else var timedo = 0; var g2 = new Date(); if ((g1.getTime() <= g2.getTime()) && shows[index]!=1) { if(timedo==0 || (timedo!=0 &&(timedo.getTime()>g2.getTime()))) { if(obiekty[index].iframe) { jQuery(".video-js").append('
'+ '
X
'+ obiekty[index].iframe+ '
'); } shows[index]=1; console.log(obiekty[index].time); } } if(shows[index]==1 && (timedo!=0 &&(timedo.getTime() "); $(".video-js").append("
X Zamknij
"+ ""); */ $(".endscreen").html("

EdelsMovies

Transmisja zakończona

Zapraszamy na kolejne transmisje!

"); var ctx = document.getElementById('myChart'); var myChart = new Chart(ctx, { type: 'line', data: { labels: ['Red'], datasets: [{ label: 'Prędkość pobierania', data: band, backgroundColor: [ 'rgba(231, 50, 22, 0.4)' ], borderColor: [ 'rgba(231, 50, 22, 1)' ], borderWidth: 1 }] }, options: { scales: { xAxes: [{ display: false //this will remove all the x-axis grid lines }], yAxes: [{ display: false //this will remove all the x-axis grid lines }] }, legend: { display: false }, tooltips: { enabled: false } } }); } start(); if ( window.addEventListener ) { window.addEventListener('message', handleMessage, false); } else if ( window.attachEvent ) { // ie8 window.attachEvent('onmessage', handleMessage); } function handleMessage(e) { if ( e.data.func ) { console.log(e); if (e.data.func == 'changeSource') { stream = e.data.message; signurl2(function(clip_url) { console.log("clip_url.hls=" + clip_url.hls); setTimeout(function () { if(clip_url.hls != 0) { player.src({type: "application/x-mpegurl", src: clip_url.hls}); $('#player_wrap').removeClass("is-finished-live"); $('#player_wrap').removeClass("is-error"); player.play(); } else { console.log("finish="); $('#player_wrap').addClass("is-finished-live"); $('#player_wrap').removeClass("is-error"); //player.dispose(); } }, 1000); },,1,api,51,0); console.log(stream); } } else { // console.log(e); } } //setTimeout(function(){ start(); }, 5000); function unmute() { player.muted(false); player.volume(0.5); console.log('unmute'); jQuery('.mute-info').hide(); } function restore() { signurl2(function(clip_url) { console.log("clip_url.hls=" + clip_url.hls); setTimeout(function () { if(clip_url.hls != 0) { player.src({type: "application/x-mpegurl", src: clip_url.hls}); $('#player_wrap').removeClass("is-finished-live"); $('#player_wrap').removeClass("is-error"); player.play(); } else { console.log("finish="); $('#player_wrap').addClass("is-finished-live"); $('#player_wrap').removeClass("is-error"); //player.dispose(); } }, 1000); },,1,api,51,0); } function news (url) { $.ajax({ crossDomain: true, async: true, type: 'POST', url: url, dataType: 'json', success: function(data,url){ console.log(data); var test = [{"title":"testy wiadomo2\u015bci","czas":"09-02 12:00","link":"https:\/\/emocje.tv"}]; var tresc=""; jQuery.each(test,function(index, value){ if(value['title'].length>10) tresc += ""; //console.log('My array has at position ' + index + ', this value: ' + value['title'][0]); }); //console.log(tresc); jQuery(".ti_slide").html("
"+tresc+"
"); jQuery("#newsTicker").newsTicker(); } }); } $( ".video-js" ).contextmenu(function(e) { jQuery(".ytp-popup").css({left:e.pageX, top:e.pageY}); jQuery(".ytp-popup").show(); }); function nerd() { jQuery('#stats2').toggle(); jQuery(".ytp-popup").hide(); } $( document ).on( 'keydown', function ( e ) { if ( e.keyCode === 27 ) { // ESC jQuery(".ytp-popup").hide(); } }); var obiekty = {}; var shows = {}; var startat = new Date(); function object_html (url) { $.ajax({ async: true, type: 'POST', url: url, data: {'jsoncallback': 'k'}, jsonpCallback: 'jsonCallback', contentType: "application/json", dataType: 'jsonp', success: function(data,url){ var tresc=""; $.each(data,function(index, value){ obiekty[index]=value; //console.log('My array has at position ' + index + ', this value: ' + value['title'][0]); }); //console.log(tresc) } }); } function zamknij (id) { jQuery('#'+id).hide(); } function chat () { jQuery(".fp-chat-icon").animate({ opacity: 0, height: "toggle" }, 1000, function() { // Animation complete. }); jQuery(".fp-chat").animate({ opacity: 1, height: "toggle" }, 1000, function() { // Animation complete. }); // alert('chat_on'); } function chat_out () { jQuery(".fp-chat").animate({ opacity: 0, height: "toggle" }, 100, function() { // Animation complete. }); jQuery(".fp-chat-icon").animate({ opacity: 1, height: "toggle" }, 1000, function() { // Animation complete. }); }