g.h.Wj = function(a) { lja(this, a); if ("html5.invalidstate" != a.errorCode && "fmt.unplayable" != a.errorCode && "fmt.unparseable" != a.errorCode || !WI(this, a.errorCode, a.details)) { var b = /^pp/.test(this.g.clientPlaybackNonce); if (kja(a)) { a.details.sts = "17968"; if (YI(this)) { g.U(this.l, 4) || !this.fa("html5_suspended_reload_killswitch") && g.U(this.l, 512) ? (this.Mc = !0, cI(this)) : (this.o && (a.g && (a.details.e = a.errorCode, a.errorCode = "qoe.restart", a.g = !1), this.o.onError(a.errorCode, Tw(a.details))), ZI(this)); return } a: if (!(6048E5 > g.P() - this.A.vh)) { try { window.location.reload(!0); break a } catch (c) {} this.fa("tvhtml5_retire_old_players") && g.Iy(this.A) && aJ(this) } } if ($I(a) && this.g.va && this.g.va.i) { if (this.o) this.o.onError(a.errorCode, Tw(a.details)); this.Ya("highrepfallback", "1", !0); !this.fa("html5_hr_logging") && /^hr/.test(this.g.clientPlaybackNonce) && btoa && this.Ya("afmts", btoa(this.g.adaptiveFormats)); zha(this.g); aI(this); cI(this); VI(this); this.playVideo() } else a.g ? (b = this.u ? this.u.B.o : null, b = $I(a) && b && b.isLocked() ? "FORMAT_UNAVALIABLE" : void 0, g.lI(this, a.errorCode, b, Tw(a.details))) : this.o && (this.o.onError(a.errorCode, Tw(a.details)), b && "manifest.net.connect" == a.errorCode && (a = "https://www.youtube.com/generate_204?cpn=" + this.g.clientPlaybackNonce + "&t=" + g.P(), (new IF(a, "manifest", (0, g.y)(function(c) { this.Ya("pathprobe", c) }, this), (0, g.y)(function(c) { this.onError(c.errorCode, Tw(c.details)) }, this.o))).send())) } }; |