Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- var c, g, l, m, p, q, r, t, u, v, x, y, A, B, C, aa, ba, ca, da, ea, D;
- c = function(a) {
- var b = typeof a;
- if ("object" == b)
- if (a) {
- if (a instanceof Array)
- return "array";
- if (a instanceof Object)
- return "object";
- var d = Object.prototype.toString.call(a);
- if ("[object Window]" == d)
- return "object";
- if ("[object Array]" == d && "number" == typeof a.length)
- return "array";
- if ("[object Function]" == d && "undefined" != typeof a.call)
- return "function"
- } else
- return "null";
- else if ("function" == b && "undefined" == typeof a.call)
- return "object";
- return b
- }
- ;
- g = function(a) {
- return null == a
- }
- ;
- l = function(a) {
- return "undefined" == typeof a
- }
- ;
- m = function(a) {
- return "function" == c(a)
- }
- ;
- p = function(a) {
- return "object" == c(a)
- }
- ;
- q = function(a) {
- var b = c(a);
- return "array" == b || "object" == b && "number" == typeof a.length
- }
- ;
- r = function(a) {
- return "number" == typeof a
- }
- ;
- t = function(a) {
- return "string" == typeof a
- }
- ;
- u = function(a) {
- return "boolean" == typeof a
- }
- ;
- v = function(a) {
- return Number(a) === a && 0 === a % 1
- }
- ;
- x = function(a) {
- return Number(a) === a && 0 !== a % 1
- }
- ;
- y = function() {
- return g(window.frameElement) && window.self == window.top ? !1 : !0
- }
- ;
- A = function(a, b) {
- return -1 != a.indexOf(b)
- }
- ;
- B = function(a, b) {
- return -1 != a.toLowerCase().indexOf(b.toLowerCase())
- }
- ;
- C = function(a, b) {
- try {
- var d = b.exec(a);
- return d && 1 <= d.length ? d[1] : ""
- } catch (e) {
- return ""
- }
- }
- ;
- aa = function() {
- var a = null;
- try {
- a = window.localStorage || null
- } catch (b) {}
- return a
- }
- ;
- ba = function() {
- var a = null;
- try {
- a = window.sessionStorage || null
- } catch (b) {}
- return a
- }
- ;
- ca = function() {
- var a = 0
- , b = 0;
- r(window.innerWidth) ? (a = window.innerWidth,
- b = window.innerHeight) : l(document.documentElement) || l(document.documentElement.clientWidth) && l(document.documentElement.clientHeight) ? l(document.body) || l(document.body.clientWidth) && l(document.body.clientHeight) || (a = document.body.clientWidth,
- heigth = document.body.clientHeight) : (a = document.documentElement.clientWidth,
- b = document.documentElement.clientHeight);
- return {
- width: a,
- height: b
- }
- }
- ;
- da = function() {
- var a = window.navigator;
- return l(a) || l(a.userAgent) ? "" : a.userAgent
- }
- ;
- ea = function() {
- return window.navigator
- }
- ;
- D = function(a) {
- return a.replace(/[a-zA-Z]/g, function(a) {
- return String.fromCharCode(("Z" >= a ? 90 : 122) >= (a = a.charCodeAt(0) + 13) ? a : a - 26)
- })
- }
- ;
- var E = ("undefined" !== typeof HTMLElement ? HTMLElement : Element).prototype;
- E.m = function(a) {
- l(this.classList) ? this.className = this.className + " " + a : this.classList.add(a)
- }
- ;
- E.o = function(a) {
- if (g(a) || l(a))
- this.className = "";
- else if (l(this.classList)) {
- for (var b = this.className.split(" "), d = "", e = 0; e < b.length; e++)
- a != b[e] && (d += b[e] + " ");
- this.className = d
- } else
- this.classList.remove(a)
- }
- ;
- E.D = function(a) {
- return l(this) || -1 === this.className.indexOf(a) ? !1 : !0
- }
- ;
- E.xd = function() {
- return !l(this) && m(this.getBoundingClientRect) ? this.getBoundingClientRect() : !1
- }
- ;
- E.ua = function(a) {
- l(this) || (this.style.width = a)
- }
- ;
- E.gb = function() {
- return l(this) ? 0 : this.offsetWidth
- }
- ;
- E.Qe = function(a) {
- l(this) || (this.style.height = a)
- }
- ;
- E.cc = function() {
- return l(this) ? 0 : this.offsetHeight
- }
- ;
- E.da = function() {
- return l(this) || l(this.offsetParent) || g(this.offsetParent) ? !1 : !0
- }
- ;
- E.s = function() {
- l(this) || (this.style.display = "none")
- }
- ;
- E.show = function() {
- l(this) || (this.style.display = "block")
- }
- ;
- E.Sa = function(a) {
- l(this) || (this.innerHTML = a)
- }
- ;
- function F(a) {
- if (!a)
- throw Error("Failed to create player.");
- if (!1 === this.$g())
- throw Error("Domain " + this.wd() + " is not supported.");
- window.focus();
- this.Tg = "1.40.18022601";
- this.b = "cda.Player";
- this.xf = this.Dc = this.uf = this.G = -1;
- this.Cc = this.de = !1;
- this.hd = 0;
- this.ae = this.sf = this.fe = this.vf = this.jd = !1;
- this.options = a;
- this.element = document.getElementById(this.Za(this.options, "id"));
- this.ba = new G;
- this.ub = new fa("local");
- this.v = this.view = new ga(this);
- this.view.gh(this.element);
- this.view.kj();
- this.eb = null;
- this.fullScreen = new ha(this.view,this.ba.bind(this, this.Uh),this.ba.bind(this, this.Vh));
- this.state = ia;
- this.event = new H;
- this.j = new ja;
- this.J = new na(this);
- this.video = this.view.video;
- this.w = this.view.w;
- this.contextMenu = this.view.contextMenu;
- this.C = null;
- this.tc = this.uc = -1;
- this.ta = null;
- this.Gb = !0;
- this.Hb = this.Gd = !1;
- this.ma = null;
- this.Zf = 7;
- this.Hd = "204px";
- this.yb = !1;
- this.Lb = null;
- this.Kc = !1;
- this.i = this.Cb = null;
- this.O = !1;
- this.Oe = this.duration = this.currentTime = -1;
- this.A = !1;
- this.id = null;
- this.loop = this.ended = this.autoplay = !1;
- this.L = this.Da = this.We = this.src = null;
- this.Qd = this.Vb = -1;
- this.c = null;
- this.h = {};
- this.X = !1;
- this.I = "play playing pause seeking seeked canplay canplaythrough loadstart loadeddata loadedmetadata error abort stalled suspend volumechange progress durationchange ratechange timeupdate waiting contextmenu click ended".split(" ");
- this.updating = !1;
- this.test = 0;
- this.Wb = null;
- this.rg = this.bb = this.va = this.ca = this.jb = !1;
- this.Hc = null;
- this.La = -1;
- this.Pc = !1;
- this.od = -1;
- this.poster = {
- Gj: "//static.cda.pl/v001/img/mobile/poster16x9.png"
- };
- this.volume = -1;
- this.Yb = this.Rf = !1;
- this.Xf();
- this.Ua(this.state.mb);
- this.Hh();
- if (null == this.C || this.src)
- this.Sb();
- else
- try {
- var b = this;
- window[this.C.client].videoGetLink(this.u.id, this.u.quality, this.u.ts, this.u.hash, {
- success: function(a) {
- "ok" == a.status && null != a.resp && (b.src = a.resp);
- b.Sb()
- },
- error: function() {
- b.Sb()
- }
- })
- } catch (d) {
- this.Sb()
- }
- }
- E = F.prototype = {};
- E.Sb = function() {
- (B(window.navigator.userAgent, "AppleTV") || this.j.Bd()) && this.video.setAttribute("x-webkit-airplay", "allow");
- var a = !1;
- try {
- var b = this.j.qe();
- 0 != b && 4 > parseInt(b) && (a = !0)
- } catch (h) {}
- if (!this.fullScreen.isEnabled() || this.j.wc() && this.j.xh() || this.j.Uf() || this.j.Mf() || this.j.wh() || this.j.zh() ||
- B(window.navigator.userAgent, "AppleTV") || this.j.Ch() || a) {
- if (this.video.s(),
- this.A = !0,
- this.video.controls = !0,
- this.view.o(this.view.w, "pb-controls"),
- this.view.o(this.view.w, "pb-video-full"),
- this.view.m(this.view.w, "pb-nocontrols"),
- this.view.m(this.view.w, "pb-video-native-light"),
- this.view.s(this.view.f(".pb-play-ico")),
- this.view.s(this.view.f(".pb-loader-ico")),
- this.view.s(this.view.f(".pb-video-click")),
- this.u.poster && (a = document.createElement("img"),
- a.src = this.u.poster,
- a.alt = "poster",
- this.view.Yd.insertBefore(a, this.view.Yd.firstChild),
- this.view.R.show()),
- this.h.Je = I(this.view.Yd, "click", this.Je, this),
- this.h.gc = I(this.view.R, "click", this.Je, this),
- !this.j.Ta()) {
- var d = this;
- setInterval(function() {
- d.G !== d.state.mb || !d.ended || d.O || d.loop || d.zf()
- }, 50)
- }
- } else {
- this.ij();
- this.jj();
- this.view.s(this.view.contextMenu);
- if ("function" === typeof J)
- this.A || (a = new J(this.w,this,this.fullScreen),
- null !== a && !1 !== a && (this.controls = a,
- this.controls.enable()));
- else
- throw Error("Failed to load controls class.");
- this.j.B() && this.view.m(this.view.w, "pb-mobile");
- this.j.Ta() && this.view.m(this.view.w, "pb-tv");
- this.j.Ed() && this.view.m(this.view.w, "pb-browser-opera");
- this.h.fg = I(this.cb, "dblclick", this.fg, this);
- this.h.dg = I(this.contextMenu, "click", this.dg, this);
- this.h.jg = I(this.view.Wi, "click", this.jg, this);
- this.h.lg = I(this.view.Xi, "click", this.lg, this);
- this.h.Bk = I(this.view.Vi, "click", this.kg, this);
- this.h.Ck = I(this.view.Zi, "click", this.kg, this);
- var d = this
- , e = "hidden"
- , a = function() {
- d.Pc = !l(window.document[e]) && window.document[e] ? !1 : !0
- };
- e in window.document ? window.document.addEventListener("visibilitychange", a) : (e = "mozHidden")in window.document ? window.document.addEventListener("mozvisibilitychange", a) : (e = "webkitHidden")in window.document ? window.document.addEventListener("webkitvisibilitychange", a) : (e = "msHidden")in window.document && window.document.addEventListener("msvisibilitychange", a);
- this.Pc = !l(window.document[e]) && window.document[e] ? !1 : !0;
- if (!this.j.Ta()) {
- var d = this
- , f = !1;
- setInterval(function() {
- d.Kc || null !== d.Cb || (d.G === d.state.U && (0 >= d.currentTime ? d.controls.F(!0) : (2 === d.networkState() && 3 > d.readyState() ? (d.controls.F(!0),
- !1 === d.jd && (d.tg(!0),
- d.Ug())) : (1 === d.networkState() || 3 <= d.readyState()) && d.controls.F(!1),
- d.video.currentTime < d.currentTime && d.Dc === d.state.cf && d.controls.F(!0),
- d.video.currentTime > d.currentTime && d.Dc === d.state.gf && d.controls.F(!0))),
- null !== d.controls && d.controls.yc());
- d.G !== d.state.mb || !d.ended || d.O || d.loop || d.zf();
- d.view.S.D("pb-playing") && d.G != d.state.U && 0 >= d.video.currentTime && !f && !d.controls.W.da() && null != d.i && (d.i.play(),
- f = !0)
- }, 50)
- }
- }
- if (window.Worker && !this.A) {
- try {
- var k = new Worker("/js/player_html5/player.worker.js")
- } catch (h) {
- k = null
- }
- null != k ? (this.eb = {
- id: 0,
- ke: {},
- setInterval: function(a, b, d) {
- this.id++;
- var e = this.id;
- this.ke[e] = {
- Df: a,
- context: d
- };
- k.postMessage({
- command: "interval:start",
- interval: b,
- id: e
- });
- return e
- },
- onMessage: function(a) {
- switch (a.data.message) {
- case "interval:tick":
- (a = this.ke[a.data.id]) && a.Df && a.Df.apply(a.context);
- break;
- case "interval:cleared":
- delete this.ke[a.data.id]
- }
- },
- clearInterval: function(a) {
- k.postMessage({
- command: "interval:clear",
- id: a
- })
- }
- },
- k.onmessage = this.eb.onMessage.bind(this.eb)) : this.eb = window
- } else
- this.eb = window;
- if (!this.j.Ta() || this.j.Nc())
- this.video.preload = "none";
- this.Yc();
- this.A || this.zd();
- this.log(this.b, "autoplay: " + this.autoplay);
- this.A ? (this.video.controls = !0,
- this.video.src = this.src,
- this.autoplay && (this.video.autoplay = !0),
- this.j.B() || this.j.Nc() || (this.video.load(),
- this.log(this.b, "video.load()"))) : this.autoplay ?
- this.j.B() ? this.Ad(this.c, 0) ? this.Bc(this.c, 0) : (this.j.B() || this.j.Nc() || (this.video.load(),
- this.log(this.b, "video.load()")),
- d = this,
- window.addEventListener("touchstart", function n() {
- d.A || d.controls.W.show();
- d.kb();
- this.removeEventListener("touchstart", n)
- }),
- this.J.la()) : this.Ad(this.c, 0) && !this.A ? this.Bc(this.c, 0) : (this.j.B() || this.j.Nc() || (this.video.load(),
- this.log(this.b, "video.load()")),
- this.J.la(),
- this.kb()) : this.Ad(this.c, 0) && !this.A ? this.Bc(this.c, 0) : (this.j.B() || this.j.Nc() || (this.video.load(),
- this.log(this.b, "video.load()")),
- this.J.la());
- d = this;
- window.onbeforeunload = function() {
- d.rg = !0
- }
- }
- ;
- E.Hh = function() {
- this.Za(this.options, "video") && (this.u = this.options.video);
- this.Za(this.options, "api") && (this.C = this.options.api);
- this.Za(this.options, "ads") && (this.c = this.options.ads);
- this.Za(this.options, "id") && (this.id = this.options.id);
- this.Za(this.options, "nextVideo") && (this.ta = this.options.nextVideo);
- this.Za(this.options, "autoplay") && (this.autoplay = this.options.autoplay);
- this.Za(this.options, "seekTo") && 0 < this.Za(this.options, "seekTo") && (this.Vb = this.options.seekTo);
- this.u.file && (-1 == this.u.file.indexOf("http") && (this.u.file = D(this.u.file)),
- -1 == this.u.file.indexOf(".mp4") && (this.u.file += ".mp4"),
- -1 < this.u.file.indexOf("adc.mp4") && (this.u.file = this.u.file.replace("adc.mp4", ".mp4")));
- this.u.file_cast && (-1 == this.u.file_cast.indexOf("http") && (this.u.file_cast = D(this.u.file_cast)),
- -1 == this.u.file_cast.indexOf(".mp4") && (this.u.file_cast += ".mp4"),
- -1 < this.u.file_cast.indexOf("adc.mp4") && (this.u.file_cast = this.u.file_cast.replace("adc.mp4", ".mp4")));
- this.u.file && (this.src = this.u.file);
- this.u.file_cast && (this.We = this.u.file_cast);
- g(this.u.manifest) || l(this.u.manifest) || (this.Da = this.u.manifest);
- this.u.hasOwnProperty("cast_available") && null != this.u.cast_available && null != this.J && this.J.hj(this.u.cast_available);
- this.u.poster && this.Se(this.u.poster);
- this.Za(this.options, "premium") && !0 === this.options.premium && this.view.m(this.view.Qc, "pb-logo-premium");
- this.Za(this.options, "cuePoints") && (this.Hc = this.options.cuePoints);
- if (!1 !== this.Eb("cda.player.ppst")) {
- var a = this.Eb("cda.player.ppst").split(":");
- if (this.options.video.id == a[0] && !0 === this.Be()) {
- this.Vb = Number(a[1]);
- try {
- document.cookie = "cda.player.ppst=; expires=Thu, 01 Jan 1970 00:00:01 GMT;"
- } catch (b) {}
- }
- }
- }
- ;
- E.zd = function() {
- this.log(this.b, "initEvents");
- if (!this.de) {
- for (var a in this.I)
- "" != this.I[a] && (this.h[this.I[a]] = "contextmenu" == this.I[a] ? I(this.view.bd, this.I[a], this.Md(this.I[a]), this) : I(this.video, this.I[a], this.Md(this.I[a]), this));
- this.de = !0
- }
- }
- ;
- E.Xc = function() {
- this.log(this.b, "removeEvents");
- for (var a in this.I)
- "" != this.I[a] && ("contextmenu" == this.I[a] ? K(this.view.bd, this.I[a], this.h[this.I[a]]) : K(this.video, this.I[a], this.h[this.I[a]]),
- this.h[this.I[a]] = null);
- this.de = !1
- }
- ;
- E.Md = function(a) {
- var b = null;
- switch (a) {
- case "play":
- b = this.zc;
- break;
- case "playing":
- b = this.Ie;
- break;
- case "pause":
- b = this.sb;
- break;
- case "seeking":
- b = this.pi;
- break;
- case "seeked":
- b = this.oi;
- break;
- case "canplay":
- b = this.De;
- break;
- case "canplaythrough":
- b = this.Sc;
- break;
- case "loadstart":
- b = this.He;
- break;
- case "loadeddata":
- b = this.Fe;
- break;
- case "loadedmetadata":
- b = this.Ge;
- break;
- case "error":
- b = this.Tc;
- break;
- case "abort":
- b = this.Ce;
- break;
- case "stalled":
- b = this.ui;
- break;
- case "suspend":
- b = this.yi;
- break;
- case "volumechange":
- b = this.Gi;
- break;
- case "progress":
- b = this.di;
- break;
- case "durationchange":
- b = this.Th;
- break;
- case "ratechange":
- b = this.mi;
- break;
- case "timeupdate":
- b = this.Vc;
- break;
- case "waiting":
- b = this.Wc;
- break;
- case "contextmenu":
- b = this.Qh;
- break;
- case "click":
- b = this.Ib;
- break;
- case "ended":
- b = this.Jd
- }
- return b
- }
- ;
- E.Za = function(a, b) {
- if (null !== a && "undefined" !== typeof a)
- return a.hasOwnProperty(b) ? a[b] : null;
- throw new TypeError("Nie mo\u017cna pobra\u0107 w\u0142a\u015bciwo\u015bci " + b + " obiektu " + a + " poniewa\u017c obiekt jest pusty.");
- }
- ;
- E.ua = function(a) {
- isNaN(Number(a)) || this.video.ua(a)
- }
- ;
- E.Qe = function(a) {
- isNaN(Number(a)) || this.video.Qe(a)
- }
- ;
- E.Se = function(a) {
- this.video.poster = a;
- this.video.setAttribute("poster", a)
- }
- ;
- E.Zj = function() {
- return this.video.poster || this.video.getAttribute("poster")
- }
- ;
- E.Td = function(a) {
- a && (this.video.canPlayType("video/mp4") ? (this.video.src = a,
- this.video.setAttribute("src", a)) : (a = this.fh(),
- !1 !== a && (a.show(),
- this.video.remove(),
- this.controls.W.s(),
- this.controls.R.s(),
- this.controls.controls.s())))
- }
- ;
- E.$ = function() {
- return this.video.currentTime || 0
- }
- ;
- E.ib = function(a) {
- if (this.xc(a) || this.Dd(a))
- this.currentTime = a,
- this.video.currentTime = a
- }
- ;
- E.H = function() {
- return this.video.duration || 0
- }
- ;
- E.te = function() {
- return this.video.getAttribute("src")
- }
- ;
- E.Ua = function(a) {
- this.G = a
- }
- ;
- E.ak = function() {
- return this.G
- }
- ;
- E.Re = function(a) {
- this.uf = a
- }
- ;
- E.Xj = function() {
- return this.uf
- }
- ;
- E.Sd = function(a) {
- this.Dc = a
- }
- ;
- E.$j = function() {
- return this.Dc
- }
- ;
- E.play = function(a) {
- this.log(this.b, "play");
- this.log(this.b, arguments);
- this.log(this.b, "autoplay: " + this.autoplay);
- window.MediaSource = window.MediaSource || window.WebKitMediaSource;
- if (!g(this.Da) && "" != this.Da && m(window.MediaSource) && null == this.L)
- try {
- this.L = dashjs.MediaPlayer().create();
- this.L.initialize(this.video, this.Da, !0);
- this.L.setStableBufferTime(10);
- this.L.setBufferToKeep(3600);
- this.L.setBufferPruningInterval(10);
- this.L.setBufferTimeAtTopQuality(600);
- this.L.setBufferTimeAtTopQualityLongForm(600);
- this.L.setManifestLoaderRetryAttempts(20);
- this.L.setFragmentLoaderRetryAttempts(120);
- this.L.setScheduleWhilePaused(!0);
- this.L.setFastSwitchEnabled(!0);
- this.L.setABRStrategy("abrThroughput");
- this.L.setAutoSwitchQuality(!0);
- this.L.getDebug().setLogToBrowserConsole(!1);
- var b = "BUFFER_EMPTY BUFFER_LOADED CAN_PLAY ERROR LOG MANIFEST_LOADED METRIC_ADDED METRIC_CHANGED METRIC_UPDATED METRICS_CHANGED PERIOD_SWITCH_COMPLETED PERIOD_SWITCH_STARTED PLAYBACK_ENDED PLAYBACK_ERROR PLAYBACK_METADATA_LOADED PLAYBACK_PAUSED PLAYBACK_PLAYING PLAYBACK_PROGRESS PLAYBACK_RATE_CHANGED PLAYBACK_SEEKED PLAYBACK_SEEKING PLAYBACK_STARTED PLAYBACK_TIME_UPDATED STREAM_INITIALIZED TEXT_TRACK_ADDED TEXT_TRACKS_ADDED".split(" ");
- if (this.options.hasOwnProperty("debug") && 1 == this.options.debug)
- for (var d = 0; d < b.length; d++)
- this.L.on(window.dashjs.MediaPlayer.events[b[d]], this.eg)
- } catch (e) {
- this.log(this.b, e)
- }
- this.A || this.controls.R.s();
- l(a) || !a || this.ca || (this.j.Ta() ? (this.video.play(),
- this.video.load(),
- this.Ua(this.state.U),
- this.log(this.b, "video.play()")) : this.video.load(),
- this.log(this.b, "video.load()"),
- this.jb = !0);
- if (!this.jb)
- if (this.ca)
- if (!this.hh && null != this.L)
- this.L.play(),
- this.hh = !0,
- this.Ua(this.state.U);
- else {
- if (this.autoplay || this.X || 0 < this.$())
- this.video.play(),
- this.Ua(this.state.U),
- this.log(this.b, "video.play()")
- }
- else if (!this.va)
- this.video.load(),
- this.log(this.b, "video.load()");
- else if (this.autoplay || this.X || 0 < this.$())
- this.video.play(),
- this.Ua(this.state.U),
- this.log(this.b, "video.play()");
- !1 === this.view.D(this.view.fa, "pb-video-active") && this.view.m(this.view.fa, "pb-video-active")
- }
- ;
- E.pause = function() {
- this.G === this.state.wb && this.video.paused || (this.video.pause(),
- this.Re(this.G),
- this.Ua(this.state.wb))
- }
- ;
- E.resume = function() {
- this.G !== this.state.U && (this.j.Ta() && this.video.pause(),
- this.video.play(),
- this.Re(this.G),
- this.Ua(this.state.U))
- }
- ;
- E.stop = function() {
- this.pause();
- this.video.src = "";
- this.Re(this.G);
- this.Ua(this.state.mb);
- this.view.D(this.view.fa, "pb-video-active") && this.view.o(this.view.fa, "pb-video-active")
- }
- ;
- E.Ma = function(a) {
- this.O || !v(a) && !x(a) || a > this.H() || (this.Pe(),
- this.controls.F(!0),
- a > this.$() ? this.Sd(this.state.cf) : this.Sd(this.state.gf),
- this.log(this.b, "seekTo: " + a),
- this.ib(a),
- this.G === this.state.mb && (this.Vb = a,
- 0 >= this.Vb && this.Sd(-1),
- this.A || this.controls.M()))
- }
- ;
- E.cj = function(a) {
- if (this.xc(a) || this.Dd(a))
- this.currentTime + a < this.H() ? this.Ma(this.currentTime + a) : this.Ma(this.H() - 1)
- }
- ;
- E.dj = function(a) {
- if (this.xc(a) || this.Dd(a))
- 0 > this.currentTime - a ? this.Ma(0) : this.Ma(this.currentTime - a)
- }
- ;
- E.qb = function() {
- var a = this.Fb("vol");
- return !g(a) && "" != a && (a = Number(a),
- 0 <= a && 100 >= a) ? a : !1
- }
- ;
- E.T = function(a) {
- a = Number(a);
- !1 !== this.qb() && !1 === this.Yb && (a = this.qb());
- if (!isNaN(a) && 0 <= a) {
- this.O && null !== this.view.f(".pb-ad-video-player") && (this.view.f(".pb-ad-video-player").volume = (a / 100).toFixed(2));
- this.volume = a.toFixed(2);
- this.Rf = 0 == this.volume ? !0 : !1;
- try {
- this.video.volume = (this.volume / 100).toFixed(2)
- } catch (b) {
- console.log(b)
- }
- this.aj(this.volume, this.Rf)
- }
- }
- ;
- E.aj = function(a, b) {
- if (!1 !== this.qb() && !1 === this.Yb)
- this.Yb = !0;
- else {
- var d = {
- volume: a,
- muted: b
- };
- this.ub.isEnabled() ? this.ub.set("cda-player-volume", d) : L.isEnabled() && L.set("cda-player-volume", JSON.stringify(d), 30)
- }
- }
- ;
- E.oh = function() {
- var a = null;
- this.ub.isEnabled() ? a = this.ub.get("cda-player-volume") : L.kh() && (a = JSON.parse(L.get("cda-player-volume")));
- return !g(a) && a.hasOwnProperty("volume") && a.hasOwnProperty("muted") ? a : !1
- }
- ;
- E.dk = function() {
- return this.video.jl
- }
- ;
- E.xk = function() {
- this.video.muted = !0
- }
- ;
- E.cl = function() {
- this.video.muted = !1
- }
- ;
- E.Gf = function() {
- var a = 0
- , b = this.duration;
- 60 > b ? a = 5 : 60 < b && 600 > b ? a = 15 : 600 < b && 1E3 > b ? a = 30 : 1E3 < b && 2E3 > b ? a = 60 : 2E3 < b && 3E3 > b ? a = 120 : 3E3 < b && (a = 240);
- return a
- }
- ;
- E.Ca = function() {
- return "undefined" !== document.lh && document.lh || "undefined" !== document.webkitIsFullScreen && document.webkitIsFullScreen || "undefined" !== document.mozFullScreen && document.mozFullScreen || "undefined" !== document.msFullscreenElement && document.msFullscreenElement ? !0 : !1
- }
- ;
- E.sb = function() {
- this.video.paused && (this.A || this.controls.qa());
- if (m(window.onPause) && !this.O)
- window.onPause()
- }
- ;
- E.zc = function() {
- this.view.s(this.view.contextMenu);
- -1 < this.duration && !this.A && this.controls.Fa(this.duration);
- this.video.paused || (this.A || this.controls.M(),
- this.ended && 12 > this.od && (this.ended = !1),
- null !== this.ma && this.Cg());
- if (m(window.onPlay) && !this.O)
- window.onPlay()
- }
- ;
- E.Ie = function() {
- if (-1 == this.La && 0 < this.u.duration && 33 != this.Jc() && !this.O)
- try {
- var a = this;
- window[this.C.client2].videoWatching(this.u.id, 0, this.u.duration, {
- success: function(b) {
- b && (a.La = 0);
- a.log(a.b, "saving watching seconds: " + a.La)
- }
- })
- } catch (b) {
- this.log(this.b, b)
- }
- !0 === this.jd && this.tg(!1);
- this.X && (this.X = !1);
- this.A || this.view.s(this.controls.W);
- this.G !== this.state.U && this.Ua(this.state.U)
- }
- ;
- E.mh = function(a) {
- for (var b = 0; b <= this.video.buffered.length - 1; b++)
- if (this.video.buffered.start(b) <= a && this.video.buffered.end(b) >= a)
- return b;
- return this.video.buffered.length - 1
- }
- ;
- E.pi = function() {
- this.zg(!0);
- this.Pe();
- this.Oe = this.$();
- 3 > this.networkState() && (this.A || this.controls.F(!0))
- }
- ;
- E.oi = function() {
- this.zg(!1);
- this.Sd(-1);
- this.Pe();
- -1 < this.La && (this.La = this.$());
- this.video.paused && this.resume();
- this.A || this.controls.F(!1)
- }
- ;
- E.He = function() {
- this.log(this.b, "Event", "onLoadstart");
- this.log(this.b, "videoLoaded: " + this.ca);
- this.log(this.b, "videoLoading: " + this.va);
- this.log(this.b, "startByClick: " + this.X);
- this.ca && (this.ca = !1);
- this.va = !0;
- this.X || this.autoplay ? this.controls.F(!0) : (this.controls.F(!1),
- this.controls.R.show())
- }
- ;
- E.Ge = function() {
- this.log(this.b, "Event", "onLoadedmetadata");
- this.log(this.b, "videoLoaded: " + this.ca);
- this.log(this.b, "videoLoading: " + this.va);
- this.log(this.b, "startByClick: " + this.X);
- l(this.video.duration) || (this.duration = isNaN(this.video.duration) ? 0 : this.video.duration);
- this.O || -1 < this.duration && !this.A && this.controls.Fa(this.duration);
- this.view.Tb(this.view.alert) && (this.view.s(this.view.alert),
- this.controls.enable());
- if (this.X || this.Vg || this.jb) {
- var a = this;
- null == this.Wb && (this.Wb = window.setTimeout(function() {
- window.clearTimeout(a.Wb);
- a.Wb = null;
- a.bb || a.Sc()
- }, 2E3))
- }
- }
- ;
- E.Fe = function() {
- this.log(this.b, "Event", "onLoadeddata");
- this.log(this.b, "videoLoaded: true");
- this.log(this.b, "videoLoading: false");
- this.log(this.b, "startByClick: " + this.X);
- this.ca = !0;
- this.va = !1;
- l(this.video.duration) || (this.duration = isNaN(this.video.duration) ? 0 : this.video.duration);
- this.O || -1 < this.duration && !this.A && this.controls.Fa(this.duration);
- this.view.Tb(this.view.alert) && (this.view.s(this.view.alert),
- this.controls.enable());
- if (this.X || this.Vg || this.jb) {
- var a = this;
- null == this.Wb && (this.Wb = window.setTimeout(function() {
- window.clearTimeout(a.Wb);
- a.Wb = null;
- a.bb || a.Sc()
- }, 2E3))
- }
- }
- ;
- E.Jd = function() {
- this.log(this.b, "Event", "onEnded");
- this.Ua(this.state.mb);
- this.ended = !0;
- if (-1 < this.La && (this.$() >= this.u.duration || this.$() == this.H()) && 0 < this.u.duration && 33 != this.Jc() && !this.O)
- try {
- this.La = this.u.duration,
- this.log(this.b, "saving watching seconds: " + this.La),
- window[this.C.client2].videoWatching(this.u.id, this.La, this.u.duration)
- } catch (a) {
- this.log(this.b, a)
- }
- this.loop ? this.play() : this.Ad(this.c, -1) && !this.A ? this.Bc(this.c, -1) : this.$c()
- }
- ;
- E.Tc = function(a) {
- window.MediaSource = window.MediaSource || window.WebKitMediaSource;
- if (!(!g(this.Da) && "" != this.Da && m(window.MediaSource) || this.rg || this.O)) {
- this.log(this.b, "Event", "onError");
- if (!g(a) && !l(a.target)) {
- this.log(this.b, "networkState: " + a.target.networkState);
- this.log(this.b, "readyState: " + a.target.readyState);
- try {
- if (2 == a.target.networkState && 4 == a.target.readyState && !this.controls.W.da()) {
- this.video.play();
- this.log(this.b, "video.play()");
- return
- }
- } catch (b) {
- this.log(this.b, "error: " + b)
- }
- }
- if (3 === a.target.networkState) {
- if (this.view.show(this.view.alert),
- this.view.jc(this.view.ac, "404 Not found: Nie znaleziono podanego wideo"),
- this.A || this.controls.disable(),
- !l(this.C.client) && !g(this.C.client))
- try {
- window[this.C.client].fileNotFound(this.src, {
- sj: console.log,
- error: console.log
- })
- } catch (b) {}
- } else {
- a = -1;
- if (null != this.video.error && "undefined" !== typeof this.video.error.code) {
- a = this.video.error.code;
- if (3 == a)
- return;
- this.A || this.controls.disable()
- }
- if (-1 < a)
- switch (a) {
- case 1:
- 100 > this.video.currentTime && (this.view.show(this.view.alert),
- this.view.jc(this.view.ac, "Wyst\u0105pi\u0142 b\u0142\u0105d podczas odtwarzania. Od\u015bwie\u017c stron\u0119 i spr\u00f3buj ponownie."));
- break;
- case 2:
- 100 > this.video.currentTime && (this.view.show(this.view.alert),
- this.view.jc(this.view.ac, "Wyst\u0105pi\u0142 b\u0142\u0105d podczas odtwarzania. Od\u015bwie\u017c stron\u0119 i spr\u00f3buj ponownie."));
- break;
- case 3:
- this.view.show(this.view.alert);
- this.view.jc(this.view.ac, "Wyst\u0105pi\u0142 b\u0142\u0105d przegl\u0105darki. Od\u015bwie\u017c stron\u0119 i spr\u00f3buj ponownie.");
- break;
- case 4:
- this.view.show(this.view.alert),
- this.view.jc(this.view.ac, "Format wideo jest nieobs\u0142ugiwany.")
- }
- }
- }
- }
- ;
- E.ui = function(a) {
- this.log(this.b, "Event", "onStalled");
- this.log(this.b, "networkState: " + a.target.networkState);
- this.log(this.b, "readyState: " + a.target.readyState);
- return !1
- }
- ;
- E.Ce = function() {}
- ;
- E.yi = function() {}
- ;
- E.De = function() {
- this.log(this.b, "Event", "onCanplay");
- this.log(this.b, "startLoading: " + this.jb);
- this.log(this.b, "videoCanPlay: " + this.bb);
- this.log(this.b, "startByClick: " + this.X);
- this.va && (this.va = !1);
- this.A || !this.j.B() && this.O || (this.autoplay || (this.bb = !0),
- this.jb && (this.jb = !1),
- this.X && (this.X = !1),
- g(this.video) || !this.video.paused || !this.controls.W.da() && this.bb && this.G != this.state.U || (this.bb = !0,
- this.j.B() ? (this.Ua(this.state.wb),
- this.controls.qa(!0),
- this.controls.F(!1)) : (this.log(this.b, "video.play()"),
- this.video.play())))
- }
- ;
- E.Sc = function(a) {
- this.log(this.b, "Event", "onCanplaythrough");
- this.log(this.b, "startLoading: " + this.jb);
- this.log(this.b, "startByClick: " + this.X);
- this.log(this.b, "videoCanPlay: " + this.bb);
- g(a) || l(a.target) || (this.log(this.b, "networkState: " + a.target.networkState),
- this.log(this.b, "readyState: " + a.target.readyState));
- this.va && (this.va = !1);
- this.A || !this.j.B() && this.O || (this.autoplay || (this.bb = !0),
- this.jb && (this.jb = !1),
- this.X && (this.X = !1),
- g(this.video) || !this.video.paused || !this.controls.W.da() && this.bb && this.G != this.state.U || (this.bb = !0,
- this.j.B() ? (this.Ua(this.state.wb),
- this.controls.qa(!0),
- this.controls.F(!1)) : (this.log(this.b, "video.play()"),
- this.video.play())))
- }
- ;
- E.Gi = function() {}
- ;
- E.mi = function() {}
- ;
- E.Th = function() {}
- ;
- E.Wc = function() {
- try {
- var a = (new Date).getHours();
- !this.fe && 0 == this.Be() && 16 <= a && 2 <= this.hd && !1 === this.vf && (this.vf = !0,
- this.view.Pd.o("pb-context-wrapp-hide"),
- this.view.Pd.m("pb-context-wrapp-show"))
- } catch (b) {}
- if (m(window.onWaiting) && !this.O)
- window.onWaiting()
- }
- ;
- E.ij = function() {
- 0 < this.contextMenu.offsetHeight && -1 === this.tc && (this.tc = this.contextMenu.offsetHeight)
- }
- ;
- E.jj = function() {
- 0 < this.contextMenu.offsetWidth && -1 === this.uc && (this.uc = this.contextMenu.offsetWidth)
- }
- ;
- E.Qh = function(a) {
- a = a || window.event;
- var b, d;
- "block" == this.view.contextMenu.style.display ? this.view.s(this.view.contextMenu) : (0 < this.view.contextMenu.offsetHeight && -1 === this.tc && (this.tc = this.view.contextMenu.offsetHeight),
- 0 < this.view.contextMenu.offsetWidth && -1 === this.uc && (this.uc = this.view.contextMenu.offsetWidth),
- b = this.uc + a.offsetX > this.view.cb.offsetWidth ? this.view.cb.offsetWidth - this.uc : a.offsetX,
- d = this.tc + a.offsetY > this.view.cb.offsetHeight ? this.view.cb.offsetHeight - this.tc : a.offsetY,
- this.view.contextMenu.style.top = d + "px",
- this.view.contextMenu.style.left = b + "px",
- this.view.show(this.view.contextMenu));
- a.preventDefault()
- }
- ;
- E.dg = function(a) {
- switch (parseInt(a.target.parentNode.getAttribute("item"))) {
- case 1:
- a = document.createElement("div");
- var b = document.createRange(), d;
- a.style.position = "absolute";
- a.style.left = "-1000px";
- a.style.top = "-1000px";
- a.innerHTML = location.href;
- document.body.appendChild(a);
- b.selectNodeContents(a);
- d = window.getSelection();
- d.removeAllRanges();
- d.addRange(b);
- try {
- document.execCommand("copy")
- } catch (e) {}
- delete a;
- break;
- case 2:
- a = document.createElement("input");
- b = "";
- this.Lc() ? b = "http://ebd.cda.pl/620x368/" + this.u.id : this.Mc() && (b = window.location.origin + window.location.pathname + "?iframe");
- a.style.position = "absolute";
- a.style.left = "-1000px";
- a.style.top = "-1000px";
- a.type = "text";
- a.setAttribute("value", '<iframe src="' + b + '" width="620" height="368" style="border:none;" scrolling="no" allowfullscreen name="v2"></iframe>');
- document.body.appendChild(a);
- a.select();
- try {
- document.execCommand("copy")
- } catch (e) {}
- delete a;
- break;
- case 3:
- this.G === this.state.U && this.pause(),
- b = "",
- this.Lc() ? b = "http://www.cda.pl/kontakt" : this.Mc() && (b = "http://superfilm.pl/kontakt"),
- "" != b && window.open(b, "_blank").focus()
- }
- this.view.Tb(this.view.contextMenu) && this.view.s(this.view.contextMenu)
- }
- ;
- E.di = function() {}
- ;
- E.Vc = function() {
- 2 === this.video.networkState && 3 > this.video.readyState ? this.controls.F(!0) : (1 === this.video.networkState || 3 <= this.video.readyState) && this.controls.F(!1);
- this.G === this.state.U && this.controls.R.da() && this.controls.M(!0);
- 0 < this.Vb && -1 === this.xf && 0 < this.$() && this.Vb < this.H() && (this.Ma(this.Vb),
- this.xf = this.Vb);
- if (-1 < this.Qd) {
- var a = this.Qd / 100 * this.H();
- 0 < a && this.Ma(a);
- this.Qd = -1
- }
- a = 600;
- this.u.hasOwnProperty("duration") && null != this.u.duration && 0 < this.u.duration && 600 >= this.u.duration && (a = 60);
- this.$() >= a && !1 === this.Cc && this.Ui();
- if (!g(this.Hc))
- for (a = 0; a < this.Hc.length; a++) {
- var b = this.Hc[a];
- !g(b) && b.hasOwnProperty("time") && b.hasOwnProperty("id") && this.$() >= b.time && !b.fire && (this.Hc[a].fire = !0,
- !this.Mc() || l(this.C.client) || g(this.C.client) || window[this.C.client].pixel(b.id, "pc", {
- sj: console.log,
- error: console.log
- }))
- }
- if (-1 < this.La && this.$() >= this.La + 10 && 0 < this.u.duration && 33 != this.Jc() && !this.O)
- try {
- this.La = Math.round(this.$()),
- this.log(this.b, "saving watching seconds: " + this.La),
- window[this.C.client2].videoWatching(this.u.id, this.La, this.u.duration)
- } catch (d) {
- this.log(this.b, d)
- }
- }
- ;
- E.Uh = function() {
- if (!this.A) {
- var a = this.fullScreen.Ca();
- a || g(this.fullScreen.element()) || (a = !0);
- this.controls.Ca = a;
- this.controls.mj(a);
- a ? this.controls.wg(!0) : (this.controls.wg(!1),
- this.A || this.controls.Ue())
- }
- }
- ;
- E.Vh = function() {
- this.A || (this.view.fa.D("pb-video-fullscreen") && !this.fullScreen.is() && (this.view.fa.o("pb-video-fullscreen"),
- this.A || this.controls.Ue()),
- this.controls.lj())
- }
- ;
- E.Ib = function() {
- if (this.view.Tb(this.view.contextMenu))
- this.view.s(this.view.contextMenu);
- else if (null === this.ma)
- if (this.j.B() && !this.A && this.controls.Ca)
- if (this.controls.w.D("pb-nocontrols")) {
- this.controls.w.o("pb-nocontrols");
- var a = this;
- clearTimeout(this.controls.Z);
- this.controls.Z = setTimeout(function() {
- a.controls.w.m("pb-nocontrols")
- }, 3E3)
- } else
- this.G === this.state.U ? (this.pause(),
- clearTimeout(this.controls.Z),
- this.controls.Z = null) : this.G === this.state.wb && (this.resume(),
- a = this,
- clearTimeout(this.controls.Z),
- this.controls.Z = setTimeout(function() {
- a.controls.w.m("pb-nocontrols")
- }, 3E3));
- else
- this.G === this.state.U ? this.pause() : this.G === this.state.wb && this.resume()
- }
- ;
- E.pg = function() {}
- ;
- E.fg = function() {
- null === this.ma && this.controls.Kd()
- }
- ;
- E.Yc = function() {
- this.log(this.b, "setVideoFile");
- if (!this.src) {
- this.ca = !1;
- this.view.show(this.view.Qc);
- this.A || this.controls.ic(0);
- window.MediaSource = window.MediaSource || window.WebKitMediaSource;
- if (g(this.Da) || "" == this.Da || !m(window.MediaSource))
- this.view.show(this.view.alert),
- this.view.jc(this.view.ac, "Aby obejrze\u0107 ten materia\u0142 zaaktualizuj lub zainstaluj najnowsz\u0105 przegl\u0105dark\u0119."),
- this.A || this.controls.disable();
- this.A || this.v.show(this.controls.a)
- } else if (this.te() !== this.src) {
- this.log(this.b, "setSrc");
- this.ca = !1;
- this.view.show(this.view.Qc);
- this.A || this.controls.ic(0);
- window.MediaSource = window.MediaSource || window.WebKitMediaSource;
- if (g(this.Da) || "" == this.Da || !m(window.MediaSource))
- this.src ? (this.Td(this.src),
- this.video.pause()) : (this.view.show(this.view.alert),
- this.view.jc(this.view.ac, "Aby obejrze\u0107 ten materia\u0142 zaaktualizuj lub zainstaluj najnowsz\u0105 przegl\u0105dark\u0119."),
- this.A || this.controls.disable());
- this.A || this.v.show(this.controls.a)
- }
- this.log(this.b, "autoplay: " + this.autoplay)
- }
- ;
- E.eg = function(a) {
- for (var b in a)
- "object" != typeof a[b] && console.log("cda.Player.DashJS " + b + ": " + a[b]);
- for (b in a)
- if ("object" == typeof a[b])
- for (name2 in console.log("cda.Player.DashJS " + b + ":"),
- a[b])
- console.log("cda.Player.DashJS " + name2 + ": " + JSON.stringify(a[b][name2]))
- }
- ;
- E.kb = function() {
- this.log(this.b, "startVideo");
- m(window.startVideo) && window.startVideo();
- window.MediaSource = window.MediaSource || window.WebKitMediaSource;
- if (!g(this.Da) && "" != this.Da && m(window.MediaSource))
- try {
- this.L = dashjs.MediaPlayer().create();
- this.L.initialize(this.video, this.Da, !0);
- this.L.setStableBufferTime(10);
- this.L.setBufferToKeep(3600);
- this.L.setBufferPruningInterval(10);
- this.L.setBufferTimeAtTopQuality(600);
- this.L.setBufferTimeAtTopQualityLongForm(600);
- this.L.setManifestLoaderRetryAttempts(20);
- this.L.setFragmentLoaderRetryAttempts(120);
- this.L.setScheduleWhilePaused(!0);
- this.L.setFastSwitchEnabled(!0);
- this.L.setAutoSwitchQuality(!0);
- this.L.setABRStrategy("abrThroughput");
- this.L.getDebug().setLogToBrowserConsole(!1);
- var a = "BUFFER_EMPTY BUFFER_LOADED CAN_PLAY ERROR LOG MANIFEST_LOADED METRIC_ADDED METRIC_CHANGED METRIC_UPDATED METRICS_CHANGED PERIOD_SWITCH_COMPLETED PERIOD_SWITCH_STARTED PLAYBACK_ENDED PLAYBACK_ERROR PLAYBACK_METADATA_LOADED PLAYBACK_PAUSED PLAYBACK_PLAYING PLAYBACK_PROGRESS PLAYBACK_RATE_CHANGED PLAYBACK_SEEKED PLAYBACK_SEEKING PLAYBACK_STARTED PLAYBACK_TIME_UPDATED STREAM_INITIALIZED TEXT_TRACK_ADDED TEXT_TRACKS_ADDED".split(" ");
- if (this.options.hasOwnProperty("debug") && 1 == this.options.debug)
- for (var b = 0; b < a.length; b++)
- this.L.on(window.dashjs.MediaPlayer.events[a[b]], this.eg)
- } catch (d) {
- this.log(this.b, d),
- this.L = null,
- this.src && this.te() !== this.src && this.Yc(),
- this.play(!0)
- }
- else
- this.src && this.te() !== this.src && this.Yc(),
- this.jb ? this.play() : this.play(!0),
- this.bb = this.X = !0,
- this.G != this.state.U && (this.video.play(),
- this.Ua(this.state.U));
- this.A || (this.controls.Fa(this.H()),
- this.controls.enable());
- this.O && (this.O = !1);
- this.log(this.b, "autoplay: " + this.autoplay)
- }
- ;
- E.fh = function() {
- var a = this.w.querySelector(".pb-video-player-noise");
- if ("undefined" !== a && a && (a.width = this.cb.gb() ? this.cb.gb() : 0,
- a.height = this.cb.cc() ? this.cb.cc() : 0,
- 0 < a.gb() && 0 < a.cc())) {
- for (var b = a.getContext("2d"), d = b.createImageData(b.canvas.width, b.canvas.height), e = new Uint32Array(d.data.buffer), f = e.length, k = 0; k < f; )
- e[k++] = (255 * Math.random() | 0) << 24;
- b.putImageData(d, 0, 0);
- return a
- }
- return !1
- }
- ;
- E.readyState = function() {
- return this.video.readyState
- }
- ;
- E.networkState = function() {
- return this.video.networkState
- }
- ;
- E.Ef = function() {
- var a = navigator.userAgent.toLowerCase();
- return -1 !== a.indexOf("iphone") || -1 !== a.indexOf("ipod") || -1 !== a.indexOf("ipad") ? "ios" : -1 !== a.indexOf("android") ? "android" : "pc"
- }
- ;
- E.qe = function() {
- var a = navigator.userAgent.match(/Android\s([0-9\.]*)/);
- return a ? a[1] : !1
- }
- ;
- E.Tj = function() {
- if (/iP(hone|od|ad)/.test(navigator.userAgent)) {
- var a = navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);
- return (parseInt(a[1], 10) + "." + parseInt(a[2], 10) + "." + parseInt(a[3] || 0, 10)).toString()
- }
- }
- ;
- E.ik = function() {
- var a = navigator.userAgent;
- return -1 < a.indexOf("Mozilla/5.0") && -1 < a.indexOf("Android ") && -1 < a.indexOf("Version/") && -1 < a.indexOf("AppleWebKit")
- }
- ;
- E.Ac = function(a, b, d, e) {
- var f = new Date;
- null != d && (e ? f.setHours(f.getHours() + d) : f.setDate(f.getDate() + d));
- try {
- document.cookie = a + "=" + escape(b) + (null == d ? "" : ";expires=" + f.toGMTString())
- } catch (k) {}
- }
- ;
- E.Eb = function(a) {
- var b, d, e;
- try {
- e = document.cookie.split(";")
- } catch (k) {
- e = []
- }
- for (var f = 0; f < e.length; f++)
- if (b = e[f].substr(0, e[f].indexOf("=")),
- d = e[f].substr(e[f].indexOf("=") + 1),
- b = b.replace(/^\s+|\s+$/g, ""),
- b == a)
- return unescape(d);
- return !1
- }
- ;
- E.Cd = function(a) {
- return !1 !== this.Eb(a) ? !0 : !1
- }
- ;
- E.Xf = function() {
- var a = document.getElementsByTagName("head")[0] || document.head || document.documentElement
- , b = document.createElement("script");
- b.async = !0;
- b.type = "text/javascript";
- b.src = "m.cda.pl" == window.location.host ? "//m.cda.pl/rek2-adv.js" : "//www.cda.pl/rek2-adv.js";
- a.insertBefore(b, a.firstChild);
- a.appendChild(b);
- this.sf = !0
- }
- ;
- E.If = function() {
- this.sf || this.Xf();
- this.j.B() && (this.ae = !1);
- "undefined" === typeof window.adblock && (this.ae = !0);
- return this.ae
- }
- ;
- E.log = function(a, b, d) {
- 2 > arguments.length || this.options.hasOwnProperty("debug") && 1 == this.options.debug && (3 === arguments.length ? console.log(a + "[" + b + "]: " + JSON.stringify(d)) : 2 === arguments.length && console.log(a + ": " + JSON.stringify(b)))
- }
- ;
- E.Af = function() {
- var a = this.w.getBoundingClientRect()
- , b = window.innerHeight || document.documentElement.clientHeight
- , d = window.innerWidth || document.documentElement.clientWidth;
- return 0 < a.bottom && a.top < b && 0 < a.right && a.left < d || 0 === document.body.scrollTop
- }
- ;
- E.yk = function() {
- var a = this
- , b = setInterval(function() {
- a.Gb = "undefined" !== typeof window.nextVideoEnabled && window.nextVideoEnabled ? !0 : !1;
- a.Gb && a.ended && null === a.ma && !1 === a.Hb ? (clearInterval(b),
- b = null,
- a.$c()) : a.ended || (clearInterval(b),
- b = null)
- }, 50)
- }
- ;
- E.$c = function() {
- this.log(this.b, "startNextVideo");
- this.O && (this.O = !1);
- if (this.loop)
- this.play();
- else if (this.A || (this.video.paused ? this.controls.qa(!0) : this.controls.qa()),
- this.j.B() && (this.bb = this.ca = !1),
- this.ta)
- if (this.Lc())
- if (this.le(),
- this.Gb) {
- this.A || this.controls.isEnabled() && this.controls.disable();
- this.view.fc.show();
- this.view.Yf.href = this.se();
- this.view.Yf.title = this.ta.title;
- this.view.Kh.innerHTML = this.ta.title;
- this.view.Jh.src = this.ta.thumb;
- this.view.ec.setAttribute("stroke-dashoffset", this.Hd);
- this.A && (this.view.s(this.view.f(".pb-next-timer-wrapper")),
- this.view.show(this.view.f(".pb-ie-next-loader")),
- this.view.f(".pb-ie-next-loader-progress").style.width = "0%");
- var a = this
- , b = 1E3 * this.Zf / parseInt(this.Hd);
- this.A && (b = 1E3 * this.Zf / 100);
- this.view.Ih.addEventListener("click", function() {
- a.A || a.controls.enable();
- a.Gb = !1;
- a.Gd = !0;
- a.Hb = !1;
- a.controls.F(!1);
- a.A || (a.video.paused ? a.controls.qa(!0) : a.controls.qa())
- }, !1);
- null === this.ma && (this.ma = this.eb.setInterval(function() {
- 0 == a.Gb && a.Cg();
- if (a.Af()) {
- if (a.A ? 100 > parseInt(a.view.f(".pb-ie-next-loader-progress").style.width) ? a.view.f(".pb-ie-next-loader-progress").style.width = parseInt(a.view.f(".pb-ie-next-loader-progress").style.width) + 1 + "%" : (a.eb.clearInterval(a.ma),
- a.ma = null) : 0 < parseInt(a.view.ec.getAttribute("stroke-dashoffset")) ? a.view.ec.setAttribute("stroke-dashoffset", parseInt(a.view.ec.getAttribute("stroke-dashoffset")) - 1 + "px") : (a.eb.clearInterval(a.ma),
- a.ma = null),
- 0 == parseInt(a.view.ec.getAttribute("stroke-dashoffset")) || 100 === parseInt(a.view.f(".pb-ie-next-loader-progress").style.width))
- a.fullScreen.fb(),
- a.Hb || (a.Hb = !0,
- a.j.Ta() ? window.location.replace(a.se()) : window.location.href = a.se())
- } else
- a.A ? "0%" !== a.view.f(".pb-ie-next-loader-progress").style.width && (a.view.f(".pb-ie-next-loader-progress").style.width = "0%") : a.view.ec.getAttribute("stroke-dashoffset") !== a.Hd && a.view.ec.setAttribute("stroke-dashoffset", a.Hd);
- a.le()
- }, b))
- } else
- this.controls.F(!1);
- else if (this.Mc()) {
- this.view.fc.s();
- this.view.fc.innerHTML = '<div class="pb-nxt-loader-wrapper"><div class="pb-nxt-loader-wrapper-background"></div> <div class="pb-nxt-loader"><div class="pb-nxt-wrapper-preview-next-video"><div class="pb-nxt-preview-next-video-rot"><div class="pb-nxt-preview-next-video"><img src="" title="" alt=""></div></div><div class="pb-nxt-preview-video-title">Nast\u0119pne video: <a href=""><h4></h4></a></div></div><div class="pb-nxt-loader-area"></div><a class="pb-nxt-loader-content" href=""><div class="pb-nxt-loader-content-circle"><div class="pb-nxt-loader-progress"></div></div><div class="pb-nxt-loader-play"></div></a><a class="btn btn-dark btn-next-cancel pb-btn-cancel" href="" style="position: absolute;top: 87px;left: -12px;width: 70px;padding: 5px 0;">Anuluj</a> </div></div>';
- this.view.fc.show();
- var b = this.view.fc
- , d = this.ta.url
- , e = this.view.sa(".pb-nxt-preview-video-title h4", b)
- , f = this.view.sa(".pb-nxt-preview-video-title a", b)
- , k = this.view.sa(".pb-nxt-loader-content", b)
- , h = this.view.sa(".pb-nxt-preview-next-video img", b)
- , n = this.view.sa(".pb-nxt-loader-progress", b)
- , w = this.view.sa(".pb-btn-cancel", b)
- , z = 0;
- e.innerHTML = this.ta.title;
- f.setAttribute("href", this.ta.url);
- h.setAttribute("src", this.ta.thumb);
- h.setAttribute("title", this.ta.title);
- h.setAttribute("alt", this.ta.title);
- k.setAttribute("href", this.ta.url);
- "/uploads/filmico.png" == h && this.view.sa(".pb-nxt-preview-next-video", b).s();
- a = this;
- w.addEventListener("click", function(b) {
- a.A || a.controls.enable();
- a.Gd = !0;
- a.Hb = !1;
- a.controls.F(!1);
- a.A || (a.video.paused ? a.controls.qa(!0) : a.controls.qa());
- a.view.fc.s();
- a.eb.clearInterval(a.ma);
- z = 0;
- n.style.width = "0%";
- b.preventDefault();
- return !1
- });
- null === this.ma && (this.ma = this.eb.setInterval(function() {
- 100 > z && (z++,
- n.style.width = z + "%");
- 100 <= z && !a.Hb && (a.Hb = !0,
- a.eb.clearInterval(a.ma),
- a.fullScreen.fb(),
- a.j.Ta() ? window.location.replace(d) : window.location.href = d)
- }, 100))
- }
- }
- ;
- E.Cg = function() {
- this.eb.clearInterval(this.ma);
- this.ma = null;
- this.view.fc.s();
- this.Hb = !1;
- this.A || this.controls.isEnabled() || this.controls.enable()
- }
- ;
- E.le = function() {
- this.Gb = "undefined" !== typeof window.nextVideoEnabled && window.nextVideoEnabled ? !0 : !1
- }
- ;
- E.zf = function() {
- null === this.ma && (this.le(),
- this.Gb && this.Af() && !this.Gd && !this.Hb && this.$c())
- }
- ;
- E.se = function() {
- var a = window.location.href, b;
- b = null !== this.ta.quality ? "?wersja=" + this.ta.quality + "&a=1" : "?a=1";
- -1 !== a.indexOf("&html5") && (b += "&html5&vol=10");
- return this.ta.hasOwnProperty("link") ? this.ta.link + b : a.slice(0, a.indexOf("/video/")) + "/video/" + this.ta.id + b
- }
- ;
- E.Ad = function(a, b) {
- this.log(this.b, "isAdAvailable");
- this.log(this.b, arguments);
- if (this.j.Ta())
- return !1;
- if (this.j.B()) {
- if (this.j.wc()) {
- var d = this.j.qe();
- this.log(this.b, "android version: " + d);
- if ("4.1.2" >= d)
- return !1
- }
- if (this.j.Bd())
- return !1
- }
- if (null !== a) {
- var d = this.If()
- , e = !1;
- m(M) && m(N) && m(O) && (e = !0);
- if (this.Za(a, "schedule"))
- for (var f = 0; f < this.c.schedule.length; f++)
- if (this.c.schedule[f].hasOwnProperty("time") && this.c.schedule[f].hasOwnProperty("tag") && "" != this.c.schedule[f].tag && this.c.schedule[f].hasOwnProperty("enabled") && !0 === this.c.schedule[f].enabled && this.c.schedule[f].hasOwnProperty("type") && this.c.schedule[f].time === b && !this.c.schedule[f].hasOwnProperty("midroll") && e && (this.c.schedule[f].hasOwnProperty("tagAdblock") && null != this.c.schedule[f].tagAdblock || !d))
- return !0
- }
- return !1
- }
- ;
- E.Bc = function(a, b) {
- this.log(this.b, "startAd");
- this.log(this.b, arguments);
- for (var d = this.If(), e = [], f = 0, k = 0; k < a.schedule.length; k++)
- if (a.schedule[k].time === b) {
- f++;
- var h = a.schedule[k]
- , n = {
- autoplay: h.autoplay,
- counter: h.counter,
- displayAs: h.displayAs,
- key: h.key,
- skip: h.skip,
- click: h.click,
- tag: h.tag,
- time: h.time,
- type: h.type
- };
- 1 < f && (n.autoplay = !0);
- d && this.Lc() && (n.tag = h.tagAdblock,
- n.type = "pool",
- n.counter = !1);
- if (1 < h.repeat)
- for (var w = 0; w < h.repeat; w++) {
- if (0 === b)
- n.autoplay = this.autoplay;
- else if (-1 === b || 0 < b)
- n.autoplay = !0;
- e.push(n)
- }
- else {
- if (0 === b)
- n.autoplay = this.autoplay;
- else if (-1 === b || 0 < b)
- n.autoplay = !0;
- e.push(n)
- }
- delete h;
- delete n;
- if (d)
- break
- }
- this.log(this.b, "startAd", e);
- e != [] ? (this.log(this.b, "startAd", "init ads manager"),
- this.O = !0,
- this.i = new O(this,e)) : (this.log(this.b, "startAd", "no ads to display"),
- this.autoplay && this.kb())
- }
- ;
- E.pb = function(a) {
- return "undefined" !== typeof a && "function" === typeof a.getBoundingClientRect ? a.getBoundingClientRect() : !1
- }
- ;
- E.Ui = function() {
- if (null !== this.C && !1 === this.Cc && ("premium" == this.u.type || "premium_free" == this.u.type)) {
- this.Cc = !0;
- var a = this;
- try {
- window[this.C.client][this.C.method](this.C.ts, this.C.key, {
- success: function() {
- a.Cc = !0
- },
- error: function() {
- a.Cc = !1
- }
- })
- } catch (b) {}
- }
- }
- ;
- E.xc = function(a) {
- return Number(a) === a && 0 === a % 1
- }
- ;
- E.Dd = function(a) {
- return Number(a) === a && 0 !== a % 1
- }
- ;
- E.Lk = function() {
- this.log(this.b, "window focus");
- this.log(this.b, "focus? " + document.hasFocus());
- this.Pc = !0
- }
- ;
- E.Kk = function() {
- this.log(this.b, "window blur");
- this.log(this.b, "focus? " + document.hasFocus());
- this.Pc = !1
- }
- ;
- E.Fb = function(a) {
- a = a.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
- a = (new RegExp("[\\?&]" + a + "=([^&#]*)")).exec(window.location.href);
- return null == a ? null : a[1]
- }
- ;
- E.wd = function() {
- return window.location.hostname
- }
- ;
- E.$g = function() {
- var a = this.wd();
- return -1 < a.indexOf("cda.pl") || -1 < a.indexOf("superfilm.pl") ? !0 : !1
- }
- ;
- E.Lc = function() {
- return -1 < this.wd().indexOf("cda.pl")
- }
- ;
- E.Mc = function() {
- return -1 < this.wd().indexOf("superfilm.pl")
- }
- ;
- E.Je = function() {
- this.video.show();
- this.view.Yd.s();
- this.view.R.s();
- this.video.load();
- this.video.play()
- }
- ;
- E.Vj = function() {
- return this.hd
- }
- ;
- E.Ug = function() {
- this.hd++
- }
- ;
- E.Pe = function() {
- this.hd = 0
- }
- ;
- E.tg = function(a) {
- this.jd = !!a
- }
- ;
- E.Wj = function() {
- return this.jd
- }
- ;
- E.jg = function(a) {
- a = a || window.event;
- this.view.Pd.o("pb-context-wrapp-show");
- this.view.Pd.m("pb-context-wrapp-hide");
- a.preventDefault();
- return !1
- }
- ;
- E.lg = function(a) {
- a = a || window.event;
- this.j.B() ? alert("CDA nie limituje przepustowo\u015bci oraz transferu danych. \nW godzinach wieczornych mo\u017ce zdarzy\u0107 si\u0119 jednak, i\u017c ilo\u015b\u0107 u\u017cytkownik\u00f3w przekracza mo\u017cliwo\u015bci naszych serwer\u00f3w wideo. W\u00f3wczas odbi\u00f3r mo\u017ce by\u0107 zak\u0142\u00f3cony, a plik wideo mo\u017ce \u0142adowa\u0107 si\u0119 d\u0142u\u017cej ni\u017c zwykle. \n\nW Opcji CDA Premium gwarantujemy, i\u017c przepustowo\u015bci i transferu nie braknie dla \u017cadnego u\u017cytkownika.") : this.view.Yi.m("pb-why-more-answer-show");
- a.preventDefault();
- return !1
- }
- ;
- E.pk = function() {
- return this.fe
- }
- ;
- E.zg = function(a) {
- this.fe = !!a
- }
- ;
- E.Be = function() {
- return this.options.hasOwnProperty("user") && this.options.user.hasOwnProperty("role") && "premium" == this.options.user.role || this.options.hasOwnProperty("premium") && !0 === this.options.premium ? !0 : !1
- }
- ;
- E.Jc = function() {
- return this.options.hasOwnProperty("user") && this.options.user.hasOwnProperty("id") && !g(this.options.user.id) ? this.options.user.id : 33
- }
- ;
- E.ue = function() {
- return this.options.hasOwnProperty("user") && this.options.user.hasOwnProperty("gender") && !g(this.options.user.gender) ? this.options.user.gender : ""
- }
- ;
- E.ve = function() {
- return g(this.u) || !this.u.hasOwnProperty("premium_categories") || g(this.u.premium_categories) ? "" : this.u.premium_categories
- }
- ;
- E.kg = function() {
- this.O || 0 != this.Be() || this.Ac("cda.player.ppst", this.options.video.id + ":" + Number(Math.floor(this.$())), 2, !0)
- }
- ;
- E.Tf = function() {
- return this.options.hasOwnProperty("user") && this.options.user.hasOwnProperty("role") && "admin" == this.options.user.role ? !0 : !1
- }
- ;
- function ga(a) {
- if (!a)
- throw new TypeError("playerObject is null or empty.");
- this.a = a;
- this.ba = a.ba
- }
- E = ga.prototype;
- E.gh = function(a) {
- if (this.ba.Of(a)) {
- var b = this.Xg(this.a.options.video.width, this.a.options.video.height)
- , d = "";
- 1 == b.x && 1 == b.y && (d = "pb-format16x9");
- var e = '<span class="pb-ico-above-hide"></span>';
- g(this.a.options.video.content_rating) || (e = '<span class="pb-ico-above-wrapp"><span class="pb-ico-above-' + this.a.options.video.content_rating + 'y"></span></span>');
- this.xg(a, '<div class="pb-player-html-wrapper"><div class="pb-player-content ' + b.className + " " + d + '"> <style>' + ("#" + this.a.options.id + " .pb-video-active .pb-stretching-full .pb-video-player {transform: scaleX(" + b.x + ") scaleY(" + b.y + ")}") + '</style><div class="pb-player-html"><span class="pb-ady-counter"></span><span class="pb-ady-player-wrap"><span id="pb-yt-iframe"></span><span class="pb-ady-skip"></span></span><span class="pb-video-player-wrap"> <img class="pb-resp-width-max" src="//static.cda.pl/v001/img/mobile/v16x9.png"><span class="pb-fl-player-wrap"><span class="pb-post-fl"><video class="pb-video-player"></video><span class="pb-valign-middle"></span></span></span> <span class="pb-video-poster"><span class="pb-valign-middle"></span></span><span class="pb-logo"></span> <span class="pb-video-click"></span><span class="pb-video-ad-container"><span class="pb-video-ad-content"></span><span class="pb-valign-middle"></span></span><span class="pb-play-ico"></span> <span class="pb-loader-ico"></span> <span class="pb-next-video-wrapper" style="display: none"> <span class="pb-next-video-content"> <span class="pb-next-video-title"></span> <span class="pb-next-viteo-thumb-wrapper"> <img class="pb-next-thumb-video" src=""/> <span class="pb-next-timer-wrapper"> <svg width="100%" viewBox="0 0 98 98" height="100%"> <circle transform="rotate(-90)" stroke-width="18" stroke="rgba(0,0,0,0.5)" r="32.5" fill-opacity="0" cy="49" cx="-49" class="load-new-film"/> <circle class="pb-next-video-circle-progress" transform="rotate(-90)" stroke-width="14" stroke-dasharray="208.2%" stroke-dashoffset="204px" stroke="rgba(249, 249, 249, 0.5)" r="32.5" fill-opacity="0" cy="49" cx="-49" class="load-new-film"/> <polygon points="42,37 62,49 42,61"fill="rgba(255,255,255,0.7)" class="pb-next-play"/> </svg> </span> <span class="pb-ie-next-loader" style="display: none"> <span class="pb-ie-next-loader-progress"></span> </span> <a href="#" title="" class="pb-next-click"></a> </span> <span class="pb-btn-wrapper"> <a class="pb-btn-cancel">anuluj</a> </span> </span> </span> <span class="pb-alert" style="display:none"> <span class="pb-alert-body"> <span class="header-alert"></span> <span class="text-alert"></span> </span> <span class="pb-alert-valign-middle"></span> </span> <span class="pb-ad-counter" style="display: none"></span><span class="pb-ad-info" style="display: none;"></span><span class="pb-info" style="display: none"><span class="pb-info-container"><span class="pb-info-content"></span></span><span class="pb-valign-middle"></span></span> ' + e + ' <span class="pb-ccast-float"></span> <a class="pb-ad-close"> <span class="pb pb-ad-close-body" style="display: none"></span> </a> <a class="pb-skip" style="display: none"> <span class=pb-skip-body>pomi\u0144</span> </a> <span class="pb-premium-promotion pb-context-wrapp pb-context-wrapp-hide"><span class="pb-context-body"><span class="pb pb-context-close pb-premium-promotion-close"></span><span class="pb-context-content"><span class="pb-ico-speed"><span></span></span><span class="pb-context-content-body">Potrzebujesz szybszego \u0142adowania wideo? <span class="pb-context-block"><a class="pb-context-button pb-premium-promotion-button" href="https://premium.cda.pl/rejestracja">W\u0142\u0105cz konto premium na 14 dni za darmo</a></span><span class="pb-why-more">Dlaczego widz\u0119 ten komunikat?</span></span><span class="pb-why-more-answer"><p>CDA nie limituje przepustowo\u015bci oraz transferu danych. <br />W godzinach wieczornych mo\u017ce zdarzy\u0107 si\u0119 jednak, i\u017c ilo\u015b\u0107 u\u017cytkownik\u00f3w przekracza mo\u017cliwo\u015bci naszych serwer\u00f3w wideo. W\u00f3wczas odbi\u00f3r mo\u017ce by\u0107 zak\u0142\u00f3cony, a plik wideo mo\u017ce \u0142adowa\u0107 si\u0119 d\u0142u\u017cej ni\u017c zwykle.</p><p>W opcji CDA Premium gwarantujemy, i\u017c przepustowo\u015bci i transferu nie braknie dla \u017cadnego u\u017cytkownika. <a href="https://premium.cda.pl/rejestracja" class="pb-why-more-register pb-link-color">Zarejestruj swoje konto premium ju\u017c teraz!</a></p></span></span></span></span><span class="pb-box-info"><span class="pb-box-info-content"></span></span></span> <span class="button-players"> <span class="pb pb-bar"> <span class="pb pb-play"></span> <span class="pb pb-volume"> <span class="pb pb-volume-mute"></span> <span class="pb pb-progress-bar-volume-area"> <span class="pb pb-progress-bar-volume"></span> </span> <span class="pb pb-volume-max"></span> </span> <span class="pb pb-settings"><span class="pb-settings-click"></span><span class="pb-settings-menu"><span class="pb-settings-menu-wrapper"><span class="pb-settings-cloud"><span class="pb-settings-container"><span class="pb-menu pb-menu-static"><span class="pb pb-close-settings"></span><span class="pb-header-menu">Ustawienia</span><ul><li><span class="pb-menu-head">Format obrazu </span><ul class="pb-menu-slave"><li item="5"><a><span class="pb-ico-exp"></span><span class="pb-radio"><span class="pb-radio-btn"></span></span>rozszerzony</a></li><li item="6" class="pb-active"><a><span class="pb-ico-norm"></span><span class="pb-radio"><span class="pb-radio-btn"></span></span>normalny</a></li><li item="7"><a><span class="pb-ico-full"></span><span class="pb-radio"><span class="pb-radio-btn"></span></span>rozci\u0105gni\u0119ty</a></li><li item="8"><a><span class="pb-ico-oryg"></span><span class="pb-radio"><span class="pb-radio-btn"></span></span>nieskalowany</a></li></ul></li><li item="1" style="display: none" class="pb-settings-nextvideo"><a><span class="pb-switch"><span class="pb-switch-on-text">on</span><span class="pb-switch-off-text">off</span><span class="pb-switch-btn"></span></span>Autoodtwarzanie nast\u0119pnego video</a></li><li item="4" class="pb-settings-autoplay"><a><span class="pb-switch"><span class="pb-switch-on-text">on</span><span class="pb-switch-off-text">off</span><span class="pb-switch-btn"></span></span>Autoplay</a></li><li style="display: none" item="2" class="pb-settings-loop"><a><span class="pb-switch"><span class="pb-switch-on-text">on</span><span class="pb-switch-off-text">off</span><span class="pb-switch-btn"></span></span>Odtwarzaj w p\u0119tli</a></li><li item="2" style="display: none"><a><span class="pb-switch"><span class="pb-switch-on-text">on</span><span class="pb-switch-off-text">off</span><span class="pb-switch-btn"></span></span>Odtwarzanie w p\u0119tli</a></li><li item="3"><a>Zg\u0142o\u015b problem z playerem</a></li></ul></span></span></span></span><span class="pb-settings-cloud-arrow"></span></span></span><span class="pb pb-ccast"></span><span class="pb pb-fullscreen"></span> <span class="pb-time-bar"> <span class="pb-actual-time">0:00</span> <span class="pb-max-time">0:00</span> <span class="pb pb-progress-time pb-progress-time-active"> <span class="pb pb-progress-time-progress"></span> <span class="pb-progress-bar-area"> <span class="pb-time-position"> <span class="pb-time-cloud"> <span class="pb-time-container">0:00</span> <span class="pb-time-cloud-arrow"></span> </span> </span> <span class="pb pb-progress-bar-time"> <span class="bar-line-handle"></span> </span> </span> </span> </span> </span> </span><span class="pb-menu-context"><span class="pb-menu"><span class="pb-header-menu">Player wersja: ' + this.a.Tg + '</span><ul><li item="1"><a>Kopiuj adres filmu</a></li><li item="2"><a>Skopiuj kod embed</a></li><li item="3"><a>Zg\u0142o\u015b problem z playerem</a></li></ul></span></span></div></div></div>')
- }
- }
- ;
- E.kj = function() {
- this.w = this.sa(".pb-player-html-wrapper", this.a.element);
- this.content = this.f(".pb-player-content");
- this.video = this.f(".pb-video-player");
- this.bd = this.f(".pb-video-click");
- this.cb = this.f(".pb-video-player-wrap");
- this.Aa = this.f(".pb-fl-player-wrap");
- this.fa = this.f(".pb-player-html");
- this.Yd = this.f(".pb-video-poster");
- this.Qc = this.f(".pb-logo");
- this.contextMenu = this.f(".pb-menu-context");
- this.Yf = this.f(".pb-next-click");
- this.fc = this.f(".pb-next-video-wrapper");
- this.Kh = this.f(".pb-next-video-title");
- this.Jh = this.f(".pb-next-thumb-video");
- this.ec = this.f(".pb-next-video-circle-progress");
- this.f(".pb-ie-next-loader");
- this.f(".pb-ie-next-loader-progress");
- this.Ih = this.f(".pb-btn-cancel");
- this.alert = this.f(".pb-alert");
- this.ac = this.f(".text-alert");
- this.$a = this.f(".pb-play");
- this.R = this.f(".pb-play-ico");
- this.W = this.f(".pb-loader-ico");
- this.ya = this.f(".pb-progress-time");
- this.Ka = this.f(".pb-progress-bar-time");
- this.Xa = this.f(".pb-progress-bar-area");
- this.Le = this.f(".pb-bar");
- this.je = this.f(".pb-progress-time-progress");
- this.currentTime = this.f(".pb-actual-time");
- this.vd = this.f(".pb-max-time");
- this.fullScreen = this.f(".pb-fullscreen");
- this.Mb = this.f(".pb-volume-mute");
- this.Ga = this.f(".pb-progress-bar-volume");
- this.Ze = this.f(".pb-volume-max");
- this.Db = this.f(".pb-progress-bar-volume-area");
- this.controls = this.f(".button-players");
- this.cb = this.f(".pb-video-player-wrap");
- this.S = this.f(".pb-player-html");
- this.Ag = this.f(".pb-settings-click");
- this.ea = this.f(".pb-settings-menu");
- this.rj = this.f(".pb-close-settings");
- this.Yg = this.f(".pb-ccast");
- this.bc = this.f(".pb-ccast-float");
- this.Oa = this.f(".pb-video-ad-container");
- this.Ha = this.f(".pb-video-ad-content");
- this.f(".pb-ad-video-player");
- this.Ba = this.f(".pb-ad-counter");
- this.nd = this.f(".pb-ad-close-body");
- this.Pa = this.f(".pb-skip");
- this.V = this.f(".pb-ad-info");
- this.Fg = this.sa(".pb-ady-player-wrap");
- this.vb = this.sa(".pb-ady-skip");
- this.cd = this.sa(".pb-ady-counter");
- this.info = this.f(".pb-info");
- this.f(".pb-info-content");
- this.vc = this.f(".pb-box-info");
- this.yd = this.f(".pb-box-info-content");
- this.Pd = this.f(".pb-premium-promotion");
- this.Wi = this.f(".pb-premium-promotion-close");
- this.Vi = this.f(".pb-premium-promotion-button");
- this.Xi = this.f(".pb-why-more");
- this.Yi = this.f(".pb-why-more-answer");
- this.Zi = this.f(".pb-why-more-register")
- }
- ;
- E.Xg = function(a, b) {
- var d, e;
- videoW = this.ba.xc(Number(a)) ? a : 640;
- videoH = this.ba.xc(Number(b)) ? b : 360;
- screenW = window.screen.width;
- screenH = window.screen.height;
- cName = "";
- videoW / videoH >= screenW / screenH ? (d = 1,
- e = videoW / screenW * (screenH / videoH)) : (d = videoH / screenH * (screenW / videoW),
- e = 1,
- cName = "pb-h-vid");
- return {
- x: d,
- y: e,
- className: cName
- }
- }
- ;
- E.f = function(a) {
- if (!this.ba.Ae(this.w))
- return this.sa(a, this.w)
- }
- ;
- E.sa = function(a, b) {
- if (1 < arguments.length && null !== b) {
- if (this.ba.Qf(b.querySelector))
- return b.querySelector(a);
- if (-1 !== a.indexOf("#"))
- return document.getElementById(a.substring(1));
- if (0 < b.re(a.substring(1)).length)
- return b.re(a.substring(1))[0]
- } else {
- if (this.ba.Qf(document.querySelector))
- return document.querySelector(a);
- if (-1 !== a.indexOf("#"))
- return document.getElementById(a.substring(1));
- if (0 < document.re(a.substring(1)).length)
- return document.re(a.substring(1))[0]
- }
- return null
- }
- ;
- E.xg = function(a, b) {
- this.ba.Of(a) && (a.innerHTML = b)
- }
- ;
- E.jc = function(a, b) {
- this.xg(a, b)
- }
- ;
- E.m = function(a, b) {
- "undefined" !== typeof a && ("undefined" !== typeof a.classList ? a.classList.add(b) : a.className = a.className + " " + b)
- }
- ;
- E.o = function(a, b) {
- if ("undefined" !== typeof a)
- if ("undefined" !== typeof a.classList)
- a.classList.remove(b);
- else {
- for (var d = a.className.split(" "), e = "", f = 0; f < d.length; f++)
- b != d[f] && (e += d[f] + " ");
- a.className = e
- }
- }
- ;
- E.D = function(a, b) {
- return "undefined" !== typeof a && -1 !== a.className.indexOf(b) ? !0 : !1
- }
- ;
- E.pb = function(a) {
- return "undefined" !== typeof a && "function" === typeof a.getBoundingClientRect ? a.getBoundingClientRect() : !1
- }
- ;
- E.ua = function(a, b) {
- "undefined" === typeof a || isNaN(b) || (a.style.width = b)
- }
- ;
- E.gb = function(a) {
- return "undefined" !== typeof a ? a.offsetWidth : 0
- }
- ;
- E.Qe = function(a, b) {
- "undefined" === typeof a || isNaN(b) || (a.style.height = b)
- }
- ;
- E.cc = function(a) {
- return "undefined" !== typeof a ? a.offsetHeight : 0
- }
- ;
- E.Tb = function(a) {
- return "undefined" !== typeof a && "undefined" !== typeof a.offsetParent && null !== a.offsetParent ? !0 : !1
- }
- ;
- E.s = function(a) {
- "undefined" !== typeof a && "undefined" !== typeof a.style && ("visible" === a.style.visiblity ? a.style.visiblity = "hidden" : a.style.display = "none")
- }
- ;
- E.show = function(a) {
- "undefined" !== typeof a && "undefined" !== typeof a.style && ("hidden" === a.style.visiblity ? a.style.visiblity = "visible" : a.style.display = "block")
- }
- ;
- function G() {}
- E = G.prototype;
- E.ck = function(a) {
- if ("object" == typeof a) {
- if (null === a)
- return "null";
- if (a instanceof Array)
- return "array";
- if (a instanceof Object)
- return "object"
- }
- }
- ;
- E.lk = function(a) {
- return null === a
- }
- ;
- E.Ae = function(a) {
- return "undefined" === typeof a
- }
- ;
- E.Qf = function(a) {
- return "function" === typeof a
- }
- ;
- E.nk = function(a) {
- return "object" === typeof a
- }
- ;
- E.Of = function(a) {
- return "undefined" !== typeof HTMLElement ? a instanceof HTMLElement : a instanceof Element
- }
- ;
- E.mk = function(a) {
- return "number" === typeof a
- }
- ;
- E.qk = function(a) {
- return "string" === typeof a
- }
- ;
- E.yh = function(a) {
- return "boolean" === typeof a
- }
- ;
- E.xc = function(a) {
- return Number(a) === a && 0 === a % 1
- }
- ;
- E.Dd = function(a) {
- return Number(a) === a && 0 !== a % 1
- }
- ;
- "undefined" === typeof Array.isArray && (Array.isArray = function(a) {
- return "[object Array]" === Object.prototype.toString.call(a)
- }
- );
- E.Ac = function(a, b, d, e) {
- var f = new Date;
- null != d && (e ? f.setHours(f.getHours() + d) : f.setDate(f.getDate() + d));
- try {
- document.cookie = a + "=" + escape(b) + (null == d ? "" : ";expires=" + f.toGMTString())
- } catch (k) {}
- }
- ;
- E.Eb = function(a) {
- var b, d, e;
- try {
- e = document.cookie.split(";")
- } catch (k) {
- e = []
- }
- for (var f = 0; f < e.length; f++)
- if (b = e[f].substr(0, e[f].indexOf("=")),
- d = e[f].substr(e[f].indexOf("=") + 1),
- b = b.replace(/^\s+|\s+$/g, ""),
- b == a)
- return unescape(d);
- return !1
- }
- ;
- E.Cd = function(a) {
- return !1 !== this.Eb(a) ? !0 : !1
- }
- ;
- E.bind = function(a, b) {
- return function() {
- b.apply(a, b)
- }
- }
- ;
- E.Wg = function(a, b) {
- return a.call.apply(a.bind, arguments)
- }
- ;
- E.sd = function(a, b) {
- return this.Wg.apply(null, arguments)
- }
- ;
- function L() {}
- E = L;
- E.isEnabled = function() {
- return l(window.navigator.cookieEnabled) ? !isEmpty(window.document.cookie) : window.navigator.cookieEnabled
- }
- ;
- E.set = function(a, b, d, e) {
- var f = new Date;
- null != d && (e ? f.setHours(f.getHours() + d) : f.setDate(f.getDate() + d));
- try {
- document.cookie = a + "=" + escape(b) + (null == d ? "" : ";expires=" + f.toGMTString())
- } catch (k) {}
- }
- ;
- E.get = function(a) {
- var b, d, e;
- try {
- e = document.cookie.split(";")
- } catch (k) {
- e = []
- }
- for (var f = 0; f < e.length; f++)
- if (b = e[f].substr(0, e[f].indexOf("=")),
- d = e[f].substr(e[f].indexOf("=") + 1),
- b = b.replace(/^\s+|\s+$/g, ""),
- b == a)
- return unescape(d);
- return null
- }
- ;
- E.kh = function() {
- return !1 !== this.get("cda-player-volume") ? !0 : !1
- }
- ;
- function fa(a) {
- this.pj(a)
- }
- E = fa.prototype;
- E.isEnabled = function() {
- return !g(this.ub)
- }
- ;
- E.pj = function(a) {
- this.type = a;
- this.ub = "session" === this.type ? ba() : aa()
- }
- ;
- E.set = function(a, b) {
- if (0 < arguments.length && !l(a) && !l(b))
- try {
- this.isEnabled() && this.ub.setItem(a, JSON.stringify(b))
- } catch (d) {}
- }
- ;
- E.get = function(a) {
- try {
- if (this.isEnabled()) {
- var b = this.ub.getItem(a);
- return g(b) && l(b) ? null : JSON.parse(b)
- }
- } catch (d) {
- return null
- }
- }
- ;
- E.remove = function(a) {
- try {
- this.isEnabled() && this.ub.removeItem(a)
- } catch (b) {}
- }
- ;
- E.clear = function() {
- try {
- this.isEnabled() && this.ub.clear()
- } catch (a) {}
- }
- ;
- function J(a, b, d) {
- if ("undefined" == a || null == a || null === d)
- return !1;
- this.b = "cda.Player.Controls";
- this.w = a;
- this.a = b;
- this.yb = d;
- this.view = b.view;
- this.ba = b.ba;
- this.$a = this.view.f(".pb-play");
- this.R = this.view.f(".pb-play-ico");
- this.W = this.view.f(".pb-loader-ico");
- this.ya = this.view.f(".pb-progress-time");
- this.Ka = this.view.f(".pb-progress-bar-time");
- this.Xa = this.view.f(".pb-progress-bar-area");
- this.Le = this.view.f(".pb-bar");
- this.je = this.view.f(".pb-progress-time-progress");
- this.currentTime = this.view.f(".pb-actual-time");
- this.vd = this.view.f(".pb-max-time");
- this.fullScreen = this.view.f(".pb-fullscreen");
- this.Mb = this.view.f(".pb-volume-mute");
- this.Ga = this.view.f(".pb-progress-bar-volume");
- this.Ze = this.view.f(".pb-volume-max");
- this.Db = this.view.f(".pb-progress-bar-volume-area");
- this.controls = this.view.f(".button-players");
- this.cb = this.view.f(".pb-video-player-wrap");
- this.S = this.view.f(".pb-player-html");
- this.Ag = this.view.f(".pb-settings-click");
- this.ea = this.view.f(".pb-settings-menu");
- this.Aa = this.view.f(".pb-fl-player-wrap");
- this.ra = this.Ra = this.Ya = this.Wf = this.Vf = -1;
- this.Eg = 70;
- this.Oc = this.Ca = !1;
- this.dc = !0;
- this.h = {};
- this.Z = null;
- this.Yb = this.ce = this.Nb = this.ob = !1;
- this.event = null;
- this.ia = "click timeupdate loadeddata loadedmetadata progress waiting play pause".split(" ");
- "function" === typeof H && (this.event = new H);
- null == this.w.getAttribute("tabindex") && this.w.setAttribute("tabindex", "1");
- try {
- var e = this.a.oh();
- 0 != e && e.hasOwnProperty("volume") ? this.T(e.volume) : this.a.Cd("cda.player.volume") ? this.T(this.a.Eb("cda.player.volume")) : this.T(this.Ye)
- } catch (f) {
- this.T(this.Ye)
- }
- this.zd()
- }
- E = J.prototype = {};
- E.zd = function() {
- for (var a in this.ia)
- if ("" != this.ia[a]) {
- var b = null;
- switch (this.ia[a]) {
- case "click":
- b = this.Ib;
- break;
- case "timeupdate":
- b = this.Vc;
- break;
- case "loadeddata":
- b = this.Fe;
- break;
- case "loadedmetadata":
- b = this.Ge;
- break;
- case "progress":
- b = this.yc;
- break;
- case "waiting":
- b = this.Wc;
- break;
- case "play":
- b = this.zc;
- break;
- case "pause":
- b = this.sb
- }
- null !== b && "function" === typeof b && (this.h[this.ia[a]] = I(this.a.video, this.ia[a], b, this))
- }
- this.a.j.Ta() || (this.h.tk = I(this.w, "keydown", this.Yh, this));
- this.a.j.Ta() && (this.h.Qk = I(document.querySelector(".btn-fullscreen"), "click", this.ci, this));
- this.h.bd = I(this.view.bd, "click", this.pg, this);
- this.h.Pj = I(this.fullScreen, "click", this.Kd, this);
- this.h.Pk = I(this.$a, "click", this.Ub, this);
- this.h.Ok = I(this.R, "click", this.gc, this);
- this.h.el = I(this.Mb, "click", this.Ci, this);
- this.h.Ze = I(this.Ze, "click", this.Bi, this);
- this.h.al = I(this.Ag, "click", this.ri, this);
- this.h.bl = I(this.ea, "click", this.si, this);
- this.h.gg = I(window.document, "click", this.gg, this);
- this.h.ng = I(this.view.rj, "click", this.ng, this);
- this.a.j.B() || (this.h.Rk = I(this.ya, "mousedown", this.ei, this),
- this.h.Tk = I(this.ya, "mouseup", this.gi, this),
- this.h.Xk = I(this.Le, "mousemove", this.ki, this),
- this.h.fl = I(this.Db, "mousedown", this.Di, this),
- this.h.hl = I(this.Db, "mouseup", this.Fi, this),
- this.h.gl = I(this.Db, "mousemove", this.Ei, this),
- this.h.Sk = I(this.ya, "mousemove", this.fi, this),
- this.h.dl = I(this.cb, "mousemove", this.Ai, this),
- this.h.eh = I(this.controls, "mouseenter", this.Bf, this),
- this.h.eh = I(this.controls, "mouseover", this.Bf, this),
- this.h.dh = I(this.controls, "mouseleave", this.Cf, this),
- this.h.dh = I(this.controls, "mouseout", this.Cf, this),
- this.h.nl = I(this.w, "mouseup", this.Hi, this),
- this.h.Mj = I(document, "mouseup", this.Sh, this),
- this.h.Lj = I(document, "mousedown", this.Rh, this));
- this.a.j.B() && (this.h.Wk = I(this.ya, "touchstart", this.ji, this),
- this.h.Uk = I(this.ya, "touchend", this.hi, this),
- this.h.Yk = I(this.Le, "touchmove", this.li, this),
- this.h.Vk = I(this.ya, "touchmove", this.ii, this));
- this.W.s();
- this.S.m("pb-paused");
- this.S.m("pb-bar-no-seeking")
- }
- ;
- E.enable = function() {
- this.ce = !0;
- this.view.o(this.view.fa, "pb-nocloud")
- }
- ;
- E.disable = function() {
- this.ce = !1;
- this.view.m(this.view.fa, "pb-nocloud")
- }
- ;
- E.isEnabled = function() {
- return this.ce
- }
- ;
- E.Ue = function() {
- clearInterval(this.Z);
- this.Z = null;
- this.w.o("pb-nocontrols")
- }
- ;
- E.gk = function() {
- clearInterval(this.Z);
- this.Z = null;
- this.w.m("pb-nocontrols")
- }
- ;
- E.Ea = function(a) {
- a = Number(a);
- var b = Math.floor(a / 3600)
- , d = Math.floor(a % 3600 / 60);
- a = Math.floor(a % 3600 % 60);
- return (0 < b ? b + ":" + (10 > d ? "0" : "") : "") + d + ":" + (10 > a ? "0" : "") + a
- }
- ;
- E.m = function(a, b) {
- "undefined" !== typeof a.classList ? a.classList.add(b) : a.className = a.className + " " + b
- }
- ;
- E.o = function(a, b) {
- if ("undefined" !== typeof a.classList)
- a.classList.remove(b);
- else {
- for (var d = a.className.split(" "), e = "", f = 0; f < d.length; f++)
- b != d[f] && (e += d[f] + " ");
- a.className = e
- }
- }
- ;
- E.D = function(a, b) {
- return -1 === a.className.indexOf(b) ? !1 : !0
- }
- ;
- E.pb = function(a) {
- return "undefined" !== a && "function" === typeof a.getBoundingClientRect ? a.getBoundingClientRect() : !1
- }
- ;
- E.ib = function(a) {
- r(a) && !isNaN(a) && (this.currentTime.innerHTML = this.Ea(a))
- }
- ;
- E.Fa = function(a) {
- r(a) && !isNaN(a) && (this.vd.innerHTML = this.Ea(a))
- }
- ;
- E.mj = function(a) {
- this.ba.yh(a) && (a ? !1 === this.view.D(this.view.fullScreen, "pb-fullscreen-active") && this.view.m(this.view.fullScreen, "pb-fullscreen-active") : this.view.D(this.view.fullScreen, "pb-fullscreen-active") && this.view.o(this.view.fullScreen, "pb-fullscreen-active"))
- }
- ;
- E.wg = function(a) {
- this.view.D(this.view.ea, "pb-settings-menu-on") && (this.view.o(this.view.ea, "pb-settings-menu-on"),
- this.view.m(this.view.ea, "pb-settings-menu-off"));
- this.view.Tb(this.view.contextMenu) && this.view.s(this.view.contextMenu);
- a ? (this.Ca = !0,
- this.a.G === this.a.state.U && (this.a.j.B() && (this.ob = !1),
- this.Wd()),
- this.view.fa.m("pb-video-fullscreen"),
- this.view.fullScreen.m("pb-fullscreen-active")) : (this.Ca = !1,
- this.a.j.B() && (this.ob = !1),
- this.lc(),
- this.view.fa.o("pb-video-fullscreen"),
- this.view.fullScreen.o("pb-fullscreen-active"))
- }
- ;
- E.lj = function() {
- var a;
- a = !0;
- this.xe();
- a ? (this.h.Ld = I(this.view.yd, "click", this.Ld, this),
- this.th()) : (K(this.view.yd, "click", this.h.Ld),
- this.h.Ld = null)
- }
- ;
- E.Kd = function() {
- this.yb.is() || !this.yb.is() && !g(this.yb.element()) ? this.yb.fb() : this.yb.request()
- }
- ;
- E.ei = function(a) {
- if (this.isEnabled() && (a = a || window.event,
- "undefined" === typeof a.which || 1 == a.which)) {
- this.dc = !1;
- this.ya.setAttribute("data-click", "click");
- this.Nb = !0;
- this.S.D("pb-bar-no-seeking") && this.S.o("pb-bar-no-seeking");
- this.S.m("pb-bar-seeking");
- var b = (a.pageX - this.pb(this.Xa).left) / this.Xa.offsetWidth * 100;
- 100 < b ? b = 100 : 0 > b && (b = 0);
- 0 === this.a.H() && (this.a.Qd = b);
- this.Ya = b;
- this.Ka.style.width = b + "%";
- a.preventDefault();
- return !1
- }
- }
- ;
- E.ji = function(a) {
- if (this.isEnabled()) {
- a = a || window.event;
- var b = a.changedTouches;
- "undefined" !== b && 1 == b.length && (this.yb.Ca() && (this.a.j.B() && (this.ob = !0),
- this.lc()),
- this.dc = !1,
- this.ya.setAttribute("data-click", "click"),
- this.Nb = !0,
- this.S.D("pb-bar-no-seeking") && this.S.o("pb-bar-no-seeking"),
- this.S.m("pb-bar-seeking"),
- this.S.m("pb-time-cloud-show"),
- b = (b[0].pageX - this.pb(this.Xa).left) / this.Xa.offsetWidth * 100,
- 100 < b ? b = 100 : 0 > b && (b = 0),
- this.Ya = b,
- this.Ka.style.width = b + "%");
- a.preventDefault();
- return !1
- }
- }
- ;
- E.gi = function(a) {
- if (this.isEnabled() && (a = a || window.event,
- "undefined" === typeof a.which || 1 == a.which)) {
- this.dc = !0;
- this.ya.setAttribute("data-click", "none");
- this.Nb = !1;
- this.S.D("pb-bar-seeking") && this.S.o("pb-bar-seeking");
- this.S.m("pb-bar-no-seeking");
- if (-1 != this.a.H() && -1 != this.Ya) {
- var b = this.Ya / 100 * this.a.H();
- this.a.J.Ja() ? this.a.J.Ma(b) : this.a.Ma(b)
- } else
- this.Ub(),
- this.a.kb();
- a.preventDefault();
- return !1
- }
- }
- ;
- E.hi = function(a) {
- if (this.isEnabled()) {
- a = a || window.event;
- var b = a.changedTouches;
- "undefined" !== b && 1 == b.length && (this.yb.Ca() && (this.a.j.B() && (this.ob = !1),
- this.Wd()),
- this.dc = !0,
- this.ya.setAttribute("data-click", "none"),
- this.Nb = !1,
- this.S.D("pb-bar-seeking") && this.S.o("pb-bar-seeking"),
- this.S.m("pb-bar-no-seeking"),
- this.S.o("pb-time-cloud-show"),
- -1 != this.a.H() && -1 != this.Ya ? (b = this.Ya / 100 * this.a.H(),
- this.a.J.Ja() ? this.a.J.Ma(b) : this.a.Ma(b)) : (this.Ub(),
- this.a.kb()));
- a.preventDefault();
- return !1
- }
- }
- ;
- E.ki = function(a) {
- if (this.isEnabled() && (a = a || window.event,
- "undefined" === typeof a.which || 1 == a.which)) {
- if ("click" == this.ya.getAttribute("data-click")) {
- var b = (a.pageX - this.pb(this.Xa).left) / this.Xa.offsetWidth * 100;
- 100 < b ? b = 100 : 0 > b && (b = 0);
- this.Ya = b;
- this.Ka.style.width = b + "%"
- }
- a.preventDefault();
- return !1
- }
- }
- ;
- E.li = function(a) {
- if (this.isEnabled()) {
- a = a || window.event;
- var b = a.changedTouches;
- "undefined" !== b && 1 == b.length && "click" == this.ya.getAttribute("data-click") && (b = (b[0].pageX - this.pb(this.ya).left) / this.Xa.offsetWidth * 100,
- 100 < b ? b = 100 : 0 > b && (b = 0),
- this.Ya = b,
- this.Ka.style.width = b + "%");
- a.preventDefault();
- return !1
- }
- }
- ;
- E.fi = function(a) {
- if (this.isEnabled()) {
- a = a || window.event;
- var b = (a.pageX - this.pb(this.Xa).left) / this.Xa.offsetWidth * 100;
- 100 < b ? b = 100 : 0 > b && (b = 0);
- var d = this.Ea(b / 100 * this.a.H());
- this.w.querySelector(".pb-time-position").style.left = b + "%";
- b = this.w.querySelector(".pb-time-container");
- null != b && (b.innerHTML = d);
- a.preventDefault();
- return !1
- }
- }
- ;
- E.ii = function(a) {
- if (this.isEnabled()) {
- a = a || window.event;
- var b = a.changedTouches;
- if ("undefined" !== b && 1 == b.length) {
- this.yb.Ca() && (this.a.j.B() && (this.ob = !0),
- this.lc());
- var d = (b[0].pageX - this.pb(this.Xa).left) / this.Xa.offsetWidth * 100;
- 100 < d ? d = 100 : 0 > d && (d = 0);
- b = this.Ea(d / 100 * this.a.H());
- this.w.querySelector(".pb-time-position").style.left = d + "%";
- d = this.w.querySelector(".pb-time-container");
- null != d && (d.innerHTML = b)
- }
- a.preventDefault();
- return !1
- }
- }
- ;
- E.Ub = function() {
- -1 === this.$a.className.indexOf("pb-play-pause") ? (this.$a.m("pb-play-pause"),
- this.a.J.Ja() ? (this.M(!0),
- this.a.J.play()) : (this.M(),
- this.F(!0),
- this.a.ca || (this.a.X = !0))) : (this.$a.o("pb-play-pause"),
- this.a.J.Ja() ? (this.qa(!0),
- this.a.J.pause()) : this.qa())
- }
- ;
- E.M = function(a) {
- this.$a.D("pb-play-pause") || this.$a.m("pb-play-pause");
- this.R.da() && this.R.s();
- this.S.D("pb-paused") && this.S.o("pb-paused");
- this.S.m("pb-playing");
- u(a) && a || (this.a.O ? null != this.a.i && this.a.i.play() : this.a.play())
- }
- ;
- E.qa = function(a) {
- this.$a.D("pb-play-pause") && this.$a.o("pb-play-pause");
- this.R.da() || (this.R.show(),
- this.F(!1));
- this.S.D("pb-playing") && this.S.o("pb-playing");
- u(a) && a || (this.a.O ? null != this.a.i && this.a.i.pause() : this.a.pause())
- }
- ;
- E.F = function(a) {
- u(a) && (a ? (this.R.da() && this.R.s(),
- this.W.da() || this.W.show()) : this.W.s())
- }
- ;
- E.qj = function() {
- this.a.Cd("cda.player.volume") ? this.T(this.a.Eb("cda.player.volume")) : this.T(this.Ye)
- }
- ;
- E.T = function(a) {
- a = Number(a);
- !1 !== this.a.qb() && !1 === this.Yb && (a = this.a.qb());
- this.ra = isNaN(a) ? this.Eg : a;
- 0 == this.ra ? (this.Oc = !0,
- this.Mb.D("pb-volume-mute-active") || this.Mb.m("pb-volume-mute-active")) : (this.Oc = !1,
- this.Mb.D("pb-volume-mute-active") && this.Mb.o("pb-volume-mute-active"));
- this.Ga.ua(this.ra + "%");
- this.Ne(this.ra);
- this.a.T(this.ra);
- this.a.J.Ja() && this.a.J.T(this.ra, 0 == this.ra ? !0 : !1);
- if (!g(this.a.i) && this.a.i.ha == this.a.i.type.wa && this.a.i.Ia)
- try {
- this.a.i.Cb.T(this.ra)
- } catch (b) {}
- }
- ;
- E.Ne = function(a) {
- !1 !== this.a.qb() && !1 === this.Yb ? this.Yb = !0 : (0 > a ? a = 0 : 100 < a && (a = 100),
- a = parseInt(a),
- this.a.Ac("cda.player.volume", a, 7))
- }
- ;
- E.ic = function(a) {
- 0 > a ? a = 0 : 100 < a && (a = 100);
- this.Ra = a;
- this.je.ua(this.Ra + "%")
- }
- ;
- E.Ci = function() {
- this.Ga.setAttribute("data-click", "none");
- if (!1 === this.Oc && !1 === this.Mb.D("pb-volume-mute-active")) {
- if (this.Oc = !0,
- this.Mb.m("pb-volume-mute-active"),
- this.Ga.ua("0%"),
- this.Ne(0),
- this.a.T(0),
- this.a.J.Ja() && this.a.J.T(0, !0),
- !g(this.a.i) && this.a.i.ha == this.a.i.type.wa && this.a.i.Ia)
- try {
- this.a.i.Cb.T(0)
- } catch (a) {}
- } else if (0 >= this.ra && (this.ra = this.Eg),
- this.Oc = !1,
- this.Mb.o("pb-volume-mute-active"),
- this.Ga.ua(this.ra + "%"),
- this.Ne(this.ra),
- this.a.T(this.ra),
- this.a.J.Ja() && this.a.J.T(this.ra, !1),
- !g(this.a.i) && this.a.i.ha == this.a.i.type.wa && this.a.i.Ia)
- try {
- this.a.i.Cb.T(this.ra)
- } catch (a) {}
- }
- ;
- E.Di = function(a) {
- a = a || window.event;
- if ("undefined" === typeof a.which || 1 == a.which) {
- this.Ga.setAttribute("data-click", "click");
- var b = (a.pageX - this.Db.xd().left) / (this.Db.gb() - 1) * 100;
- 100 < b ? b = 100 : 0 > b && (b = 0);
- this.T(b);
- a.preventDefault();
- return !1
- }
- }
- ;
- E.Fi = function(a) {
- a = a || window.event;
- if ("undefined" === typeof a.which || 1 == a.which)
- return this.Ga.setAttribute("data-click", "none"),
- a.preventDefault(),
- !1
- }
- ;
- E.Ei = function(a) {
- a = a || window.event;
- if ("undefined" === typeof a.which || 1 == a.which) {
- if ("click" == this.Ga.getAttribute("data-click")) {
- var b = (a.pageX - this.Ga.xd().left) / (this.Db.gb() - 1) * 100;
- 100 < b ? b = 100 : 0 > b && (b = 0);
- this.ra = b;
- this.T(b)
- }
- a.preventDefault();
- return !1
- }
- }
- ;
- E.Jk = function(a) {
- a = a || window.event;
- var b = a.changedTouches;
- "undefined" !== b && 1 == b.length && (this.Ga.setAttribute("data-click", "click"),
- b = (b[0].pageX - this.Ga.xd().left) / (this.Db.gb() - 1) * 100,
- 100 < b ? b = 100 : 0 > b && (b = 0),
- this.T(b));
- a.preventDefault();
- return !1
- }
- ;
- E.Hk = function(a) {
- a = a || window.event;
- this.Ga.setAttribute("data-click", "none");
- a.preventDefault();
- return !1
- }
- ;
- E.Ik = function(a) {
- a = a || window.event;
- var b = a.changedTouches;
- "undefined" !== b && 1 == b.length && "click" == this.Ga.getAttribute("data-click") && (b = (b[0].pageX - this.Ga.xd().left) / (this.Db.gb() - 1) * 100,
- 100 < b ? b = 100 : 0 > b && (b = 0),
- this.ra = b,
- this.T(b));
- a.preventDefault();
- return !1
- }
- ;
- E.Bi = function() {
- this.Ga.setAttribute("data-click", "none");
- 100 === this.ra ? this.T(0) : this.T(100)
- }
- ;
- E.gc = function() {
- this.R.da() && (this.a.O ? this.M() : (this.a.ca && this.a.G !== this.a.state.mb || (this.a.X = !0),
- this.a.J.Ja() ? (this.M(!0),
- this.a.J.play()) : (this.M(),
- this.F(!0))))
- }
- ;
- E.Gk = function() {
- 0 < this.pb(this.a.contextMenu).width && 0 < this.pb(this.a.contextMenu).height ? this.a.contextMenu.s() : null === this.a.ma && this.view.Tb(this.view.R) && (this.a.G === this.a.state.mb && (this.a.X = !0),
- (g(this.a.i) || !g(this.a.i) && this.a.i.ha != this.a.i.type.wa) && this.M())
- }
- ;
- E.Yh = function(a) {
- a = a || window.event;
- switch (a.keyCode) {
- case 32:
- if (g(this.a.i) || !g(this.a.i) && this.a.i.ha != this.a.i.type.wa)
- 0 == this.a.video.paused ? this.qa() : this.M();
- a.preventDefault();
- break;
- case 27:
- this.a.Ca() && (this.Kd(),
- this.Ue());
- a.preventDefault();
- break;
- case 39:
- (g(this.a.i) || !g(this.a.i) && this.a.i.ha != this.a.i.type.wa) && this.a.cj(this.a.Gf());
- a.preventDefault();
- break;
- case 37:
- (g(this.a.i) || !g(this.a.i) && this.a.i.ha != this.a.i.type.wa) && this.a.dj(this.a.Gf());
- a.preventDefault();
- break;
- case 116:
- location.reload()
- }
- return !1
- }
- ;
- E.Jj = function(a) {
- return 3 * (1 - a) * (1 - a) * (1 - a) * (1 - a) + 1
- }
- ;
- E.yc = function() {
- if (!this.a.O) {
- if (0 <= this.a.H() && -1 === this.a.Dc) {
- var a = this.a.video;
- if ("undefined" !== a.buffered && 0 < a.buffered.length && "undefined" !== a.buffered.end) {
- var b = a.buffered.length - 1;
- -1 < this.a.Oe && (b = this.a.mh(this.a.Oe));
- a.buffered.end(b);
- var d = this.a.H()
- , e = this.a.$();
- this.Ra = a.buffered.end(b) / d * 100;
- this.Ra < e / d * 100 + 2 && (this.Ra = e / d * 100 + 2);
- this.Ra = Math.ceil(10 * this.Ra) / 10
- } else
- this.Ra = "undefined" !== a.yf && 0 < a.yf && "undefined" !== a.Ij ? a.Hj / a.yf : 0
- }
- 0 > this.Ra ? this.Ra = 0 : 100 < this.Ra && (this.Ra = 100);
- this.je.ua(this.Ra + "%")
- }
- }
- ;
- E.hg = function() {
- this.W.s();
- this.a.G != this.a.state.U ? this.R.show() : this.R.s()
- }
- ;
- E.Fe = function() {
- 0 <= this.a.H() && !1 === this.a.O && (this.vd.innerHTML = this.Ea(this.a.H()))
- }
- ;
- E.Ge = function() {
- 0 <= this.a.H() && !1 === this.a.O && (this.vd.innerHTML = this.Ea(this.a.H()))
- }
- ;
- E.Wc = function() {
- (g(this.a.i) || !g(this.a.i) && this.a.i.ha != this.a.i.type.wa) && this.W.show()
- }
- ;
- E.Ib = function() {}
- ;
- E.zc = function() {
- this.Ca && !this.view.D(this.view.w, "pb-nocontrols") && null === this.Z && (this.a.j.B() && (this.ob = !1),
- this.Wd())
- }
- ;
- E.sb = function() {}
- ;
- E.Vc = function() {
- this.yc();
- this.W.da() && this.W.s();
- "undefined" === this.a.video.currentTime || isNaN(this.a.video.currentTime) || (this.a.currentTime = this.a.video.currentTime);
- this.dc && this.Ka.ua(100 / this.a.H() * this.a.currentTime + "%");
- this.currentTime.innerHTML = this.Ea(this.a.currentTime)
- }
- ;
- E.Wd = function() {
- null !== this.Z && (window.clearTimeout(this.Z),
- this.Z = null);
- var a = this;
- this.Z = window.setTimeout(function() {
- a.ob || a.w.m("pb-nocontrols")
- }, 2E3)
- }
- ;
- E.lc = function() {
- window.clearTimeout(this.Z);
- this.Z = null;
- this.w.o("pb-nocontrols")
- }
- ;
- E.Ai = function(a) {
- if (this.Vf !== a.clientX || this.Wf !== a.clientY)
- this.lc(),
- this.Ca && this.a.G === this.a.state.U ? !1 === this.ob ? this.w.D("pb-nocontrols") || null !== this.Z ? this.w.o("pb-nocontrols") : this.Wd() : this.lc() : this.lc();
- this.Vf = a.clientX;
- this.Wf = a.clientY
- }
- ;
- E.Hi = function() {
- !0 === this.Nb && (0 <= this.a.H() && -1 != this.Ya && this.a.Ma(this.Ya / 100 * this.a.H()),
- this.ya.setAttribute("data-click", "none"),
- this.Nb = !1,
- this.dc = !0,
- this.S.D("pb-bar-seeking") && this.S.o("pb-bar-seeking"),
- this.S.m("pb-bar-no-seeking"))
- }
- ;
- E.Sh = function() {
- !0 === this.Nb && (0 <= this.a.H() && -1 != this.Ya && this.a.Ma(this.Ya / 100 * this.a.H()),
- this.ya.setAttribute("data-click", "none"),
- this.Nb = !1,
- this.dc = !0,
- this.S.D("pb-bar-seeking") && this.S.o("pb-bar-seeking"),
- this.S.m("pb-bar-no-seeking"))
- }
- ;
- E.Rh = function() {}
- ;
- E.ri = function() {
- var a = this.view.sa(".pb-settings-autoplay", this.ea)
- , b = this.a.ba.Eb("cda.player.autoplay");
- 1 === Number(b) && this.view.m(a, "pb-active");
- a = this.view.sa(".pb-settings-nextvideo", this.ea);
- !0 === window.nextVideoEnabled ? !1 === this.view.D(a, "pb-active") && this.view.m(a, "pb-active") : this.view.o(a, "pb-active");
- this.ea.D("pb-settings-menu-on") ? (this.ea.o("pb-settings-menu-on"),
- this.ea.m("pb-settings-menu-off")) : (this.ea.m("pb-settings-menu-on"),
- this.ea.o("pb-settings-menu-off"))
- }
- ;
- E.pg = function() {
- if (this.view.Tb(this.view.contextMenu))
- this.view.s(this.view.contextMenu);
- else if (this.view.D(this.view.ea, "pb-settings-menu-on"))
- this.view.o(this.view.ea, "pb-settings-menu-on"),
- this.view.m(this.view.ea, "pb-settings-menu-off");
- else if (this.view.vc.D("pb-box-info-open"))
- this.xe();
- else if (this.a.ca || (this.a.X = !0,
- this.a.j.B() ? this.a.O && !g(this.a.i) && (this.a.i.Jf() || this.a.i.Kf()) && this.F(!0) : this.F(!0)),
- this.a.J.Ja())
- this.a.G != this.a.state.mb && this.a.G != this.a.state.wb || !this.R.da() ? (this.qa(!0),
- this.a.J.pause()) : (this.M(!0),
- this.a.J.play());
- else if (this.a.O)
- this.R.da() ? this.a.j.B() ? g(this.a.i) || !this.a.i.Jf() && !this.a.i.Kf() || this.M() : this.M() : g(this.a.i) || this.a.i.click();
- else if (null === this.a.ma)
- if (this.a.j.B() && !this.a.A && this.Ca)
- if (this.w.D("pb-nocontrols")) {
- this.w.o("pb-nocontrols");
- var a = this;
- clearTimeout(this.Z);
- this.Z = setTimeout(function() {
- a.w.m("pb-nocontrols")
- }, 3E3)
- } else
- this.a.G === this.a.state.U ? (this.a.pause(),
- clearTimeout(this.Z),
- this.Z = null) : this.a.G === this.a.state.wb && (this.a.resume(),
- a = this,
- clearTimeout(this.Z),
- this.Z = setTimeout(function() {
- a.w.m("pb-nocontrols")
- }, 3E3));
- else
- switch (this.a.G) {
- case this.a.state.U:
- if (this.a.J.Ja()) {
- this.qa(!0);
- this.a.J.pause();
- break
- }
- this.qa();
- break;
- case this.a.state.wb:
- if (this.a.J.Ja()) {
- this.M(!0);
- this.a.J.play();
- break
- }
- this.M();
- break;
- case this.a.state.mb:
- this.a.X = !0,
- (g(this.a.i) || !g(this.a.i) && this.a.i.ha != this.a.i.type.wa) && this.M()
- }
- }
- ;
- E.si = function(a) {
- switch (parseInt(a.target.parentNode.getAttribute("item"))) {
- case 1:
- !1 === this.view.D(a.target.parentNode, "pb-active") ? (this.view.m(a.target.parentNode, "pb-active"),
- this.a.Gd = !1,
- this.a.Gb = !0,
- this.a.loop && (a = this.view.sa(".pb-settings-loop", this.ea),
- this.view.o(a, "pb-active"),
- this.a.loop = !1)) : this.view.o(a.target.parentNode, "pb-active");
- !1 === this.ba.Ae(window.switchNextVideo) && window.switchNextVideo();
- break;
- case 2:
- !1 === this.view.D(a.target.parentNode, "pb-active") ? (this.view.m(a.target.parentNode, "pb-active"),
- this.a.loop = !0,
- this.a.Gb && window.nextVideoEnabled && !1 === this.ba.Ae(window.switchNextVideo) && window.switchNextVideo(),
- !1 === this.a.O && this.a.ended && this.a.play()) : (this.a.loop = !1,
- this.view.o(a.target.parentNode, "pb-active"));
- break;
- case 3:
- this.a.G === this.a.state.U && this.a.pause();
- a = "";
- this.a.Lc() ? a = "http://www.cda.pl/kontakt" : this.a.Mc() && (a = "http://superfilm.pl/kontakt");
- "" != a && window.open(a, "_blank").focus();
- break;
- case 4:
- !1 === this.view.D(a.target.parentNode, "pb-active") ? (this.view.m(a.target.parentNode, "pb-active"),
- this.a.ba.Ac("cda.player.autoplay", 1, 365)) : (this.view.o(a.target.parentNode, "pb-active"),
- this.a.ba.Ac("cda.player.autoplay", 0, 365));
- break;
- case 5:
- Array.prototype.slice.call(a.target.parentNode.parentNode.querySelectorAll("li"), 0).forEach(function(a) {
- a.o("pb-active")
- }, this);
- this.Aa.o("pb-stretching-expanded");
- this.Aa.o("pb-stretching-full");
- this.Aa.o("pb-stretching-oryginal");
- this.Aa.m("pb-stretching-expanded");
- a.target.parentNode.m("pb-active");
- break;
- case 6:
- Array.prototype.slice.call(a.target.parentNode.parentNode.querySelectorAll("li"), 0).forEach(function(a) {
- a.o("pb-active")
- }, this);
- this.Aa.o("pb-stretching-expanded");
- this.Aa.o("pb-stretching-full");
- this.Aa.o("pb-stretching-oryginal");
- a.target.parentNode.m("pb-active");
- break;
- case 7:
- Array.prototype.slice.call(a.target.parentNode.parentNode.querySelectorAll("li"), 0).forEach(function(a) {
- a.o("pb-active")
- }, this);
- this.Aa.o("pb-stretching-expanded");
- this.Aa.o("pb-stretching-full");
- this.Aa.o("pb-stretching-oryginal");
- this.Aa.m("pb-stretching-full");
- a.target.parentNode.m("pb-active");
- break;
- case 8:
- Array.prototype.slice.call(a.target.parentNode.parentNode.querySelectorAll("li"), 0).forEach(function(a) {
- a.o("pb-active")
- }, this),
- this.Aa.o("pb-stretching-expanded"),
- this.Aa.o("pb-stretching-full"),
- this.Aa.o("pb-stretching-oryginal"),
- this.Aa.m("pb-stretching-oryginal"),
- a.target.parentNode.m("pb-active")
- }
- }
- ;
- E.Cf = function() {
- this.ob = !1
- }
- ;
- E.Bf = function() {
- this.lc();
- this.ob = !0
- }
- ;
- E.gg = function(a) {
- /pb/.test(a.target.className) || null !== a.target.parentNode && /pb/.test(a.target.parentNode.className) || (this.view.Tb(this.view.contextMenu) ? this.view.s(this.view.contextMenu) : this.view.D(this.view.ea, "pb-settings-menu-on") && (this.view.o(this.view.ea, "pb-settings-menu-on"),
- this.view.m(this.view.ea, "pb-settings-menu-off")))
- }
- ;
- E.ng = function() {
- this.view.D(this.view.ea, "pb-settings-menu-on") && (this.view.o(this.view.ea, "pb-settings-menu-on"),
- this.view.m(this.view.ea, "pb-settings-menu-off"))
- }
- ;
- E.ci = function() {
- this.Kd();
- document.querySelector(".btn-fullscreen").s();
- this.R.focus();
- this.w.m("pb-nocontrols-absolute")
- }
- ;
- E.th = function() {
- this.view.vc.o("pb-box-info-close");
- this.view.vc.m("pb-box-info-open");
- this.view.vc.m("pb-box-info-for-fullscreen");
- this.view.yd.Sa("Tryb pe\u0142noekranowy jest niedost\u0119pny na Twoim urz\u0105dzeniu.")
- }
- ;
- E.xe = function() {
- this.view.vc.o();
- this.view.vc.m("pb-box-info");
- this.view.yd.Sa("")
- }
- ;
- E.Ld = function() {
- this.xe();
- g(window.frameElement) && window.self == window.top || this.a.pause()
- }
- ;
- function H() {}
- H.prototype.bind = function(a, b) {
- return function() {
- b.apply(a, b)
- }
- }
- ;
- function I(a, b, d, e) {
- if ("undefined" === typeof a || null === a)
- return !1;
- if ("function" === typeof a.addEventListener)
- return a.addEventListener(b, a = function(a) {
- d.call(e, a)
- }
- , !1),
- a;
- if ("function" === typeof a.attachEvent)
- return a.attachEvent("on" + b, a = function(a) {
- d.call(e, a)
- }
- , !1),
- a
- }
- function K(a, b, d) {
- "undefined" !== typeof a && null !== a && ("function" === typeof a.removeEventListener && a.removeEventListener(b, d, !1),
- "function" === typeof a.detachEvent && a.detachEvent("on" + b, d, !1))
- }
- ;var ia = {
- mb: 0,
- U: 1,
- wb: 2,
- Bj: 3,
- cf: 4,
- gf: 5,
- Xb: 10,
- Zd: 11,
- nc: 12
- };
- function ha(a, b, d) {
- 0 < arguments.length ? (this.view = a,
- this.Zg = b,
- this.jh = d) : this.view = null;
- this.I = {
- ih: "requestFullscreen requestFullScreen mozRequestFullScreen webkitRequestFullscreen webkitEnterFullscreen msRequestFullscreen".split(" "),
- fb: "exitFullscreen exitFullScreen cancelFullscreen mozCancelFullScreen webkitCancelFullscreen webkitExitFullscreen msExitFullscreen".split(" "),
- enabled: ["fullscreenEnabled", "fullScreenEnabled", "mozFullScreenEnabled", "webkitFullscreenEnabled", "msFullscreenEnabled"],
- element: "fullscreenElement fullScreenElement mozFullScreenElement webkitFullscreenElement webkitCurrentFullScreenElement msFullscreenElement".split(" "),
- Rb: ["fullscreenchange", "mozfullscreenchange", "webkitfullscreenchange", "MSFullscreenChange"],
- error: ["fullscreenerror", "mozfullscreenerror", "webkitfullscreenerror", "MSFullscreenError"],
- is: "fullscreen fullScreen webkitIsFullScreen webkitIsFullscreen mozFullScreen msFullscreenElement".split(" "),
- rh: ["webkitbeginfullscreen", "webkitendfullscreen"]
- };
- this.C = null;
- this.ie = {
- kl: {
- is: "fullscreen",
- enabled: "fullscreenEnabled",
- element: "fullscreenElement",
- request: "requestFullscreen",
- fb: "exitFullscreen",
- I: {
- Rb: "fullscreenchange",
- error: "fullscreenerror"
- }
- },
- webkit: {
- is: "webkitIsFullScreen",
- enabled: "webkitFullscreenEnabled",
- element: "webkitFullscreenElement",
- request: "webkitRequestFullscreen",
- fb: "webkitExitFullscreen",
- I: {
- Rb: "webkitfullscreenchange",
- error: "webkitfullscreenerror"
- }
- },
- ll: {
- is: "webkitIsFullScreen",
- enabled: "webkitFullscreenEnabled",
- element: "webkitCurrentFullScreenElement",
- request: "webkitRequestFullScreen",
- fb: "webkitCancelFullScreen",
- I: {
- Rb: "webkitfullscreenchange",
- error: "webkitfullscreenerror"
- }
- },
- uk: {
- is: "mozFullScreen",
- enabled: "mozFullScreenEnabled",
- element: "mozFullScreenElement",
- request: "mozRequestFullScreen",
- fb: "mozCancelFullScreen",
- I: {
- Rb: "mozfullscreenchange",
- error: "mozfullscreenerror"
- }
- },
- vk: {
- is: "",
- enabled: "msFullscreenEnabled",
- element: "msFullscreenElement",
- request: "msRequestFullscreen",
- fb: "msExitFullscreen",
- I: {
- Rb: "MSFullscreenChange",
- error: "MSFullscreenError"
- }
- },
- Fj: {
- is: "webkitDisplayingFullscreen",
- enabled: "webkitSupportsFullscreen",
- element: "webkitFullscreenElement",
- request: "webkitEnterFullscreen",
- fb: "webkitExitFullscreen",
- I: {
- Rb: "webkitbeginfullscreen webkitendfullscreen",
- error: "webkitfullscreenerror"
- }
- }
- };
- for (var e in this.ie)
- if (this.ie[e].enabled in window.document) {
- this.C = this.ie[e];
- break
- }
- this.userAgent = window.navigator.userAgent;
- this.j = {
- chrome: /Chrome/.test(this.userAgent),
- Oj: /Firefox/.test(this.userAgent),
- opera: /Opera/.test(this.userAgent),
- wk: /MSIE/.test(this.userAgent),
- Ej: /Android/.test(this.userAgent),
- rh: /iP(hone|od|ad)/.test(this.userAgent)
- };
- this.view.f(".pb-video-player-wrap");
- this.timeout = null;
- this.la()
- }
- E = ha.prototype;
- E.la = function() {
- try {
- t(this.C.I.Rb) && I(window.document, this.C.I.Rb, this.Ph, this),
- t(this.C.I.error) && I(window.document, this.C.I.error, this.Tc, this)
- } catch (a) {
- console.log(a)
- }
- }
- ;
- E.Ph = function(a) {
- this.Zg(a)
- }
- ;
- E.Tc = function(a) {
- this.jh(a)
- }
- ;
- E.request = E.ih = function() {
- if (g(this.C))
- return !1;
- try {
- return this.view.w[this.C.request](),
- !0
- } catch (a) {
- return console.log(a),
- !1
- }
- }
- ;
- E.fb = function() {
- if (g(this.C))
- return !1;
- try {
- return window.document[this.C.fb](),
- !0
- } catch (a) {
- console.log(a)
- }
- return !1
- }
- ;
- E.is = E.Ca = function() {
- if (g(this.C))
- return !1;
- try {
- if ("" != this.C.is)
- return window.document[this.C.is]
- } catch (a) {
- console.log(a)
- }
- return !1
- }
- ;
- E.enabled = E.isEnabled = function() {
- if (g(this.C))
- return !1;
- try {
- return this.view.m(this.view.w, "pb-video-full"),
- window.document[this.C.enabled]
- } catch (a) {
- console.log(a)
- }
- return !1
- }
- ;
- E.sa = E.element = function() {
- if (g(this.C))
- return !1;
- try {
- return window.document[this.C.element]
- } catch (a) {
- console.log(a)
- }
- return !1
- }
- ;
- function ja() {
- this.Fd = ea();
- this.l = da();
- this.j = -1;
- this.ka = {
- af: "CHROME",
- bf: "FIREFOX",
- Ig: "FIREFOX_MOBILE",
- ef: "OPERA",
- Jg: "OPERA_MOBILE",
- Lg: "SAFARI",
- df: "MSIE",
- Hg: "EDGE",
- $e: "ANDROID",
- Gg: "APPLE",
- Ng: "TV",
- Og: "TV_CONSOLE",
- Kg: "OTHER",
- wj: "DESKTOP"
- };
- this.ug()
- }
- E = ja.prototype;
- E.ug = function() {
- this.j = this.Ta() ? this.ka.Ng : this.Fh() ? this.ka.Og : this.Sf() ? this.ka.Jg : this.Bh() ? this.ka.Ig : this.wc() ? this.ka.$e : this.Bd() ? this.ka.Gg : this.Nf() ? this.ka.af : this.Pf() ? this.ka.bf : this.Ed() ? this.ka.ef : this.Eh() ? this.ka.Lg : this.Dh() ? this.ka.df : this.Ah() ? this.ka.Hg : this.ka.Kg
- }
- ;
- E.Ef = function() {
- -1 === this.j && this.ug();
- return this.j
- }
- ;
- E.Ta = function() {
- return B(this.l, "SMART-TV") || B(this.l, "SmartTV") || B(this.l, "SmartTvA") || B(this.l, "Maple") || B(this.l, "Opera TV") || B(this.l, "NetCast.TV") || B(this.l, "AppleTV") || B(this.l, "GoogleTV") || B(this.l, "HbbTV") || B(this.l, "CrKey") || B(this.l, "POV_TV") || B(this.l, "GTV100") || B(this.l, "STB") || B(this.l, "NETTV") || B(this.l, "PhilipsTV") || B(this.l, "Roku") || B(this.l, "Viera") || B(this.l, "PlayStation") || B(this.l, "Xbox") || B(this.l, "BRAVIA") || B(this.l, "HYUNDAI") || B(this.l, "Hisense") || B(this.l, "Tizen") || B(this.l, "SRAF") || B(this.l, "Linux; U")
- }
- ;
- E.Fh = function() {
- return B(this.l, "PlayStation") || B(this.l, "Xbox") || B(this.l, "Nintendo WiiU")
- }
- ;
- E.Nf = function() {
- return A(this.l, "Chrome") && A(this.Fd.vendor, "Google Inc") && 0 == A(this.l, "OPR/")
- }
- ;
- E.Pf = function() {
- return A(this.l, "Firefox")
- }
- ;
- E.Ed = function() {
- return A(this.l, "Opera") || A(this.l, "OPR/")
- }
- ;
- E.Eh = function() {
- return A(this.l, "Safari") && 0 == A(this.l, "Chrome") && 0 == A(this.l, "Mobile")
- }
- ;
- E.Dh = function() {
- return A(this.l, "MSIE") || A(this.l, "Trident")
- }
- ;
- E.Ah = function() {
- return A(this.l, "Edge")
- }
- ;
- E.wc = function() {
- return A(this.l, "Android")
- }
- ;
- E.jk = function() {
- return A(this.l, "iPhone")
- }
- ;
- E.Bd = function() {
- return /iP(hone|ad|od)/.test(this.l)
- }
- ;
- E.Ch = function() {
- return A(this.l, "iPad")
- }
- ;
- E.Uf = function() {
- return B(this.l, "iemobile") || B(this.l, "windows phone") && B(this.l, "edge") || A(this.l, " WPDesktop")
- }
- ;
- E.Sf = function() {
- return this.Ed() && A(this.l, "Mobile")
- }
- ;
- E.Bh = function() {
- return this.Pf() && A(this.l, "Mobile")
- }
- ;
- E.Mf = function() {
- return A(this.l, "BlackBerry")
- }
- ;
- E.wh = function() {
- return A(this.l, "ALCATEL")
- }
- ;
- E.B = function() {
- return this.wc() || this.Bd() || this.Uf() || this.Mf()
- }
- ;
- E.zh = function() {
- return A(this.l, "CrKey")
- }
- ;
- E.Uj = function() {
- switch (this.Ef()) {
- case this.ka.af:
- return C(this.l, /Chrome\/([0-9.]+)/);
- case this.ka.bf:
- return C(this.l, /Firefox\/([0-9.]+)/);
- case this.ka.ef:
- return A(this.l, "OPR") ? C(this.l, /OPR\/([0-9.]+)/) : A(this.l, "Version") ? C(this.l, /Version\/([0-9.]+)/) : C(this.l, /Opera\s+([0-9]+)/);
- case this.ka.xj:
- return C(this.l, /Version\/([0-9.]+)/);
- case this.ka.df:
- return C(this.l, /MSIE\s+([0-9.]+)/);
- case this.ka.$e:
- return C(this.l, /Android\s([0-9\.]*)/);
- default:
- return A(this.l, "Version") ? C(this.l, /Version\/([0-9.]+)/) : ""
- }
- }
- ;
- E.ph = function() {
- try {
- var a = /AppleWebKit\/([\d.]+)/.exec(this.l);
- if (a)
- return parseFloat(a[1])
- } catch (b) {}
- return !1
- }
- ;
- E.Nc = function() {
- try {
- var a = this.ph();
- if (!g(a) && !1 !== a && 537 > a)
- return !0
- } catch (b) {}
- return !1
- }
- ;
- E.rk = function() {
- return /Windows/.test(this.Fd.platform)
- }
- ;
- E.kk = function() {
- return /Linux/.test(this.Fd.platform)
- }
- ;
- E.xh = function() {
- return this.wc() ? A(this.l, "Mozilla/5.0") && A(this.l, "Android ") && A(this.l, "Version/") && A(this.l, "AppleWebKit") && !this.Sf() : !1
- }
- ;
- E.qe = function() {
- if (this.wc()) {
- var a = this.l.match(/Android\s([0-9\.]*)/);
- return a && a[1] ? a[1] : !1
- }
- return !1
- }
- ;
- E.fk = function() {
- if (this.sk()) {
- var a = this.Fd.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);
- return null !== a ? parseInt(a[1], 10) + ("undefined" !== typeof a[2] ? "." + parseInt(a[2], 10) + ("undefined" !== typeof a[3] ? "." + parseInt(a[3], 10) : "") : "") : -1
- }
- return !1
- }
- ;
- var oa = {
- Xb: 10,
- Zd: 11,
- nc: 12,
- vj: 13,
- Cj: 14,
- yj: 15,
- Aj: 16,
- Dj: 17,
- uj: 18,
- tj: 19,
- zj: 20
- };
- function O(a, b) {
- if (0 >= arguments.length)
- throw Error("Failed initialize Ads Manager.");
- if (!p(a) || g(a))
- throw new TypeError("Player reference is NULL.");
- if (l(b) || g(b) || 0 >= b.length)
- return this.ga();
- this.b = "cda.Player.Ads.Manager";
- this.type = pa;
- this.error = P;
- this.state = oa;
- this.a = a;
- this.lb = null;
- this.dd = !1;
- this.Oa = this.a.view.f(".pb-video-ad-container");
- this.Ha = this.a.view.f(".pb-video-ad-content");
- this.Cb = this.Lb = null;
- this.c = b;
- this.qd = b.length;
- this.Bb = [];
- this.Ia = !1;
- this.Ic = 1;
- this.xa = this.K = 0;
- this.ha = -1;
- this.hb = [];
- this.oa = {
- creativeView: [],
- start: [],
- firstQuartile: [],
- midpoint: [],
- thirdQuartile: [],
- complete: []
- };
- this.a.log(this.b, this.c);
- this.la();
- if (!l(this.c[this.K]) && !g(this.c[this.K]))
- try {
- this.c[this.K].hasOwnProperty("displayAs") ? this.sg(this.c[this.K].displayAs) : this.sg(this.state.Xb);
- var d = this.c[this.K].tag;
- if (this.c[this.K].hasOwnProperty("safe")) {
- var e = !!this.c[this.K].safe;
- if (!g(d) && -1 !== d.indexOf("google_safe") && -1 !== d.indexOf("google_unsafe"))
- try {
- var f = d.match(/\x3c!--google_safe_begin--\x3e(.+?)\x3c!--google_safe_end--\x3e/i);
- g(f) || l(f[1]) || !t(f[1]) || (f = f[1]);
- var k = d.match(/\x3c!--google_unsafe_begin--\x3e(.+?)\x3c!--google_unsafe_end--\x3e/i);
- g(k) || l(k[1]) || !t(k[1]) || (k = k[1]);
- this.c[this.K].tag = e ? f : k;
- this.Kc(this.c[this.K].tag) ? this.c[this.K].type = this.type.wa : this.c[this.K].type = this.type.nb;
- this.a.log(this.b, "safe: " + this.Zk);
- this.a.log(this.b, "googleSafeTag: " + f);
- this.a.log(this.b, "googleUnsafeTag: " + k)
- } catch (h) {
- this.a.log(this.b, h)
- }
- }
- switch (this.c[this.K].type) {
- case this.type.nb:
- this.ne(this.c[this.K].tag);
- this.Xd(this.c[this.K]);
- break;
- case this.type.wa:
- this.ne(this.c[this.K].tag);
- this.Xe(this.c[this.K]);
- break;
- case this.type.ff:
- this.Ff(this.c[this.K].tag);
- break;
- case this.type.gd:
- this.Bg(this.c[this.K]);
- break;
- default:
- this.ga()
- }
- } catch (h) {
- this.a.log(this.b, h),
- this.ga()
- }
- }
- E = O.prototype = {};
- E.la = function() {
- g(this.a.J) || this.a.J.Ud(!1);
- this.a.controls.disable();
- this.a.v.fa.m("pb-nocloud");
- this.a.v.s(this.a.v.Qc);
- this.a.j.B() && this.a.Xc()
- }
- ;
- E.ga = function(a) {
- this.a.log(this.b, "destroy");
- this.a.controls.enable();
- this.a.v.show(this.a.v.Qc);
- this.a.v.s(this.a.v.Ba);
- this.a.v.s(this.a.v.nd);
- this.a.v.fa.o("pb-run-ad");
- this.a.controls.ic(0);
- this.a.controls.Ka.ua("0%");
- this.a.controls.ib(0);
- this.a.controls.Fa(this.a.H());
- this.a.j.B() && this.a.controls.Fa(0);
- this.a.i = null;
- this.a.O = !1;
- this.Ha.innerHTML = "";
- this.Oa.s();
- this.a.J.la();
- this.Qa !== this.state.Xb && !g(this.a.J) && this.a.J.ze() && this.a.J.Ud(!0);
- if (this.a.j.B() && (this.a.zd(),
- this.a.Yc(),
- this.a.autoplay && !this.Ia && this.Qa != this.state.nc)) {
- var b = this;
- window.addEventListener("touchstart", function e() {
- b.a.kb();
- this.removeEventListener("touchstart", e)
- })
- }
- this.Qa !== this.state.nc && this.a.video.load();
- this.Qa === this.state.nc ? (this.a.log(this.b, "start next video"),
- this.P("Startuje kolejny film"),
- this.a.$c()) : !l(a) && a ? (this.a.log(this.b, "start video force"),
- this.P("Startuje film"),
- this.a.kb()) : this.Ia ? (this.a.log(this.b, "adsDisplay true, start video"),
- this.P("Startuje film"),
- this.a.kb()) : this.a.autoplay || this.a.X ? (this.a.log(this.b, "autoplay true, start video"),
- this.P("Startuje film"),
- this.a.kb()) : (this.a.log(this.b, "set video file"),
- this.P("Wracam do filmu"),
- this.a.Yc(),
- (this.a.controls.W.da() || this.a.controls.$a.D("pb-play-pause")) && this.a.kb())
- }
- ;
- E.sg = function(a) {
- switch (a) {
- case "prerol":
- case "preroll":
- this.Qa = this.state.Xb;
- break;
- case "midrol":
- case "midroll":
- this.Qa = this.state.Zd;
- break;
- case "postrol":
- case "postroll":
- this.Qa = this.state.nc;
- break;
- default:
- this.Qa = this.state.Xb
- }
- this.a.od = this.Qa
- }
- ;
- E.Rj = function() {
- return this.Qa
- }
- ;
- E.$k = function(a) {
- this.od = a
- }
- ;
- E.Qj = function() {
- return this.od
- }
- ;
- E.Ff = function(a) {
- this.a.log(this.b, "getPool", a);
- this.P("Pobieram pule reklam...");
- this.P(a);
- -1 != window.location.host.indexOf("cda.pl") && (a += "&wa=" + Number(this.a.Pc));
- try {
- this.rd(a, "GET", !0, !0, function(a) {
- this.a.log(this.b, "getPool", a);
- try {
- if (!g(a)) {
- var b = JSON.parse(a);
- if (!g(b) && 0 < b.length) {
- try {
- for (this.P("Lista dost\u0119pnych reklam:"),
- a = 0; a < b.length; a++)
- this.P(b[a])
- } catch (e) {}
- this.Bb = b;
- this.xa = 0;
- this.ne(b);
- return this.Od(this.Bb, this.xa)
- }
- }
- } catch (e) {
- this.a.log(this.b, "getPool", e),
- this.P("Wyst\u0105pi\u0142 b\u0142\u0105d: " + e)
- }
- this.a.log(this.b, "getPool", "response null");
- return this.ga()
- }
- .bind(this))
- } catch (b) {
- this.a.log(this.b, "getPool", b),
- this.ga()
- }
- }
- ;
- E.Od = function(a, b) {
- this.a.log(this.b, "parsePool", arguments);
- this.P("Sprawdzam reklam\u0119 nr " + (b + 1));
- if (t(a[b])) {
- var d = {
- autoplay: 0 < this.K ? !0 : this.c[this.K].autoplay,
- counter: this.c[this.K].counter,
- displayAs: this.c[this.K].displayAs,
- key: this.c[this.K].key,
- skip: this.c[this.K].skip,
- click: this.c[this.K].click,
- time: this.c[this.K].time,
- tag: a[b]
- };
- this.pd && (d.autoplay = !0);
- this.a.X && (d.autoplay = !0);
- this.a.log(this.b, "startbyclick: " + this.a.X);
- this.a.log(this.b, "autoplay: " + d.autoplay);
- this.a.log(this.b, "state: " + this.a.G);
- if (this.Qa == this.state.nc || this.Qa == this.state.Zd)
- d.autoplay = !0;
- if (this.Kc(a[b]) && !this.a.j.B())
- return d.type = this.type.wa,
- this.Xe(d);
- if (this.Gh(a[b]) && !this.a.j.B())
- return this.a.log(this.b, "youtube embed ads: " + a[b]),
- this.a.log(this.b, "youtube video id: " + this.Hf(a[b])),
- d.type = this.type.gd,
- this.Bg(d);
- d.type = this.type.nb;
- return this.Xd(d)
- }
- return this.ga()
- }
- ;
- E.Xd = function(a) {
- this.a.log(this.b, "startVast", a);
- this.P("Reklama VAST");
- this.P("Pobieram: " + a.tag);
- this.td(this.xa, !0);
- this.ha = this.type.nb;
- this.Lb = new M(this.a,this,a);
- this.Lb.hc(function(a) {
- this.Lb.uh(a)
- }
- .bind(this), function() {
- this.pa(this.error.rf)
- }
- .bind(this))
- }
- ;
- E.Xe = function(a) {
- this.a.log(this.b, "startAdsense", a);
- if (!this.qh())
- return this.xa++,
- this.xa < this.Bb.length ? this.Od(this.Bb, this.xa) : this.rb();
- this.P("Reklama ADSENSE");
- this.P("Pobieram: " + a.tag);
- this.td(this.xa, !0);
- this.ha = this.type.wa;
- this.Cb = new N(this.a,this,a);
- this.Cb.la()
- }
- ;
- E.Bg = function(a) {
- function b(a) {
- h.a.controls.W.da() && (h.a.controls.F(!1),
- h.a.controls.R.show());
- h.a.view.fa.o("pb-ady-player-wait");
- h.dd = !0;
- a.target.setVolume(50)
- }
- function d(a) {
- la || (h.Ke(),
- la = !0);
- a.data == window.YT.PlayerState.PLAYING && (n = window.setInterval(function() {
- g(h.lb) || l(h.lb) ? (window.clearInterval(n),
- n = null) : (h.Ii(h.lb.getCurrentTime(), h.lb.getDuration()),
- h.ld && !w && (h.a.view.vb.show(),
- h.a.view.vb.Sa("Pomi\u0144 reklam\u0119 za " + h.pc),
- h.a.view.vb.style.opacity = "0.5",
- w = !0,
- z = window.setInterval(function() {
- h.pc = 0;
- 0 < h.pc ? h.a.view.vb.Sa("Pomi\u0144 reklam\u0119 za " + h.pc) : (h.a.view.vb.Sa("Pomi\u0144 reklam\u0119"),
- h.a.view.vb.style.opacity = "1",
- h.wf = !0,
- window.clearTimeout(z),
- z = null)
- }, 1E3)),
- h.Qg && !ma && (ma = !0,
- R = null, h.a.view.cd.s()))
- }, 500));
- a.data == window.YT.PlayerState.ENDED && (h.na("https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=complete&t=[timestamp]"),
- window.setTimeout(function() {
- h.Dg()
- }, 500))
- }
- this.a.log(this.b, "start yt", a);
- this.a.view.fa.m("pb-ady-player-wait");
- this.a.view.fa.m("pb-ady-player-active");
- this.a.view.fa.m("pb-ady-player-show");
- this.P("Reklama Youtube Embed");
- this.P("Wy\u015bwietlam: " + a.tag);
- this.td(this.xa, !0);
- this.ha = this.type.gd;
- this.ld = this.qc = this.Ab = this.zb = this.xb = !1;
- this.pc = 31;
- this.Qg = this.wf = !1;
- this.Ec = 0;
- try {
- null != this.a.Fb("controls") && (this.Ec = parseInt(this.a.Fb("controls")),
- r(this.Ec) || (this.Ec = 0))
- } catch (ka) {
- this.Ec = 0
- }
- try {
- null != this.a.Fb("skip") && (parseInt(this.a.Fb("skip")) ? this.ld = !0 : this.ld = !1)
- } catch (ka) {
- this.ld = !1
- }
- try {
- if (null != this.a.Fb("skip_sec")) {
- var e = parseInt(this.a.Fb("skip_sec"));
- if (!r(e) || 0 >= e || 15 < e)
- e = 5;
- this.pc = e
- }
- } catch (ka) {
- this.pc = 5
- }
- e = document.createElement("script");
- e.src = "https://www.youtube.com/iframe_api";
- var f = document.getElementsByTagName("script")[0];
- f.parentNode.insertBefore(e, f);
- var k = this.Hf(a.tag);
- if (g(k))
- return this.ga();
- var h = this;
- window.onYouTubeIframeAPIReady = function() {
- h.lb = new window.YT.Player("pb-yt-iframe",{
- height: h.a.view.cc(h.a.view.w),
- width: h.a.view.gb(h.a.view.w),
- videoId: k,
- playerVars: {
- rel: 0,
- showinfo: 1,
- playsinline: 1,
- autoplay: 0,
- controls: h.Ec,
- disablekb: 0,
- fs: 0,
- modestbranding: 1,
- autohide: 1,
- wmode: "opaque"
- },
- events: {
- onReady: b,
- onStateChange: d
- }
- })
- }
- ;
- var h = this
- , n = null
- , h = this
- , w = !1
- , z = null
- , R = null
- , ma = !1
- , la = !1;
- this.a.view.vb.s();
- I(this.a.view.vb, "click", this.Ji, this)
- }
- ;
- E.Dg = function() {
- try {
- this.a.view.fa.o("pb-ady-player-show"),
- this.a.view.vb.Sa(""),
- this.a.view.vb.s(),
- this.a.view.cd.Sa(""),
- this.a.view.cd.s(),
- this.lb = null,
- this.dd = !1,
- this.a.kb(),
- this.a.view.Fg.Sa(""),
- this.a.view.Fg.s()
- } catch (a) {
- this.a.log(this.b, a)
- }
- }
- ;
- E.Kc = function(a) {
- return /ima3vpaid/.test(a) || /doubleclick.net/.test(a) || /svastx.moatads.com/.test(a)
- }
- ;
- E.qh = function() {
- try {
- if ("undefined" != typeof window.google.ima)
- return !0
- } catch (a) {}
- return !1
- }
- ;
- E.Gh = function(a) {
- return -1 < a.indexOf("www.youtube.com/watch?v=")
- }
- ;
- E.Hf = function(a) {
- try {
- return a.split("v=")[1]
- } catch (b) {
- return null
- }
- }
- ;
- E.ek = function() {
- return {
- impression: ["https://www.cda.pl/xml_pixel.php?n=yt_booster_cda_premium_luty", "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=impression&t=[timestamp]"],
- start: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=start&t=[timestamp]",
- firstQuartile: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=firstQuartile&t=[timestamp]",
- midpoint: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=midpoint&t=[timestamp]",
- thirdQuartile: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=thirdQuartile&t=[timestamp]",
- complete: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=complete&t=[timestamp]",
- skip: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=skip&t=[timestamp]",
- clickTracking: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=clickTracking&t=[timestamp]"
- }
- }
- ;
- E.Ii = function(a, b) {
- var d = {
- impression: ["https://www.cda.pl/xml_pixel.php?n=yt_booster_cda_premium_luty", "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=impression&t=[timestamp]"],
- start: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=start&t=[timestamp]",
- firstQuartile: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=firstQuartile&t=[timestamp]",
- midpoint: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=midpoint&t=[timestamp]",
- thirdQuartile: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=thirdQuartile&t=[timestamp]",
- complete: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=complete&t=[timestamp]",
- skip: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=skip&t=[timestamp]",
- clickTracking: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=clickTracking&t=[timestamp]"
- }
- , e = Math.floor(a / b * 100);
- if (0 <= a && !1 === this.qc)
- try {
- this.na(d.start),
- this.qc = !0
- } catch (f) {}
- if (25 <= e && !1 === this.xb)
- try {
- this.na(d.firstQuartile),
- this.xb = !0
- } catch (f) {}
- else if (50 <= e && !1 === this.zb)
- try {
- this.na(d.midpoint),
- this.zb = !0
- } catch (f) {}
- else if (75 <= e && 0 == this.Ab)
- try {
- this.na(d.thirdQuartile),
- this.Ab = !0
- } catch (f) {}
- }
- ;
- E.na = function(a) {
- this.a.log(this.b, "sendPixel", a);
- if (t(a)) {
- var b = new window.Image(1,1);
- b.onload = b.onerror = function() {
- delete b
- }
- ;
- b.src = a
- }
- }
- ;
- E.bk = function() {
- return this.ha
- }
- ;
- E.play = function() {
- if (this.ha == this.type.nb)
- this.Lb.play();
- else if (this.ha == this.type.gd)
- if (this.dd)
- this.Ke();
- else
- var a = this
- , b = window.setInterval(function() {
- a.a.log(a.b, "yt ready: " + a.dd);
- a.dd ? (a.Ke(),
- a.a.controls.F(!1),
- window.clearInterval(b),
- b = null) : (a.a.controls.F(!0),
- !g(a.lb) && m(a.lb.getCurrentTime) && 0 < a.lb.getCurrentTime() && (window.clearInterval(b),
- b = null))
- }, 50)
- }
- ;
- E.Ke = function() {
- var a = {
- impression: ["https://www.cda.pl/xml_pixel.php?n=yt_booster_cda_premium_luty", "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=impression&t=[timestamp]"],
- start: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=start&t=[timestamp]",
- firstQuartile: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=firstQuartile&t=[timestamp]",
- midpoint: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=midpoint&t=[timestamp]",
- thirdQuartile: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=thirdQuartile&t=[timestamp]",
- complete: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=complete&t=[timestamp]",
- skip: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=skip&t=[timestamp]",
- clickTracking: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=clickTracking&t=[timestamp]"
- };
- if (q(a.impression))
- for (var b = 0; b < a.impression.length; b++)
- this.na(a.impression[b]);
- else
- this.na(a.impression);
- this.a.view.fa.o("pb-ady-player-active")
- }
- ;
- E.Ji = function() {
- this.wf && (this.na("https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=skip&t=[timestamp]"),
- this.Dg())
- }
- ;
- E.pause = function() {
- this.ha == this.type.nb && this.Lb.pause()
- }
- ;
- E.click = function() {
- this.ha == this.type.nb && this.Lb.Ib()
- }
- ;
- E.Jf = function() {
- if (this.ha == this.type.nb)
- return this.Lb.ca
- }
- ;
- E.Kf = function() {
- if (this.ha == this.type.nb)
- return this.Lb.mc
- }
- ;
- E.bg = function() {
- this.a.log(this.b, "onAdSkipped");
- if (m(window.onAdSkipped))
- window.onAdSkipped();
- return this.rb()
- }
- ;
- E.rb = function() {
- this.a.log(this.b, "onAdComplete");
- this.Bb = [];
- this.xa = 0;
- this.Ic++;
- this.K++;
- this.a.log(this.b, "currentAd: " + this.Ic);
- this.a.log(this.b, "adsCount: " + this.qd);
- if (m(window.onAdComplete))
- window.onAdComplete(this.Ia);
- if (this.a.j.B() && 1 < this.Ic && this.Ia)
- return this.ga();
- if (this.Ic <= this.qd) {
- if (!l(this.c[this.K]) && !g(this.c[this.K]))
- try {
- switch (this.c[this.K].type) {
- case this.type.nb:
- this.Xd(this.c[this.K]);
- break;
- case this.type.wa:
- this.Xe(this.c[this.K]);
- break;
- case this.type.ff:
- this.Ff(this.c[this.K].tag);
- break;
- default:
- this.ga()
- }
- } catch (a) {
- this.a.log(this.b, "onAdComplete Error", a),
- this.ga()
- }
- } else
- this.ga()
- }
- ;
- E.ag = function() {}
- ;
- E.pa = function(a, b) {
- this.a.log(this.b, "onAdError", arguments);
- this.P("Wyst\u0105pi\u0142 b\u0142\u0105d: " + a);
- if (m(window.onAdError))
- window.onAdError(this.Ia);
- this.td(this.xa, !1);
- switch (a) {
- case this.error.nf:
- case this.error.fd:
- case this.error.lf:
- case this.error.ed:
- case this.error.$d:
- case this.error.pf:
- case this.error.qf:
- case this.error.Pg:
- case this.error.rf:
- case this.error.kf:
- case this.error.UNKNOWN_ERROR:
- case this.error.hf:
- return this.xa++,
- this.xa < this.Bb.length ? this.Od(this.Bb, this.xa) : this.rb();
- case this.error.mf:
- var d = !1;
- !this.Ia && this.a.autoplay && (d = !0);
- return this.ga(d);
- case this.error.jf:
- return this.a.j.B() ? (this.xa++,
- this.xa < this.Bb.length ? this.Od(this.Bb, this.xa) : this.rb()) : this.zi(b);
- default:
- return d = !1,
- !this.Ia && this.a.autoplay && (d = !0),
- this.ga(d)
- }
- }
- ;
- E.zi = function(a) {
- this.a.log(this.b, "startAdsense", a);
- this.P("Reklama ADSENSE");
- this.P("Pobieram: " + a.ad.tag);
- try {
- this.ha = this.type.wa,
- this.Cb = new N(this.a,this,a.ad,a.tracking,a.impression),
- this.Cb.la()
- } catch (b) {
- this.a.log(this.b, b),
- this.ga()
- }
- }
- ;
- E.rd = function(a, b, d, e, f) {
- this.a.log(this.b, "ajax", arguments);
- if (!t(a))
- return this.ga();
- try {
- var k = new XMLHttpRequest
- , h = this;
- k.onload = function() {}
- ;
- k.onreadystatechange = function() {
- 4 == k.readyState && 200 == k.status ? l(k.response) || g(k.response) || !k.response ? h.ga() : f(k.response) : 200 < k.status && h.ga()
- }
- ;
- k.onerror = function() {
- h.P("Wyst\u0105pi\u0142 b\u0142\u0105d podczas pobierania!");
- h.ga()
- }
- ;
- k.ontimeout = function() {
- h.P("Przekoczono czas odpowiedzi!");
- h.ga()
- }
- ;
- k.withCredentials = e;
- k.open(b, a, d);
- k.timeout = 5E3;
- k.send(null)
- } catch (n) {
- this.a.log(this.b, "ajax", n),
- this.ga()
- }
- }
- ;
- E.P = function(a) {
- if (this.a.options.hasOwnProperty("debugAds") && 1 == this.a.options.debugAds) {
- var b = document.querySelector(".console-player-container");
- null !== b && (/http/.test(a) && (a = '<a href="' + a + '" target="_blank">' + a + "</a>"),
- b.insertAdjacentHTML("beforeend", '<div class="console-player-line">' + a + "</div>"))
- }
- }
- ;
- E.ne = function(a) {
- if (0 != this.a.Tf()) {
- var b = window.document.querySelector(".player-vast-pool");
- if (!g(b) && !l(b)) {
- var d = "<ul>";
- if (q(a))
- for (var e = 0; e < a.length; e++)
- d += '<li class="vast-' + e + '">' + (e + 1) + ": " + a[e] + "</li>";
- else
- d += '<li class="vast-0">' + a + "</li>";
- b.innerHTML = d + "</ul>"
- }
- }
- }
- ;
- E.td = function(a, b) {
- if (0 != this.a.Tf()) {
- var d = window.document.querySelector(".player-vast-pool");
- g(d) || l(d) || (d = window.document.querySelector(".player-vast-pool ul li.vast-" + a),
- g(d) || (d.style.color = b ? "green" : "red"))
- }
- }
- ;
- var pa = {
- nb: "vast",
- wa: "adsense",
- ff: "pool",
- gd: "yt"
- };
- var P = {
- nf: "VAST_NOT_FOUND",
- lf: "VAST_LOADING_ERROR",
- fd: "VAST_LOAD_TIMEOUT",
- ed: "VAST_EMPTY",
- $d: "VAST_PARSE_ERROR",
- pf: "VAST_UNSUPPORTED_VERSION",
- qf: "VAST_WRAPPER_ERROR",
- Pg: "VAST_MEDIA_ERROR",
- mf: "VAST_MEDIA_LOAD_TIMEOUT",
- kf: "VAST_AD_NOT_FOUND",
- rf: "VAST_XML_ERROR",
- jf: "VAST_ADSENSE_FOUND",
- Mg: "SERVER_ERROR",
- UNKNOWN_ERROR: "UNKNOWN_ERROR",
- hf: "UNKNOWN_RESPONSE"
- };
- function N(a, b, d, e, f) {
- if (3 > arguments.length)
- throw Error("Failed initialize Adsense advertisement.");
- if (!p(a) || g(a))
- throw new TypeError("Player reference is NULL.");
- if (!p(b) || g(b))
- throw new TypeError("Ads Manager reference is NULL.");
- (l(d) || g(d)) && this.finish();
- this.b = "cda.Player.Ads.Adsense";
- this.a = a;
- this.N = b;
- this.c = d;
- this.event = new H;
- this.error = P;
- this.I = [google.ima.AdEvent.Type.AD_BREAK_READY, google.ima.AdEvent.Type.AD_METADATA, google.ima.AdEvent.Type.ALL_ADS_COMPLETED, google.ima.AdEvent.Type.CLICK, google.ima.AdEvent.Type.COMPLETE, google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, google.ima.AdEvent.Type.DURATION_CHANGE, google.ima.AdEvent.Type.FIRST_QUARTILE, google.ima.AdEvent.Type.IMPRESSION, google.ima.AdEvent.Type.LINEAR_CHANGED, google.ima.AdEvent.Type.LOADED, google.ima.AdEvent.Type.LOG, google.ima.AdEvent.Type.MIDPOINT, google.ima.AdEvent.Type.PAUSED, google.ima.AdEvent.Type.RESUMED, google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED, google.ima.AdEvent.Type.SKIPPED, google.ima.AdEvent.Type.STARTED, google.ima.AdEvent.Type.THIRD_QUARTILE, google.ima.AdEvent.Type.USER_CLOSE, google.ima.AdEvent.Type.VOLUME_CHANGED, google.ima.AdEvent.Type.VOLUME_MUTED];
- this.pe = ["fullscreenchange", "mozfullscreenchange", "webkitfullscreenchange", "MSFullscreenChange"];
- this.ye = null;
- this.h = {};
- this.rc = !1;
- this.Oa = this.a.view.Oa;
- this.Ha = this.a.view.Ha;
- this.Ba = this.a.view.Ba;
- this.Fc = null;
- null != this.a.view.sa(".pb-ad-video-player", this.Oa) && (this.Ha.innerHTML = "");
- this.vg(this.Ha, this.a.video);
- this.Oa.show();
- this.i = this.Qb = this.$b = null;
- this.F();
- this.Va = null;
- this.Ob = this.Pb = this.Wa = -1;
- this.md = !1;
- window.encodeURIComponent(location.href);
- this.kd = this.Ab = this.zb = this.xb = this.oc = this.yg = !1;
- this.oa = {
- creativeView: [],
- start: [],
- firstQuartile: [],
- midpoint: [],
- thirdQuartile: [],
- complete: []
- };
- this.hb = [];
- this.Ri = "http://www.cda.pl/vast/c.php?n=adsense_html5_request";
- this.Si = "http://www.cda.pl/vast/c.php?n=adsense_html5_start";
- g(e) || l(e) || (this.oa = e);
- g(f) || l(f) || (this.hb = f);
- this.nj();
- this.gj(this.a.video.gb());
- this.fj(this.a.video.cc())
- }
- E = N.prototype;
- E.la = function() {
- this.a.log(this.b, "init");
- null === this.Fc && (this.vg(this.Ha, this.a.video),
- this.Oa.show());
- null === this.Qb && this.F();
- null === this.h && (this.h = {});
- this.h[google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED] = I(this.Qb, google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.Oh, this);
- this.h[google.ima.AdErrorEvent.Type.AD_ERROR] = I(this.Qb, google.ima.AdErrorEvent.Type.AD_ERROR, this.pa, this);
- this.h.Id = I(this.Ha, "click", this.Id, this);
- this.h.gc = I(this.a.controls.R, "click", this.gc, this);
- this.h.Ub = I(this.a.controls.$a, "click", this.Ub, this);
- this.a.j.B() && this.Fc.initialize();
- !this.rc && this.c.autoplay ? (this.a.controls.M(!0),
- this.hc()) : this.a.controls.W.da() && (this.a.controls.M(!0),
- this.hc())
- }
- ;
- E.restore = function() {
- window.clearTimeout(this.$b);
- this.$b = null;
- this.Ha.innerHTML = "";
- this.Oa.s();
- this.i = this.Qb = this.Fc = this.Va = null;
- this.rc = !1
- }
- ;
- E.vg = function(a, b) {
- this.Fc = new google.ima.AdDisplayContainer(a,b)
- }
- ;
- E.F = function() {
- this.Qb = new google.ima.AdsLoader(this.Fc)
- }
- ;
- E.oj = function(a, b, d) {
- this.i = a.getAdsManager(b, d)
- }
- ;
- E.nh = function() {
- var a = new google.ima.AdsRenderingSettings;
- a.restoreCustomPlaybackStateOnAdBreakComplete = !0;
- a.uiElements = [];
- a.loadVideoTimeout = 4E3;
- return a
- }
- ;
- E.finish = function() {
- this.a.log(this.b, "finish");
- null !== this.i && this.i.destroy();
- this.Xc();
- this.restore();
- return this.N.rb()
- }
- ;
- E.he = function() {
- this.a.log(this.b, "add events");
- for (var a in this.I)
- this.h[this.I[a]] = I(this.i, this.I[a], this.ag, this);
- this.h[google.ima.AdErrorEvent.Type.AD_ERROR] = I(this.i, google.ima.AdErrorEvent.Type.AD_ERROR, this.pa, this);
- for (a in this.pe)
- this.h[this.pe[a]] = I(this.a.view.w, this.pe[a], this.ni, this)
- }
- ;
- E.Xc = function() {
- this.a.log(this.b, "remove events");
- for (var a in this.I)
- null != this.h[this.I[a]] && K(this.i, this.I[a], this.h[this.I[a]]);
- null != this.h[google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED] && K(this.Qb, google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.h[google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED]);
- null != this.h[google.ima.AdErrorEvent.Type.AD_ERROR] && K(this.Qb, google.ima.AdErrorEvent.Type.AD_ERROR, this.h[google.ima.AdErrorEvent.Type.AD_ERROR]);
- null != this.h.Id && K(this.Ha, "click", this.h.Id);
- null != this.h.gc && K(this.a.controls.R, "click", this.h.gc);
- null != this.h.Ub && K(this.a.controls.$a, "click", this.h.Ub);
- this.h = null
- }
- ;
- E.nj = function() {
- this.a.log(this.b, "set locale to pl");
- google.ima.settings.setLocale("pl")
- }
- ;
- E.gj = function(a) {
- this.Pb = a;
- this.a.log(this.b, "set width to " + a + "px")
- }
- ;
- E.fj = function(a) {
- this.Ob = a;
- this.a.log(this.b, "set height to " + a + "px")
- }
- ;
- E.hc = function() {
- this.a.log(this.b, "requestAd");
- var a = this;
- this.$b = window.setTimeout(function() {
- a.Lh(a.error.fd)
- }, 1E4);
- this.a.controls.W.show();
- this.rc = !0;
- var b = new google.ima.AdsRequest;
- b.adTagUrl = this.c.tag;
- b.linearAdSlotWidth = this.Pb;
- b.linearAdSlotHeight = this.Ob;
- b.nonLinearAdSlotWidth = this.Pb;
- b.nonLinearAdSlotHeight = this.Ob;
- if (-1 < this.c.tag.indexOf("ca-video-pub-3769393018799974"))
- try {
- this.na(this.Ri)
- } catch (d) {}
- this.Qb.requestAds(b)
- }
- ;
- E.Oh = function(a) {
- this.a.log(this.b, "onAdsManagerLoaded");
- this.oj(a, this.a.video, this.nh);
- this.he();
- this.a.fullScreen.Ca() && (this.Pb = window.screen.width,
- this.Ob = window.screen.height);
- try {
- this.i.init(this.Pb, this.Ob, google.ima.ViewMode.NORMAL),
- this.Bc()
- } catch (b) {
- this.a.log(this.b, b),
- this.finish()
- }
- }
- ;
- E.Bc = function() {
- this.a.log(this.b, "startAd");
- if (!1 !== this.a.qb()) {
- var a = this.a.qb();
- this.a.controls.T(a)
- } else
- this.a.controls.qj();
- try {
- this.i.start()
- } catch (b) {
- this.a.log(this.b, b),
- this.finish()
- }
- }
- ;
- E.ag = function(a) {
- this.a.log(this.b, "AdEvent", a.type);
- this.Va = a.getAd();
- switch (a.type) {
- case google.ima.AdEvent.Type.LOADED:
- this.Mh();
- break;
- case google.ima.AdEvent.Type.STARTED:
- this.Nh();
- break;
- case google.ima.AdEvent.Type.COMPLETE:
- this.rb();
- break;
- case google.ima.AdEvent.Type.CLICK:
- this.$f();
- break;
- case google.ima.AdEvent.Type.PAUSED:
- this.md = !0;
- break;
- case google.ima.AdEvent.Type.RESUMED:
- this.md = !1;
- break;
- case google.ima.AdEvent.Type.SKIPPED:
- case google.ima.AdEvent.Type.USER_CLOSE:
- this.ti()
- }
- }
- ;
- E.Mh = function() {
- this.a.log(this.b, "onAdLoaded");
- this.Va.isLinear() ? (window.clearTimeout(this.$b),
- this.$b = null,
- this.Wa = this.Va.getDuration(),
- this.a.controls.ib(0),
- this.a.controls.Fa(0),
- this.a.log(this.b, "adDuration: " + this.Wa)) : this.finish()
- }
- ;
- E.Nh = function() {
- this.a.log(this.b, "onAdStarted");
- this.N.P("Startuje reklam\u0119");
- window.clearTimeout(this.$b);
- this.$b = null;
- if (this.Va.isLinear()) {
- this.N.Ia = !0;
- this.a.v.fa.D("pb-run-ad") || this.a.v.fa.m("pb-run-ad");
- if (-1 < this.c.tag.indexOf("ca-video-pub-3769393018799974"))
- try {
- this.na(this.Si)
- } catch (d) {}
- try {
- this.aa("impression")
- } catch (d) {}
- try {
- if (this.c.hasOwnProperty("counter") && this.c.counter && this.c.hasOwnProperty("key") && this.c.hasOwnProperty("displayAs")) {
- var a = "";
- l(this.Va.g) || g(this.Va.g) || (a = "" != this.Va.g.clickThroughUrl ? this.Va.g.clickThroughUrl : this.Va.g.adQueryId + "/" + (new Date).getTime());
- t(a) && (a = a.trim());
- "" != a && null != a && "undefined" != typeof a && this.ge(a, this.c.key, this.c.displayAs)
- }
- } catch (d) {
- this.a.log(this.b, d)
- }
- try {
- this.aa("start"),
- this.aa("creativeView")
- } catch (d) {}
- 0 < this.Wa && this.a.controls.Fa(this.Wa);
- this.a.controls.M();
- this.a.controls.F(!1);
- this.Oa.show();
- this.Ic++;
- var b = this;
- this.ye = setInterval(function() {
- var a = b.i.getRemainingTime();
- b.yg || a == b.Wa || (b.Wa = a,
- b.a.controls.Fa(b.Wa),
- b.yg = !0);
- var e = b.Wa - a
- , f = Math.floor(e / b.Wa * 100);
- if (25 <= f && !1 === b.xb)
- try {
- b.aa("firstQuartile"),
- b.xb = !0
- } catch (k) {}
- else if (50 <= f && !1 === b.zb)
- try {
- b.aa("midpoint"),
- b.zb = !0
- } catch (k) {}
- else if (75 <= f && 0 == b.Ab)
- try {
- b.aa("thirdQuartile"),
- b.Ab = !0
- } catch (k) {}
- b.a.controls.ib(e);
- b.Ba.innerHTML = "Reklama zniknie za " + b.a.controls.Ea(a);
- b.Ba.show();
- f = 100 / b.Wa * e;
- b.a.controls.Ka.ua(f + "%")
- }, 100)
- }
- }
- ;
- E.rb = function() {
- this.a.log(this.b, "onAdComplete");
- this.N.P("Koniec reklamy");
- if (this.Va.isLinear()) {
- this.a.controls.currentTime.innerHTML = this.a.controls.Ea(this.Wa);
- this.a.controls.Ka.ua("100%");
- this.Ba.s();
- clearInterval(this.ye);
- try {
- this.aa("complete")
- } catch (a) {}
- }
- return this.finish()
- }
- ;
- E.$f = function() {
- this.a.log(this.b, "onAdClick")
- }
- ;
- E.pa = function(a) {
- var b = a.getError();
- b.getInnerError();
- var d = b.getErrorCode();
- this.a.log(this.b, "AdError", a.getError().toString());
- this.a.log(this.b, "AdError", "ErrorCode: " + b.getErrorCode());
- switch (d) {
- case google.ima.AdError.ErrorCode.VAST_LOAD_TIMEOUT:
- a = this.error.fd;
- break;
- case google.ima.AdError.ErrorCode.VAST_EMPTY_RESPONSE:
- try {
- this.aa("impression")
- } catch (e) {}
- a = this.error.ed;
- break;
- case google.ima.AdError.ErrorCode.VAST_SCHEMA_VALIDATION_ERROR:
- a = this.error.$d;
- break;
- case google.ima.AdError.ErrorCode.VAST_UNSUPPORTED_VERSION:
- a = this.error.pf;
- break;
- case google.ima.AdError.ErrorCode.VAST_WRAPPER_ERROR:
- a = this.error.qf;
- break;
- case google.ima.AdError.ErrorCode.UNKNOWN_AD_RESPONSE:
- a = this.error.hf;
- break;
- default:
- a = this.error.UNKNOWN_ERROR
- }
- null !== this.i && this.i.destroy();
- this.Xc();
- this.restore();
- return this.N.pa(a)
- }
- ;
- E.Lh = function(a) {
- null !== this.i && this.i.destroy();
- this.Xc();
- this.restore();
- this.N.pa(a)
- }
- ;
- E.zc = function() {
- null !== this.i && this.a.controls.M(!0)
- }
- ;
- E.sb = function() {
- null !== this.i && (this.a.controls.qa(!0),
- this.i.pause(),
- this.a.log(this.b, "pause ad"))
- }
- ;
- E.Nd = function() {
- null !== this.i && (this.a.controls.M(!0),
- this.a.controls.W.s(),
- this.i.resume(),
- this.a.log(this.b, "resume ad"))
- }
- ;
- E.ti = function() {
- this.a.log(this.b, "onSkipped");
- this.N.P("Reklama przewini\u0119ta");
- this.Va.isLinear() && (this.a.controls.currentTime.innerHTML = this.a.controls.Ea(this.Wa),
- this.a.controls.Ka.ua("100%"),
- this.Ba.s(),
- clearInterval(this.ye));
- this.finish()
- }
- ;
- E.ni = function() {
- this.Pb = this.a.video.gb();
- this.Ob = this.a.video.cc();
- null !== this.i && this.i.resize(this.Pb, this.Ob, google.ima.ViewMode.FULLSCREEN);
- this.a.log(this.b, "resize", "new width: " + this.Pb);
- this.a.log(this.b, "resize", "new height: " + this.Ob)
- }
- ;
- E.Id = function() {
- this.N.pd = !0;
- if (!0 === this.c.autoplay || this.rc)
- return this.$f();
- this.a.controls.M(!0);
- this.hc()
- }
- ;
- E.gc = function() {
- this.N.pd = !0;
- !0 === this.c.autoplay || this.rc ? !1 === this.md ? this.sb() : this.Nd() : (this.a.controls.M(!0),
- this.hc())
- }
- ;
- E.Ub = function() {
- this.N.pd = !0;
- !0 === this.c.autoplay || this.rc ? !1 === this.md ? this.sb() : this.Nd() : (this.a.controls.M(!0),
- this.hc())
- }
- ;
- E.T = function(a) {
- this.a.log(this.b, "setVolume", a);
- null !== this.i && (a = Number(a),
- !isNaN(a) && 0 <= a && (0 === a ? this.i.setVolume(0) : this.i.setVolume((a / 100).toFixed(2))))
- }
- ;
- E.aa = function(a) {
- this.a.log(this.b, "tracking", a);
- if ("impression" == a)
- for (var b = 0; b < this.oa.length; b++)
- null != this.oa && this.na(this.hb[b]);
- else
- for (var d in this.oa)
- if (a == d)
- for (b = 0; b < this.oa[a].length; b++)
- this.na(this.oa[a][b])
- }
- ;
- E.na = function(a) {
- this.a.log(this.b, "sendPixel", a);
- if (a) {
- var b = new window.Image(1,1);
- b.onload = b.onerror = function() {
- delete b
- }
- ;
- b.src = a
- }
- }
- ;
- E.ge = function(a, b, d) {
- this.a.log(this.b, "adHit", arguments);
- if (null !== this.a.C && !1 === this.oc) {
- var e = this;
- try {
- window[this.a.C.client].zliczReklame(a, b, d, {
- success: function(a) {
- e.oc = !0;
- e.a.log(e.b, "adHit", "response: " + a)
- },
- error: function(a) {
- e.a.log(e.b, "adHit", "erorr: " + a)
- }
- })
- } catch (f) {
- e.a.log(e.b, "adHit", "erorr: " + f)
- }
- }
- }
- ;
- function M(a, b, d) {
- if (0 >= arguments.length)
- throw Error("Failed initialize VAST advertisement.");
- if (!p(a) || g(a))
- throw new TypeError("Player reference is NULL.");
- if (!p(b) || g(b))
- throw new TypeError("Ads Manager refrence is NULL.");
- if (l(d) || g(d))
- return this.finish();
- this.b = "cda.Player.Ads.Vast";
- this.oa = {
- creativeView: [],
- start: [],
- firstQuartile: [],
- midpoint: [],
- thirdQuartile: [],
- complete: [],
- skip: [],
- mute: [],
- unmute: [],
- pause: [],
- resume: [],
- skip: []
- };
- this.hb = [];
- this.Gc = "";
- this.me = [];
- this.Rc = "";
- this.K = 0;
- this.Na = !1;
- this.Jb = 5;
- this.ab = this.tb = null;
- this.Vd = !1;
- this.Kb = 5;
- this.Ve = !0;
- this.autoplay = !1;
- this.h = {};
- this.sc = 0;
- this.c = d;
- this.Zb = null;
- this.va = this.be = this.oc = this.ee = this.kd = this.Ab = this.zb = this.xb = this.qc = !1;
- this.Y = null;
- this.mc = this.ca = !1;
- this.duration = this.currentTime = -1;
- this.a = a;
- this.N = b;
- this.event = this.video = null;
- this.ia = "click timeupdate error abort ended pause play playing loadstart load loadeddata loadedmetadata progress waiting canplay canplaythrough".split(" ");
- this.state = null;
- this.Ti = "//static.cda.pl/v001/img/mobile/poster16x9.png";
- this.Oa = this.a.view.Oa;
- this.Ha = this.a.view.Ha;
- this.v = this.a.view;
- this.event = new H;
- this.error = P;
- this.c.hasOwnProperty("autoplay") && (this.autoplay = !!this.c.autoplay);
- this.c.hasOwnProperty("skip") && (this.Na = !!this.c.skip);
- -1 < this.c.tag.indexOf("Mjg_ZDQ4MzJlYzQ5MWIxOTY1ODJmODBiOGYxNTEwYzllYTI_Mzc") && (this.Na = !1);
- if (-1 < this.c.tag.indexOf("NTc_MWM1ZjEwYjg5ZGM1ZjVkZDA3YjJmYjI5MzBhOGEwMWE_NTc2") || -1 < this.c.tag.indexOf("NTc_ZjBmNmZkOTYzOTQ1ZTcwMzQ0YWJjN2VlYzg1Y2NiZDE_NTcw"))
- this.Na = !0,
- this.Jb = 1;
- -1 < this.c.tag.indexOf("MjA_ZmFlNGExNDQ3ODg3ZmM1MmZhZTExMWQxMjhkNGY2NWI_NTg1") && (this.Na = !0,
- this.Jb = 10);
- -1 < this.c.tag.indexOf("MjA_YmQ3NzhiNzUyMmRiNmE3NTljNDg3YzBhMDVhNTk0Y2Q_NjA1") && (this.Na = !0,
- this.Kb = this.Jb = 18);
- -1 < this.c.tag.indexOf("MjA_YmVhOWFjNzQ3NWFlZmQ4ZTllNmNlNDdkMThhNTA3ZTM_NjQ5") && (this.Na = !0,
- this.Kb = this.Jb = 20);
- if (-1 < this.c.tag.indexOf("NTc_NTc3YWZmOWQ5ZDkyMjljYjNjMmRkYWUxNzYwMGIzNzk_NTY3") || -1 < this.c.tag.indexOf("NTc_MGQ4ZWRhMjJlMmJlODAwNWVjYjhlMGJjZDU2MjcyYTI_NTcz"))
- this.Na = !1;
- -1 < this.c.tag.indexOf("NjM_NDhlOGU2YzE4M2Q0N2RhMWEyZjg0YjlhM2NlMmM5Mjc_NTc5") && (this.Na = !1);
- -1 < this.c.tag.indexOf("NjY_ZTc2M2ZmMDA3YWRiMTZjMjViMjZjMzM1N2RhNWJlOWQ_NTkx") && (this.Na = !0,
- this.Jb = 1);
- -1 < this.c.tag.indexOf("Njk_OTVkOTRkOGU0NmJkN2VlMGFkNDA5ZTE1YmM5YmIwYWI_NjAz") && (this.Na = !0,
- this.Kb = this.Jb = 30);
- if (-1 < this.c.tag.indexOf("MjA_MTI3M2FjYjVmMzI3YTljMzI1Y2NmYWZkMTIyM2RhOGE_NjIz") || -1 < this.c.tag.indexOf("MjA_ZGMyN2E2NmFhYjZhNjE3YTE1N2E0ZTgzODk2ZTVlNWI_NjE3") || -1 < this.c.tag.indexOf("MjA_Y2YyYmM1ZmJiOTJkNzU1ZDgwMmJmYzgxOGNmNzZiMjQ_NjE0") || -1 < this.c.tag.indexOf("MjA_YTk1ZjkwZGViMmZkZDc4YmE4MzhiM2U1MmY0NjhkODY_NjA4") || -1 < this.c.tag.indexOf("MjA_MDk1ODNhM2U4MDdmNjJjODBhMWIxMTAzNDk3ZjdkNTE_NjMy"))
- this.Na = !0,
- this.Kb = this.Jb = 5;
- if (-1 < this.c.tag.indexOf("MjA_YmY3OGEwODRkOTNkNDAwNTI4YjE5ZDM1MDdmNWY2M2E_NjAw") || -1 < this.c.tag.indexOf("MjA_OGJkM2RkZTI5YjIxNjE5ZDYxZGUzYjU3ZDUwOGVhYzk_NTUy") || -1 < this.c.tag.indexOf("MjA_MzY1ZmIzZGNhMzhhZmY0ZmI2NWE2NTdjMmQ0YWQzMDI_NTQ5") || -1 < this.c.tag.indexOf("MjA_M2YzNTJmZDMwOGVhNDgyMjllZmFlNjNlOTQ2OThmZTY_NTQ2") || -1 < this.c.tag.indexOf("MjA_MjRkZDcxOGQ4MmFhYTQ0NWU0OGFhYmVjMjM1ZGJlM2Q_NTQz") || -1 < this.c.tag.indexOf("MjA_NTNhZjNmY2NiYmE5ZTVmZDEwY2FlYTQyNWYxYmM3MzI_NTI4") || -1 < this.c.tag.indexOf("MjA_OGIyMWVkNGMwNzhhZjA0YTc2Y2Y1N2EzYmEwYjI3Y2Y_NTI1") || -1 < this.c.tag.indexOf("MjA_MWFhOWQyYzM3NWQyZWM0N2ZlODkzNDE0ZDExZTFiOGE_NTIy") || -1 < this.c.tag.indexOf("MjA_NzY0ZWYwNjRjNzJhZDU0MWYzYWI5NDYxM2Q4YzNmMmU_NDkz") || -1 < this.c.tag.indexOf("MjA_N2NkZjEzZDIwNDliNWY3MDc1YzQzYmM3ZmViYTc0NTM_NDg0") || -1 < this.c.tag.indexOf("MjA_Njc1MTI4Y2NkNGIxMTFiNGQxNjg5NGFjOTJkZjUxNDM_MzY5") || -1 < this.c.tag.indexOf("MjA_NTI5NzU2NDQ2YzEwY2Y1OGZlZmRlNjU1MzEzNDQzODc_NjI2") || -1 < this.c.tag.indexOf("MjA_ZDY5ODE4MjM2MmEzMjEwMzIwOTU3YzJkMTYzMDU0ZmU_NjEx") || -1 < this.c.tag.indexOf("MjA_ZGNiMTBiMjJhOTdjMDlhY2I2YTBlNDUxMWM4MGRiODc_NjM3") || -1 < this.c.tag.indexOf("MjA_Nzc3ZDhkYzYyYjUwNzQ4ZmRiMmVhNDgxOWJiOWYwMTk_NjM0") || -1 < this.c.tag.indexOf("MjA_NDg0ZGE4ZTI5MWRlMTdiY2IyNGU3YzE3N2Q1ODZlNDA_NjQy"))
- this.Na = !0,
- this.Jb = 5;
- -1 < this.c.tag.indexOf("MzE_MTJjYmY3NzBlOTM1ODliMzYzYzE1ODRmMmE3MzZmMzI_NjQz") && !this.a.j.B() && (this.Zb = {
- tag: "https://g.cda.pl/player.php?ads&vi=MjA_MWFhOWQyYzM3NWQyZWM0N2ZlODkzNDE0ZDExZTFiOGE_NTIy&ts=[timestamp]",
- autoplay: !0,
- counter: !0,
- displayAs: "prerol",
- key: "",
- skip: !0,
- click: !0,
- time: 0,
- "type:": "vast",
- length: 21
- });
- this.a.log(this.b, this.c)
- }
- E = M.prototype = {};
- E.hc = function(a, b) {
- this.a.log(this.b, "requestAd");
- try {
- -1 !== window.location.href.indexOf("superfilm.pl") && this.na("http://dev.superfilm.pl/pixel.php?n=html5_ad_request")
- } catch (d) {}
- try {
- this.rd(this.c.tag, "GET", !0, !0, "xml", function(d) {
- !g(d) && d ? a(d) : b()
- }
- .bind(this))
- } catch (d) {
- this.a.log(this.b, "requestAd error", d)
- }
- }
- ;
- E.Nj = function() {
- return this.N.Ak()
- }
- ;
- E.uh = function(a) {
- this.a.log(this.b, "initAd");
- this.qg(a)
- }
- ;
- E.finish = function() {
- this.a.log(this.b, "finish");
- this.N.Ia = !1;
- this.Me();
- window.clearTimeout(this.tb);
- this.tb = null;
- window.clearInterval(this.ab);
- this.ab = null;
- window.clearTimeout(this.Y);
- this.Y = null;
- this.a.v.s(this.a.v.Ba);
- this.a.v.s(this.a.v.nd);
- this.a.v.s(this.a.v.V);
- this.a.v.s(this.a.v.Pa);
- this.a.j.B() || (this.video = null);
- return this.N.ga()
- }
- ;
- E.Td = function(a) {
- a && -1 < a.indexOf(".mp4") ? this.video.canPlayType("video/mp4") ? (this.video.src = a,
- this.video.setAttribute("src", a)) : this.finish() : this.finish()
- }
- ;
- E.Se = function(a) {
- g(this.video) || (this.video.poster = a)
- }
- ;
- E.$ = function() {
- return this.video.currentTime || 0
- }
- ;
- E.ib = function(a) {
- if (v(a) || x(a))
- this.currentTime = a,
- this.video.currentTime = a
- }
- ;
- E.H = function() {
- return this.video.duration || 0
- }
- ;
- E.play = function() {
- this.a.log(this.b, "play");
- g(this.video) || (0 < this.$() ? this.resume() : (this.a.controls.F(!0),
- this.ca || this.va || this.video.load(),
- this.video.play()))
- }
- ;
- E.pause = function() {
- this.a.log(this.b, "pause");
- g(this.video) || (this.video.paused ? this.resume() : this.video.pause())
- }
- ;
- E.resume = function() {
- this.a.log(this.b, "resume");
- g(this.video) || this.video.paused && this.video.play()
- }
- ;
- E.vh = function() {
- if (!this.ee) {
- for (var a in this.ia)
- "" != this.ia[a] && (this.h[this.ia[a]] = I(this.video, this.ia[a], this.Md(this.ia[a]), this));
- this.h.og = I(this.a.view.Pa, "click", this.Uc, this);
- this.h.Uc = I(this.Zc(), "click", this.Uc, this);
- this.ee = !0
- }
- }
- ;
- E.Me = function() {
- for (var a in this.ia)
- "" == this.ia[a] || l(this.h[this.ia[a]]) || ("click" == this.ia[a] ? K(this.a.view.bd, this.ia[a], this.h[this.ia[a]]) : K(this.video, this.ia[a], this.h[this.ia[a]]),
- this.h[this.ia[a]] = null);
- l(this.h.Uc) || K(this.Zc(), "click", this.h.Uc);
- l(this.h.og) || K(this.a.view.Pa, "click", this.h.og)
- }
- ;
- E.Md = function(a) {
- var b = null;
- switch (a) {
- case "click":
- b = this.Ib;
- break;
- case "timeupdate":
- b = this.Vc;
- break;
- case "error":
- b = this.Tc;
- break;
- case "abort":
- b = this.Ce;
- break;
- case "ended":
- b = this.Jd;
- break;
- case "pause":
- b = this.sb;
- break;
- case "play":
- b = this.zc;
- break;
- case "playing":
- b = this.Ie;
- break;
- case "loadstart":
- b = this.He;
- break;
- case "load":
- b = this.Ee;
- break;
- case "loadeddata":
- b = this.hg;
- break;
- case "loadedmetadata":
- b = this.$h;
- break;
- case "progress":
- b = this.yc;
- break;
- case "waiting":
- b = this.Wc;
- break;
- case "canplaythrough":
- b = this.Sc;
- break;
- case "canplay":
- b = this.De
- }
- return b
- }
- ;
- E.Kj = function() {
- return this.a.view.Ba
- }
- ;
- E.Zc = function() {
- return this.a.view.w.querySelector(".pb-ad-close-body")
- }
- ;
- E.qg = function(a) {
- if (a)
- if ((a = a.getElementsByTagName("Ad")) && 0 < a.length)
- for (var b = 0; b <= a.length; b++) {
- var d = a[b];
- if (d) {
- if (null == d.querySelector("Wrapper") && 0 == d.querySelectorAll("MediaFiles").length) {
- try {
- this.aa("impression")
- } catch (h) {}
- this.pa(this.error.ed);
- break
- }
- var e = d.querySelectorAll("Impression");
- null !== e && 0 < e.length && this.Mi(e);
- e = d.querySelectorAll("TrackingEvents");
- null !== e && 0 < e.length && this.Pi(e);
- e = d.querySelectorAll("ClickThrough");
- null !== e && 0 < e.length && this.Ki(e);
- e = d.querySelectorAll("ClickTracking");
- null !== e && 0 < e.length && this.Li(e);
- e = d.querySelector("Wrapper");
- null !== e && this.Qi(e);
- var f = d.querySelectorAll("Script");
- null !== f && 0 < f.length && this.Oi(f);
- d = d.querySelectorAll("MediaFiles");
- if (null !== d && 0 < d.length && (this.Ni(d),
- "" !== this.Rc)) {
- this.N.Ia = !0;
- this.a.j.B() ? (this.video = this.a.video,
- this.N.Qa != this.N.state.Xb && this.a.Se("//static.cda.pl/v001/img/mobile/poster16x9.png")) : null === this.video && (this.video = window.document.createElement("video"),
- this.video.className = "pb-ad-video-player",
- this.video.poster = this.Ti,
- this.Ha.appendChild(this.video),
- this.v.show(this.Oa),
- !1 !== this.a.qb() ? (a = this.a.qb(),
- this.a.controls.T(a)) : this.a.Cd("cda.player.volume") ? this.a.controls.T(this.a.Eb("cda.player.volume")) : this.a.controls.T(this.a.controls.Ye));
- this.a.controls.ic(0);
- this.vh();
- this.a.j.B() ? this.a.Td(this.Rc) : (this.Td(this.Rc),
- this.a.video.paused || this.a.pause());
- if (this.autoplay || this.a.controls.W.da())
- if (this.a.j.B())
- if (this.N.Qa == this.N.state.Xb) {
- var k = this;
- window.addEventListener("touchstart", function n() {
- k.a.controls.M(!0);
- k.play();
- this.removeEventListener("touchstart", n)
- })
- } else
- this.a.controls.M(!0),
- this.play();
- else
- this.a.controls.M(!0),
- this.play();
- break
- }
- if (null == e && "" == this.Rc) {
- try {
- this.aa("impression")
- } catch (h) {}
- this.pa(this.error.ed);
- break
- }
- }
- }
- else {
- try {
- this.aa("impression")
- } catch (h) {}
- this.pa(this.error.kf)
- }
- }
- ;
- E.Qi = function(a) {
- try {
- if (null !== a) {
- var b = a.querySelector("VASTAdTagURL") || a.querySelector("VASTAdTagURI");
- if ("object" === typeof b && b.hasChildNodes()) {
- var d = b.querySelector("URL") || b.querySelector("URI");
- a = null;
- a = null !== d && d.hasChildNodes() ? d.childNodes : b.childNodes;
- for (b = 0; b < a.length; b++)
- if ("" !== a[b].nodeValue.trim()) {
- var e = a[b].nodeValue.trim();
- if (e == this.c.tag)
- break;
- this.N.P("Pobieram wrapper: " + e);
- if (this.N.Kc(e)) {
- this.N.P("Wrapper ADSENSE");
- b = [];
- b.ad = {
- autoplay: this.c.autoplay,
- counter: this.c.counter,
- displayAs: this.c.displayAs,
- key: this.c.key,
- skip: this.c.skip,
- tag: e,
- time: this.c.time,
- type: this.N.type.wa
- };
- b.tracking = this.oa;
- b.impression = this.hb;
- this.pa(this.error.jf, b);
- break
- }
- try {
- this.rd(e, "GET", !0, !0, "xml", function(a) {
- null != a && a ? this.qg(a) : this.finish()
- }
- .bind(this))
- } catch (f) {
- this.a.log(this.b, "getWrapper", f)
- }
- }
- }
- }
- } catch (f) {
- this.a.log(this.b, "parseWrapper", f)
- }
- }
- ;
- E.Pi = function(a) {
- try {
- for (var b = 0; b < a.length; b++) {
- var d = a[b].querySelectorAll("Tracking");
- if (null !== d && 0 < d.length)
- for (var e = 0; e < d.length; e++)
- if ("undefined" !== d[e].getAttribute("event"))
- for (var f in this.oa)
- if (f == d[e].getAttribute("event")) {
- var k = d[e].querySelector("URL") || d[e].querySelector("URI")
- , h = null;
- null !== k && k.hasChildNodes() ? h = k.childNodes : null !== d[e] && d[e].hasChildNodes() && (h = d[e].childNodes);
- if (null !== h)
- for (var n = 0; n < h.length; n++)
- "" !== h[n].nodeValue.trim() && this.oa[f].push(h[n].nodeValue.trim())
- }
- }
- } catch (w) {
- this.a.log(this.b, "parseTrackingEvents", w)
- }
- }
- ;
- E.Mi = function(a) {
- try {
- for (var b = 0; b < a.length; b++) {
- var d = a[b].querySelector("URL") || a[b].querySelector("URI")
- , e = null;
- null !== d && d.hasChildNodes() ? e = d.childNodes : null !== a[b] && a[b].hasChildNodes() && (e = a[b].childNodes);
- if (null !== e)
- for (var f = 0; f < e.length; f++)
- "" !== e[f].nodeValue.trim() && this.hb.push(e[f].nodeValue.trim())
- }
- } catch (k) {
- this.a.log(this.b, "parseImpression", k)
- }
- }
- ;
- E.Ki = function(a) {
- try {
- for (var b = 0; b < a.length; b++)
- if (a[b].hasChildNodes())
- for (var d = a[b].childNodes, e = 0; e < d.length; e++)
- if ("" !== d[e].nodeValue.trim()) {
- this.Gc = d[e].nodeValue.trim();
- return
- }
- } catch (f) {
- this.a.log(this.b, "parseClickThrough", f)
- }
- }
- ;
- E.Li = function(a) {
- try {
- for (var b = 0; b < a.length; b++)
- if (a[b].hasChildNodes())
- for (var d = a[b].childNodes, e = 0; e < d.length; e++)
- "" !== d[e].nodeValue.trim() && this.me.push(d[e].nodeValue.trim())
- } catch (f) {
- this.a.log(this.b, "parseClickTracking", f)
- }
- }
- ;
- E.Ni = function(a) {
- try {
- for (var b = null, d = 0; d < a.length; d++) {
- var e = a[d].getElementsByTagName("MediaFile");
- if ("undefined" !== e)
- if (1 < e.length)
- for (var f = 0; f < e.length; f++) {
- if ("undefined" !== e[f].getAttribute("type") && ("video/mp4" == e[f].getAttribute("type") || "mp4" == e[f].getAttribute("type"))) {
- b = e[f];
- break
- }
- }
- else
- 1 == e.length && (b = e[0])
- }
- if (null !== b && b.hasChildNodes) {
- var k = b.childNodes;
- for (a = 0; a < k.length; a++)
- "" !== k[a].nodeValue.trim() && k[a].nodeValue.trim().indexOf("mp4") && (this.Rc = k[a].nodeValue.trim())
- }
- } catch (h) {
- this.a.log(this.b, "parseMediaFiles", h)
- }
- }
- ;
- E.Oi = function(a) {
- try {
- for (var b = 0; b < a.length; b++)
- if (a[b].hasChildNodes)
- for (var d = a[b].childNodes, e = 0; e < d.length; e++)
- "" != d[e].nodeValue && eval(d[e].nodeValue)
- } catch (f) {
- this.a.log(this.b, "parseScripts", f)
- }
- }
- ;
- E.rd = function(a, b, d, e, f, k) {
- this.a.log(this.b, "ajax", arguments);
- try {
- var h = new XMLHttpRequest
- , n = this;
- h.onload = function() {}
- ;
- h.onreadystatechange = function() {
- 4 == h.readyState && 200 == h.status ? "undefined" !== h.responseXML && h.responseXML ? k(h.responseXML) : n.pa(n.error.$d) : 200 < h.status && (400 < status && 500 > status ? n.pa(n.error.nf) : n.pa(n.error.Mg))
- }
- ;
- h.onerror = function() {
- n.pa(n.error.lf)
- }
- ;
- h.ontimeout = function() {
- n.pa(n.error.fd)
- }
- ;
- h.withCredentials = e;
- h.open(b, a, d);
- h.timeout = 5E3;
- h.send(null)
- } catch (w) {
- this.a.log(this.b, "ajax", w)
- }
- }
- ;
- E.aa = function(a) {
- this.a.log(this.b, "tracking", a);
- if ("impression" == a)
- for (var b = 0; b < this.hb.length; b++)
- this.na(this.hb[b]);
- else if ("clicktracking" == a)
- for (b = 0; b < this.me.length; b++)
- this.na(this.me[b]);
- else
- for (var d in this.oa)
- if (a == d)
- for (b = 0; b < this.oa[a].length; b++)
- this.na(this.oa[a][b])
- }
- ;
- E.na = function(a) {
- try {
- -1 < a.indexOf("[timestamp]") && (a = a.replace("[timestamp]", parseInt((new Date).getTime() / 1E3)))
- } catch (d) {}
- try {
- -1 < a.indexOf("g.cda.pl") && 33 < this.a.Jc() && (a += "&uid=" + this.a.Jc())
- } catch (d) {}
- this.a.log(this.b, "sendPixel", a);
- if (t(a)) {
- var b = new window.Image(1,1);
- b.onload = b.onerror = function() {
- delete b
- }
- ;
- b.src = a
- }
- }
- ;
- E.Ea = function(a) {
- a = Number(a);
- var b = Math.floor(a / 3600)
- , d = Math.floor(a % 3600 / 60);
- a = Math.floor(a % 3600 % 60);
- return (0 < b ? b + ":" + (10 > d ? "0" : "") : "") + d + ":" + (10 > a ? "0" : "") + a
- }
- ;
- E.setTime = function(a) {
- 0 < this.H() && (a = !g(this.Zb) && p(this.Zb) ? this.Zb.length + this.H() - a : this.H() - a,
- !isNaN(a) && r(a) ? (this.a.view.Ba.innerHTML = -1 < this.c.tag.indexOf("MjA_ZmFlNGExNDQ3ODg3ZmM1MmZhZTExMWQxMjhkNGY2NWI_NTg1") ? this.Ea(a) : "Reklama zniknie za " + this.Ea(a),
- this.a.view.Ba.da() || this.a.view.Ba.show()) : this.a.view.Ba.s())
- }
- ;
- E.Vc = function() {
- this.yc();
- 2 === this.video.networkState && 3 > this.video.readyState ? this.a.controls.F(!0) : (1 === this.video.networkState || 3 <= this.video.readyState) && this.a.controls.F(!1);
- this.a.controls.ib(this.$());
- this.a.controls.Fa(this.H());
- this.setTime(this.$());
- this.a.controls.Ka.ua(100 / this.H() * this.$() + "%");
- if (0 < this.$() && !0 === this.Na && !this.Zc().da() && !1 === this.Vd) {
- var a = this;
- -1 < this.c.tag.indexOf("Njk_OTVkOTRkOGU0NmJkN2VlMGFkNDA5ZTE1YmM5YmIwYWI_NjAz") || -1 < this.c.tag.indexOf("MjA_YmQ3NzhiNzUyMmRiNmE3NTljNDg3YzBhMDVhNTk0Y2Q_NjA1") || -1 < this.c.tag.indexOf("MjA_MTI3M2FjYjVmMzI3YTljMzI1Y2NmYWZkMTIyM2RhOGE_NjIz") || -1 < this.c.tag.indexOf("MjA_ZGMyN2E2NmFhYjZhNjE3YTE1N2E0ZTgzODk2ZTVlNWI_NjE3") || -1 < this.c.tag.indexOf("MjA_Y2YyYmM1ZmJiOTJkNzU1ZDgwMmJmYzgxOGNmNzZiMjQ_NjE0") || -1 < this.c.tag.indexOf("MjA_YTk1ZjkwZGViMmZkZDc4YmE4MzhiM2U1MmY0NjhkODY_NjA4") || -1 < this.c.tag.indexOf("MjA_MDk1ODNhM2U4MDdmNjJjODBhMWIxMTAzNDk3ZjdkNTE_NjMy") || -1 < this.c.tag.indexOf("MjA_YmVhOWFjNzQ3NWFlZmQ4ZTllNmNlNDdkMThhNTA3ZTM_NjQ5") ? null === this.ab && 0 < this.Kb && (this.Ve = !1,
- this.a.view.Pa.show(),
- this.a.view.Pa.Sa('<span class="pb-skip-body">Pomi\u0144 reklam\u0119 za ' + a.Kb + "</span>"),
- this.a.view.Pa.style.opacity = "0.5",
- this.ab = window.setInterval(function() {
- a.Kb--;
- 0 < a.Kb ? a.a.view.Pa.Sa('<span class="pb-skip-body">Pomi\u0144 reklam\u0119 za ' + a.Kb + "</span>") : (a.a.view.Pa.Sa('<span class="pb-skip-body">Pomi\u0144 reklam\u0119</span>'),
- a.a.view.Pa.style.opacity = "1",
- a.Ve = !0,
- window.clearInterval(a.ab),
- a.ab = null)
- }, 1E3)) : null === this.tb && (this.tb = setTimeout(function() {
- -1 < a.c.tag.indexOf("NTc_MWM1ZjEwYjg5ZGM1ZjVkZDA3YjJmYjI5MzBhOGEwMWE_NTc2") || -1 < a.c.tag.indexOf("NTc_ZjBmNmZkOTYzOTQ1ZTcwMzQ0YWJjN2VlYzg1Y2NiZDE_NTcw") || -1 < a.c.tag.indexOf("MjA_ZmFlNGExNDQ3ODg3ZmM1MmZhZTExMWQxMjhkNGY2NWI_NTg1") || -1 < a.c.tag.indexOf("NjY_ZTc2M2ZmMDA3YWRiMTZjMjViMjZjMzM1N2RhNWJlOWQ_NTkx") || -1 < a.c.tag.indexOf("Njk_OTVkOTRkOGU0NmJkN2VlMGFkNDA5ZTE1YmM5YmIwYWI_NjAz") ? a.a.view.Pa.show() : a.Zc().show();
- a.Na = !1;
- a.Vd = !0
- }, 1E3 * this.Jb))
- }
- var b = Math.floor(this.$() / this.H() * 100);
- // if (25 <= b && !1 === this.xb)
- try {
- this.aa("firstQuartile"),
- this.xb = !0
- } catch (d) {}
- b = 30;
- this.xb = false;
- // else if (50 <= b && !1 === this.zb)
- try {
- this.aa("midpoint"),
- this.zb = !0
- } catch (d) {}
- b = 60;
- this.zb = false;
- // else if (75 <= b && 0 == this.Ab)
- try {
- this.aa("thirdQuartile"),
- this.Ab = !0
- } catch (d) {}
- b = 100;
- this.Ab = 0;
- }
- ;
- E.Tc = function(a) {
- this.a.log(this.b, "onError");
- 3 === a.target.networkState ? this.finish() : (a = -1,
- null != this.video.error && "undefined" !== typeof this.video.error.code && (a = this.video.error.code),
- -1 < a && this.finish())
- }
- ;
- E.Ce = function() {}
- ;
- E.Jd = function() {
- if (!1 === this.be)
- try {
- this.aa("complete")
- } catch (a) {}
- this.a.v.s(this.a.v.Ba);
- this.a.v.s(this.a.v.nd);
- this.a.v.s(this.a.v.V);
- this.a.v.s(this.a.v.Pa);
- this.a.controls.F(!0);
- this.a.controls.ic(0);
- this.a.controls.Ka.ua("0%");
- this.a.controls.ib(0);
- this.a.controls.Fa(0);
- window.clearTimeout(this.Y);
- this.Y = null;
- window.clearInterval(this.ab);
- this.ab = null;
- window.clearTimeout(this.tb);
- this.tb = null;
- this.Vd = !1;
- this.oa = {
- creativeView: [],
- start: [],
- firstQuartile: [],
- midpoint: [],
- thirdQuartile: [],
- complete: []
- };
- this.hb = [];
- this.Gc = "";
- this.be = this.oc = this.ee = this.kd = this.Ab = this.zb = this.xb = this.qc = !1;
- this.Me();
- this.Oa.s();
- this.Ha.innerHTML = "";
- this.video = null;
- return this.rb()
- }
- ;
- E.Ib = function() {
- this.a.j.B() && this.cg();
- this.ca ? this.a.controls.M(!0) : this.mc && this.a.controls.M();
- !g(this.video) && this.video.paused ? this.video.play() : (0 < this.sc && this.cg(),
- this.sc++)
- }
- ;
- E.cg = function() {
- if (this.c.click && 0 < this.sc && (this.sc++,
- !(this.a.j.B() && this.kd || g(this.Gc) || "" === this.Gc))) {
- this.kd = !0;
- try {
- this.aa("clicktracking")
- } catch (b) {}
- var a = this.Gc;
- try {
- if (-1 < a.indexOf("myphone.pl/klasycznie") || -1 < a.indexOf("myphone.pl/produkty"))
- g(this.a.ue()) || "" == this.a.ue() || (a += "&utm_term=" + this.a.ue()),
- g(this.a.ve()) || "" == this.a.ve() || (a += "&utm_content=" + this.a.ve())
- } catch (b) {}
- try {
- -1 < a.indexOf("http://sprawachrystusa.pl") && Math.round(Math.random()) && (a = "http://sprawachrystusa.pl/lista-kin/")
- } catch (b) {}
- try {
- window.open(a, "_blank")
- } catch (b) {}
- }
- }
- ;
- E.sb = function() {
- try {
- this.aa("pause")
- } catch (a) {
- this.a.log(this.b, a)
- }
- }
- ;
- E.zc = function() {
- this.a.log(this.b, "Event", "onPlay");
- this.a.v.fa.D("pb-run-ad") || this.a.v.fa.m("pb-run-ad");
- g(this.Y) || (window.clearTimeout(this.Y),
- this.Y = null);
- 0 < this.H() && this.a.controls.Fa(this.H());
- this.N.pd = !0;
- 0 === this.sc && this.sc++;
- this.a.controls.W.s()
- }
- ;
- E.Ie = function() {
- this.a.controls.F(!1);
- this.a.controls.R.da() && this.a.controls.R.s();
- if (!1 === this.qc) {
- this.qc = !0;
- if (-1 < this.c.tag.indexOf("NTc_OGIyNDIyYWFlNzAxNzcyMzMwNjgwYTcwZmUxMzAxODc_NTM0") || -1 < this.c.tag.indexOf("NTc_OGYxYzdmZWY2NTIyMDllOWM1YWQ4NTQ1MGQyODg2NTA_NTM3") || -1 < this.c.tag.indexOf("NTc_MWM1ZjEwYjg5ZGM1ZjVkZDA3YjJmYjI5MzBhOGEwMWE_NTc2") || -1 < this.c.tag.indexOf("NTc_MGQ4ZWRhMjJlMmJlODAwNWVjYjhlMGJjZDU2MjcyYTI_NTcz") || -1 < this.c.tag.indexOf("NTc_ZjBmNmZkOTYzOTQ1ZTcwMzQ0YWJjN2VlYzg1Y2NiZDE_NTcw") || -1 < this.c.tag.indexOf("NTc_NTc3YWZmOWQ5ZDkyMjljYjNjMmRkYWUxNzYwMGIzNzk_NTY3"))
- this.a.v.V.show(),
- this.a.v.V.innerHTML = "Dowiedz si\u0119 wi\u0119cej na myphone.pl";
- -1 < this.c.tag.indexOf("NjM_NDhlOGU2YzE4M2Q0N2RhMWEyZjg0YjlhM2NlMmM5Mjc_NTc5") && (this.a.v.V.show(),
- this.a.v.V.innerHTML = "Sprawa Chrystusa - ju\u017c w kinach!");
- -1 < this.c.tag.indexOf("MjA_ZmFlNGExNDQ3ODg3ZmM1MmZhZTExMWQxMjhkNGY2NWI_NTg1") && (this.a.v.V.show(),
- this.a.v.V.innerHTML = "Zosta\u0144 wsp\u00f3\u0142w\u0142a\u015bcicielem CDA! Zapisy do 8 grudnia");
- -1 < this.c.tag.indexOf("Njk_OTVkOTRkOGU0NmJkN2VlMGFkNDA5ZTE1YmM5YmIwYWI_NjAz") && (this.a.v.V.show(),
- this.a.v.V.innerHTML = '"Najlepszy" - nowy film tw\u00f3rcy "Bog\u00f3w". Ju\u017c w kinach!');
- -1 < this.c.tag.indexOf("MjA_YmQ3NzhiNzUyMmRiNmE3NTljNDg3YzBhMDVhNTk0Y2Q_NjA1") && (this.a.v.V.show(),
- this.a.v.V.innerHTML = "CDA Premium - nowo\u015bci na luty 2018!");
- -1 < this.c.tag.indexOf("MjA_YmVhOWFjNzQ3NWFlZmQ4ZTllNmNlNDdkMThhNTA3ZTM_NjQ5") && (this.a.v.V.show(),
- this.a.v.V.innerHTML = "CDA Premium - nowo\u015bci na marzec 2018!");
- -1 < this.c.tag.indexOf("MjA_MTI3M2FjYjVmMzI3YTljMzI1Y2NmYWZkMTIyM2RhOGE_NjIz") && (this.a.v.V.show(),
- this.a.v.V.innerHTML = '"The Boy" - ogl\u0105daj w CDA Premium!');
- -1 < this.c.tag.indexOf("MjA_ZGMyN2E2NmFhYjZhNjE3YTE1N2E0ZTgzODk2ZTVlNWI_NjE3") && (this.a.v.V.show(),
- this.a.v.V.innerHTML = '"Summer Camp" - ogl\u0105daj w CDA Premium!');
- -1 < this.c.tag.indexOf("MjA_Y2YyYmM1ZmJiOTJkNzU1ZDgwMmJmYzgxOGNmNzZiMjQ_NjE0") && (this.a.v.V.show(),
- this.a.v.V.innerHTML = '"Robinson Crusoe" - ogl\u0105daj ju\u017c teraz w CDA Premium!');
- -1 < this.c.tag.indexOf("MjA_YTk1ZjkwZGViMmZkZDc4YmE4MzhiM2U1MmY0NjhkODY_NjA4") && (this.a.v.V.show(),
- this.a.v.V.innerHTML = '"Modelka" - ogl\u0105daj w CDA Premium!');
- -1 < this.c.tag.indexOf("MjA_MDk1ODNhM2U4MDdmNjJjODBhMWIxMTAzNDk3ZjdkNTE_NjMy") && (this.a.v.V.show(),
- this.a.v.V.innerHTML = '"Ma\u0142y ksi\u0105\u017c\u0119" - ogl\u0105daj ju\u017c teraz w CDA Premium!');
- this.N.P("Startuje reklam\u0119");
- try {
- -1 !== window.location.href.indexOf("superfilm.pl") && this.na("http://superfilm.pl/pixel.php?n=html5_ad_start")
- } catch (e) {}
- try {
- this.aa("impression")
- } catch (e) {}
- if (this.c.hasOwnProperty("counter") && this.c.counter && this.c.hasOwnProperty("key") && this.c.hasOwnProperty("displayAs")) {
- var a = "";
- 0 < this.hb.length ? a = this.hb[0] : 0 < this.oa.start.length ? a = this.oa.start[0] : 0 < this.oa.creativeView.length && (a = this.oa.creativeView[0]);
- var b = "2017premium-wakacje 2017premium-recepcjonista 2017premium-gosc 2017premium-wakacje 2017premium-piekna 2017premium-frankenstein 2017premium-dziendobry 2017premium-kobietawklatce 2017premium-nikoratujebrata 2017premium-kumba 2017premium-body 2017premium-sonofagun 2017premium wosp_25 2017premium-facetniepotrzebnyodzaraz 2017premium-carteblanche 2017premium-sarila 2017premium-anatomia-zla 2017premium-popek 2017premium-maruderzy 2017premium-loft 2017premium-to-wlasnie-seks 2017premium-kroczac-wsrod-cieni 2017premium-kevin 2017premium-upsarka 2017premium-honorisila 2017premium-dawcapamieci 2017premium-kochanek 2017premium-wszystkowidzaca 2017premium-72godziny 2017premium-naukaspadania 2017premium-boy7 2017premium-przekret 2017premium-poslancy 2017premium-wakacjemikolajka 2017premium_cda24 2017premium_cdapopcorntv grudzien2016premium 2017premium_hugoilowcyduchow 2017premium_nieracjonalnymezczyzna 2017premium_pantameron 2017premium_transporternowamoc 2017premium_zycnieumierac 2017premium_7psychopatow 2017premium_theduff 2017premium_asterixiobelix 2017premium_teostatniegodziny 2017premium_marsylskilacznik 2017premium_juzzatobatesknie 2017premium_whoami 2017premium_bananki 2017premium_wdrodzenagielde35s 2017premium_bonypodarunkowe 2017premium_cda24swieta 2018premium_ofertaluty 2018premium_theboy 2018premium_sypiajaczinnymi 2018premium_summercamp 2018premium_robinsoncrusoe 2018premium_racheticlank 2018premium_modelka 2018premium_misiek 2018premium_malyksiaze 2018premium_ojcowieicorki 2018premium_sypiajaczinnymi 2018premium_sprawachrystusa 2018premium_poradynazdrady YmY3OGEwODRkOTNkNDAwNTI4YjE5ZDM1MDdmNWY2M2E_NjAw N2U3ODlkZjNkOTI3OGMzZjQ2NzYyZjNlNTU1NzliN2Q_NTk0 NzY0ZWYwNjRjNzJhZDU0MWYzYWI5NDYxM2Q4YzNmMmU_NDkz MGM4YjFmYTA3OTU5ZDI4MWQyZDgzMGE3MTc3N2Y3MzU_NDk2 ZGRkZGZhN2Q0OTZhMDBjOThkMzFhZGU2YTYzMDZiNWQ_NDk5 ZGFhN2ZmZTEzMzQ0Nzc3MDIzNjgxOWJiYzE4OThlNTY_NTAy NWU5MjlhNDAyOGY5MTZlYjI0ODAxMzRkMDNjZGU0Yjc_NTA1 YmFjMDk2ZTA4MGRjMzJjODlkZWVjODMwMDI5ZjkyZmY_NDg3 N2NkZjEzZDIwNDliNWY3MDc1YzQzYmM3ZmViYTc0NTM_NDg0 MjAwZTljNDMzYThjOGFlYWVlNmNiZjQ0MTljNzY3ZWM_Mzgy ZjZmMWU5ZjI1MzQzNWNkMDU2MGU0NjkyZTg4MDVjMDY_Mzg1 OTU2MjBjNjMwMDZjZDY1YjBjNjJkZmVmYzMzZWNmYjU_Mzcx MzJkOGIxYTI3NWU3Y2Q3NTY2YTllYzkyYTQ3NDY1NjE_Mzcz YTJmMGI4ODFkZGZkNzkzMGNiNDE3Y2QyZDhlZjEwZjE_NDAw M2ZkZjJhNTk0MjBhMjY4NWFlNjk1ZTAxYWEyNmJkN2Q_NDAz OTNiM2VkYTY1Y2M0YWFlYWI4MjQ4NDlkNTIxMGNjOGI_MjYz ZmY2MzA0MGJmNDQ3ZjcwZmQwNjdmNTdiMmNlOTQ1OGQ_NDA2 NGRkYTQzMTMzODcxOGM0YmZmMGJlNTliYTA0YzNlNDI_NDA5 ODIwMzdhNjQ5ZmRkMWQyOGI5NDE2YjExN2MxODhkOGY_NDE1 YmE1NTJmOTQzZDE3ODg4YmMwZTZjNGVlMTkyNjcxZWE_NDI0 M2M1MTQyYmIxNDZjYjQ0YjIzYTM4YWU4OGRjNGIwNmU_NDIx NjE1ZjUwZTQ5OTU4MzE0MTYwOTM0NmM2YjIzNDUwOWY_NDQy NWNmYTVhOGUwYmVmOGMxYjA4ZmMxYTAxZjUwMDU5ZTc_NDMz NWQwM2I4MTFlNTAzZWY3OWQ2ZWIxMjQ0OTlkNGZlZGE_NDM5 OTFlNzgxMDhmMmMwNWFhMjQzMDEwNjQwYjhiMDRhNTY_NDM2 NjNjNmJhZmQwZTc1NDViM2E3MmJhYmE5YzliOTE0MTU_NDU0 ZmI4ZTNmOGI5ZTAyOGM5MTgwODhmZjMwMDEwZWExZjI_NDYy ZjcyODk1N2NjMWUyMzYwODZkZjg2OTkwZjAwNzRlOTg_NDYz MWFhOWQyYzM3NWQyZWM0N2ZlODkzNDE0ZDExZTFiOGE_NTIy NmEyODVhMzgzZDI1Y2FjYmYxYjI3YmJiMDBjMDg2ZDY_NTMx NTNhZjNmY2NiYmE5ZTVmZDEwY2FlYTQyNWYxYmM3MzI_NTI4 OGIyMWVkNGMwNzhhZjA0YTc2Y2Y1N2EzYmEwYjI3Y2Y_NTI1 MjRkZDcxOGQ4MmFhYTQ0NWU0OGFhYmVjMjM1ZGJlM2Q_NTQz M2YzNTJmZDMwOGVhNDgyMjllZmFlNjNlOTQ2OThmZTY_NTQ2 MzY1ZmIzZGNhMzhhZmY0ZmI2NWE2NTdjMmQ0YWQzMDI_NTQ5 OGJkM2RkZTI5YjIxNjE5ZDYxZGUzYjU3ZDUwOGVhYzk_NTUy ZjE5Mzk4YmM3ZmRiZTdiMTZhNzIxYjlmY2M1ZGQ3NjU_NTU1 ZmFlNGExNDQ3ODg3ZmM1MmZhZTExMWQxMjhkNGY2NWI_NTg1 YmQ3NzhiNzUyMmRiNmE3NTljNDg3YzBhMDVhNTk0Y2Q_NjA1 MTI3M2FjYjVmMzI3YTljMzI1Y2NmYWZkMTIyM2RhOGE_NjIz OWE1NjRmYjBmODhhZDRjMWVlNzU2MGUzNDFkNDk4YmM_NjIw ZGMyN2E2NmFhYjZhNjE3YTE1N2E0ZTgzODk2ZTVlNWI_NjE3 Y2YyYmM1ZmJiOTJkNzU1ZDgwMmJmYzgxOGNmNzZiMjQ_NjE0 ZDY5ODE4MjM2MmEzMjEwMzIwOTU3YzJkMTYzMDU0ZmU_NjEx YTk1ZjkwZGViMmZkZDc4YmE4MzhiM2U1MmY0NjhkODY_NjA4 NTI5NzU2NDQ2YzEwY2Y1OGZlZmRlNjU1MzEzNDQzODc_NjI2 MDk1ODNhM2U4MDdmNjJjODBhMWIxMTAzNDk3ZjdkNTE_NjMy Nzc3ZDhkYzYyYjUwNzQ4ZmRiMmVhNDgxOWJiOWYwMTk_NjM0 ZGNiMTBiMjJhOTdjMDlhY2I2YTBlNDUxMWM4MGRiODc_NjM3 NjFlYzhlYzQ3OTM1ODhkMzIyN2ViYzM5OGYxNzY3ZTk_NjM5 NDg0ZGE4ZTI5MWRlMTdiY2IyNGU3YzE3N2Q1ODZlNDA_NjQy YmVhOWFjNzQ3NWFlZmQ4ZTllNmNlNDdkMThhNTA3ZTM_NjQ5".split(" ");
- t(a) && (a = a.trim());
- if ("" != a && null != a && "undefined" != typeof a)
- for (var d = 0; d < b.length && (!this.a.u.hasOwnProperty("partner_id") || 1060857 != this.a.u.partner_id); d++)
- if (-1 < a.indexOf(b[d])) {
- a = "";
- break
- }
- "" != a && null != a && "undefined" != typeof a && this.ge(a, this.c.key, this.c.displayAs)
- }
- try {
- this.aa("start"),
- this.aa("creativeView")
- } catch (e) {}
- }
- }
- ;
- E.Ee = function() {
- this.a.log(this.b, "onLoad");
- this.ca = !1;
- this.va = !0
- }
- ;
- E.He = function() {
- this.a.log(this.b, "onLoadstart");
- this.ca = !1;
- this.va = !0;
- var a = this
- , b = window.setTimeout(function() {
- a.mc = !0;
- window.clearTimeout(b);
- b = null
- }, 1E3);
- g(this.Y) && (this.Y = window.setTimeout(function() {
- window.clearTimeout(a.Y);
- a.Y = null;
- return a.pa(a.error.mf)
- }, 2E4));
- this.a.controls.Fa(0);
- this.a.controls.ib(0)
- }
- ;
- E.$h = function() {
- this.a.log(this.b, "onLoadedMetaData");
- g(this.Y) || (window.clearTimeout(this.Y),
- this.Y = null);
- l(this.video.duration) || (this.ca = !0,
- this.mc = !1,
- this.duration = isNaN(this.video.duration) ? 0 : this.video.duration);
- this.a.controls.Fa(0);
- this.a.controls.ib(0)
- }
- ;
- E.hg = function() {
- this.a.log(this.b, "onLoadedData");
- g(this.Y) || (window.clearTimeout(this.Y),
- this.Y = null);
- l(this.video.duration) || (this.ca = !0,
- this.mc = !1,
- this.duration = isNaN(this.video.duration) ? 0 : this.video.duration);
- this.a.controls.Fa(0);
- this.a.controls.ib(0)
- }
- ;
- E.Wc = function() {
- this.a.controls.F(!0)
- }
- ;
- E.yc = function() {
- var a = this.video;
- "undefined" !== a.buffered && 0 < a.buffered.length && "undefined" !== a.buffered.end ? (a = a.buffered.end(a.buffered.length - 1) / this.H() * 100,
- 100 < a ? a = 100 : 0 > a && (a = 0),
- this.a.controls.ic(a)) : this.a.controls.ic(0)
- }
- ;
- E.De = function() {
- this.a.log(this.b, "onCanplay");
- this.a.controls.W.da() && (this.a.controls.F(!1),
- this.a.controls.R.show());
- g(this.Y) || (window.clearTimeout(this.Y),
- this.Y = null);
- if (isNaN(this.duration) || 0 >= this.duration || !r(this.duration))
- this.duration = isNaN(this.video.duration) ? 0 : this.video.duration;
- this.autoplay && this.va && this.ca && this.video.paused && (this.mc = this.va = !1,
- this.video.play(),
- this.a.controls.M(!0))
- }
- ;
- E.Sc = function() {
- this.a.log(this.b, "onCanplaythrough");
- this.a.controls.W.da() && (this.a.controls.F(!1),
- this.a.controls.R.show());
- g(this.Y) || (window.clearTimeout(this.Y),
- this.Y = null);
- if (isNaN(this.duration) || 0 >= this.duration || !r(this.duration))
- this.duration = isNaN(this.video.duration) ? 0 : this.video.duration;
- this.autoplay && this.va && this.ca && this.video.paused && (this.mc = this.va = !1,
- this.video.play(),
- this.a.controls.M(!0))
- }
- ;
- E.pa = function(a, b) {
- this.a.log(this.b, "onAdError", arguments);
- this.N.Ia = !1;
- this.Me();
- window.clearTimeout(this.tb);
- this.tb = null;
- window.clearInterval(this.ab);
- this.ab = null;
- window.clearTimeout(this.Y);
- this.Y = null;
- this.a.v.s(this.a.v.Ba);
- this.a.v.s(this.a.v.nd);
- this.a.v.s(this.a.v.V);
- this.a.v.s(this.a.v.Pa);
- this.a.j.B() || (this.video = null);
- return this.N.pa(a, b)
- }
- ;
- E.rb = function() {
- this.a.log(this.b, "onAdComplete");
- this.N.P("Koniec reklamy");
- return !g(this.Zb) && p(this.Zb) ? this.N.Xd(this.Zb) : this.N.rb()
- }
- ;
- E.bg = function() {
- this.a.log(this.b, "onAdSkipped");
- this.N.P("Reklama przewini\u0119ta");
- try {
- this.aa("skip")
- } catch (a) {
- this.a.log(this.b, a)
- }
- return this.N.bg()
- }
- ;
- E.random = function(a, b) {
- return Math.random(Math.random() * (b - a) + a)
- }
- ;
- E.ge = function(a, b, d) {
- this.a.log(this.b, "adHit", arguments);
- if (null !== this.a.C && !1 === this.oc) {
- var e = this;
- try {
- window[this.a.C.client].zliczReklame(a, b, d, {
- success: function(a) {
- e.oc = !0;
- e.a.log(e.b, "adHit", "response: " + a)
- },
- error: function(a) {
- e.a.log(e.b, "adHit", "erorr: " + a)
- }
- })
- } catch (f) {
- this.a.log(this.b, "adHit", "error: " + f)
- }
- }
- }
- ;
- E.Uc = function() {
- if (this.Ve) {
- try {
- this.aa("skip")
- } catch (a) {
- this.a.log(this.b, a)
- }
- clearTimeout(this.tb);
- this.tb = null;
- window.clearInterval(this.ab);
- this.ab = null;
- this.Vd = !1;
- this.Zc().s();
- this.a.view.Pa.s();
- this.be = !0;
- return this.Jd()
- }
- }
- ;
- function Q() {
- this.ud = window.document
- }
- E = Q.prototype;
- E.Rg = function() {
- return "function" === typeof this.ud.createElement ? this.ud.createElement("video") : !1
- }
- ;
- E.video = function() {
- var a = this.Rg()
- , b = !1;
- if ("object" === typeof a)
- try {
- "function" === typeof a.canPlayType && (b = !!a.canPlayType,
- b = new Boolean(b),
- b.we = a.canPlayType('video/mp4; codecs="avc1.4D401E, mp4a.40.2"').replace(/^no$/, ""),
- b.ml = a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/, ""),
- b.zk = a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/, ""),
- b.il = a.canPlayType('video/webm; codecs="vp9"').replace(/^no$/, ""),
- supoort.hk = a.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/, ""))
- } catch (d) {}
- return b
- }
- ;
- E.oe = function() {
- var a = !1
- , b = window.navigator;
- if ("ActiveXObject"in window)
- try {
- a = !!new ActiveXObject("ShockwaveFlash.ShockwaveFlash")
- } catch (d) {}
- else
- try {
- "undefined" !== typeof b.plugins && "object" === typeof b.plugins["Shockwave Flash"] && "undefined" !== typeof b.mimeTypes && "undefined" !== b.mimeTypes["application/x-shockwave-flash"] && b.mimeTypes["application/x-shockwave-flash"].enabledPlugin && (a = !0)
- } catch (d) {}
- return a
- }
- ;
- E.fullScreen = function() {
- for (var a = ["fullscreenEnabled", "fullScreenEnabled", "mozFullScreenEnabled", "webkitFullscreenEnabled", "msFullscreenEnabled"], b = 0; b < a.length; b++)
- if ("undefined" !== typeof this.ud[a[b]])
- return this.ud[a[b]];
- return !1
- }
- ;
- E.sh = function() {
- return g(window.frameElement) && window.self == window.top ? !1 : !0
- }
- ;
- function S(a) {
- if (g(a) || l(a))
- throw new TypeError("Options can not be null.");
- this.b = "cda.Player.Flash";
- this.w = a.id;
- this.options = a;
- this.bj = "/jw5/jw5.js";
- this.protocol = window.location.protocol;
- this.a = null;
- this.la()
- }
- E = S.prototype;
- E.la = function() {
- "function" === typeof window.jwplayer ? (this.a = window.jwplayer(this.options.id),
- this.Te()) : this.load()
- }
- ;
- E.load = function() {
- var a = document.getElementsByTagName("head")[0] || document.head || document.documentElement
- , b = document.createElement("script")
- , d = this;
- b.src = this.bj;
- b.type = "text/javascript";
- b.async = !0;
- b.onload = b.onreadystatechange = function() {
- this.readyState && "loaded" !== this.readyState && "complete" !== this.readyState || (b.onload = b.onreadystatechange = null,
- a && b.parentNode && a.removeChild(b),
- d.la())
- }
- ;
- b.onerror = function() {
- d.la()
- }
- ;
- a.insertBefore(b, a.firstChild);
- a.appendChild(b)
- }
- ;
- E.Te = function() {
- var a = 620
- , b = 371;
- y() && -1 < window.location.href.indexOf("ebd.cda.pl") && (b = ca(),
- a = b.width,
- b = b.height);
- -1 == this.options.video.file.indexOf("http") && (this.options.video.file = D(this.options.video.file));
- -1 == this.options.video.file.indexOf(".mp4") && (this.options.video.file += ".mp4");
- -1 < this.options.video.file.indexOf("adc.mp4") && (this.options.video.file = this.options.video.file.replace("adc.mp4", ".mp4"));
- this.a.setup({
- width: a,
- height: b - 19,
- "logo.file": "//static.cda.pl/v001/img/player/logo-player-creme.png",
- "logo.position": "top-left",
- "logo.link": "",
- "logo.hide": !1,
- "logo.over": .7,
- "logo.out": .4,
- dock: !0,
- autostart: this.options.autoplay,
- "controlbar.position": "bottom",
- "controlbar.idlehide": "false",
- modes: [{
- type: "flash",
- src: "//static.cda.pl/player5.9/player.swf",
- config: {
- file: this.options.video.file,
- duration: this.options.video.durationFull,
- provider: "http"
- }
- }],
- plugins: {
- "https://static.cda.pl/timeslidertooltipplugin.swf": {
- marginbottom: 0
- }
- }
- })
- }
- ;
- E.Mk = function(a, b, d) {
- return {
- "http://static.cda.pl/ova-jw.swf": {
- canFireEventAPICalls: !0,
- useV2APICalls: !0,
- overlays: {
- regions: [{
- id: "czas",
- verticalAlign: "bottom",
- horizontalAlign: "center",
- backgroundColor: "black",
- width: 250,
- height: 20,
- padding: "0 0 -10 2",
- opacity: .7
- }]
- },
- debug: {
- levels: "fatal, config, vast_template, vpaid, http_calls"
- },
- ads: {
- skipAd: {
- enabled: b,
- showAfterSeconds: 5,
- image: "http://static.cda.pl/images/close-btn-video3.png",
- width: 22,
- height: 17
- },
- notice: {
- message: '<p class="smalltext" align="center">Reklama zniknie za _countdown_ sekund</p>',
- type: "countdown",
- region: "czas"
- },
- schedule: a,
- clickSign: {
- html: "KLIKNIJ",
- width: 62,
- enabled: d
- },
- companions: {
- restore: !1,
- regions: {
- id: "companion" + (new Date).getTime(),
- width: 1,
- heigth: 1
- }
- }
- }
- }
- }
- }
- ;
- E.$c = function() {}
- ;
- function qa(a) {
- if (g(a) && l(a))
- throw new TypeError("Options can not be null.");
- this.b = "cda.Player.Flash.SF";
- this.id = a.id + "-flash";
- this.w = document.querySelector("#" + a.id);
- this.options = a;
- this.a = null;
- this.qd = 0;
- this.Sg = this.options.flash.swf;
- this.tf = this.options.flash.js;
- this.la()
- }
- E = qa.prototype;
- E.la = function() {
- m(window.flowplayer) ? this.Te() : this.load(this.tf[0], function() {
- this.load(this.tf[1], function() {
- this.la()
- }
- .bind(this))
- }
- .bind(this))
- }
- ;
- E.load = function(a, b) {
- var d = document.getElementsByTagName("head")[0] || document.head || document.documentElement
- , e = document.createElement("script")
- , f = this;
- e.src = a;
- e.type = "text/javascript";
- e.async = !0;
- e.onload = e.onreadystatechange = function() {
- this.readyState && "loaded" !== this.readyState && "complete" !== this.readyState || (e.onload = e.onreadystatechange = null,
- d && e.parentNode && d.removeChild(e),
- b())
- }
- ;
- e.onerror = function() {
- f.la()
- }
- ;
- d.insertBefore(e, d.firstChild);
- d.appendChild(e)
- }
- ;
- E.Fb = function(a) {
- a = a.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
- a = (new RegExp("[\\?&]" + a + "=([^&#]*)")).exec(window.location.href);
- return null == a ? null : a[1]
- }
- ;
- E.ah = function() {
- return {
- canvas: {
- backgroundGradient: "none",
- borderRadius: 20
- },
- key: "#$13db964f8eb518e52fc",
- play: {
- opacity: 1
- },
- wmode: "opaque",
- clip: {
- autoplay: this.options.autoplay,
- url: this.options.video.file,
- scaling: "fit",
- provider: "pseudo",
- duration: this.options.video.duration,
- metadata: !1,
- autoBuffering: !1
- },
- logo: {
- url: this.options.logo,
- linkUrl: "http://superfilm.pl",
- linkWindow: "_blank",
- fullscreenOnly: !1,
- displayTime: 0,
- fadeSpeed: 0,
- top: 5,
- right: 5,
- opacity: "0.7"
- },
- plugins: {
- pseudo: {
- url: "/flowplayer/flowplayer.pseudostreaming-3.2.12.swf"
- },
- controls: {
- bufferGradient: "none",
- volumeSliderColor: "#ffffff",
- durationColor: "#a3a3a3",
- timeColor: "#ffffff",
- bufferColor: "#445566",
- sliderGradient: "none",
- callType: "default",
- sliderColor: "#000000",
- timeBorder: "0px solid rgba(0, 0, 0, 0.3)",
- timeBgColor: "rgb(0, 0, 0, 0)",
- volumeColor: "#ffffff",
- progressColor: "#BD0F1C",
- bufferColor: "#BD0F1C",
- progressGradient: "none",
- scrubberBarHeightRatio: "0.6",
- scrubberHeightRatio: "0.38",
- tooltipColor: "#000000",
- buttonOffColor: "rgba(130,130,130,1)",
- timeSeparator: " ",
- borderRadius: "0",
- buttonOverColor: "#ffffff",
- backgroundColor: "#222222",
- tooltipTextColor: "#ffffff",
- disabledWidgetColor: "#555555",
- volumeBorder: "1px solid rgba(128, 128, 128, 0.7)",
- sliderBorder: "1px solid rgba(128, 128, 128, 0.7)",
- buttonColor: "#ffffff",
- volumeSliderGradient: "none",
- backgroundGradient: "none",
- height: 42,
- opacity: "1.0",
- autoHide: !0,
- autoHide: {
- fullscreenOnly: !0,
- hideDelay: 2E3
- }
- },
- myContent: {
- url: "/flowplayer/flowplayer.content-3.2.9.swf",
- top: 5,
- left: 5,
- width: 275,
- height: 30,
- border: 0,
- borderRadius: 0,
- backgroundColor: "#000000",
- zIndex: 9999,
- style: {
- ".title": {
- "text-decoration": "outline",
- fontSize: 12,
- color: "#FFFFFF",
- "font-weight": "bold",
- "z-index": 99999
- }
- },
- html: '<p class="title">Dzi\u0119ki tej reklamie ogl\u0105dasz legalnie i za darmo</p>'
- },
- myContent2: {
- url: "/flowplayer/flowplayer.content-3.2.9.swf",
- bottom: 47,
- right: 5,
- width: 195,
- height: 30,
- border: 0,
- borderRadius: 0,
- backgroundColor: "#000000",
- zIndex: 9999,
- style: {
- ".title": {
- "text-decoration": "outline",
- fontSize: 12,
- color: "#FFFFFF",
- "font-weight": "bold"
- }
- }
- },
- myContent3: {
- url: "/flowplayer/flowplayer.content-3.2.9.swf",
- bottom: 47,
- left: 5,
- width: 100,
- height: 30,
- border: 0,
- borderRadius: 0,
- backgroundColor: "#000000",
- zIndex: 9999,
- style: {
- ".title": {
- "text-decoration": "outline",
- fontSize: 12,
- color: "#FFFFFF",
- "font-weight": "bold"
- }
- }
- },
- ova: this.bh()
- }
- }
- }
- ;
- E.bh = function() {
- return {
- debug: {
- levels: "none"
- },
- url: "/flowplayer/ova.swf",
- player: {
- modes: {
- linear: {
- controls: {
- enablePlay: !1,
- enablePause: !1,
- enableMute: !0,
- enableVolume: !0
- }
- }
- }
- },
- autoPlay: !0,
- delayAdRequestUntilPlay: !1,
- canFireEventAPICalls: !0,
- fireTrackingEvents: !0,
- regions: {
- id: "adnotice",
- verticalAlign: "bottom",
- horizontalAlign: "right",
- backgroundColor: "transparent",
- height: 0,
- width: 0,
- style: ".normaltext { font-style: italic; font-size:40px; }"
- },
- ads: {
- pauseOnClickThrough: !1,
- linearScaling: "fill",
- clickSign: {
- html: '<p class="smalltext" align="center">KLIKNIJ</p>',
- style: ".smalltext { font-size:12; margin-bottom:50px }"
- },
- notice: {
- region: "adnotice",
- message: '<p class="normaltext" style="color:green;" align="right"></p>'
- },
- schedule: [{
- position: "pre-roll",
- tag: window.encodeURIComponent("http://go.goldbachpoland.bbelements.com/please/showit/7502/1/1/43/?typkodu=js&_xml=1"),
- type: "direct"
- }, {
- position: "pre-roll",
- tag: window.encodeURIComponent("http://myao.adocean.pl/ad.xml?id=Uq2mbZcb8fWVw3..rnMiwPKIL.ofr9BixO3PavJI363.E7/aocodetype=1"),
- type: "direct"
- }, {
- position: "pre-roll",
- tag: window.encodeURIComponent("http://go.goldbachpoland.bbelements.com/please/showit/7502/1/1/43/?typkodu=js&_xml=1"),
- type: "direct"
- }, {
- position: "pre-roll",
- tag: window.encodeURIComponent("http://myao.adocean.pl/ad.xml?id=Uq2mbZcb8fWVw3..rnMiwPKIL.ofr9BixO3PavJI363.E7/aocodetype=1"),
- type: "direct"
- }]
- }
- }
- }
- ;
- E.Te = function() {
- this.w.Sa('<div class="pb-flash-wrapper" id="' + this.id + '"></div>');
- try {
- return this.a = window.flowplayer(this.id, {
- src: this.Sg,
- wmode: "opaque"
- }, this.ah()),
- this.a.ipad(),
- this.he()
- } catch (a) {
- console.log(a)
- }
- }
- ;
- E.he = function() {
- this.a.onLoad(this.Ee.bind(this));
- this.a.onResume(this.Nd.bind(this));
- this.a.onPause(this.sb.bind(this));
- this.a.onStop(this.wi.bind(this));
- this.a.onStart(this.vi.bind(this))
- }
- ;
- E.Ee = function() {
- var a = this.Fb("vol");
- g(a) || "" == a || (a = Number(a),
- 0 <= a && 100 >= a && this.a.setVolume(a));
- this.a.getPlugin("myContent").hide();
- this.a.getPlugin("myContent2").hide();
- this.a.getPlugin("myContent3").hide();
- this.qd = this.a.Yj().length - 1
- }
- ;
- E.Nd = function() {
- this.a.getPlugin("myContent").hide();
- this.a.getPlugin("myContent2").hide();
- this.a.getPlugin("myContent3").hide()
- }
- ;
- E.sb = function() {
- this.a.getPlugin("myContent").hide();
- this.a.getPlugin("myContent2").hide();
- this.a.getPlugin("myContent3").hide()
- }
- ;
- E.wi = function() {
- this.a.getPlugin("myContent").hide();
- this.a.getPlugin("myContent2").hide();
- this.a.getPlugin("myContent3").hide()
- }
- ;
- E.vi = function(a) {
- a.Nk || (this.a.getPlugin("myContent").hide(),
- this.a.getPlugin("myContent2").hide(),
- this.a.getPlugin("myContent3").hide())
- }
- ;
- try {
- var na = function(a) {
- this.b = "cda.Player.Chromecast";
- this.a = a;
- this.ja = this.Rd = this.za = null;
- this.Lf = !0
- }
- , E = na.prototype;
- E.Ud = function(a) {
- a ? this.a.view.content.m("pb-ccast-posible") : this.a.view.content.o("pb-ccast-posible")
- }
- ;
- E.kc = function(a) {
- a ? this.a.view.bc.m("pb-ccast-float-on") : this.a.view.bc.o("pb-ccast-float-on")
- }
- ;
- E.hj = function(a) {
- this.Lf = !!a
- }
- ;
- E.Sj = function() {
- return m(window.__onGCastApiAvailable) ? window.__onGCastApiAvailable : null
- }
- ;
- E.ze = function() {
- try {
- return window.chrome.cast && chrome.cast.isAvailable
- } catch (a) {
- return !1
- }
- }
- ;
- E.Ja = function() {
- return g(this.za) || g(this.za) || this.za.status != window.chrome.cast.SessionStatus.CONNECTED ? !1 : !0
- }
- ;
- E.la = function() {
- if ((this.a.j.Ed() || this.a.j.Nf()) && !this.a.j.Ta()) {
- if (this.ze())
- this.Sb();
- else {
- var a = this;
- window.__onGCastApiAvailable = function(b) {
- b ? a.Sb() : window.setTimeout(function() {
- a.ze() && a.Sb()
- }, 1E3)
- }
- }
- I(this.a.view.Yg, "click", this.Ib, this);
- I(this.a.view.bc, "click", this.Ib, this)
- }
- }
- ;
- E.Sb = function() {
- var a = new window.chrome.cast.SessionRequest("C6E13D46")
- , a = new window.chrome.cast.ApiConfig(a,this.a.ba.sd(this.ej, this),this.a.ba.sd(this.$i, this));
- window.chrome.cast.initialize(a, this.Xh, this.Wh)
- }
- ;
- E.$i = function(a) {
- a === window.chrome.cast.ReceiverAvailability.AVAILABLE ? this.Ud(!0) : (this.Ud(!1),
- this.kc(!1))
- }
- ;
- E.ej = function(a) {
- this.za = a;
- this.Rd = this.za.status;
- 0 < this.za.media.length && this.ig(this.a.ba.sd(this.mg, this), this.za.media[0])
- }
- ;
- E.Xh = function() {}
- ;
- E.Wh = function() {}
- ;
- E.Ib = function() {
- this.Lf ? (this.Ja() ? (this.kc(!0),
- this.a.controls.M(!0)) : (this.kc(!1),
- this.a.G == this.a.state.U ? this.a.pause() : this.a.j.B() && this.a.video.load()),
- g(this.za) || (this.Rd = this.za.status),
- this.Ja() ? this.xi() : window.chrome.cast.requestSession(this.a.ba.sd(this.mg, this), this.Zh)) : alert("Materia\u0142 chwilowo niedost\u0119pny dla urz\u0105dzenia Chromecast.\n\nNajnowsza wersja Chromecast 2.0 oraz Chromecast 4K wraz z aktualizacj\u0105 1.28 przesta\u0142a wspiera\u0107 filmy wideo w formacie .mp4 i d\u017awi\u0119kiem AAC 5.1 (wci\u0105\u017c dzia\u0142a .mp4 z d\u017awi\u0119kiem stereo 2.0).\n\nZdecydowali\u015bmy si\u0119 na zmian\u0119 formatu wideo z .mp4 na technologi\u0119 MediaSource z obs\u0142ug\u0105 d\u017awi\u0119ku 5.1, analogicznie robi to np. serwis YouTube.\n\nJest to do\u015b\u0107 problematyczne rozwi\u0105zanie, kt\u00f3re wymaga przekonwertowania wszystkich plik\u00f3w, co zajmie kilkana\u015bcie dni. Nie mniej jednak problem w najbli\u017cszym czasie powinien znikn\u0105\u0107, prosimy o cierpliwo\u015b\u0107.")
- }
- ;
- E.mg = function(a) {
- this.za = a;
- a = this.a.src;
- !a && this.a.Da && (a = this.a.Da);
- null != this.a.We && (a = this.a.We);
- this.a.log(this.b, "file: " + a);
- a = new window.chrome.cast.media.MediaInfo(a,"video/mp4");
- var b = new window.chrome.cast.media.MovieMediaMetadata;
- b.type = window.chrome.cast.media.MetadataType.MOVIE;
- this.a.u.hasOwnProperty("title") && null != this.a.u.title && (b.title = window.decodeURIComponent(this.a.u.title));
- a.duration = this.a.u.duration;
- a.metadata = b;
- a = new window.chrome.cast.media.LoadRequest(a);
- a.autoplay = !0;
- a.currentTime = 0;
- this.za.loadMedia(a, this.ig.bind(this, "loadMedia"), this.ai.bind(this))
- }
- ;
- E.xi = function() {
- this.Rd == window.chrome.cast.SessionStatus.STOPPED;
- g(this.ja) || (this.a.video.currentTime = this.ja.currentTime,
- this.a.controls.currentTime.innerHTML = this.a.controls.Ea(this.ja.currentTime),
- this.a.controls.Ka.ua(100 / this.a.video.duration * this.ja.currentTime + "%"));
- var a = this;
- this.za.stop(function() {
- a.kc(!1);
- a.a.controls.qa(!0)
- }, function() {})
- }
- ;
- E.Fk = function() {
- this.a.view.bc.o("pb-ccast-float-on")
- }
- ;
- E.Ek = function() {
- this.a.view.bc.o("pb-ccast-float-on")
- }
- ;
- E.Zh = function() {}
- ;
- E.ig = function(a, b) {
- this.a.view.bc.m("pb-ccast-float-on");
- this.a.G == this.a.state.U && this.a.pause();
- this.ja = b;
- this.ja.addUpdateListener(this.bi.bind(this));
- 0 < this.a.$() && (this.Ma(this.a.$()),
- this.T(this.a.video.volume));
- this.a.controls.M(!0)
- }
- ;
- E.ai = function() {
- this.a.view.bc.o("pb-ccast-float-on")
- }
- ;
- E.bi = function() {
- g(this.za) || (this.Rd = this.za.status);
- this.Ja() ? this.kc(!0) : this.kc(!1);
- 0 < this.za.media.length && (this.ja = this.za.media[0],
- this.a.controls.currentTime.innerHTML = this.a.controls.Ea(this.ja.currentTime),
- this.a.controls.Ka.ua(100 / this.a.video.duration * this.ja.currentTime + "%"))
- }
- ;
- E.Dk = function() {
- this.kc(!1);
- this.a.controls.qa(!0)
- }
- ;
- E.play = E.resume = function() {
- g(this.ja) || this.ja.play(null, function() {}, function() {})
- }
- ;
- E.pause = function() {
- g(this.ja) || this.ja.pause(null, function() {}, function() {})
- }
- ;
- E.stop = function() {
- g(this.ja) || this.ja.stop(null, function() {}, function() {})
- }
- ;
- E.Ma = function(a) {
- if (!g(this.ja)) {
- var b = new window.chrome.cast.media.SeekRequest;
- b.currentTime = a;
- this.ja.seek(b, function() {}, function() {})
- }
- }
- ;
- E.T = function(a, b) {
- if (!g(this.ja)) {
- var d = new window.chrome.cast.Volume;
- a = Number(a);
- 0 < a && (a /= 100);
- d.level = a;
- d.muted = b;
- var e = new window.chrome.cast.media.VolumeRequest;
- e.volume = d;
- this.ja.setVolume(e, function() {}, function() {})
- }
- }
- } catch (a) {
- console.log(a)
- }
- ;var T, U;
- if ("undefined" !== typeof window.document.querySelectorAll)
- U = window.document.querySelectorAll("div[id^='mediaplayer']");
- else {
- for (var ra = [], sa = /(^| )mediaplayers( |$)/, V = window.document.getElementsByTagName("*"), W = 0, ta = V.length; W < ta; W++)
- sa.test(V[W].className) && ra.push(V[W]);
- U = ra
- }
- T = U;
- for (var Z = 0; Z < T.length; Z++)
- if (T[Z].hasAttribute("player_data"))
- new F(JSON.parse(T[Z].getAttribute("player_data")))
- }
- ).call(window);
Advertisement
Add Comment
Please, Sign In to add comment