@beyondwords/player 0.0.0-beta39 → 0.0.0-beta40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es.js +241 -230
- package/dist/es.js.map +1 -1
- package/dist/umd.js +14 -14
- package/dist/umd.js.map +1 -1
- package/package.json +4 -4
package/dist/es.js
CHANGED
|
@@ -550,7 +550,7 @@ class it {
|
|
|
550
550
|
this.$$set && !L0(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
|
-
const Q0 = "@beyondwords/player", tu = "0.0.0-
|
|
553
|
+
const Q0 = "@beyondwords/player", tu = "0.0.0-beta40", ir = (t, e) => {
|
|
554
554
|
t = [t].flat().join(`
|
|
555
555
|
`);
|
|
556
556
|
let i = `${Q0}:
|
|
@@ -1504,8 +1504,8 @@ var sf = { exports: {} };
|
|
|
1504
1504
|
}
|
|
1505
1505
|
return r;
|
|
1506
1506
|
}, si = function(c) {
|
|
1507
|
-
return c.type === "PRIV" ?
|
|
1508
|
-
},
|
|
1507
|
+
return c.type === "PRIV" ? Ee(c) : c.type[0] === "W" ? Bt(c) : Ct(c);
|
|
1508
|
+
}, Ee = function(c) {
|
|
1509
1509
|
if (!(c.size < 2)) {
|
|
1510
1510
|
var u = Mt(c.data, !0), r = new Uint8Array(c.data.subarray(u.length + 1));
|
|
1511
1511
|
return {
|
|
@@ -1854,10 +1854,10 @@ var sf = { exports: {} };
|
|
|
1854
1854
|
return S !== void 0 && (d = S), qe(b, ["tfhd"]).map(function(E) {
|
|
1855
1855
|
var A = Be(E, 4), x = Be(E, 0) & 16777215, P = (x & 1) !== 0, O = (x & 2) !== 0, M = (x & 8) !== 0, D = 0, j = (x & 16) !== 0, K = 0, fe = (x & 32) !== 0, re = 8;
|
|
1856
1856
|
A === o && (P && (re += 8), O && (re += 4), M && (D = Be(E, re), re += 4), j && (K = Be(E, re), re += 4), fe && (re += 4), c.type === "video" && (f = Me(c.codec)), qe(b, ["trun"]).map(function(ne) {
|
|
1857
|
-
var
|
|
1858
|
-
|
|
1857
|
+
var Ae = ne[0], xe = Be(ne, 0) & 16777215, we = (xe & 1) !== 0, Ve = 0, ct = (xe & 4) !== 0, vt = (xe & 256) !== 0, mt = 0, It = (xe & 512) !== 0, bt = 0, Vt = (xe & 1024) !== 0, wt = (xe & 2048) !== 0, ai = 0, Rr = Be(ne, 4), ti = 8;
|
|
1858
|
+
we && (Ve = Be(ne, ti), ti += 4), ct && (ti += 4);
|
|
1859
1859
|
for (var er = Ve + m, Vi = 0; Vi < Rr; Vi++) {
|
|
1860
|
-
if (vt ? (mt = Be(ne, ti), ti += 4) : mt = D, It ? (bt = Be(ne, ti), ti += 4) : bt = K, Vt && (ti += 4), wt && (
|
|
1860
|
+
if (vt ? (mt = Be(ne, ti), ti += 4) : mt = D, It ? (bt = Be(ne, ti), ti += 4) : bt = K, Vt && (ti += 4), wt && (Ae === 0 ? ai = Be(ne, ti) : ai = ci(ne, ti), ti += 4), c.type === Oe.VIDEO)
|
|
1861
1861
|
for (var zr = 0; zr < bt; ) {
|
|
1862
1862
|
var mr = Be(r, er);
|
|
1863
1863
|
if (er += 4, dr(f, r[er])) {
|
|
@@ -1938,14 +1938,14 @@ var sf = { exports: {} };
|
|
|
1938
1938
|
var re = s[o++].toString(16);
|
|
1939
1939
|
K.push(re.length == 1 ? "0" + re : re), (fe === 3 || fe === 5 || fe === 7 || fe === 9) && K.push("-");
|
|
1940
1940
|
}
|
|
1941
|
-
for (var ne = h - 16,
|
|
1942
|
-
|
|
1941
|
+
for (var ne = h - 16, Ae = new Uint8Array(ne), xe = 0; xe < ne; xe++)
|
|
1942
|
+
Ae[xe] = s[o++];
|
|
1943
1943
|
r.push({
|
|
1944
1944
|
payloadType: f,
|
|
1945
1945
|
pts: u,
|
|
1946
1946
|
uuid: K.join(""),
|
|
1947
|
-
userData: Mt(
|
|
1948
|
-
userDataBytes:
|
|
1947
|
+
userData: Mt(Ae),
|
|
1948
|
+
userDataBytes: Ae
|
|
1949
1949
|
});
|
|
1950
1950
|
}
|
|
1951
1951
|
} else if (h < y)
|
|
@@ -2256,8 +2256,8 @@ var sf = { exports: {} };
|
|
|
2256
2256
|
P.relurl = ne, ei(P, x), x = P, E += P.duration, b++, S = 0, K = !0;
|
|
2257
2257
|
}
|
|
2258
2258
|
} else if (O[4]) {
|
|
2259
|
-
var
|
|
2260
|
-
x ? P.setByteRange(
|
|
2259
|
+
var Ae = (" " + O[4]).slice(1);
|
|
2260
|
+
x ? P.setByteRange(Ae, x) : P.setByteRange(Ae);
|
|
2261
2261
|
} else if (O[5])
|
|
2262
2262
|
P.rawProgramDateTime = (" " + O[5]).slice(1), P.tagList.push(["PROGRAM-DATE-TIME", P.rawProgramDateTime]), j === -1 && (j = m.length);
|
|
2263
2263
|
else {
|
|
@@ -2267,16 +2267,16 @@ var sf = { exports: {} };
|
|
|
2267
2267
|
}
|
|
2268
2268
|
for (M = 1; M < O.length && typeof O[M] == "undefined"; M++)
|
|
2269
2269
|
;
|
|
2270
|
-
var
|
|
2271
|
-
switch (
|
|
2270
|
+
var xe = (" " + O[M]).slice(1), we = (" " + O[M + 1]).slice(1), Ve = O[M + 2] ? (" " + O[M + 2]).slice(1) : "";
|
|
2271
|
+
switch (xe) {
|
|
2272
2272
|
case "PLAYLIST-TYPE":
|
|
2273
|
-
v.type =
|
|
2273
|
+
v.type = we.toUpperCase();
|
|
2274
2274
|
break;
|
|
2275
2275
|
case "MEDIA-SEQUENCE":
|
|
2276
|
-
b = v.startSN = parseInt(
|
|
2276
|
+
b = v.startSN = parseInt(we);
|
|
2277
2277
|
break;
|
|
2278
2278
|
case "SKIP": {
|
|
2279
|
-
var ct = new q(
|
|
2279
|
+
var ct = new q(we), vt = ct.decimalInteger("SKIPPED-SEGMENTS");
|
|
2280
2280
|
if (Z(vt)) {
|
|
2281
2281
|
v.skippedSegments = vt;
|
|
2282
2282
|
for (var mt = vt; mt--; )
|
|
@@ -2288,10 +2288,10 @@ var sf = { exports: {} };
|
|
|
2288
2288
|
break;
|
|
2289
2289
|
}
|
|
2290
2290
|
case "TARGETDURATION":
|
|
2291
|
-
v.targetduration = Math.max(parseInt(
|
|
2291
|
+
v.targetduration = Math.max(parseInt(we), 1);
|
|
2292
2292
|
break;
|
|
2293
2293
|
case "VERSION":
|
|
2294
|
-
v.version = parseInt(
|
|
2294
|
+
v.version = parseInt(we);
|
|
2295
2295
|
break;
|
|
2296
2296
|
case "EXTM3U":
|
|
2297
2297
|
break;
|
|
@@ -2299,29 +2299,29 @@ var sf = { exports: {} };
|
|
|
2299
2299
|
v.live = !1;
|
|
2300
2300
|
break;
|
|
2301
2301
|
case "#":
|
|
2302
|
-
(
|
|
2302
|
+
(we || Ve) && P.tagList.push(Ve ? [we, Ve] : [we]);
|
|
2303
2303
|
break;
|
|
2304
2304
|
case "DISCONTINUITY":
|
|
2305
2305
|
A++, P.tagList.push(["DIS"]);
|
|
2306
2306
|
break;
|
|
2307
2307
|
case "GAP":
|
|
2308
|
-
P.gap = !0, P.tagList.push([
|
|
2308
|
+
P.gap = !0, P.tagList.push([xe]);
|
|
2309
2309
|
break;
|
|
2310
2310
|
case "BITRATE":
|
|
2311
|
-
P.tagList.push([
|
|
2311
|
+
P.tagList.push([xe, we]);
|
|
2312
2312
|
break;
|
|
2313
2313
|
case "DATERANGE": {
|
|
2314
|
-
var bt = new q(
|
|
2315
|
-
Vt.isValid || v.skippedSegments ? v.dateRanges[Vt.id] = Vt : B.warn('Ignoring invalid DATERANGE tag: "' +
|
|
2314
|
+
var bt = new q(we), Vt = new Je(bt, v.dateRanges[bt.ID]);
|
|
2315
|
+
Vt.isValid || v.skippedSegments ? v.dateRanges[Vt.id] = Vt : B.warn('Ignoring invalid DATERANGE tag: "' + we + '"'), P.tagList.push(["EXT-X-DATERANGE", we]);
|
|
2316
2316
|
break;
|
|
2317
2317
|
}
|
|
2318
2318
|
case "DEFINE":
|
|
2319
2319
|
break;
|
|
2320
2320
|
case "DISCONTINUITY-SEQUENCE":
|
|
2321
|
-
A = parseInt(
|
|
2321
|
+
A = parseInt(we);
|
|
2322
2322
|
break;
|
|
2323
2323
|
case "KEY": {
|
|
2324
|
-
var wt = Ci(
|
|
2324
|
+
var wt = Ci(we, r);
|
|
2325
2325
|
if (wt.isSupported()) {
|
|
2326
2326
|
if (wt.method === "NONE") {
|
|
2327
2327
|
D = void 0;
|
|
@@ -2329,14 +2329,14 @@ var sf = { exports: {} };
|
|
|
2329
2329
|
}
|
|
2330
2330
|
D || (D = {}), D[wt.keyFormat] && (D = k({}, D)), D[wt.keyFormat] = wt;
|
|
2331
2331
|
} else
|
|
2332
|
-
B.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "' +
|
|
2332
|
+
B.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "' + we + '"');
|
|
2333
2333
|
break;
|
|
2334
2334
|
}
|
|
2335
2335
|
case "START":
|
|
2336
|
-
v.startTimeOffset = Jt(
|
|
2336
|
+
v.startTimeOffset = Jt(we);
|
|
2337
2337
|
break;
|
|
2338
2338
|
case "MAP": {
|
|
2339
|
-
var ai = new q(
|
|
2339
|
+
var ai = new q(we);
|
|
2340
2340
|
if (P.duration) {
|
|
2341
2341
|
var Rr = new Qe(o, r);
|
|
2342
2342
|
H(Rr, ai, s, D), y = Rr, P.initSegment = y, y.rawProgramDateTime && !P.rawProgramDateTime && (P.rawProgramDateTime = y.rawProgramDateTime);
|
|
@@ -2345,29 +2345,29 @@ var sf = { exports: {} };
|
|
|
2345
2345
|
break;
|
|
2346
2346
|
}
|
|
2347
2347
|
case "SERVER-CONTROL": {
|
|
2348
|
-
var ti = new q(
|
|
2348
|
+
var ti = new q(we);
|
|
2349
2349
|
v.canBlockReload = ti.bool("CAN-BLOCK-RELOAD"), v.canSkipUntil = ti.optionalFloat("CAN-SKIP-UNTIL", 0), v.canSkipDateRanges = v.canSkipUntil > 0 && ti.bool("CAN-SKIP-DATERANGES"), v.partHoldBack = ti.optionalFloat("PART-HOLD-BACK", 0), v.holdBack = ti.optionalFloat("HOLD-BACK", 0);
|
|
2350
2350
|
break;
|
|
2351
2351
|
}
|
|
2352
2352
|
case "PART-INF": {
|
|
2353
|
-
var er = new q(
|
|
2353
|
+
var er = new q(we);
|
|
2354
2354
|
v.partTarget = er.decimalFloatingPoint("PART-TARGET");
|
|
2355
2355
|
break;
|
|
2356
2356
|
}
|
|
2357
2357
|
case "PART": {
|
|
2358
2358
|
var Vi = v.partList;
|
|
2359
2359
|
Vi || (Vi = v.partList = []);
|
|
2360
|
-
var zr = S > 0 ? Vi[Vi.length - 1] : void 0, mr = S++, an = new q(
|
|
2360
|
+
var zr = S > 0 ? Vi[Vi.length - 1] : void 0, mr = S++, an = new q(we), Pn = new Et(an, P, r, mr, zr);
|
|
2361
2361
|
Vi.push(Pn), P.duration += Pn.duration;
|
|
2362
2362
|
break;
|
|
2363
2363
|
}
|
|
2364
2364
|
case "PRELOAD-HINT": {
|
|
2365
|
-
var on = new q(
|
|
2365
|
+
var on = new q(we);
|
|
2366
2366
|
v.preloadHint = on;
|
|
2367
2367
|
break;
|
|
2368
2368
|
}
|
|
2369
2369
|
case "RENDITION-REPORT": {
|
|
2370
|
-
var Cn = new q(
|
|
2370
|
+
var Cn = new q(we);
|
|
2371
2371
|
v.renditionReports = v.renditionReports || [], v.renditionReports.push(Cn);
|
|
2372
2372
|
break;
|
|
2373
2373
|
}
|
|
@@ -2953,9 +2953,9 @@ var sf = { exports: {} };
|
|
|
2953
2953
|
if (!(y.length === 0 || !Z(A == null ? void 0 : A.programDateTime))) {
|
|
2954
2954
|
this.id3Track || (this.id3Track = this.createTrack(this.media));
|
|
2955
2955
|
for (var x = A.programDateTime / 1e3 - A.start, P = Er(), O = function() {
|
|
2956
|
-
var j = y[M], K = m[j], fe = h[j], re = (fe == null ? void 0 : fe.cues) || {}, ne = (fe == null ? void 0 : fe.durationKnown) || !1,
|
|
2957
|
-
if (
|
|
2958
|
-
|
|
2956
|
+
var j = y[M], K = m[j], fe = h[j], re = (fe == null ? void 0 : fe.cues) || {}, ne = (fe == null ? void 0 : fe.durationKnown) || !1, Ae = En(K.startDate, x), xe = gr, we = K.endDate;
|
|
2957
|
+
if (we)
|
|
2958
|
+
xe = En(we, x), ne = !0;
|
|
2959
2959
|
else if (K.endOnNext && !ne) {
|
|
2960
2960
|
var Ve = y.reduce(function(Vt, wt) {
|
|
2961
2961
|
var ai = m[wt];
|
|
@@ -2963,17 +2963,17 @@ var sf = { exports: {} };
|
|
|
2963
2963
|
}, []).sort(function(Vt, wt) {
|
|
2964
2964
|
return Vt.startDate.getTime() - wt.startDate.getTime();
|
|
2965
2965
|
})[0];
|
|
2966
|
-
Ve && (
|
|
2966
|
+
Ve && (xe = En(Ve.startDate, x), ne = !0);
|
|
2967
2967
|
}
|
|
2968
2968
|
for (var ct = Object.keys(K.attr), vt = 0; vt < ct.length; vt++) {
|
|
2969
2969
|
var mt = ct[vt];
|
|
2970
2970
|
if (ge(mt)) {
|
|
2971
2971
|
var It = re[mt];
|
|
2972
2972
|
if (It)
|
|
2973
|
-
ne && !fe.durationKnown && (It.endTime =
|
|
2973
|
+
ne && !fe.durationKnown && (It.endTime = xe);
|
|
2974
2974
|
else {
|
|
2975
2975
|
var bt = K.attr[mt];
|
|
2976
|
-
It = new P(
|
|
2976
|
+
It = new P(Ae, xe, ""), at(mt) && (bt = rn(bt)), It.value = {
|
|
2977
2977
|
key: mt,
|
|
2978
2978
|
data: bt
|
|
2979
2979
|
}, It.type = Si.dateRange, It.id = j, o.id3Track.addCue(It), re[mt] = It;
|
|
@@ -3718,8 +3718,8 @@ var sf = { exports: {} };
|
|
|
3718
3718
|
else {
|
|
3719
3719
|
var ne = Math.floor(re / h.targetduration);
|
|
3720
3720
|
if (S += ne, E !== void 0) {
|
|
3721
|
-
var
|
|
3722
|
-
E +=
|
|
3721
|
+
var Ae = Math.round(re % h.targetduration / h.partTarget);
|
|
3722
|
+
E += Ae;
|
|
3723
3723
|
}
|
|
3724
3724
|
this.log("CDN Tune-in age: " + h.ageHeader + "s last advanced " + K.toFixed(2) + "s goal: " + re + " skip sn " + ne + " to part " + E);
|
|
3725
3725
|
}
|
|
@@ -3731,7 +3731,7 @@ var sf = { exports: {} };
|
|
|
3731
3731
|
}
|
|
3732
3732
|
} else
|
|
3733
3733
|
h.canBlockReload && (b = this.getDeliveryDirectives(h, s.deliveryDirectives, S, E));
|
|
3734
|
-
var
|
|
3734
|
+
var xe = this.hls.mainForwardBufferInfo, we = xe ? xe.end - xe.len : 0, Ve = (h.edge - we) * 1e3, ct = Ar(h, Ve);
|
|
3735
3735
|
h.updated && m > this.requestScheduled + ct && (this.requestScheduled = v.loading.start), S !== void 0 && h.canBlockReload ? this.requestScheduled = v.loading.first + ct - (h.partTarget * 1e3 || 1e3) : this.requestScheduled === -1 || this.requestScheduled + ct < m ? this.requestScheduled = m : this.requestScheduled - m <= 0 && (this.requestScheduled += ct);
|
|
3736
3736
|
var vt = this.requestScheduled - m;
|
|
3737
3737
|
vt = Math.max(0, vt), this.log("reload live playlist " + r + " in " + Math.round(vt) + " ms"), this.timer = self.setTimeout(function() {
|
|
@@ -4821,10 +4821,10 @@ var sf = { exports: {} };
|
|
|
4821
4821
|
}, c.networkToHostOrderSwap = function(r) {
|
|
4822
4822
|
return r << 24 | (r & 65280) << 8 | (r & 16711680) >> 8 | r >>> 24;
|
|
4823
4823
|
}, c.decrypt = function(r, s, o) {
|
|
4824
|
-
for (var f = this.keySize + 6, h = this.invKeySchedule, v = this.invSBox, m = this.invSubMix, y = m[0], b = m[1], S = m[2], E = m[3], A = this.uint8ArrayToUint32Array_(o), x = A[0], P = A[1], O = A[2], M = A[3], D = new Int32Array(r), j = new Int32Array(D.length), K, fe, re, ne,
|
|
4825
|
-
for (ct = wt(D[s]), vt = wt(D[s + 1]), mt = wt(D[s + 2]), It = wt(D[s + 3]),
|
|
4826
|
-
K = y[
|
|
4827
|
-
K = v[
|
|
4824
|
+
for (var f = this.keySize + 6, h = this.invKeySchedule, v = this.invSBox, m = this.invSubMix, y = m[0], b = m[1], S = m[2], E = m[3], A = this.uint8ArrayToUint32Array_(o), x = A[0], P = A[1], O = A[2], M = A[3], D = new Int32Array(r), j = new Int32Array(D.length), K, fe, re, ne, Ae, xe, we, Ve, ct, vt, mt, It, bt, Vt, wt = this.networkToHostOrderSwap; s < D.length; ) {
|
|
4825
|
+
for (ct = wt(D[s]), vt = wt(D[s + 1]), mt = wt(D[s + 2]), It = wt(D[s + 3]), Ae = ct ^ h[0], xe = It ^ h[1], we = mt ^ h[2], Ve = vt ^ h[3], bt = 4, Vt = 1; Vt < f; Vt++)
|
|
4826
|
+
K = y[Ae >>> 24] ^ b[xe >> 16 & 255] ^ S[we >> 8 & 255] ^ E[Ve & 255] ^ h[bt], fe = y[xe >>> 24] ^ b[we >> 16 & 255] ^ S[Ve >> 8 & 255] ^ E[Ae & 255] ^ h[bt + 1], re = y[we >>> 24] ^ b[Ve >> 16 & 255] ^ S[Ae >> 8 & 255] ^ E[xe & 255] ^ h[bt + 2], ne = y[Ve >>> 24] ^ b[Ae >> 16 & 255] ^ S[xe >> 8 & 255] ^ E[we & 255] ^ h[bt + 3], Ae = K, xe = fe, we = re, Ve = ne, bt = bt + 4;
|
|
4827
|
+
K = v[Ae >>> 24] << 24 ^ v[xe >> 16 & 255] << 16 ^ v[we >> 8 & 255] << 8 ^ v[Ve & 255] ^ h[bt], fe = v[xe >>> 24] << 24 ^ v[we >> 16 & 255] << 16 ^ v[Ve >> 8 & 255] << 8 ^ v[Ae & 255] ^ h[bt + 1], re = v[we >>> 24] << 24 ^ v[Ve >> 16 & 255] << 16 ^ v[Ae >> 8 & 255] << 8 ^ v[xe & 255] ^ h[bt + 2], ne = v[Ve >>> 24] << 24 ^ v[Ae >> 16 & 255] << 16 ^ v[xe >> 8 & 255] << 8 ^ v[we & 255] ^ h[bt + 3], j[s] = wt(K ^ x), j[s + 1] = wt(ne ^ P), j[s + 2] = wt(re ^ O), j[s + 3] = wt(fe ^ M), x = ct, P = vt, O = mt, M = It, s = s + 4;
|
|
4828
4828
|
}
|
|
4829
4829
|
return j.buffer;
|
|
4830
4830
|
}, d;
|
|
@@ -5944,8 +5944,8 @@ var sf = { exports: {} };
|
|
|
5944
5944
|
re === 0 && A(1), A(1), E() && (r = S(), s = S(), o = S(), f = S());
|
|
5945
5945
|
var ne = [1, 1];
|
|
5946
5946
|
if (E() && E()) {
|
|
5947
|
-
var
|
|
5948
|
-
switch (
|
|
5947
|
+
var Ae = y();
|
|
5948
|
+
switch (Ae) {
|
|
5949
5949
|
case 1:
|
|
5950
5950
|
ne = [1, 1];
|
|
5951
5951
|
break;
|
|
@@ -6118,21 +6118,21 @@ var sf = { exports: {} };
|
|
|
6118
6118
|
K -= (K - fe) % Zi, K < r.byteLength && !f && (this.remainderData = new Uint8Array(r.buffer, K, r.buffer.byteLength - K));
|
|
6119
6119
|
for (var re = 0, ne = fe; ne < K; ne += Zi)
|
|
6120
6120
|
if (r[ne] === 71) {
|
|
6121
|
-
var
|
|
6122
|
-
if (
|
|
6121
|
+
var Ae = !!(r[ne + 1] & 64), xe = qo(r, ne), we = (r[ne + 3] & 48) >> 4, Ve = void 0;
|
|
6122
|
+
if (we > 1) {
|
|
6123
6123
|
if (Ve = ne + 5 + r[ne + 4], Ve === ne + Zi)
|
|
6124
6124
|
continue;
|
|
6125
6125
|
} else
|
|
6126
6126
|
Ve = ne + 4;
|
|
6127
|
-
switch (
|
|
6127
|
+
switch (xe) {
|
|
6128
6128
|
case S:
|
|
6129
|
-
|
|
6129
|
+
Ae && (E && (h = vs(E)) && this.parseAVCPES(v, b, h, !1), E = {
|
|
6130
6130
|
data: [],
|
|
6131
6131
|
size: 0
|
|
6132
6132
|
}), E && (E.data.push(r.subarray(Ve, ne + Zi)), E.size += ne + Zi - Ve);
|
|
6133
6133
|
break;
|
|
6134
6134
|
case A:
|
|
6135
|
-
if (
|
|
6135
|
+
if (Ae) {
|
|
6136
6136
|
if (P && (h = vs(P)))
|
|
6137
6137
|
switch (m.segmentCodec) {
|
|
6138
6138
|
case "aac":
|
|
@@ -6150,16 +6150,16 @@ var sf = { exports: {} };
|
|
|
6150
6150
|
P && (P.data.push(r.subarray(Ve, ne + Zi)), P.size += ne + Zi - Ve);
|
|
6151
6151
|
break;
|
|
6152
6152
|
case x:
|
|
6153
|
-
|
|
6153
|
+
Ae && (O && (h = vs(O)) && this.parseID3PES(y, h), O = {
|
|
6154
6154
|
data: [],
|
|
6155
6155
|
size: 0
|
|
6156
6156
|
}), O && (O.data.push(r.subarray(Ve, ne + Zi)), O.size += ne + Zi - Ve);
|
|
6157
6157
|
break;
|
|
6158
6158
|
case 0:
|
|
6159
|
-
|
|
6159
|
+
Ae && (Ve += r[Ve] + 1), j = this._pmtId = kg(r, Ve);
|
|
6160
6160
|
break;
|
|
6161
6161
|
case j: {
|
|
6162
|
-
|
|
6162
|
+
Ae && (Ve += r[Ve] + 1);
|
|
6163
6163
|
var ct = Tg(r, Ve, this.typeSupported, o);
|
|
6164
6164
|
S = ct.avc, S > 0 && (v.pid = S), A = ct.audio, A > 0 && (m.pid = A, m.segmentCodec = ct.segmentCodec), x = ct.id3, x > 0 && (y.pid = x), M !== null && !D && (B.warn("MPEG-TS PMT found at " + ne + " after unknown PID '" + M + "'. Backtracking to sync byte @" + fe + " to parse all TS packets."), M = null, ne = fe - 188), D = this.pmtParsed = !0;
|
|
6165
6165
|
break;
|
|
@@ -6168,7 +6168,7 @@ var sf = { exports: {} };
|
|
|
6168
6168
|
case 8191:
|
|
6169
6169
|
break;
|
|
6170
6170
|
default:
|
|
6171
|
-
M =
|
|
6171
|
+
M = xe;
|
|
6172
6172
|
break;
|
|
6173
6173
|
}
|
|
6174
6174
|
} else
|
|
@@ -7620,14 +7620,14 @@ var sf = { exports: {} };
|
|
|
7620
7620
|
var b, S, E, A, x, P, O = h, M = h, D = r.pid > -1, j = s.pid > -1, K = s.samples.length, fe = r.samples.length > 0, re = m && K > 0 || K > 1, ne = (!D || fe) && (!j || re) || this.ISGenerated || m;
|
|
7621
7621
|
if (ne) {
|
|
7622
7622
|
this.ISGenerated || (E = this.generateIS(r, s, h, v));
|
|
7623
|
-
var
|
|
7624
|
-
if (re && (
|
|
7625
|
-
if (P = !0,
|
|
7626
|
-
B.warn("[mp4-remuxer]: Dropped " +
|
|
7623
|
+
var Ae = this.isVideoContiguous, xe = -1, we;
|
|
7624
|
+
if (re && (xe = Cg(s.samples), !Ae && this.config.forceKeyFrameOnDiscontinuity))
|
|
7625
|
+
if (P = !0, xe > 0) {
|
|
7626
|
+
B.warn("[mp4-remuxer]: Dropped " + xe + " out of " + K + " video samples due to a missing keyframe");
|
|
7627
7627
|
var Ve = this.getVideoStartPts(s.samples);
|
|
7628
|
-
s.samples = s.samples.slice(
|
|
7628
|
+
s.samples = s.samples.slice(xe), s.dropped += xe, M += (s.samples[0].pts - Ve) / s.inputTimeScale, we = M;
|
|
7629
7629
|
} else
|
|
7630
|
-
|
|
7630
|
+
xe === -1 && (B.warn("[mp4-remuxer]: No keyframe found out of " + K + " video samples"), P = !1);
|
|
7631
7631
|
if (this.ISGenerated) {
|
|
7632
7632
|
if (fe && re) {
|
|
7633
7633
|
var ct = this.getVideoStartPts(s.samples), vt = Ir(r.samples[0].pts, ct) - ct, mt = vt / s.inputTimeScale;
|
|
@@ -7636,11 +7636,11 @@ var sf = { exports: {} };
|
|
|
7636
7636
|
if (fe) {
|
|
7637
7637
|
if (r.samplerate || (B.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"), E = this.generateIS(r, s, h, v)), S = this.remuxAudio(r, O, this.isAudioContiguous, v, j || re || y === st.AUDIO ? M : void 0), re) {
|
|
7638
7638
|
var It = S ? S.endPTS - S.startPTS : 0;
|
|
7639
|
-
s.inputTimeScale || (B.warn("[mp4-remuxer]: regenerate InitSegment as video detected"), E = this.generateIS(r, s, h, v)), b = this.remuxVideo(s, M,
|
|
7639
|
+
s.inputTimeScale || (B.warn("[mp4-remuxer]: regenerate InitSegment as video detected"), E = this.generateIS(r, s, h, v)), b = this.remuxVideo(s, M, Ae, It);
|
|
7640
7640
|
}
|
|
7641
7641
|
} else
|
|
7642
|
-
re && (b = this.remuxVideo(s, M,
|
|
7643
|
-
b && (b.firstKeyFrame =
|
|
7642
|
+
re && (b = this.remuxVideo(s, M, Ae, 0));
|
|
7643
|
+
b && (b.firstKeyFrame = xe, b.independent = xe !== -1, b.firstKeyFramePTS = we);
|
|
7644
7644
|
}
|
|
7645
7645
|
}
|
|
7646
7646
|
return this.ISGenerated && this._initPTS && this._initDTS && (o.samples.length && (x = Gu(o, h, this._initPTS, this._initDTS)), f.samples.length && (A = zu(f, h, this._initPTS))), {
|
|
@@ -7710,13 +7710,13 @@ var sf = { exports: {} };
|
|
|
7710
7710
|
var T0 = Ca.dts - ac.dts, E0 = Ca.pts - ac.pts;
|
|
7711
7711
|
return T0 || E0;
|
|
7712
7712
|
}), x = v[0].dts, P = v[v.length - 1].dts;
|
|
7713
|
-
var
|
|
7713
|
+
var Ae = P - x, xe = Ae ? Math.round(Ae / (y - 1)) : A || r.inputTimeScale / 30;
|
|
7714
7714
|
if (o) {
|
|
7715
|
-
var
|
|
7716
|
-
if ((Ve || ct) && (Ve ? B.warn("AVC: " + js(
|
|
7715
|
+
var we = x - S, Ve = we > xe, ct = we < -1;
|
|
7716
|
+
if ((Ve || ct) && (Ve ? B.warn("AVC: " + js(we, !0) + " ms (" + we + "dts) hole between fragments detected, filling it") : B.warn("AVC: " + js(-we, !0) + " ms (" + we + "dts) overlapping between fragments detected"), !ct || S >= v[0].pts)) {
|
|
7717
7717
|
x = S;
|
|
7718
|
-
var vt = v[0].pts -
|
|
7719
|
-
v[0].dts = x, v[0].pts = vt, B.log("Video: First PTS/DTS adjusted: " + js(vt, !0) + "/" + js(x, !0) + ", delta: " + js(
|
|
7718
|
+
var vt = v[0].pts - we;
|
|
7719
|
+
v[0].dts = x, v[0].pts = vt, B.log("Video: First PTS/DTS adjusted: " + js(vt, !0) + "/" + js(x, !0) + ", delta: " + js(we, !0) + " ms");
|
|
7720
7720
|
}
|
|
7721
7721
|
}
|
|
7722
7722
|
x = Math.max(0, x);
|
|
@@ -7751,8 +7751,8 @@ var sf = { exports: {} };
|
|
|
7751
7751
|
if (Ji < y - 1)
|
|
7752
7752
|
A = v[Ji + 1].dts - or.dts, wa = v[Ji + 1].pts - or.pts;
|
|
7753
7753
|
else {
|
|
7754
|
-
var ic = this.config, Pa = Ji > 0 ? or.dts - v[Ji - 1].dts :
|
|
7755
|
-
if (wa = Ji > 0 ? or.pts - v[Ji - 1].pts :
|
|
7754
|
+
var ic = this.config, Pa = Ji > 0 ? or.dts - v[Ji - 1].dts : xe;
|
|
7755
|
+
if (wa = Ji > 0 ? or.pts - v[Ji - 1].pts : xe, ic.stretchShortVideoTrack && this.nextAudioPts !== null) {
|
|
7756
7756
|
var m0 = Math.floor(ic.maxBufferHole * h), ll = (f ? O + f * h : this.nextAudioPts) - or.pts;
|
|
7757
7757
|
ll > m0 ? (A = ll - Pa, A < 0 ? A = Pa : mr = !0, B.log("[mp4-remuxer]: It is approximately " + ll / 90 + " ms to the next segment; using duration " + A / 90 + " ms for the last video frame.")) : A = Pa;
|
|
7758
7758
|
} else
|
|
@@ -7767,7 +7767,7 @@ var sf = { exports: {} };
|
|
|
7767
7767
|
var rc = m[0].flags;
|
|
7768
7768
|
rc.dependsOn = 2, rc.isNonSync = 0;
|
|
7769
7769
|
}
|
|
7770
|
-
} else if (Zo && Cn - Pn < on - an &&
|
|
7770
|
+
} else if (Zo && Cn - Pn < on - an && xe / on < 0.025 && m[0].cts === 0) {
|
|
7771
7771
|
B.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");
|
|
7772
7772
|
for (var ul = x, Dr = 0, nc = m.length; Dr < nc; Dr++) {
|
|
7773
7773
|
var sc = ul + m[Dr].duration, _0 = ul + m[Dr].cts;
|
|
@@ -7775,12 +7775,12 @@ var sf = { exports: {} };
|
|
|
7775
7775
|
var y0 = sc + m[Dr + 1].cts;
|
|
7776
7776
|
m[Dr].duration = y0 - _0;
|
|
7777
7777
|
} else
|
|
7778
|
-
m[Dr].duration = Dr ? m[Dr - 1].duration :
|
|
7778
|
+
m[Dr].duration = Dr ? m[Dr - 1].duration : xe;
|
|
7779
7779
|
m[Dr].cts = 0, ul = sc;
|
|
7780
7780
|
}
|
|
7781
7781
|
}
|
|
7782
7782
|
}
|
|
7783
|
-
A = mr || !A ?
|
|
7783
|
+
A = mr || !A ? xe : A, this.nextAvcDts = S = P + A, this.videoSampleDuration = A, this.isVideoContiguous = !0;
|
|
7784
7784
|
var b0 = Ui.moof(r.sequenceNumber++, x, k({}, r, {
|
|
7785
7785
|
samples: m
|
|
7786
7786
|
})), S0 = "video", k0 = {
|
|
@@ -7810,21 +7810,21 @@ var sf = { exports: {} };
|
|
|
7810
7810
|
}
|
|
7811
7811
|
if (r.segmentCodec === "aac")
|
|
7812
7812
|
for (var fe = this.config.maxAudioFramesDrift, re = 0, ne = D; re < O.length; re++) {
|
|
7813
|
-
var
|
|
7814
|
-
if (
|
|
7815
|
-
re === 0 && (B.warn("Audio frame @ " + (
|
|
7816
|
-
else if (
|
|
7817
|
-
var ct = Math.round(
|
|
7818
|
-
ne =
|
|
7813
|
+
var Ae = O[re], xe = Ae.pts, we = xe - ne, Ve = Math.abs(1e3 * we / v);
|
|
7814
|
+
if (we <= -fe * S && P)
|
|
7815
|
+
re === 0 && (B.warn("Audio frame @ " + (xe / v).toFixed(3) + "s overlaps nextAudioPts by " + Math.round(1e3 * we / v) + " ms."), this.nextAudioPts = D = ne = xe);
|
|
7816
|
+
else if (we >= fe * S && Ve < wg && P) {
|
|
7817
|
+
var ct = Math.round(we / S);
|
|
7818
|
+
ne = xe - ct * S, ne < 0 && (ct--, ne += S), re === 0 && (this.nextAudioPts = D = ne), B.warn("[mp4-remuxer]: Injecting " + ct + " audio frame @ " + (ne / v).toFixed(3) + "s due to " + Math.round(1e3 * we / v) + " ms gap.");
|
|
7819
7819
|
for (var vt = 0; vt < ct; vt++) {
|
|
7820
7820
|
var mt = Math.max(ne, 0), It = Wu.getSilentFrame(r.manifestCodec || r.codec, r.channelCount);
|
|
7821
|
-
It || (B.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."), It =
|
|
7821
|
+
It || (B.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."), It = Ae.unit.subarray()), O.splice(re, 0, {
|
|
7822
7822
|
unit: It,
|
|
7823
7823
|
pts: mt
|
|
7824
7824
|
}), ne += S, re++;
|
|
7825
7825
|
}
|
|
7826
7826
|
}
|
|
7827
|
-
|
|
7827
|
+
Ae.pts = ne, ne += S;
|
|
7828
7828
|
}
|
|
7829
7829
|
for (var bt = null, Vt = null, wt, ai = 0, Rr = O.length; Rr--; )
|
|
7830
7830
|
ai += O[Rr].unit.byteLength;
|
|
@@ -8009,7 +8009,7 @@ var sf = { exports: {} };
|
|
|
8009
8009
|
bi(P, A, b.baseTime / b.timescale), O > 0 ? this.lastEndTime = K : (B.warn("Duration parsed from mp4 should be greater than zero"), this.resetNextTimestamp());
|
|
8010
8010
|
var fe = !!P.audio, re = !!P.video, ne = "";
|
|
8011
8011
|
fe && (ne += "audio"), re && (ne += "video");
|
|
8012
|
-
var
|
|
8012
|
+
var Ae = {
|
|
8013
8013
|
data1: A,
|
|
8014
8014
|
startPTS: j,
|
|
8015
8015
|
startDTS: j,
|
|
@@ -8021,7 +8021,7 @@ var sf = { exports: {} };
|
|
|
8021
8021
|
nb: 1,
|
|
8022
8022
|
dropped: 0
|
|
8023
8023
|
};
|
|
8024
|
-
return E.audio =
|
|
8024
|
+
return E.audio = Ae.type === "audio" ? Ae : void 0, E.video = Ae.type !== "audio" ? Ae : void 0, E.initSegment = x, E.id3 = Gu(o, h, b, b), f.samples.length && (E.text = zu(f, h, b)), E;
|
|
8025
8025
|
}, d;
|
|
8026
8026
|
}();
|
|
8027
8027
|
function Rg(d, c, u, r) {
|
|
@@ -8066,14 +8066,14 @@ var sf = { exports: {} };
|
|
|
8066
8066
|
f && (this.currentTransmuxState = f);
|
|
8067
8067
|
var S = f || y, E = S.contiguous, A = S.discontinuity, x = S.trackSwitch, P = S.accurateTimeOffset, O = S.timeOffset, M = S.initSegmentChange, D = b.audioCodec, j = b.videoCodec, K = b.defaultInitPts, fe = b.duration, re = b.initSegmentData, ne = Dg(m, s);
|
|
8068
8068
|
if (ne && ne.method === "AES-128") {
|
|
8069
|
-
var
|
|
8070
|
-
if (
|
|
8071
|
-
var
|
|
8072
|
-
if (
|
|
8069
|
+
var Ae = this.getDecrypter();
|
|
8070
|
+
if (Ae.isSync()) {
|
|
8071
|
+
var xe = Ae.softwareDecrypt(m, ne.key.buffer, ne.iv.buffer), we = o.part > -1;
|
|
8072
|
+
if (we && (xe = Ae.flush()), !xe)
|
|
8073
8073
|
return v.executeEnd = sn(), el(o);
|
|
8074
|
-
m = new Uint8Array(
|
|
8074
|
+
m = new Uint8Array(xe);
|
|
8075
8075
|
} else
|
|
8076
|
-
return this.decryptionPromise =
|
|
8076
|
+
return this.decryptionPromise = Ae.webCryptoDecrypt(m, ne.key.buffer, ne.iv.buffer).then(function(It) {
|
|
8077
8077
|
var bt = h.push(It, null, o);
|
|
8078
8078
|
return h.decryptionPromise = null, bt;
|
|
8079
8079
|
}), this.decryptionPromise;
|
|
@@ -8482,17 +8482,17 @@ var sf = { exports: {} };
|
|
|
8482
8482
|
}, c.push = function(r, s, o, f, h, v, m, y, b, S) {
|
|
8483
8483
|
var E, A, x = this;
|
|
8484
8484
|
b.transmuxing.start = self.performance.now();
|
|
8485
|
-
var P = this.transmuxer, O = v ? v.start : h.start, M = h.decryptdata, D = this.frag, j = !(D && h.cc === D.cc), K = !(D && b.level === D.level), fe = D ? b.sn - D.sn : -1, re = this.part ? b.part - this.part.index : -1, ne = fe === 0 && b.id > 1 && b.id === (D == null ? void 0 : D.stats.chunkCount),
|
|
8486
|
-
(K || fe || h.stats.parsing.start === 0) && (h.stats.parsing.start =
|
|
8487
|
-
var
|
|
8488
|
-
if (!
|
|
8485
|
+
var P = this.transmuxer, O = v ? v.start : h.start, M = h.decryptdata, D = this.frag, j = !(D && h.cc === D.cc), K = !(D && b.level === D.level), fe = D ? b.sn - D.sn : -1, re = this.part ? b.part - this.part.index : -1, ne = fe === 0 && b.id > 1 && b.id === (D == null ? void 0 : D.stats.chunkCount), Ae = !K && (fe === 1 || fe === 0 && (re === 1 || ne && re <= 0)), xe = self.performance.now();
|
|
8486
|
+
(K || fe || h.stats.parsing.start === 0) && (h.stats.parsing.start = xe), v && (re || !Ae) && (v.stats.parsing.start = xe);
|
|
8487
|
+
var we = !(D && ((E = h.initSegment) == null ? void 0 : E.url) === ((A = D.initSegment) == null ? void 0 : A.url)), Ve = new Bg(j, Ae, y, K, O, we);
|
|
8488
|
+
if (!Ae || j || we) {
|
|
8489
8489
|
B.log("[transmuxer-interface, " + h.type + "]: Starting new transmux session for sn: " + b.sn + " p: " + b.part + " level: " + b.level + " id: " + b.id + `
|
|
8490
8490
|
discontinuity: ` + j + `
|
|
8491
8491
|
trackSwitch: ` + K + `
|
|
8492
|
-
contiguous: ` +
|
|
8492
|
+
contiguous: ` + Ae + `
|
|
8493
8493
|
accurateTimeOffset: ` + y + `
|
|
8494
8494
|
timeOffset: ` + O + `
|
|
8495
|
-
initSegmentChange: ` +
|
|
8495
|
+
initSegmentChange: ` + we);
|
|
8496
8496
|
var ct = new Og(o, f, s, m, S);
|
|
8497
8497
|
this.configureTransmuxer(ct);
|
|
8498
8498
|
}
|
|
@@ -8623,10 +8623,10 @@ var sf = { exports: {} };
|
|
|
8623
8623
|
this.stalled = ne;
|
|
8624
8624
|
return;
|
|
8625
8625
|
}
|
|
8626
|
-
var
|
|
8627
|
-
if (!(!m &&
|
|
8628
|
-
var
|
|
8629
|
-
this._tryFixBufferStall(
|
|
8626
|
+
var Ae = ne - h;
|
|
8627
|
+
if (!(!m && Ae >= Gg && (this._reportStall(E), !this.media))) {
|
|
8628
|
+
var xe = Li.bufferInfo(f, v, o.maxBufferHole);
|
|
8629
|
+
this._tryFixBufferStall(xe, Ae);
|
|
8630
8630
|
}
|
|
8631
8631
|
}
|
|
8632
8632
|
}
|
|
@@ -8806,8 +8806,8 @@ var sf = { exports: {} };
|
|
|
8806
8806
|
if (M && this.isLoopLoading(M, O)) {
|
|
8807
8807
|
var re = M.gap;
|
|
8808
8808
|
if (!re) {
|
|
8809
|
-
var ne = this.audioOnly && !this.altAudio ? Oe.AUDIO : Oe.VIDEO,
|
|
8810
|
-
|
|
8809
|
+
var ne = this.audioOnly && !this.altAudio ? Oe.AUDIO : Oe.VIDEO, Ae = (ne === Oe.VIDEO ? this.videoBuffer : this.mediaBuffer) || this.media;
|
|
8810
|
+
Ae && this.afterBufferFlushed(Ae, ne, st.MAIN);
|
|
8811
8811
|
}
|
|
8812
8812
|
M = this.getNextFragmentLoopLoading(M, A, b, st.MAIN, P);
|
|
8813
8813
|
}
|
|
@@ -9089,13 +9089,13 @@ var sf = { exports: {} };
|
|
|
9089
9089
|
var re = b.sn !== (M == null ? void 0 : M.startSN);
|
|
9090
9090
|
if (A && v.independent !== !1) {
|
|
9091
9091
|
if (M) {
|
|
9092
|
-
var ne = A.startPTS,
|
|
9092
|
+
var ne = A.startPTS, Ae = A.endPTS, xe = A.startDTS, we = A.endDTS;
|
|
9093
9093
|
if (S)
|
|
9094
9094
|
S.elementaryStreams[A.type] = {
|
|
9095
9095
|
startPTS: ne,
|
|
9096
|
-
endPTS:
|
|
9097
|
-
startDTS:
|
|
9098
|
-
endDTS:
|
|
9096
|
+
endPTS: Ae,
|
|
9097
|
+
startDTS: xe,
|
|
9098
|
+
endDTS: we
|
|
9099
9099
|
};
|
|
9100
9100
|
else if (A.firstKeyFrame && A.independent && m.id === 1 && (this.couldBacktrack = !0), A.dropped && A.independent) {
|
|
9101
9101
|
var Ve = this.getMainFwdBufferInfo(), ct = (Ve ? Ve.end : this.getLoadPosition()) + this.config.maxBufferHole, vt = A.firstKeyFramePTS ? A.firstKeyFramePTS : ne;
|
|
@@ -9103,9 +9103,9 @@ var sf = { exports: {} };
|
|
|
9103
9103
|
this.backtrack(b);
|
|
9104
9104
|
return;
|
|
9105
9105
|
}
|
|
9106
|
-
b.setElementaryStreamInfo(A.type, b.start,
|
|
9106
|
+
b.setElementaryStreamInfo(A.type, b.start, Ae, b.start, we, !0);
|
|
9107
9107
|
}
|
|
9108
|
-
b.setElementaryStreamInfo(A.type, ne,
|
|
9108
|
+
b.setElementaryStreamInfo(A.type, ne, Ae, xe, we), this.backtrackFragment && (this.backtrackFragment = b), this.bufferFragmentData(A, b, S, m);
|
|
9109
9109
|
}
|
|
9110
9110
|
} else if (re && v.independent === !1) {
|
|
9111
9111
|
this.backtrack(b);
|
|
@@ -9304,18 +9304,18 @@ var sf = { exports: {} };
|
|
|
9304
9304
|
if (!(x >= 2 * y / A)) {
|
|
9305
9305
|
var P = m.loading.first ? m.loading.first - m.loading.start : -1, O = m.loaded && P > -1, M = this.bwEstimator.getEstimate(), D = o.levels, j = o.minAutoLevel, K = D[r.level], fe = m.total || Math.max(m.loaded, Math.round(y * K.maxBitrate / 8)), re = b - P;
|
|
9306
9306
|
re < 1 && O && (re = Math.min(b, m.loaded * 8 / M));
|
|
9307
|
-
var ne = O ? m.loaded * 1e3 / re : 0,
|
|
9308
|
-
if (!(
|
|
9309
|
-
var
|
|
9307
|
+
var ne = O ? m.loaded * 1e3 / re : 0, Ae = ne ? (fe - m.loaded) / ne : fe * 8 / M + E / 1e3;
|
|
9308
|
+
if (!(Ae <= x)) {
|
|
9309
|
+
var xe = ne ? ne * 8 : M, we = Number.POSITIVE_INFINITY, Ve;
|
|
9310
9310
|
for (Ve = r.level - 1; Ve > j; Ve--) {
|
|
9311
9311
|
var ct = D[Ve].maxBitrate;
|
|
9312
|
-
if (
|
|
9312
|
+
if (we = this.getTimeToLoadFrag(E / 1e3, xe, y * ct, !D[Ve].details), we < x)
|
|
9313
9313
|
break;
|
|
9314
9314
|
}
|
|
9315
|
-
|
|
9315
|
+
we >= Ae || we > y * 10 || (o.nextLoadLevel = Ve, O ? this.bwEstimator.sample(b - Math.min(E, P), m.loaded) : this.bwEstimator.sampleTTFB(b), this.clearTimer(), B.warn("[abr] Fragment " + r.sn + (s ? " part " + s.index : "") + " of level " + r.level + ` is loading too slowly;
|
|
9316
9316
|
Time to underbuffer: ` + x.toFixed(3) + ` s
|
|
9317
|
-
Estimated load time for current fragment: ` +
|
|
9318
|
-
Estimated load time for down switch fragment: ` +
|
|
9317
|
+
Estimated load time for current fragment: ` + Ae.toFixed(3) + ` s
|
|
9318
|
+
Estimated load time for down switch fragment: ` + we.toFixed(3) + ` s
|
|
9319
9319
|
TTFB estimate: ` + P + `
|
|
9320
9320
|
Current BW estimate: ` + (Z(M) ? (M / 1024).toFixed(3) : "Unknown") + ` Kb/s
|
|
9321
9321
|
New BW estimate: ` + (this.bwEstimator.getEstimate() / 1024).toFixed(3) + ` Kb/s
|
|
@@ -9382,13 +9382,13 @@ var sf = { exports: {} };
|
|
|
9382
9382
|
continue;
|
|
9383
9383
|
}
|
|
9384
9384
|
j !== -1 && B.trace("[abr] Skipped level(s) " + D + "-" + j + ' with CODECS:"' + E[j].attrs.CODECS + '"; not compatible with "' + A.attrs.CODECS + '"');
|
|
9385
|
-
var re = fe.details, ne = (b ? re == null ? void 0 : re.partTarget : re == null ? void 0 : re.averagetargetduration) || O,
|
|
9386
|
-
K <= S ?
|
|
9387
|
-
var
|
|
9388
|
-
if (B.trace("[abr] level:" + K + " adjustedbw-bitrate:" + Math.round(
|
|
9385
|
+
var re = fe.details, ne = (b ? re == null ? void 0 : re.partTarget : re == null ? void 0 : re.averagetargetduration) || O, Ae = void 0;
|
|
9386
|
+
K <= S ? Ae = h * r : Ae = v * r;
|
|
9387
|
+
var xe = E[K].maxBitrate, we = this.getTimeToLoadFrag(M, Ae, xe * ne, re === void 0);
|
|
9388
|
+
if (B.trace("[abr] level:" + K + " adjustedbw-bitrate:" + Math.round(Ae - xe) + " avgDuration:" + ne.toFixed(1) + " maxFetchDuration:" + f.toFixed(1) + " fetchDuration:" + we.toFixed(1)), Ae > xe && // fragment fetchDuration unknown OR live stream OR fragment fetchDuration less than max allowed fetch duration, then this level matches
|
|
9389
9389
|
// we don't account for max Fetch Duration for live streams, this is to avoid switching down when near the edge of live sliding window ...
|
|
9390
9390
|
// special case to support startLevel = -1 (bitrateTest) on live streams : in that case we should not exit loop so that findBestLevel will return -1
|
|
9391
|
-
(
|
|
9391
|
+
(we === 0 || !Z(we) || x && !this.bitrateTestDelay || we < f))
|
|
9392
9392
|
return K;
|
|
9393
9393
|
}
|
|
9394
9394
|
return -1;
|
|
@@ -9580,16 +9580,16 @@ var sf = { exports: {} };
|
|
|
9580
9580
|
onComplete: function() {
|
|
9581
9581
|
var re = self.performance.now();
|
|
9582
9582
|
A.executeEnd = A.end = re, P.first === 0 && (P.first = re), O && O.first === 0 && (O.first = re);
|
|
9583
|
-
var ne = o.sourceBuffer,
|
|
9584
|
-
for (var
|
|
9585
|
-
|
|
9583
|
+
var ne = o.sourceBuffer, Ae = {};
|
|
9584
|
+
for (var xe in ne)
|
|
9585
|
+
Ae[xe] = Li.getBuffered(ne[xe]);
|
|
9586
9586
|
o.appendError = 0, o.hls.trigger(L.BUFFER_APPENDED, {
|
|
9587
9587
|
type: y,
|
|
9588
9588
|
frag: b,
|
|
9589
9589
|
part: S,
|
|
9590
9590
|
chunkMeta: E,
|
|
9591
9591
|
parent: b.type,
|
|
9592
|
-
timeRanges:
|
|
9592
|
+
timeRanges: Ae
|
|
9593
9593
|
});
|
|
9594
9594
|
},
|
|
9595
9595
|
onError: function(re) {
|
|
@@ -10548,10 +10548,10 @@ var sf = { exports: {} };
|
|
|
10548
10548
|
this.audioTrackController = this.createController(r.audioTrackController, fe);
|
|
10549
10549
|
var ne = r.audioStreamController;
|
|
10550
10550
|
ne && fe.push(new ne(this, D, j)), this.subtitleTrackController = this.createController(r.subtitleTrackController, fe);
|
|
10551
|
-
var
|
|
10552
|
-
|
|
10553
|
-
var
|
|
10554
|
-
typeof
|
|
10551
|
+
var Ae = r.subtitleStreamController;
|
|
10552
|
+
Ae && fe.push(new Ae(this, D, j)), this.createController(r.timelineController, re), j.emeController = this.emeController = this.createController(r.emeController, re), this.cmcdController = this.createController(r.cmcdController, re), this.latencyController = this.createController(vr, re), this.coreComponents = re, fe.push(m);
|
|
10553
|
+
var xe = m.onErrorOut;
|
|
10554
|
+
typeof xe == "function" && this.on(L.ERROR, xe, m);
|
|
10555
10555
|
}
|
|
10556
10556
|
var c = d.prototype;
|
|
10557
10557
|
return c.createController = function(r, s) {
|
|
@@ -13700,7 +13700,7 @@ function bc(t) {
|
|
|
13700
13700
|
let k = {
|
|
13701
13701
|
onEvent: (
|
|
13702
13702
|
/*onEvent*/
|
|
13703
|
-
t[
|
|
13703
|
+
t[8]
|
|
13704
13704
|
),
|
|
13705
13705
|
vastUrl: (
|
|
13706
13706
|
/*vastUrl*/
|
|
@@ -13708,19 +13708,19 @@ function bc(t) {
|
|
|
13708
13708
|
),
|
|
13709
13709
|
advertConsent: (
|
|
13710
13710
|
/*advertConsent*/
|
|
13711
|
-
t[
|
|
13711
|
+
t[5]
|
|
13712
13712
|
),
|
|
13713
13713
|
video: (
|
|
13714
13714
|
/*video*/
|
|
13715
|
-
t[
|
|
13715
|
+
t[2]
|
|
13716
13716
|
)
|
|
13717
13717
|
};
|
|
13718
13718
|
return (
|
|
13719
13719
|
/*playbackState*/
|
|
13720
13720
|
t[0] !== void 0 && (k.playbackState = /*playbackState*/
|
|
13721
13721
|
t[0]), /*duration*/
|
|
13722
|
-
t[
|
|
13723
|
-
t[
|
|
13722
|
+
t[3] !== void 0 && (k.duration = /*duration*/
|
|
13723
|
+
t[3]), /*currentTime*/
|
|
13724
13724
|
t[1] !== void 0 && (k.currentTime = /*currentTime*/
|
|
13725
13725
|
t[1]), e = new yv({ props: k }), Fe.push(() => Ze(e, "playbackState", g)), Fe.push(() => Ze(e, "duration", p)), Fe.push(() => Ze(e, "currentTime", _)), {
|
|
13726
13726
|
c() {
|
|
@@ -13732,18 +13732,18 @@ function bc(t) {
|
|
|
13732
13732
|
p(T, C) {
|
|
13733
13733
|
const U = {};
|
|
13734
13734
|
C[0] & /*onEvent*/
|
|
13735
|
-
|
|
13736
|
-
T[
|
|
13735
|
+
256 && (U.onEvent = /*onEvent*/
|
|
13736
|
+
T[8]), C[0] & /*vastUrl*/
|
|
13737
13737
|
2048 && (U.vastUrl = /*vastUrl*/
|
|
13738
13738
|
T[11]), C[0] & /*advertConsent*/
|
|
13739
|
-
|
|
13740
|
-
T[
|
|
13741
|
-
|
|
13742
|
-
T[
|
|
13739
|
+
32 && (U.advertConsent = /*advertConsent*/
|
|
13740
|
+
T[5]), C[0] & /*video*/
|
|
13741
|
+
4 && (U.video = /*video*/
|
|
13742
|
+
T[2]), !i && C[0] & /*playbackState*/
|
|
13743
13743
|
1 && (i = !0, U.playbackState = /*playbackState*/
|
|
13744
13744
|
T[0], Xe(() => i = !1)), !n && C[0] & /*duration*/
|
|
13745
|
-
|
|
13746
|
-
T[
|
|
13745
|
+
8 && (n = !0, U.duration = /*duration*/
|
|
13746
|
+
T[3], Xe(() => n = !1)), !a && C[0] & /*currentTime*/
|
|
13747
13747
|
2 && (a = !0, U.currentTime = /*currentTime*/
|
|
13748
13748
|
T[1], Xe(() => a = !1)), e.$set(U);
|
|
13749
13749
|
},
|
|
@@ -13811,7 +13811,7 @@ function O1(t) {
|
|
|
13811
13811
|
N[te].c();
|
|
13812
13812
|
p = Pe(), W && W.c(), _ = Pe(), le && le.c(), xi(n, "poster", a = /*poster*/
|
|
13813
13813
|
t[12] || ""), xi(n, "preload", "metadata"), n.playsInline = !0, xi(n, "disablepictureinpicture", ""), xi(n, "class", "svelte-fdymel"), /*duration*/
|
|
13814
|
-
t[
|
|
13814
|
+
t[3] === void 0 && Wt(() => (
|
|
13815
13815
|
/*video_1_durationchange_handler*/
|
|
13816
13816
|
t[43].call(n)
|
|
13817
13817
|
)), xi(i, "class", "inner svelte-fdymel"), xi(e, "class", k = "media-element " + /*position*/
|
|
@@ -13829,12 +13829,12 @@ function O1(t) {
|
|
|
13829
13829
|
e,
|
|
13830
13830
|
"behind-static",
|
|
13831
13831
|
/*videoBehindStatic*/
|
|
13832
|
-
t[
|
|
13832
|
+
t[7]
|
|
13833
13833
|
), je(
|
|
13834
13834
|
e,
|
|
13835
13835
|
"behind-widget",
|
|
13836
13836
|
/*videoBehindWidget*/
|
|
13837
|
-
t[
|
|
13837
|
+
t[6]
|
|
13838
13838
|
);
|
|
13839
13839
|
},
|
|
13840
13840
|
m(te, ye) {
|
|
@@ -13843,9 +13843,9 @@ function O1(t) {
|
|
|
13843
13843
|
N[be] && N[be].m(n, null);
|
|
13844
13844
|
t[42](n), isNaN(
|
|
13845
13845
|
/*playbackRate*/
|
|
13846
|
-
t[
|
|
13846
|
+
t[4]
|
|
13847
13847
|
) || (n.playbackRate = /*playbackRate*/
|
|
13848
|
-
t[
|
|
13848
|
+
t[4]), I(i, p), W && W.m(i, null), I(i, _), le && le.m(i, null), T = !0, C || (U = [
|
|
13849
13849
|
he(
|
|
13850
13850
|
n,
|
|
13851
13851
|
"durationchange",
|
|
@@ -13925,11 +13925,11 @@ function O1(t) {
|
|
|
13925
13925
|
te[9]
|
|
13926
13926
|
) && (n.currentTime = /*time*/
|
|
13927
13927
|
te[9]), l = !1, ye[0] & /*playbackRate*/
|
|
13928
|
-
|
|
13928
|
+
16 && !isNaN(
|
|
13929
13929
|
/*playbackRate*/
|
|
13930
|
-
te[
|
|
13930
|
+
te[4]
|
|
13931
13931
|
) && (n.playbackRate = /*playbackRate*/
|
|
13932
|
-
te[
|
|
13932
|
+
te[4]), /*vastUrl*/
|
|
13933
13933
|
te[11] ? W ? (W.p(te, ye), ye[0] & /*vastUrl*/
|
|
13934
13934
|
2048 && $(W, 1)) : (W = bc(te), W.c(), $(W, 1), W.m(i, _)) : W && (Rt(), ae(W, 1, 1, () => {
|
|
13935
13935
|
W = null;
|
|
@@ -13949,17 +13949,17 @@ function O1(t) {
|
|
|
13949
13949
|
/*timeout*/
|
|
13950
13950
|
te[13]
|
|
13951
13951
|
), (!T || ye[0] & /*position, videoBehindStatic*/
|
|
13952
|
-
|
|
13952
|
+
32896) && je(
|
|
13953
13953
|
e,
|
|
13954
13954
|
"behind-static",
|
|
13955
13955
|
/*videoBehindStatic*/
|
|
13956
|
-
te[
|
|
13956
|
+
te[7]
|
|
13957
13957
|
), (!T || ye[0] & /*position, videoBehindWidget*/
|
|
13958
|
-
|
|
13958
|
+
32832) && je(
|
|
13959
13959
|
e,
|
|
13960
13960
|
"behind-widget",
|
|
13961
13961
|
/*videoBehindWidget*/
|
|
13962
|
-
te[
|
|
13962
|
+
te[6]
|
|
13963
13963
|
);
|
|
13964
13964
|
},
|
|
13965
13965
|
i(te) {
|
|
@@ -13975,10 +13975,10 @@ function O1(t) {
|
|
|
13975
13975
|
}
|
|
13976
13976
|
function B1(t, e, i) {
|
|
13977
13977
|
let n, a, l, g, p, _, k, T, C, U, V, N, J, { content: W } = e, { contentIndex: le } = e, { introOrOutro: te } = e, { activeAdvert: ye } = e, { advertConsent: be } = e, { playbackState: de } = e, { duration: me } = e, { currentTime: Z } = e, { playbackRate: L } = e, { prevPercentage: oe } = e, { videoBehindWidget: z } = e, { videoBehindStatic: Ke } = e, { widgetPosition: Le } = e, { widgetWidth: Te } = e, { onEvent: Se = () => {
|
|
13978
|
-
} } = e, G, X = null, B, Ue, De = 0, q = 0, ge = Z;
|
|
13979
|
-
const at = (
|
|
13980
|
-
var
|
|
13981
|
-
return (
|
|
13978
|
+
} } = e, { video: G } = e, X = null, B, Ue, De = 0, q = 0, ge = Z;
|
|
13979
|
+
const at = (Ee) => i(9, De = Ee), Je = () => {
|
|
13980
|
+
var Ee;
|
|
13981
|
+
return (Ee = G == null ? void 0 : G.play()) == null ? void 0 : Ee.catch(_t);
|
|
13982
13982
|
}, St = () => {
|
|
13983
13983
|
Ue && clearTimeout(Ue), i(13, Ue = setTimeout(() => i(13, Ue = null), 500));
|
|
13984
13984
|
}, Oe = () => {
|
|
@@ -14006,12 +14006,12 @@ function B1(t, e, i) {
|
|
|
14006
14006
|
initiatedBy: "media"
|
|
14007
14007
|
}));
|
|
14008
14008
|
}, At = () => {
|
|
14009
|
-
const
|
|
14009
|
+
const Ee = I1(_, G);
|
|
14010
14010
|
Se(Ye({
|
|
14011
14011
|
type: "MediaLoaded",
|
|
14012
14012
|
description: "The media finished loading its first frame of data.",
|
|
14013
14013
|
initiatedBy: "media",
|
|
14014
|
-
loadedMedia:
|
|
14014
|
+
loadedMedia: Ee
|
|
14015
14015
|
}));
|
|
14016
14016
|
}, Kt = () => {
|
|
14017
14017
|
k || Se(Ye({
|
|
@@ -14034,16 +14034,16 @@ function B1(t, e, i) {
|
|
|
14034
14034
|
description: "The media's playback rate was updated.",
|
|
14035
14035
|
initiatedBy: "media"
|
|
14036
14036
|
}));
|
|
14037
|
-
}, _t = (
|
|
14038
|
-
if ((
|
|
14039
|
-
throw
|
|
14037
|
+
}, _t = (Ee) => {
|
|
14038
|
+
if ((Ee == null ? void 0 : Ee.name) !== "NotAllowedError")
|
|
14039
|
+
throw Ee;
|
|
14040
14040
|
Se(Ye({
|
|
14041
14041
|
type: "PlaybackNotAllowed",
|
|
14042
14042
|
description: "The media cannot play because there was no user event.",
|
|
14043
14043
|
initiatedBy: "media"
|
|
14044
14044
|
}));
|
|
14045
|
-
}, ft = (
|
|
14046
|
-
|
|
14045
|
+
}, ft = (Ee) => () => {
|
|
14046
|
+
Ee === _.length - 1 && Se(Ye({
|
|
14047
14047
|
type: "PlaybackErrored",
|
|
14048
14048
|
description: "The media failed to play.",
|
|
14049
14049
|
initiatedBy: "media",
|
|
@@ -14051,7 +14051,7 @@ function B1(t, e, i) {
|
|
|
14051
14051
|
mediaUrl: _[0].url,
|
|
14052
14052
|
errorMessage: "The video tag contains sources but none are playable."
|
|
14053
14053
|
}));
|
|
14054
|
-
}, Ot = (
|
|
14054
|
+
}, Ot = (Ee, Ct) => {
|
|
14055
14055
|
Ct.fatal && (X == null || X.destroy(), i(33, X = null), Se(Ye({
|
|
14056
14056
|
type: "PlaybackErrored",
|
|
14057
14057
|
description: "The media failed to play.",
|
|
@@ -14068,36 +14068,36 @@ function B1(t, e, i) {
|
|
|
14068
14068
|
}));
|
|
14069
14069
|
};
|
|
14070
14070
|
eu(() => {
|
|
14071
|
-
const
|
|
14071
|
+
const Ee = addEventListener("fullscreenchange", gt), Ct = addEventListener("webkitfullscreenchange", gt);
|
|
14072
14072
|
return () => {
|
|
14073
|
-
removeEventListener("fullscreenchange",
|
|
14073
|
+
removeEventListener("fullscreenchange", Ee), removeEventListener("fullscreenchange", Ct);
|
|
14074
14074
|
};
|
|
14075
14075
|
});
|
|
14076
|
-
function yt(
|
|
14077
|
-
Fe[
|
|
14078
|
-
G =
|
|
14076
|
+
function yt(Ee) {
|
|
14077
|
+
Fe[Ee ? "unshift" : "push"](() => {
|
|
14078
|
+
G = Ee, i(2, G);
|
|
14079
14079
|
});
|
|
14080
14080
|
}
|
|
14081
14081
|
function Yt() {
|
|
14082
|
-
me = this.duration, i(
|
|
14082
|
+
me = this.duration, i(3, me);
|
|
14083
14083
|
}
|
|
14084
14084
|
function Pt() {
|
|
14085
14085
|
De = this.currentTime, i(9, De);
|
|
14086
14086
|
}
|
|
14087
14087
|
function qt() {
|
|
14088
|
-
L = this.playbackRate, i(
|
|
14088
|
+
L = this.playbackRate, i(4, L);
|
|
14089
14089
|
}
|
|
14090
|
-
function rt(
|
|
14091
|
-
de =
|
|
14090
|
+
function rt(Ee) {
|
|
14091
|
+
de = Ee, i(0, de);
|
|
14092
14092
|
}
|
|
14093
|
-
function ot(
|
|
14094
|
-
me =
|
|
14093
|
+
function ot(Ee) {
|
|
14094
|
+
me = Ee, i(3, me);
|
|
14095
14095
|
}
|
|
14096
|
-
function si(
|
|
14097
|
-
Z =
|
|
14096
|
+
function si(Ee) {
|
|
14097
|
+
Z = Ee, i(1, Z), i(9, De);
|
|
14098
14098
|
}
|
|
14099
|
-
return t.$$set = (
|
|
14100
|
-
"content" in
|
|
14099
|
+
return t.$$set = (Ee) => {
|
|
14100
|
+
"content" in Ee && i(27, W = Ee.content), "contentIndex" in Ee && i(28, le = Ee.contentIndex), "introOrOutro" in Ee && i(29, te = Ee.introOrOutro), "activeAdvert" in Ee && i(30, ye = Ee.activeAdvert), "advertConsent" in Ee && i(5, be = Ee.advertConsent), "playbackState" in Ee && i(0, de = Ee.playbackState), "duration" in Ee && i(3, me = Ee.duration), "currentTime" in Ee && i(1, Z = Ee.currentTime), "playbackRate" in Ee && i(4, L = Ee.playbackRate), "prevPercentage" in Ee && i(26, oe = Ee.prevPercentage), "videoBehindWidget" in Ee && i(6, z = Ee.videoBehindWidget), "videoBehindStatic" in Ee && i(7, Ke = Ee.videoBehindStatic), "widgetPosition" in Ee && i(31, Le = Ee.widgetPosition), "widgetWidth" in Ee && i(32, Te = Ee.widgetWidth), "onEvent" in Ee && i(8, Se = Ee.onEvent), "video" in Ee && i(2, G = Ee.video);
|
|
14101
14101
|
}, t.$$.update = () => {
|
|
14102
14102
|
t.$$.dirty[0] & /*time*/
|
|
14103
14103
|
512 && i(1, Z = De), t.$$.dirty[0] & /*activeAdvert, currentTime*/
|
|
@@ -14112,17 +14112,17 @@ function B1(t, e, i) {
|
|
|
14112
14112
|
1610612736 && !te && i(41, p = ye), t.$$.dirty[0] & /*introOrOutro, activeAdvert*/
|
|
14113
14113
|
1610612736 | t.$$.dirty[1] & /*contentItem*/
|
|
14114
14114
|
256 && !te && !ye && i(41, p = n), t.$$.dirty[0] & /*video*/
|
|
14115
|
-
|
|
14115
|
+
4 | t.$$.dirty[1] & /*mediaObject*/
|
|
14116
14116
|
1024 && i(10, _ = bv(p, G)), t.$$.dirty[0] & /*sources, video*/
|
|
14117
|
-
|
|
14117
|
+
1028 | t.$$.dirty[1] & /*hls, isFirstLoad*/
|
|
14118
14118
|
516 && i(33, X = Tv(_[0], G, X, Ot, Je, l && ge)), t.$$.dirty[0] & /*activeAdvert*/
|
|
14119
14119
|
1073741824 && i(11, k = ye == null ? void 0 : ye.vastUrl), t.$$.dirty[0] & /*activeAdvert*/
|
|
14120
14120
|
1073741824 && i(16, T = ye == null ? void 0 : ye.clickThroughUrl), t.$$.dirty[0] & /*sources, vastUrl, playbackState, video*/
|
|
14121
|
-
|
|
14121
|
+
3077 && !k && (de === "playing" ? Je() : G == null || G.pause()), t.$$.dirty[0] & /*sources*/
|
|
14122
14122
|
1024 && i(26, oe = 0), t.$$.dirty[0] & /*videoBehindWidget*/
|
|
14123
|
-
|
|
14123
|
+
64 | t.$$.dirty[1] & /*widgetPosition*/
|
|
14124
14124
|
1 && i(15, C = z && Le !== "auto" ? `fixed-${Le}` : ""), t.$$.dirty[0] & /*videoBehindWidget*/
|
|
14125
|
-
|
|
14125
|
+
64 | t.$$.dirty[1] & /*widgetWidth*/
|
|
14126
14126
|
2 && i(14, U = z ? `width: ${Te}` : ""), t.$$.dirty[0] & /*playbackState, activeAdvert*/
|
|
14127
14127
|
1073741825 | t.$$.dirty[1] & /*contentItem*/
|
|
14128
14128
|
256 && i(38, V = de !== "stopped" && ((ye == null ? void 0 : ye.imageUrl) || (n == null ? void 0 : n.imageUrl))), t.$$.dirty[1] & /*poster_*/
|
|
@@ -14131,17 +14131,17 @@ function B1(t, e, i) {
|
|
|
14131
14131
|
1610612738 | t.$$.dirty[1] & /*atTheStart, segments*/
|
|
14132
14132
|
96 && i(35, J = te || ye || N ? -1 : nu(a, Z)), t.$$.dirty[1] & /*segmentIndex*/
|
|
14133
14133
|
16 && xt(), t.$$.dirty[0] & /*videoBehindWidget*/
|
|
14134
|
-
|
|
14134
|
+
64 && z && St();
|
|
14135
14135
|
}, [
|
|
14136
14136
|
de,
|
|
14137
14137
|
Z,
|
|
14138
|
+
G,
|
|
14138
14139
|
me,
|
|
14139
14140
|
L,
|
|
14140
14141
|
be,
|
|
14141
14142
|
z,
|
|
14142
14143
|
Ke,
|
|
14143
14144
|
Se,
|
|
14144
|
-
G,
|
|
14145
14145
|
De,
|
|
14146
14146
|
_,
|
|
14147
14147
|
k,
|
|
@@ -14197,17 +14197,18 @@ class M1 extends it {
|
|
|
14197
14197
|
contentIndex: 28,
|
|
14198
14198
|
introOrOutro: 29,
|
|
14199
14199
|
activeAdvert: 30,
|
|
14200
|
-
advertConsent:
|
|
14200
|
+
advertConsent: 5,
|
|
14201
14201
|
playbackState: 0,
|
|
14202
|
-
duration:
|
|
14202
|
+
duration: 3,
|
|
14203
14203
|
currentTime: 1,
|
|
14204
|
-
playbackRate:
|
|
14204
|
+
playbackRate: 4,
|
|
14205
14205
|
prevPercentage: 26,
|
|
14206
|
-
videoBehindWidget:
|
|
14207
|
-
videoBehindStatic:
|
|
14206
|
+
videoBehindWidget: 6,
|
|
14207
|
+
videoBehindStatic: 7,
|
|
14208
14208
|
widgetPosition: 31,
|
|
14209
14209
|
widgetWidth: 32,
|
|
14210
|
-
onEvent:
|
|
14210
|
+
onEvent: 8,
|
|
14211
|
+
video: 2
|
|
14211
14212
|
},
|
|
14212
14213
|
null,
|
|
14213
14214
|
[-1, -1]
|
|
@@ -14238,7 +14239,7 @@ class M1 extends it {
|
|
|
14238
14239
|
this.$$set({ activeAdvert: e }), w();
|
|
14239
14240
|
}
|
|
14240
14241
|
get advertConsent() {
|
|
14241
|
-
return this.$$.ctx[
|
|
14242
|
+
return this.$$.ctx[5];
|
|
14242
14243
|
}
|
|
14243
14244
|
set advertConsent(e) {
|
|
14244
14245
|
this.$$set({ advertConsent: e }), w();
|
|
@@ -14250,7 +14251,7 @@ class M1 extends it {
|
|
|
14250
14251
|
this.$$set({ playbackState: e }), w();
|
|
14251
14252
|
}
|
|
14252
14253
|
get duration() {
|
|
14253
|
-
return this.$$.ctx[
|
|
14254
|
+
return this.$$.ctx[3];
|
|
14254
14255
|
}
|
|
14255
14256
|
set duration(e) {
|
|
14256
14257
|
this.$$set({ duration: e }), w();
|
|
@@ -14262,7 +14263,7 @@ class M1 extends it {
|
|
|
14262
14263
|
this.$$set({ currentTime: e }), w();
|
|
14263
14264
|
}
|
|
14264
14265
|
get playbackRate() {
|
|
14265
|
-
return this.$$.ctx[
|
|
14266
|
+
return this.$$.ctx[4];
|
|
14266
14267
|
}
|
|
14267
14268
|
set playbackRate(e) {
|
|
14268
14269
|
this.$$set({ playbackRate: e }), w();
|
|
@@ -14274,13 +14275,13 @@ class M1 extends it {
|
|
|
14274
14275
|
this.$$set({ prevPercentage: e }), w();
|
|
14275
14276
|
}
|
|
14276
14277
|
get videoBehindWidget() {
|
|
14277
|
-
return this.$$.ctx[
|
|
14278
|
+
return this.$$.ctx[6];
|
|
14278
14279
|
}
|
|
14279
14280
|
set videoBehindWidget(e) {
|
|
14280
14281
|
this.$$set({ videoBehindWidget: e }), w();
|
|
14281
14282
|
}
|
|
14282
14283
|
get videoBehindStatic() {
|
|
14283
|
-
return this.$$.ctx[
|
|
14284
|
+
return this.$$.ctx[7];
|
|
14284
14285
|
}
|
|
14285
14286
|
set videoBehindStatic(e) {
|
|
14286
14287
|
this.$$set({ videoBehindStatic: e }), w();
|
|
@@ -14298,11 +14299,17 @@ class M1 extends it {
|
|
|
14298
14299
|
this.$$set({ widgetWidth: e }), w();
|
|
14299
14300
|
}
|
|
14300
14301
|
get onEvent() {
|
|
14301
|
-
return this.$$.ctx[
|
|
14302
|
+
return this.$$.ctx[8];
|
|
14302
14303
|
}
|
|
14303
14304
|
set onEvent(e) {
|
|
14304
14305
|
this.$$set({ onEvent: e }), w();
|
|
14305
14306
|
}
|
|
14307
|
+
get video() {
|
|
14308
|
+
return this.$$.ctx[2];
|
|
14309
|
+
}
|
|
14310
|
+
set video(e) {
|
|
14311
|
+
this.$$set({ video: e }), w();
|
|
14312
|
+
}
|
|
14306
14313
|
}
|
|
14307
14314
|
function N1(t) {
|
|
14308
14315
|
const e = t - 1;
|
|
@@ -21563,7 +21570,7 @@ function hT(t) {
|
|
|
21563
21570
|
};
|
|
21564
21571
|
}
|
|
21565
21572
|
function gT(t, e, i) {
|
|
21566
|
-
let n, a, l, g, p, _, k, T, C, U, V, N, J, W, le, te, ye, be, de, me, Z, L, oe, z, Ke, Le, Te, Se, G, X, B, Ue, De, q, ge, at, Je, St, Oe, { playerStyle: ke = "standard" } = e, { callToAction: Qe = void 0 } = e, { skipButtonStyle: Et = "auto" } = e, { playlistStyle: At = "auto-5-4" } = e, { playlistToggle: Kt = "auto" } = e, { downloadFormats: xt = [] } = e, { playerTitle: jt = void 0 } = e, { fixedPosition: _t = void 0 } = e, { fixedWidth: ft = "auto" } = e, { content: Ot = [] } = e, { contentIndex: gt = 0 } = e, { duration: yt = 0 } = e, { currentTime: Yt = 0 } = e, { playbackState: Pt = "stopped" } = e, { playbackRate: qt = 1 } = e, { activeAdvert: rt = void 0 } = e, { persistentAdvert: ot = void 0 } = e, { textColor: si = "#111" } = e, { backgroundColor:
|
|
21573
|
+
let n, a, l, g, p, _, k, T, C, U, V, N, J, W, le, te, ye, be, de, me, Z, L, oe, z, Ke, Le, Te, Se, G, X, B, Ue, De, q, ge, at, Je, St, Oe, { playerStyle: ke = "standard" } = e, { callToAction: Qe = void 0 } = e, { skipButtonStyle: Et = "auto" } = e, { playlistStyle: At = "auto-5-4" } = e, { playlistToggle: Kt = "auto" } = e, { downloadFormats: xt = [] } = e, { playerTitle: jt = void 0 } = e, { fixedPosition: _t = void 0 } = e, { fixedWidth: ft = "auto" } = e, { content: Ot = [] } = e, { contentIndex: gt = 0 } = e, { duration: yt = 0 } = e, { currentTime: Yt = 0 } = e, { playbackState: Pt = "stopped" } = e, { playbackRate: qt = 1 } = e, { activeAdvert: rt = void 0 } = e, { persistentAdvert: ot = void 0 } = e, { textColor: si = "#111" } = e, { backgroundColor: Ee = "#f5f5f5" } = e, { iconColor: Ct = "black" } = e, { logoIconEnabled: Bt = !0 } = e, { onEvent: Lt = () => {
|
|
21567
21574
|
} } = e, { videoIsBehind: Mt = !1 } = e, { isVisible: Ft = void 0 } = e, { relativeY: li = void 0 } = e, { absoluteY: Gt = void 0 } = e, zt, fi, Nt;
|
|
21568
21575
|
const ut = () => {
|
|
21569
21576
|
Nt && clearTimeout(Nt), i(34, Nt = setTimeout(() => i(34, Nt = null), 500));
|
|
@@ -21590,7 +21597,7 @@ function gT(t, e, i) {
|
|
|
21590
21597
|
zt = this.clientWidth, i(17, zt);
|
|
21591
21598
|
}
|
|
21592
21599
|
return t.$$set = (ve) => {
|
|
21593
|
-
"playerStyle" in ve && i(3, ke = ve.playerStyle), "callToAction" in ve && i(4, Qe = ve.callToAction), "skipButtonStyle" in ve && i(58, Et = ve.skipButtonStyle), "playlistStyle" in ve && i(5, At = ve.playlistStyle), "playlistToggle" in ve && i(59, Kt = ve.playlistToggle), "downloadFormats" in ve && i(6, xt = ve.downloadFormats), "playerTitle" in ve && i(7, jt = ve.playerTitle), "fixedPosition" in ve && i(8, _t = ve.fixedPosition), "fixedWidth" in ve && i(60, ft = ve.fixedWidth), "content" in ve && i(9, Ot = ve.content), "contentIndex" in ve && i(10, gt = ve.contentIndex), "duration" in ve && i(11, yt = ve.duration), "currentTime" in ve && i(12, Yt = ve.currentTime), "playbackState" in ve && i(61, Pt = ve.playbackState), "playbackRate" in ve && i(13, qt = ve.playbackRate), "activeAdvert" in ve && i(14, rt = ve.activeAdvert), "persistentAdvert" in ve && i(62, ot = ve.persistentAdvert), "textColor" in ve && i(63, si = ve.textColor), "backgroundColor" in ve && i(64,
|
|
21600
|
+
"playerStyle" in ve && i(3, ke = ve.playerStyle), "callToAction" in ve && i(4, Qe = ve.callToAction), "skipButtonStyle" in ve && i(58, Et = ve.skipButtonStyle), "playlistStyle" in ve && i(5, At = ve.playlistStyle), "playlistToggle" in ve && i(59, Kt = ve.playlistToggle), "downloadFormats" in ve && i(6, xt = ve.downloadFormats), "playerTitle" in ve && i(7, jt = ve.playerTitle), "fixedPosition" in ve && i(8, _t = ve.fixedPosition), "fixedWidth" in ve && i(60, ft = ve.fixedWidth), "content" in ve && i(9, Ot = ve.content), "contentIndex" in ve && i(10, gt = ve.contentIndex), "duration" in ve && i(11, yt = ve.duration), "currentTime" in ve && i(12, Yt = ve.currentTime), "playbackState" in ve && i(61, Pt = ve.playbackState), "playbackRate" in ve && i(13, qt = ve.playbackRate), "activeAdvert" in ve && i(14, rt = ve.activeAdvert), "persistentAdvert" in ve && i(62, ot = ve.persistentAdvert), "textColor" in ve && i(63, si = ve.textColor), "backgroundColor" in ve && i(64, Ee = ve.backgroundColor), "iconColor" in ve && i(65, Ct = ve.iconColor), "logoIconEnabled" in ve && i(66, Bt = ve.logoIconEnabled), "onEvent" in ve && i(15, Lt = ve.onEvent), "videoIsBehind" in ve && i(16, Mt = ve.videoIsBehind), "isVisible" in ve && i(0, Ft = ve.isVisible), "relativeY" in ve && i(1, li = ve.relativeY), "absoluteY" in ve && i(2, Gt = ve.absoluteY);
|
|
21594
21601
|
}, t.$$.update = () => {
|
|
21595
21602
|
t.$$.dirty[0] & /*playerStyle*/
|
|
21596
21603
|
8 && i(22, n = ke === "small"), t.$$.dirty[0] & /*playerStyle*/
|
|
@@ -21609,7 +21616,7 @@ function gT(t, e, i) {
|
|
|
21609
21616
|
33570816 | t.$$.dirty[2] & /*textColor*/
|
|
21610
21617
|
2 && i(52, J = T && (rt == null ? void 0 : rt.textColor) || si), t.$$.dirty[0] & /*isAdvert, activeAdvert*/
|
|
21611
21618
|
33570816 | t.$$.dirty[2] & /*backgroundColor*/
|
|
21612
|
-
4 && i(51, W = T && (rt == null ? void 0 : rt.backgroundColor) ||
|
|
21619
|
+
4 && i(51, W = T && (rt == null ? void 0 : rt.backgroundColor) || Ee), t.$$.dirty[0] & /*isAdvert, activeAdvert*/
|
|
21613
21620
|
33570816 | t.$$.dirty[2] & /*iconColor*/
|
|
21614
21621
|
8 && i(32, le = T && (rt == null ? void 0 : rt.iconColor) || Ct), t.$$.dirty[1] & /*skipButtonStyle*/
|
|
21615
21622
|
134217728 | t.$$.dirty[2] & /*isPlaylist*/
|
|
@@ -21723,7 +21730,7 @@ function gT(t, e, i) {
|
|
|
21723
21730
|
Pt,
|
|
21724
21731
|
ot,
|
|
21725
21732
|
si,
|
|
21726
|
-
|
|
21733
|
+
Ee,
|
|
21727
21734
|
Ct,
|
|
21728
21735
|
Bt,
|
|
21729
21736
|
C,
|
|
@@ -22080,7 +22087,7 @@ function TT(t) {
|
|
|
22080
22087
|
};
|
|
22081
22088
|
}
|
|
22082
22089
|
function Jc(t) {
|
|
22083
|
-
let e, i, n, a, l, g, p, _, k, T, C, U, V, N, J, W, le, te, ye, be, de, me, Z, L, oe, z, Ke, Le, Te, Se, G, X, B, Ue, De, q, ge, at, Je, St, Oe, ke, Qe, Et, At, Kt, xt, jt, _t, ft, Ot, gt, yt, Yt, Pt, qt, rt, ot, si,
|
|
22090
|
+
let e, i, n, a, l, g, p, _, k, T, C, U, V, N, J, W, le, te, ye, be, de, me, Z, L, oe, z, Ke, Le, Te, Se, G, X, B, Ue, De, q, ge, at, Je, St, Oe, ke, Qe, Et, At, Kt, xt, jt, _t, ft, Ot, gt, yt, Yt, Pt, qt, rt, ot, si, Ee, Ct, Bt, Lt, Mt, Ft, li, Gt, zt, fi, Nt, ut, ui, Be, ci, Xt, qe, hi, ve, Zt, di, gi, Ei, vi, bi, Ne, Y, Q, Me, dr, Di, Fr, ri, fr, Yi, qi, Oi, rr, Sr, wi, Pi, nr, kr, Bi, _i, Mi, Ci = (
|
|
22084
22091
|
/*content*/
|
|
22085
22092
|
t[39]
|
|
22086
22093
|
), Jt = [];
|
|
@@ -22120,7 +22127,7 @@ function Jc(t) {
|
|
|
22120
22127
|
`), ot = F("select"), si = F("option"), si.textContent = "-1 (none)";
|
|
22121
22128
|
for (let H = 0; H < ei.length; H += 1)
|
|
22122
22129
|
ei[H].c();
|
|
22123
|
-
|
|
22130
|
+
Ee = Pe(), Ct = F("div"), Bt = Ie(`duration:
|
|
22124
22131
|
`), Lt = F("input"), Mt = Pe(), Ft = F("div"), li = Ie(`currentTime:
|
|
22125
22132
|
`), Gt = F("input"), zt = Pe(), fi = F("div"), Nt = Ie(`playbackRate:
|
|
22126
22133
|
`), ut = F("input"), ui = Pe(), Be = F("div"), ci = Ie(`widgetTarget:
|
|
@@ -22227,7 +22234,7 @@ function Jc(t) {
|
|
|
22227
22234
|
/*persistentIndex*/
|
|
22228
22235
|
t[17],
|
|
22229
22236
|
!0
|
|
22230
|
-
), se(H,
|
|
22237
|
+
), se(H, Ee, pe), se(H, Ct, pe), I(Ct, Bt), I(Ct, Lt), kt(
|
|
22231
22238
|
Lt,
|
|
22232
22239
|
/*duration*/
|
|
22233
22240
|
t[18]
|
|
@@ -22543,7 +22550,7 @@ function Jc(t) {
|
|
|
22543
22550
|
);
|
|
22544
22551
|
},
|
|
22545
22552
|
d(H) {
|
|
22546
|
-
H && ie(e), H && ie(i), H && ie(n), H && ie(a), H && ie(l), H && ie(g), H && ie(p), H && ie(_), H && ie(C), H && ie(U), H && ie(J), H && ie(W), H && ie(ye), H && ie(be), H && ie(Z), H && ie(L), H && ie(Ke), H && ie(Le), H && ie(B), H && ie(Ue), H && ie(St), H && ie(Oe), Vn(Jt, H), H && ie(Et), H && ie(At), Vn(Qt, H), H && ie(_t), H && ie(ft), H && ie(Pt), H && ie(qt), Vn(ei, H), H && ie(
|
|
22553
|
+
H && ie(e), H && ie(i), H && ie(n), H && ie(a), H && ie(l), H && ie(g), H && ie(p), H && ie(_), H && ie(C), H && ie(U), H && ie(J), H && ie(W), H && ie(ye), H && ie(be), H && ie(Z), H && ie(L), H && ie(Ke), H && ie(Le), H && ie(B), H && ie(Ue), H && ie(St), H && ie(Oe), Vn(Jt, H), H && ie(Et), H && ie(At), Vn(Qt, H), H && ie(_t), H && ie(ft), H && ie(Pt), H && ie(qt), Vn(ei, H), H && ie(Ee), H && ie(Ct), H && ie(Mt), H && ie(Ft), H && ie(zt), H && ie(fi), H && ie(ui), H && ie(Be), H && ie(qe), H && ie(hi), H && ie(Ei), H && ie(vi), H && ie(dr), H && ie(Di), H && ie(Oi), H && ie(rr), H && ie(Pi), H && ie(nr), _i = !1, Ht(Mi);
|
|
22547
22554
|
}
|
|
22548
22555
|
};
|
|
22549
22556
|
}
|
|
@@ -22666,7 +22673,7 @@ function AT(t) {
|
|
|
22666
22673
|
};
|
|
22667
22674
|
}
|
|
22668
22675
|
function xT(t) {
|
|
22669
|
-
let e, i, n, a, l, g, p, _, k, T, C, U, V, N, J, W, le, te, ye, be, de, me, Z, L, oe, z, Ke, Le, Te, Se, G, X, B, Ue, De, q, ge, at, Je, St, Oe, ke, Qe, Et, At, Kt, xt, jt, _t, ft, Ot, gt, yt, Yt, Pt, qt, rt, ot, si,
|
|
22676
|
+
let e, i, n, a, l, g, p, _, k, T, C, U, V, N, J, W, le, te, ye, be, de, me, Z, L, oe, z, Ke, Le, Te, Se, G, X, B, Ue, De, q, ge, at, Je, St, Oe, ke, Qe, Et, At, Kt, xt, jt, _t, ft, Ot, gt, yt, Yt, Pt, qt, rt, ot, si, Ee, Ct, Bt, Lt, Mt, Ft, li, Gt, zt, fi, Nt, ut, ui, Be, ci, Xt, qe, hi, ve, Zt, di, gi, Ei, vi, bi, Ne, Y, Q, Me, dr, Di, Fr, ri, fr, Yi, qi, Oi, rr, Sr, wi, Pi, nr, kr, Bi, _i, Mi, Ci, Jt, Ni, Qt, hr, ei, H, pe, _e, st, Pr, Tr, Ur, us, tn, cs, Fi, Vr, Si, Wr, Er, gr, En, rn, ds, vr, An, Cr, fs, zn, Hn, xn, Lr = (
|
|
22670
22677
|
/*adverts*/
|
|
22671
22678
|
t[41]
|
|
22672
22679
|
), Ai = [];
|
|
@@ -22701,7 +22708,7 @@ function xT(t) {
|
|
|
22701
22708
|
`), rt = F("select"), ot = F("option"), ot.textContent = "-1 (none)";
|
|
22702
22709
|
for (let We = 0; We < Ai.length; We += 1)
|
|
22703
22710
|
Ai[We].c();
|
|
22704
|
-
si = Pe(),
|
|
22711
|
+
si = Pe(), Ee = F("div"), Ct = Ie(`widgetStyle:
|
|
22705
22712
|
`), Bt = F("select"), Lt = F("option"), Lt.textContent = "small", Mt = F("option"), Mt.textContent = "standard", Ft = F("option"), Ft.textContent = "large", li = F("option"), li.textContent = "video", Gt = Pe(), zt = F("div"), fi = Ie(`widgetPosition:
|
|
22706
22713
|
`), Nt = F("select"), ut = F("option"), ut.textContent = "auto", ui = F("option"), ui.textContent = "left", Be = F("option"), Be.textContent = "center", ci = F("option"), ci.textContent = "right", Xt = Pe(), qe = F("div"), hi = Ie(`widgetWidth:
|
|
22707
22714
|
`), ve = F("select"), Zt = F("option"), Zt.textContent = "auto", di = F("option"), di.textContent = "400px", gi = F("option"), gi.textContent = "30rem", Ei = F("option"), Ei.textContent = "fit-content", vi = F("option"), vi.textContent = "initial", bi = F("option"), bi.textContent = "0", Ne = Pe(), Y = F("div"), Q = Ie(`textColor:
|
|
@@ -22743,7 +22750,7 @@ function xT(t) {
|
|
|
22743
22750
|
t[22] === void 0 && Wt(() => (
|
|
22744
22751
|
/*select6_change_handler*/
|
|
22745
22752
|
t[51].call(Bt)
|
|
22746
|
-
)), ee(
|
|
22753
|
+
)), ee(Ee, "class", "control svelte-g76q0j"), ut.__value = "auto", ut.value = ut.__value, ui.__value = "left", ui.value = ui.__value, Be.__value = "center", Be.value = Be.__value, ci.__value = "right", ci.value = ci.__value, ee(Nt, "tabindex", -1), ee(Nt, "class", "svelte-g76q0j"), /*widgetPosition*/
|
|
22747
22754
|
t[23] === void 0 && Wt(() => (
|
|
22748
22755
|
/*select7_change_handler*/
|
|
22749
22756
|
t[52].call(Nt)
|
|
@@ -22811,7 +22818,7 @@ function xT(t) {
|
|
|
22811
22818
|
/*advertIndex*/
|
|
22812
22819
|
t[15],
|
|
22813
22820
|
!0
|
|
22814
|
-
), I(e, si), I(e,
|
|
22821
|
+
), I(e, si), I(e, Ee), I(Ee, Ct), I(Ee, Bt), I(Bt, Lt), I(Bt, Mt), I(Bt, Ft), I(Bt, li), lt(
|
|
22815
22822
|
Bt,
|
|
22816
22823
|
/*widgetStyle*/
|
|
22817
22824
|
t[22],
|
|
@@ -23151,7 +23158,7 @@ function wT(t, e, i) {
|
|
|
23151
23158
|
function si() {
|
|
23152
23159
|
Ue = this.value, i(28, Ue);
|
|
23153
23160
|
}
|
|
23154
|
-
function
|
|
23161
|
+
function Ee() {
|
|
23155
23162
|
De = this.value, i(29, De);
|
|
23156
23163
|
}
|
|
23157
23164
|
function Ct() {
|
|
@@ -23287,7 +23294,7 @@ function wT(t, e, i) {
|
|
|
23287
23294
|
rt,
|
|
23288
23295
|
ot,
|
|
23289
23296
|
si,
|
|
23290
|
-
|
|
23297
|
+
Ee,
|
|
23291
23298
|
Ct,
|
|
23292
23299
|
Bt,
|
|
23293
23300
|
Lt,
|
|
@@ -24920,7 +24927,7 @@ function f2(t) {
|
|
|
24920
24927
|
function si(Y) {
|
|
24921
24928
|
t[110](Y);
|
|
24922
24929
|
}
|
|
24923
|
-
function
|
|
24930
|
+
function Ee(Y) {
|
|
24924
24931
|
t[111](Y);
|
|
24925
24932
|
}
|
|
24926
24933
|
function Ct(Y) {
|
|
@@ -25092,7 +25099,7 @@ function f2(t) {
|
|
|
25092
25099
|
t[40] !== void 0 && (Ne.analyticsCustomUrl = /*analyticsCustomUrl*/
|
|
25093
25100
|
t[40]), /*analyticsTag*/
|
|
25094
25101
|
t[41] !== void 0 && (Ne.analyticsTag = /*analyticsTag*/
|
|
25095
|
-
t[41]), e = new PT({ props: Ne }), Fe.push(() => Ze(e, "projectId", Et)), Fe.push(() => Ze(e, "contentId", At)), Fe.push(() => Ze(e, "playlistId", Kt)), Fe.push(() => Ze(e, "sourceId", xt)), Fe.push(() => Ze(e, "sourceUrl", jt)), Fe.push(() => Ze(e, "showUserInterface", _t)), Fe.push(() => Ze(e, "playerStyle", ft)), Fe.push(() => Ze(e, "playerTitle", Ot)), Fe.push(() => Ze(e, "callToAction", gt)), Fe.push(() => Ze(e, "skipButtonStyle", yt)), Fe.push(() => Ze(e, "playlistStyle", Yt)), Fe.push(() => Ze(e, "playlistToggle", Pt)), Fe.push(() => Ze(e, "mediaSession", qt)), Fe.push(() => Ze(e, "contentIndex", rt)), Fe.push(() => Ze(e, "introsOutrosIndex", ot)), Fe.push(() => Ze(e, "advertIndex", si)), Fe.push(() => Ze(e, "persistentAdImage",
|
|
25102
|
+
t[41]), e = new PT({ props: Ne }), Fe.push(() => Ze(e, "projectId", Et)), Fe.push(() => Ze(e, "contentId", At)), Fe.push(() => Ze(e, "playlistId", Kt)), Fe.push(() => Ze(e, "sourceId", xt)), Fe.push(() => Ze(e, "sourceUrl", jt)), Fe.push(() => Ze(e, "showUserInterface", _t)), Fe.push(() => Ze(e, "playerStyle", ft)), Fe.push(() => Ze(e, "playerTitle", Ot)), Fe.push(() => Ze(e, "callToAction", gt)), Fe.push(() => Ze(e, "skipButtonStyle", yt)), Fe.push(() => Ze(e, "playlistStyle", Yt)), Fe.push(() => Ze(e, "playlistToggle", Pt)), Fe.push(() => Ze(e, "mediaSession", qt)), Fe.push(() => Ze(e, "contentIndex", rt)), Fe.push(() => Ze(e, "introsOutrosIndex", ot)), Fe.push(() => Ze(e, "advertIndex", si)), Fe.push(() => Ze(e, "persistentAdImage", Ee)), Fe.push(() => Ze(e, "persistentIndex", Ct)), Fe.push(() => Ze(e, "duration", Bt)), Fe.push(() => Ze(e, "currentTime", Lt)), Fe.push(() => Ze(e, "playbackState", Mt)), Fe.push(() => Ze(e, "playbackRate", Ft)), Fe.push(() => Ze(e, "widgetStyle", li)), Fe.push(() => Ze(e, "widgetPosition", Gt)), Fe.push(() => Ze(e, "widgetWidth", zt)), Fe.push(() => Ze(e, "widgetTarget", fi)), Fe.push(() => Ze(e, "textColor", Nt)), Fe.push(() => Ze(e, "backgroundColor", ut)), Fe.push(() => Ze(e, "iconColor", ui)), Fe.push(() => Ze(e, "highlightColor", Be)), Fe.push(() => Ze(e, "logoIconEnabled", ci)), Fe.push(() => Ze(e, "highlightSections", Xt)), Fe.push(() => Ze(e, "clickableSections", qe)), Fe.push(() => Ze(e, "segmentWidgetSections", hi)), Fe.push(() => Ze(e, "segmentWidgetPosition", ve)), Fe.push(() => Ze(e, "currentSegment", Zt)), Fe.push(() => Ze(e, "hoveredSegment", di)), Fe.push(() => Ze(e, "advertConsent", gi)), Fe.push(() => Ze(e, "analyticsConsent", Ei)), Fe.push(() => Ze(e, "analyticsCustomUrl", vi)), Fe.push(() => Ze(e, "analyticsTag", bi)), {
|
|
25096
25103
|
c() {
|
|
25097
25104
|
He(e.$$.fragment);
|
|
25098
25105
|
},
|
|
@@ -25512,7 +25519,7 @@ function h2(t) {
|
|
|
25512
25519
|
};
|
|
25513
25520
|
}
|
|
25514
25521
|
function g2(t, e, i) {
|
|
25515
|
-
let n, a, l, g, p, _, k, T, C, U, V, N, J, { playerApiUrl: W = "https://api.beyondwords.io/v1/projects/{id}/player" } = e, { projectId: le = void 0 } = e, { contentId: te = void 0 } = e, { playlistId: ye = void 0 } = e, { sourceId: be = void 0 } = e, { sourceUrl: de = void 0 } = e, { playlist: me = [] } = e, { showUserInterface: Z = !0 } = e, { playerStyle: L = "standard" } = e, { playerTitle: oe = void 0 } = e, { callToAction: z = void 0 } = e, { skipButtonStyle: Ke = "auto" } = e, { playlistStyle: Le = "auto-5-4" } = e, { playlistToggle: Te = "auto" } = e, { downloadFormats: Se = [] } = e, { mediaSession: G = "auto" } = e, { content: X = [] } = e, { contentIndex: B = 0 } = e, { introsOutros: Ue = [] } = e, { introsOutrosIndex: De = -1 } = e, { adverts: q = [] } = e, { advertIndex: ge = -1 } = e, { persistentAdImage: at = !1 } = e, { persistentIndex: Je = -1 } = e, { duration: St = 0 } = e, { currentTime: Oe = 0 } = e, { playbackState: ke = "stopped" } = e, { playbackRate: Qe = 1 } = e, { widgetStyle: Et = "standard" } = e, { widgetPosition: At = "auto" } = e, { widgetWidth: Kt = "auto" } = e, { widgetTarget: xt = void 0 } = e, { textColor: jt = "#111" } = e, { backgroundColor: _t = "#f5f5f5" } = e, { iconColor: ft = "rgba(0, 0, 0, 0.8)" } = e, { highlightColor: Ot = "#eee" } = e, { logoIconEnabled: gt = !0 } = e, { highlightSections: yt = "all" } = e, { clickableSections: Yt = "all" } = e, { segmentWidgetSections: Pt = "body" } = e, { segmentWidgetPosition: qt = "7-oclock" } = e, { currentSegment: rt = void 0 } = e, { hoveredSegment: ot = void 0 } = e, { loadedMedia: si = void 0 } = e, { advertConsent:
|
|
25522
|
+
let n, a, l, g, p, _, k, T, C, U, V, N, J, { playerApiUrl: W = "https://api.beyondwords.io/v1/projects/{id}/player" } = e, { projectId: le = void 0 } = e, { contentId: te = void 0 } = e, { playlistId: ye = void 0 } = e, { sourceId: be = void 0 } = e, { sourceUrl: de = void 0 } = e, { playlist: me = [] } = e, { showUserInterface: Z = !0 } = e, { playerStyle: L = "standard" } = e, { playerTitle: oe = void 0 } = e, { callToAction: z = void 0 } = e, { skipButtonStyle: Ke = "auto" } = e, { playlistStyle: Le = "auto-5-4" } = e, { playlistToggle: Te = "auto" } = e, { downloadFormats: Se = [] } = e, { mediaSession: G = "auto" } = e, { content: X = [] } = e, { contentIndex: B = 0 } = e, { introsOutros: Ue = [] } = e, { introsOutrosIndex: De = -1 } = e, { adverts: q = [] } = e, { advertIndex: ge = -1 } = e, { persistentAdImage: at = !1 } = e, { persistentIndex: Je = -1 } = e, { duration: St = 0 } = e, { currentTime: Oe = 0 } = e, { playbackState: ke = "stopped" } = e, { playbackRate: Qe = 1 } = e, { widgetStyle: Et = "standard" } = e, { widgetPosition: At = "auto" } = e, { widgetWidth: Kt = "auto" } = e, { widgetTarget: xt = void 0 } = e, { textColor: jt = "#111" } = e, { backgroundColor: _t = "#f5f5f5" } = e, { iconColor: ft = "rgba(0, 0, 0, 0.8)" } = e, { highlightColor: Ot = "#eee" } = e, { logoIconEnabled: gt = !0 } = e, { highlightSections: yt = "all" } = e, { clickableSections: Yt = "all" } = e, { segmentWidgetSections: Pt = "body" } = e, { segmentWidgetPosition: qt = "7-oclock" } = e, { currentSegment: rt = void 0 } = e, { hoveredSegment: ot = void 0 } = e, { loadedMedia: si = void 0 } = e, { advertConsent: Ee = "personalized" } = e, { analyticsConsent: Ct = "allowed" } = e, { analyticsCustomUrl: Bt = void 0 } = e, { analyticsTag: Lt = void 0 } = e, { writeToken: Mt = void 0 } = e, { captureErrors: Ft = !0 } = e, { onError: li = () => {
|
|
25516
25523
|
} } = e, { transitions: Gt = [] } = e, { controlPanel: zt = void 0 } = e;
|
|
25517
25524
|
const fi = (...R) => ve.addEventListener(...R), Nt = (...R) => ve.removeEventListener(...R);
|
|
25518
25525
|
let { initialProps: ut = {} } = e, { showBottomWidget: ui = !1 } = e, { showMediaSession: Be = !1 } = e, { isFullScreen: ci = !1 } = e, { mediaElement: Xt = void 0 } = e, { userInterface: qe = void 0 } = e, { widgetInterface: hi = void 0 } = e, { controller: ve = void 0 } = e, { analyticsUrl: Zt = void 0 } = e, { analyticsId: di = void 0 } = e, { listenSessionId: gi = void 0 } = e, { sessionCreatedAt: Ei = void 0 } = e, { isNewListen: vi = !1 } = e, { prevPercentage: bi = 0 } = e, { segmentWidgets: Ne = [] } = e, { segmentContainers: Y = new Bl((R) => i(46, Ne = R)) } = e, { segmentClickables: Q = new Ol() } = e, { segmentHighlights: Me = new Dl() } = e;
|
|
@@ -25664,7 +25671,7 @@ function g2(t, e, i) {
|
|
|
25664
25671
|
ot = R, i(20, ot);
|
|
25665
25672
|
}
|
|
25666
25673
|
function xn(R) {
|
|
25667
|
-
|
|
25674
|
+
Ee = R, i(38, Ee);
|
|
25668
25675
|
}
|
|
25669
25676
|
function Lr(R) {
|
|
25670
25677
|
Ct = R, i(39, Ct);
|
|
@@ -25676,7 +25683,7 @@ function g2(t, e, i) {
|
|
|
25676
25683
|
Lt = R, i(41, Lt);
|
|
25677
25684
|
}
|
|
25678
25685
|
return t.$$set = (R) => {
|
|
25679
|
-
"playerApiUrl" in R && i(63, W = R.playerApiUrl), "projectId" in R && i(0, le = R.projectId), "contentId" in R && i(1, te = R.contentId), "playlistId" in R && i(2, ye = R.playlistId), "sourceId" in R && i(3, be = R.sourceId), "sourceUrl" in R && i(4, de = R.sourceUrl), "playlist" in R && i(64, me = R.playlist), "showUserInterface" in R && i(5, Z = R.showUserInterface), "playerStyle" in R && i(6, L = R.playerStyle), "playerTitle" in R && i(22, oe = R.playerTitle), "callToAction" in R && i(23, z = R.callToAction), "skipButtonStyle" in R && i(24, Ke = R.skipButtonStyle), "playlistStyle" in R && i(25, Le = R.playlistStyle), "playlistToggle" in R && i(26, Te = R.playlistToggle), "downloadFormats" in R && i(47, Se = R.downloadFormats), "mediaSession" in R && i(27, G = R.mediaSession), "content" in R && i(48, X = R.content), "contentIndex" in R && i(7, B = R.contentIndex), "introsOutros" in R && i(49, Ue = R.introsOutros), "introsOutrosIndex" in R && i(8, De = R.introsOutrosIndex), "adverts" in R && i(50, q = R.adverts), "advertIndex" in R && i(9, ge = R.advertIndex), "persistentAdImage" in R && i(28, at = R.persistentAdImage), "persistentIndex" in R && i(10, Je = R.persistentIndex), "duration" in R && i(29, St = R.duration), "currentTime" in R && i(11, Oe = R.currentTime), "playbackState" in R && i(30, ke = R.playbackState), "playbackRate" in R && i(31, Qe = R.playbackRate), "widgetStyle" in R && i(12, Et = R.widgetStyle), "widgetPosition" in R && i(32, At = R.widgetPosition), "widgetWidth" in R && i(33, Kt = R.widgetWidth), "widgetTarget" in R && i(13, xt = R.widgetTarget), "textColor" in R && i(34, jt = R.textColor), "backgroundColor" in R && i(35, _t = R.backgroundColor), "iconColor" in R && i(36, ft = R.iconColor), "highlightColor" in R && i(14, Ot = R.highlightColor), "logoIconEnabled" in R && i(37, gt = R.logoIconEnabled), "highlightSections" in R && i(15, yt = R.highlightSections), "clickableSections" in R && i(16, Yt = R.clickableSections), "segmentWidgetSections" in R && i(17, Pt = R.segmentWidgetSections), "segmentWidgetPosition" in R && i(18, qt = R.segmentWidgetPosition), "currentSegment" in R && i(19, rt = R.currentSegment), "hoveredSegment" in R && i(20, ot = R.hoveredSegment), "loadedMedia" in R && i(65, si = R.loadedMedia), "advertConsent" in R && i(38,
|
|
25686
|
+
"playerApiUrl" in R && i(63, W = R.playerApiUrl), "projectId" in R && i(0, le = R.projectId), "contentId" in R && i(1, te = R.contentId), "playlistId" in R && i(2, ye = R.playlistId), "sourceId" in R && i(3, be = R.sourceId), "sourceUrl" in R && i(4, de = R.sourceUrl), "playlist" in R && i(64, me = R.playlist), "showUserInterface" in R && i(5, Z = R.showUserInterface), "playerStyle" in R && i(6, L = R.playerStyle), "playerTitle" in R && i(22, oe = R.playerTitle), "callToAction" in R && i(23, z = R.callToAction), "skipButtonStyle" in R && i(24, Ke = R.skipButtonStyle), "playlistStyle" in R && i(25, Le = R.playlistStyle), "playlistToggle" in R && i(26, Te = R.playlistToggle), "downloadFormats" in R && i(47, Se = R.downloadFormats), "mediaSession" in R && i(27, G = R.mediaSession), "content" in R && i(48, X = R.content), "contentIndex" in R && i(7, B = R.contentIndex), "introsOutros" in R && i(49, Ue = R.introsOutros), "introsOutrosIndex" in R && i(8, De = R.introsOutrosIndex), "adverts" in R && i(50, q = R.adverts), "advertIndex" in R && i(9, ge = R.advertIndex), "persistentAdImage" in R && i(28, at = R.persistentAdImage), "persistentIndex" in R && i(10, Je = R.persistentIndex), "duration" in R && i(29, St = R.duration), "currentTime" in R && i(11, Oe = R.currentTime), "playbackState" in R && i(30, ke = R.playbackState), "playbackRate" in R && i(31, Qe = R.playbackRate), "widgetStyle" in R && i(12, Et = R.widgetStyle), "widgetPosition" in R && i(32, At = R.widgetPosition), "widgetWidth" in R && i(33, Kt = R.widgetWidth), "widgetTarget" in R && i(13, xt = R.widgetTarget), "textColor" in R && i(34, jt = R.textColor), "backgroundColor" in R && i(35, _t = R.backgroundColor), "iconColor" in R && i(36, ft = R.iconColor), "highlightColor" in R && i(14, Ot = R.highlightColor), "logoIconEnabled" in R && i(37, gt = R.logoIconEnabled), "highlightSections" in R && i(15, yt = R.highlightSections), "clickableSections" in R && i(16, Yt = R.clickableSections), "segmentWidgetSections" in R && i(17, Pt = R.segmentWidgetSections), "segmentWidgetPosition" in R && i(18, qt = R.segmentWidgetPosition), "currentSegment" in R && i(19, rt = R.currentSegment), "hoveredSegment" in R && i(20, ot = R.hoveredSegment), "loadedMedia" in R && i(65, si = R.loadedMedia), "advertConsent" in R && i(38, Ee = R.advertConsent), "analyticsConsent" in R && i(39, Ct = R.analyticsConsent), "analyticsCustomUrl" in R && i(40, Bt = R.analyticsCustomUrl), "analyticsTag" in R && i(41, Lt = R.analyticsTag), "writeToken" in R && i(66, Mt = R.writeToken), "captureErrors" in R && i(67, Ft = R.captureErrors), "onError" in R && i(68, li = R.onError), "transitions" in R && i(69, Gt = R.transitions), "controlPanel" in R && i(21, zt = R.controlPanel), "initialProps" in R && i(72, ut = R.initialProps), "showBottomWidget" in R && i(51, ui = R.showBottomWidget), "showMediaSession" in R && i(52, Be = R.showMediaSession), "isFullScreen" in R && i(73, ci = R.isFullScreen), "mediaElement" in R && i(42, Xt = R.mediaElement), "userInterface" in R && i(43, qe = R.userInterface), "widgetInterface" in R && i(44, hi = R.widgetInterface), "controller" in R && i(74, ve = R.controller), "analyticsUrl" in R && i(75, Zt = R.analyticsUrl), "analyticsId" in R && i(76, di = R.analyticsId), "listenSessionId" in R && i(77, gi = R.listenSessionId), "sessionCreatedAt" in R && i(78, Ei = R.sessionCreatedAt), "isNewListen" in R && i(79, vi = R.isNewListen), "prevPercentage" in R && i(45, bi = R.prevPercentage), "segmentWidgets" in R && i(46, Ne = R.segmentWidgets), "segmentContainers" in R && i(80, Y = R.segmentContainers), "segmentClickables" in R && i(81, Q = R.segmentClickables), "segmentHighlights" in R && i(82, Me = R.segmentHighlights);
|
|
25680
25687
|
}, t.$$.update = () => {
|
|
25681
25688
|
t.$$.dirty[0] & /*introsOutrosIndex*/
|
|
25682
25689
|
256 | t.$$.dirty[1] & /*introsOutros*/
|
|
@@ -25763,7 +25770,7 @@ function g2(t, e, i) {
|
|
|
25763
25770
|
_t,
|
|
25764
25771
|
ft,
|
|
25765
25772
|
gt,
|
|
25766
|
-
|
|
25773
|
+
Ee,
|
|
25767
25774
|
Ct,
|
|
25768
25775
|
Bt,
|
|
25769
25776
|
Lt,
|
|
@@ -26775,11 +26782,6 @@ class Z2 {
|
|
|
26775
26782
|
handleMediaLoaded({ loadedMedia: e }) {
|
|
26776
26783
|
this.player.loadedMedia = e;
|
|
26777
26784
|
}
|
|
26778
|
-
handleCurrentTimeUpdated() {
|
|
26779
|
-
!this.midrollPlayed && ue(this, en, On).call(this);
|
|
26780
|
-
}
|
|
26781
|
-
handlePlaybackPaused() {
|
|
26782
|
-
}
|
|
26783
26785
|
handlePlaybackRateUpdated() {
|
|
26784
26786
|
}
|
|
26785
26787
|
handleVisibilityChanged() {
|
|
@@ -26838,6 +26840,15 @@ class Z2 {
|
|
|
26838
26840
|
handlePlaybackPlaying() {
|
|
26839
26841
|
this.PlayerClass.instances().filter((n) => n !== this.player).filter((n) => n.playbackState === "playing").forEach((n) => n.playbackState = "paused"), z2(this.PlayerClass);
|
|
26840
26842
|
}
|
|
26843
|
+
handlePlaybackPaused() {
|
|
26844
|
+
const e = this.player.playbackState === "playing", i = this.player.currentTime >= this.player.duration;
|
|
26845
|
+
e && !i && (this.player.playbackState = "paused");
|
|
26846
|
+
}
|
|
26847
|
+
handleCurrentTimeUpdated() {
|
|
26848
|
+
this.midrollPlayed || ue(this, en, On).call(this);
|
|
26849
|
+
const e = this.player.currentTime <= 0, i = this.player.currentTime >= this.player.duration, n = this.player.mediaElement.video.paused;
|
|
26850
|
+
!e && !i && !n && (this.player.playbackState = "playing");
|
|
26851
|
+
}
|
|
26841
26852
|
handlePlaybackEnded() {
|
|
26842
26853
|
ue(this, xo, Bf).call(this) && (this.midrollPlayed = !0), this.segmentPlayed = !1;
|
|
26843
26854
|
const e = ue(this, Br, fn).call(this), i = ue(this, cr, xr).call(this);
|
|
@@ -26845,7 +26856,7 @@ class Z2 {
|
|
|
26845
26856
|
}
|
|
26846
26857
|
handlePlaybackNotAllowed({ description: e }) {
|
|
26847
26858
|
console.warn(`BeyondWords.Player: ${e}`);
|
|
26848
|
-
const i = this.player.contentIndex
|
|
26859
|
+
const i = this.player.contentIndex <= 0 && this.player.currentTime <= 0;
|
|
26849
26860
|
this.player.playbackState = i ? "stopped" : "paused";
|
|
26850
26861
|
}
|
|
26851
26862
|
handlePlaybackErrored({ mediaType: e, errorMessage: i }) {
|
|
@@ -26967,7 +26978,7 @@ ko = new WeakSet(), If = function({ type: e }) {
|
|
|
26967
26978
|
return;
|
|
26968
26979
|
} else
|
|
26969
26980
|
delete this.nextIntroOutro;
|
|
26970
|
-
if (!(this.player.contentIndex
|
|
26981
|
+
if (!(this.player.contentIndex <= 0 && this.player.currentTime <= 0) && ue(this, Br, fn).call(this, e)) {
|
|
26971
26982
|
this.player.introsOutrosIndex = -1, ue(this, en, On).call(this, { atTheStart: !0 });
|
|
26972
26983
|
return;
|
|
26973
26984
|
}
|
|
@@ -30995,7 +31006,7 @@ const _6 = (t, e) => {
|
|
|
30995
31006
|
t.listenSessionId || (t.listenSessionId = no()), t.sessionCreatedAt || (t.sessionCreatedAt = Date.now());
|
|
30996
31007
|
const i = ["without-local-storage", "none"].includes(t.analyticsConsent);
|
|
30997
31008
|
i || localStorage.beyondwords || (localStorage.beyondwords = JSON.stringify(no()));
|
|
30998
|
-
const n = t.adverts[t.advertIndex], a = t.content[t.contentIndex], l = t.currentTime / t.duration * 100;
|
|
31009
|
+
const n = t.adverts[t.advertIndex], a = t.content[t.contentIndex], l = t.duration ? t.currentTime / t.duration * 100 : 0;
|
|
30999
31010
|
return {
|
|
31000
31011
|
event_type: e,
|
|
31001
31012
|
device_type: E6(),
|