@evercam/ui 0.0.53-beta.4 → 0.0.53-beta.5
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/index.mjs +166 -143
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +9 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3793,7 +3793,7 @@ let si = Fr;
|
|
|
3793
3793
|
var Aa = (si.__esModule ? si : { default: si }).default;
|
|
3794
3794
|
const La = /* @__PURE__ */ Sa(Aa);
|
|
3795
3795
|
let ri = Yi;
|
|
3796
|
-
var
|
|
3796
|
+
var Ie = (ri.__esModule ? ri : { default: ri }).default;
|
|
3797
3797
|
const Ra = {
|
|
3798
3798
|
50: "#FCE3E4",
|
|
3799
3799
|
100: "#F9CDCE",
|
|
@@ -3806,12 +3806,12 @@ const Ra = {
|
|
|
3806
3806
|
800: "#4E090B",
|
|
3807
3807
|
900: "#290506"
|
|
3808
3808
|
}, pe = {
|
|
3809
|
-
onprimary:
|
|
3810
|
-
warning:
|
|
3811
|
-
error:
|
|
3812
|
-
info:
|
|
3813
|
-
success:
|
|
3814
|
-
primary:
|
|
3809
|
+
onprimary: Ie.white,
|
|
3810
|
+
warning: Ie.amber,
|
|
3811
|
+
error: Ie.rose,
|
|
3812
|
+
info: Ie.cyan,
|
|
3813
|
+
success: Ie.lime,
|
|
3814
|
+
primary: Ie.sky,
|
|
3815
3815
|
brand: Ra
|
|
3816
3816
|
}, Ca = {
|
|
3817
3817
|
...pe,
|
|
@@ -3836,10 +3836,10 @@ const Ra = {
|
|
|
3836
3836
|
"primary-darken": pe.primary[600],
|
|
3837
3837
|
"primary-lighten": pe.primary[400],
|
|
3838
3838
|
// Surfaces
|
|
3839
|
-
onsurface:
|
|
3840
|
-
onbackground:
|
|
3841
|
-
surface:
|
|
3842
|
-
background:
|
|
3839
|
+
onsurface: Ie.slate[500],
|
|
3840
|
+
onbackground: Ie.slate[700],
|
|
3841
|
+
surface: Ie.slate[50],
|
|
3842
|
+
background: Ie.white
|
|
3843
3843
|
}, Da = {
|
|
3844
3844
|
prefix: "e-",
|
|
3845
3845
|
corePlugins: {
|
|
@@ -5034,7 +5034,7 @@ function Ro() {
|
|
|
5034
5034
|
if (!navigator.userAgent.includes("PlayStation 4"))
|
|
5035
5035
|
return !oi && typeof self.TextDecoder != "undefined" && (oi = new self.TextDecoder("utf-8")), oi;
|
|
5036
5036
|
}
|
|
5037
|
-
const
|
|
5037
|
+
const _e = {
|
|
5038
5038
|
hexDump: function(s) {
|
|
5039
5039
|
let e = "";
|
|
5040
5040
|
for (let t = 0; t < s.length; t++) {
|
|
@@ -5238,17 +5238,17 @@ function Io(s) {
|
|
|
5238
5238
|
case "dvh1":
|
|
5239
5239
|
case "dvhe": {
|
|
5240
5240
|
const a = X(t, ["dvcC"])[0], o = a[2] >> 1 & 127, l = a[2] << 5 & 32 | a[3] >> 3 & 31;
|
|
5241
|
-
r += "." +
|
|
5241
|
+
r += "." + De(o) + "." + De(l);
|
|
5242
5242
|
break;
|
|
5243
5243
|
}
|
|
5244
5244
|
case "vp09": {
|
|
5245
5245
|
const a = X(t, ["vpcC"])[0], o = a[4], l = a[5], c = a[6] >> 4 & 15;
|
|
5246
|
-
r += "." +
|
|
5246
|
+
r += "." + De(o) + "." + De(l) + "." + De(c);
|
|
5247
5247
|
break;
|
|
5248
5248
|
}
|
|
5249
5249
|
case "av01": {
|
|
5250
5250
|
const a = X(t, ["av1C"])[0], o = a[1] >>> 5, l = a[1] & 31, c = a[2] >>> 7 ? "H" : "M", u = (a[2] & 64) >> 6, h = (a[2] & 32) >> 5, d = o === 2 && u ? h ? 12 : 10 : u ? 10 : 8, f = (a[2] & 16) >> 4, g = (a[2] & 8) >> 3, m = (a[2] & 4) >> 2, y = a[2] & 3, v = 1, T = 1, x = 1, L = 0;
|
|
5251
|
-
r += "." + o + "." +
|
|
5251
|
+
r += "." + o + "." + De(l) + c + "." + De(d) + "." + f + "." + g + m + y + "." + De(v) + "." + De(T) + "." + De(x) + "." + L;
|
|
5252
5252
|
break;
|
|
5253
5253
|
}
|
|
5254
5254
|
}
|
|
@@ -5266,7 +5266,7 @@ function ci(s, e) {
|
|
|
5266
5266
|
function Et(s) {
|
|
5267
5267
|
return ("0" + s.toString(16).toUpperCase()).slice(-2);
|
|
5268
5268
|
}
|
|
5269
|
-
function
|
|
5269
|
+
function De(s) {
|
|
5270
5270
|
return (s < 10 ? "0" : "") + s;
|
|
5271
5271
|
}
|
|
5272
5272
|
function wo(s, e) {
|
|
@@ -5283,7 +5283,7 @@ function wo(s, e) {
|
|
|
5283
5283
|
const f = gn(d);
|
|
5284
5284
|
if (f) {
|
|
5285
5285
|
const g = f.subarray(8, 24);
|
|
5286
|
-
g.some((m) => m !== 0) || (S.log(`[eme] Patching keyId in 'enc${l ? "a" : "v"}>sinf>>tenc' box: ${
|
|
5286
|
+
g.some((m) => m !== 0) || (S.log(`[eme] Patching keyId in 'enc${l ? "a" : "v"}>sinf>>tenc' box: ${_e.hexDump(g)} -> ${_e.hexDump(t)}`), f.set(t, 8));
|
|
5287
5287
|
}
|
|
5288
5288
|
});
|
|
5289
5289
|
});
|
|
@@ -5401,7 +5401,7 @@ function Mo(s) {
|
|
|
5401
5401
|
const i = t[t.length - 1];
|
|
5402
5402
|
return e.valid = Xe(s, 0, i.byteOffset - 8), e.remainder = Xe(s, i.byteOffset - 8), e;
|
|
5403
5403
|
}
|
|
5404
|
-
function
|
|
5404
|
+
function Ae(s, e) {
|
|
5405
5405
|
const t = new Uint8Array(s.length + e.length);
|
|
5406
5406
|
return t.set(s), t.set(e, s.length), t;
|
|
5407
5407
|
}
|
|
@@ -5442,8 +5442,8 @@ function Ss(s, e) {
|
|
|
5442
5442
|
for (; ce < O; ) {
|
|
5443
5443
|
const fe = W(i, ee);
|
|
5444
5444
|
if (ee += 4, Bo(a, i[ee])) {
|
|
5445
|
-
const
|
|
5446
|
-
mn(
|
|
5445
|
+
const Ee = i.subarray(ee, ee + fe);
|
|
5446
|
+
mn(Ee, a ? 2 : 1, s + F / r, t);
|
|
5447
5447
|
}
|
|
5448
5448
|
ee += fe, ce += fe + 4;
|
|
5449
5449
|
}
|
|
@@ -5638,7 +5638,7 @@ function Ho(s) {
|
|
|
5638
5638
|
}, t = new DataView(s), i = t.getUint32(0);
|
|
5639
5639
|
if (s.byteLength !== i && i > 44 || t.getUint32(4) !== 1886614376 || (e.version = t.getUint32(8) >>> 24, e.version > 1))
|
|
5640
5640
|
return null;
|
|
5641
|
-
e.systemId =
|
|
5641
|
+
e.systemId = _e.hexDump(new Uint8Array(s, 12, 16));
|
|
5642
5642
|
const n = t.getUint32(28);
|
|
5643
5643
|
if (e.version === 0) {
|
|
5644
5644
|
if (i - 32 < n)
|
|
@@ -5926,7 +5926,7 @@ const Cs = /#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT
|
|
|
5926
5926
|
/#.*/.source
|
|
5927
5927
|
// All other non-segment oriented tags will match with all groups empty
|
|
5928
5928
|
].join("|"), "g"), Xo = new RegExp([/#(EXTM3U)/.source, /#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source, /#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source, /#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source, /(#)([^:]*):(.*)/.source, /(#)(.*)(?:.*)\r?\n?/.source].join("|"));
|
|
5929
|
-
class
|
|
5929
|
+
class ke {
|
|
5930
5930
|
static findGroup(e, t) {
|
|
5931
5931
|
for (let i = 0; i < e.length; i++) {
|
|
5932
5932
|
const r = e[i];
|
|
@@ -5964,7 +5964,7 @@ class we {
|
|
|
5964
5964
|
attrs: c,
|
|
5965
5965
|
bitrate: c.decimalInteger("BANDWIDTH") || c.decimalInteger("AVERAGE-BANDWIDTH"),
|
|
5966
5966
|
name: c.NAME,
|
|
5967
|
-
url:
|
|
5967
|
+
url: ke.resolve(u, t)
|
|
5968
5968
|
}, d = c.decimalResolution("RESOLUTION");
|
|
5969
5969
|
d && (h.width = d.width, h.height = d.height), Zo(c.CODECS, h), (o = h.unknownCodecs) != null && o.length || n.push(h), r.levels.push(h);
|
|
5970
5970
|
} else if (a[3]) {
|
|
@@ -5992,7 +5992,7 @@ class we {
|
|
|
5992
5992
|
case "CONTENT-STEERING": {
|
|
5993
5993
|
const h = new ne(u);
|
|
5994
5994
|
ve(r, h, ["SERVER-URI", "PATHWAY-ID"]), r.contentSteering = {
|
|
5995
|
-
uri:
|
|
5995
|
+
uri: ke.resolve(h["SERVER-URI"], t),
|
|
5996
5996
|
pathwayId: h["PATHWAY-ID"] || "."
|
|
5997
5997
|
};
|
|
5998
5998
|
break;
|
|
@@ -6036,10 +6036,10 @@ class we {
|
|
|
6036
6036
|
autoselect: c.bool("AUTOSELECT"),
|
|
6037
6037
|
forced: c.bool("FORCED"),
|
|
6038
6038
|
lang: f,
|
|
6039
|
-
url: c.URI ?
|
|
6039
|
+
url: c.URI ? ke.resolve(c.URI, t) : ""
|
|
6040
6040
|
};
|
|
6041
6041
|
if (g && (T.assocLang = g), m && (T.channels = m), y && (T.characteristics = y), v && (T.instreamId = v), h != null && h.length) {
|
|
6042
|
-
const x =
|
|
6042
|
+
const x = ke.findGroup(h, T.groupId) || h[0];
|
|
6043
6043
|
ks(T, x, "audioCodec"), ks(T, x, "textCodec");
|
|
6044
6044
|
}
|
|
6045
6045
|
d.push(T);
|
|
@@ -6221,7 +6221,7 @@ function Is(s, e, t) {
|
|
|
6221
6221
|
ve(t, n, ["KEYFORMAT", "KEYFORMATVERSIONS", "URI", "IV", "URI"]);
|
|
6222
6222
|
const a = (i = n.METHOD) != null ? i : "", o = n.URI, l = n.hexadecimalInteger("IV"), c = n.KEYFORMATVERSIONS, u = (r = n.KEYFORMAT) != null ? r : "identity";
|
|
6223
6223
|
o && n.IV && !l && S.error(`Invalid IV: ${n.IV}`);
|
|
6224
|
-
const h = o ?
|
|
6224
|
+
const h = o ? ke.resolve(o, e) : "", d = (c || "1").split("/").map(Number).filter(Number.isFinite);
|
|
6225
6225
|
return new xt(a, h, u, d, l);
|
|
6226
6226
|
}
|
|
6227
6227
|
function ws(s) {
|
|
@@ -6443,7 +6443,7 @@ class Jo {
|
|
|
6443
6443
|
this.handleManifestParsingError(c, h, new Error("no EXTM3U delimiter"), d || null, u);
|
|
6444
6444
|
return;
|
|
6445
6445
|
}
|
|
6446
|
-
u.parsing.start = performance.now(),
|
|
6446
|
+
u.parsing.start = performance.now(), ke.isMediaPlaylist(g) ? this.handleTrackOrLevelPlaylist(c, u, h, d || null, f) : this.handleMasterPlaylist(c, u, h, d);
|
|
6447
6447
|
},
|
|
6448
6448
|
onError: (c, u, h, d) => {
|
|
6449
6449
|
this.handleNetworkError(u, h, !1, c, d);
|
|
@@ -6455,7 +6455,7 @@ class Jo {
|
|
|
6455
6455
|
r.load(e, o, l);
|
|
6456
6456
|
}
|
|
6457
6457
|
handleMasterPlaylist(e, t, i, r) {
|
|
6458
|
-
const n = this.hls, a = e.data, o = di(e, i), l =
|
|
6458
|
+
const n = this.hls, a = e.data, o = di(e, i), l = ke.parseMasterPlaylist(a, o);
|
|
6459
6459
|
if (l.playlistParsingError) {
|
|
6460
6460
|
this.handleManifestParsingError(e, i, l.playlistParsingError, r, t);
|
|
6461
6461
|
return;
|
|
@@ -6473,7 +6473,7 @@ class Jo {
|
|
|
6473
6473
|
AUDIO: m = [],
|
|
6474
6474
|
SUBTITLES: y,
|
|
6475
6475
|
"CLOSED-CAPTIONS": v
|
|
6476
|
-
} =
|
|
6476
|
+
} = ke.parseMasterPlaylistMedia(a, o, l);
|
|
6477
6477
|
m.length && !m.some((x) => !x.url) && u[0].audioCodec && !u[0].attrs.AUDIO && (S.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"), m.unshift({
|
|
6478
6478
|
type: "main",
|
|
6479
6479
|
name: "main",
|
|
@@ -6505,7 +6505,7 @@ class Jo {
|
|
|
6505
6505
|
id: o,
|
|
6506
6506
|
level: l,
|
|
6507
6507
|
type: c
|
|
6508
|
-
} = i, u = di(e, i), h = 0, d = K(l) ? l : K(o) ? o : 0, f = Ms(i), g =
|
|
6508
|
+
} = i, u = di(e, i), h = 0, d = K(l) ? l : K(o) ? o : 0, f = Ms(i), g = ke.parseLevelPlaylist(e.data, u, d, f, h, this.variableList);
|
|
6509
6509
|
if (c === J.MANIFEST) {
|
|
6510
6510
|
const m = {
|
|
6511
6511
|
attrs: new ne({}),
|
|
@@ -6746,7 +6746,7 @@ function Pt(s) {
|
|
|
6746
6746
|
}
|
|
6747
6747
|
return e;
|
|
6748
6748
|
}
|
|
6749
|
-
var
|
|
6749
|
+
var Ce = {
|
|
6750
6750
|
audioId3: "org.id3",
|
|
6751
6751
|
dateRange: "com.apple.quicktime.HLS",
|
|
6752
6752
|
emsg: "https://aomedia.org/emsg/ID3"
|
|
@@ -6846,7 +6846,7 @@ class rl {
|
|
|
6846
6846
|
if (a)
|
|
6847
6847
|
for (let o = 0; o < n.length; o++) {
|
|
6848
6848
|
const l = n[o].type;
|
|
6849
|
-
if (l ===
|
|
6849
|
+
if (l === Ce.emsg && !i || !r)
|
|
6850
6850
|
continue;
|
|
6851
6851
|
const c = cn(n[o].data);
|
|
6852
6852
|
if (c) {
|
|
@@ -6892,7 +6892,7 @@ class rl {
|
|
|
6892
6892
|
} = a;
|
|
6893
6893
|
if (n && (o || l)) {
|
|
6894
6894
|
let c;
|
|
6895
|
-
r === "audio" ? c = (u) => u.type ===
|
|
6895
|
+
r === "audio" ? c = (u) => u.type === Ce.audioId3 && l : r === "video" ? c = (u) => u.type === Ce.emsg && o : c = (u) => u.type === Ce.audioId3 && l || u.type === Ce.emsg && o, Oi(n, t, i, c);
|
|
6896
6896
|
}
|
|
6897
6897
|
}
|
|
6898
6898
|
onLevelUpdated(e, {
|
|
@@ -6951,7 +6951,7 @@ class rl {
|
|
|
6951
6951
|
const B = Ns(c, f, v, {
|
|
6952
6952
|
key: E,
|
|
6953
6953
|
data: R
|
|
6954
|
-
},
|
|
6954
|
+
}, Ce.dateRange);
|
|
6955
6955
|
B && (B.id = h, this.id3Track.addCue(B), m[E] = B);
|
|
6956
6956
|
}
|
|
6957
6957
|
}
|
|
@@ -7466,7 +7466,7 @@ var ge = {
|
|
|
7466
7466
|
RemoveAlternatePermanently: 3,
|
|
7467
7467
|
InsertDiscontinuity: 4,
|
|
7468
7468
|
RetryRequest: 5
|
|
7469
|
-
},
|
|
7469
|
+
}, Le = {
|
|
7470
7470
|
None: 0,
|
|
7471
7471
|
MoveAllAlternatesMatchingHost: 1,
|
|
7472
7472
|
MoveAllAlternatesMatchingHDCP: 2,
|
|
@@ -7517,7 +7517,7 @@ class xl {
|
|
|
7517
7517
|
if ((i = t.frag) != null && i.gap) {
|
|
7518
7518
|
t.errorAction = {
|
|
7519
7519
|
action: ge.DoNothing,
|
|
7520
|
-
flags:
|
|
7520
|
+
flags: Le.None
|
|
7521
7521
|
};
|
|
7522
7522
|
return;
|
|
7523
7523
|
}
|
|
@@ -7545,7 +7545,7 @@ class xl {
|
|
|
7545
7545
|
if (a) {
|
|
7546
7546
|
const c = n.levels[n.loadLevel];
|
|
7547
7547
|
if (c && (a.type === J.AUDIO_TRACK && c.hasAudioGroup(a.groupId) || a.type === J.SUBTITLE_TRACK && c.hasSubtitleGroup(a.groupId))) {
|
|
7548
|
-
t.errorAction = this.getPlaylistRetryOrSwitchAction(t, n.loadLevel), t.errorAction.action = ge.SendAlternateToPenaltyBox, t.errorAction.flags =
|
|
7548
|
+
t.errorAction = this.getPlaylistRetryOrSwitchAction(t, n.loadLevel), t.errorAction.action = ge.SendAlternateToPenaltyBox, t.errorAction.flags = Le.MoveAllAlternatesMatchingHost;
|
|
7549
7549
|
return;
|
|
7550
7550
|
}
|
|
7551
7551
|
}
|
|
@@ -7555,7 +7555,7 @@ class xl {
|
|
|
7555
7555
|
const c = n.levels[n.loadLevel], u = c == null ? void 0 : c.attrs["HDCP-LEVEL"];
|
|
7556
7556
|
u ? t.errorAction = {
|
|
7557
7557
|
action: ge.SendAlternateToPenaltyBox,
|
|
7558
|
-
flags:
|
|
7558
|
+
flags: Le.MoveAllAlternatesMatchingHDCP,
|
|
7559
7559
|
hdcpLevel: u
|
|
7560
7560
|
} : this.keySystemError(t);
|
|
7561
7561
|
}
|
|
@@ -7574,7 +7574,7 @@ class xl {
|
|
|
7574
7574
|
case _.BUFFER_NUDGE_ON_STALL:
|
|
7575
7575
|
t.errorAction = {
|
|
7576
7576
|
action: ge.DoNothing,
|
|
7577
|
-
flags:
|
|
7577
|
+
flags: Le.None
|
|
7578
7578
|
};
|
|
7579
7579
|
return;
|
|
7580
7580
|
}
|
|
@@ -7589,7 +7589,7 @@ class xl {
|
|
|
7589
7589
|
if (zt(r, n, Wt(e), e.response))
|
|
7590
7590
|
return {
|
|
7591
7591
|
action: ge.RetryRequest,
|
|
7592
|
-
flags:
|
|
7592
|
+
flags: Le.None,
|
|
7593
7593
|
retryConfig: r,
|
|
7594
7594
|
retryCount: n
|
|
7595
7595
|
};
|
|
@@ -7604,7 +7604,7 @@ class xl {
|
|
|
7604
7604
|
if (r && (e.details !== _.FRAG_GAP && r.fragmentError++, zt(o, l, Wt(e), e.response)))
|
|
7605
7605
|
return {
|
|
7606
7606
|
action: ge.RetryRequest,
|
|
7607
|
-
flags:
|
|
7607
|
+
flags: Le.None,
|
|
7608
7608
|
retryConfig: o,
|
|
7609
7609
|
retryCount: l
|
|
7610
7610
|
};
|
|
@@ -7661,13 +7661,13 @@ class xl {
|
|
|
7661
7661
|
if (u > -1 && i.loadLevel !== u)
|
|
7662
7662
|
return e.levelRetry = !0, this.playlistError = 0, {
|
|
7663
7663
|
action: ge.SendAlternateToPenaltyBox,
|
|
7664
|
-
flags:
|
|
7664
|
+
flags: Le.None,
|
|
7665
7665
|
nextAutoLevel: u
|
|
7666
7666
|
};
|
|
7667
7667
|
}
|
|
7668
7668
|
return {
|
|
7669
7669
|
action: ge.SendAlternateToPenaltyBox,
|
|
7670
|
-
flags:
|
|
7670
|
+
flags: Le.MoveAllAlternatesMatchingHost
|
|
7671
7671
|
};
|
|
7672
7672
|
}
|
|
7673
7673
|
onErrorOut(e, t) {
|
|
@@ -7694,10 +7694,10 @@ class xl {
|
|
|
7694
7694
|
nextAutoLevel: a
|
|
7695
7695
|
} = i;
|
|
7696
7696
|
switch (r) {
|
|
7697
|
-
case
|
|
7697
|
+
case Le.None:
|
|
7698
7698
|
this.switchLevel(e, a);
|
|
7699
7699
|
break;
|
|
7700
|
-
case
|
|
7700
|
+
case Le.MoveAllAlternatesMatchingHDCP:
|
|
7701
7701
|
n && (t.maxHdcpLevel = Mi[Mi.indexOf(n) - 1], i.resolved = !0), this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);
|
|
7702
7702
|
break;
|
|
7703
7703
|
}
|
|
@@ -8081,7 +8081,7 @@ function Dl(s, e, t, i) {
|
|
|
8081
8081
|
}), r;
|
|
8082
8082
|
}, {});
|
|
8083
8083
|
}
|
|
8084
|
-
function
|
|
8084
|
+
function Pe(s, e, t) {
|
|
8085
8085
|
if ("attrs" in s) {
|
|
8086
8086
|
const i = e.indexOf(s);
|
|
8087
8087
|
if (i !== -1)
|
|
@@ -8126,11 +8126,11 @@ function Il(s, e, t, i, r) {
|
|
|
8126
8126
|
if (d.videoRange !== l || d.frameRate !== c || d.codecSet.substring(0, 4) !== u)
|
|
8127
8127
|
return !1;
|
|
8128
8128
|
const f = d.audioGroups, g = t.filter((m) => !f || f.indexOf(m.groupId) !== -1);
|
|
8129
|
-
return
|
|
8129
|
+
return Pe(s, g, r) > -1;
|
|
8130
8130
|
});
|
|
8131
8131
|
return h > -1 ? h : Ks(e, i, (d) => {
|
|
8132
8132
|
const f = d.audioGroups, g = t.filter((m) => !f || f.indexOf(m.groupId) !== -1);
|
|
8133
|
-
return
|
|
8133
|
+
return Pe(s, g, r) > -1;
|
|
8134
8134
|
});
|
|
8135
8135
|
}
|
|
8136
8136
|
function Ks(s, e, t) {
|
|
@@ -8428,8 +8428,8 @@ class wl {
|
|
|
8428
8428
|
if (!this.hls)
|
|
8429
8429
|
return;
|
|
8430
8430
|
$.supportedResult = ce;
|
|
8431
|
-
const fe = this.hls.levels,
|
|
8432
|
-
ce.error ? S.warn(`[abr] MediaCapabilities decodingInfo error: "${ce.error}" for level ${
|
|
8431
|
+
const fe = this.hls.levels, Ee = fe.indexOf($);
|
|
8432
|
+
ce.error ? S.warn(`[abr] MediaCapabilities decodingInfo error: "${ce.error}" for level ${Ee} ${JSON.stringify(ce)}`) : ce.supported || (S.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${Ee} ${JSON.stringify(ce)}`), Ee > -1 && fe.length > 1 && (S.log(`[abr] Removing unsupported level ${Ee}`), this.hls.removeLevel(Ee)));
|
|
8433
8433
|
})) : $.supportedResult = Rn;
|
|
8434
8434
|
}
|
|
8435
8435
|
if (E && $.codecSet !== E || w && $.videoRange !== w || O && R > $.frameRate || !O && R > 0 && R < $.frameRate || $.supportedResult && !((U = $.supportedResult.decodingInfoResults) != null && U[0].smooth)) {
|
|
@@ -9295,7 +9295,7 @@ class as {
|
|
|
9295
9295
|
currentResult: n,
|
|
9296
9296
|
remainderData: a
|
|
9297
9297
|
} = this;
|
|
9298
|
-
this.logOnce("JS AES decrypt"), a && (e =
|
|
9298
|
+
this.logOnce("JS AES decrypt"), a && (e = Ae(a, e), this.remainderData = null);
|
|
9299
9299
|
const o = this.getValidChunk(e);
|
|
9300
9300
|
if (!o.length)
|
|
9301
9301
|
return null;
|
|
@@ -9686,7 +9686,7 @@ class os extends kl {
|
|
|
9686
9686
|
data2: l
|
|
9687
9687
|
} = e;
|
|
9688
9688
|
let c = o;
|
|
9689
|
-
if (o && l && (c =
|
|
9689
|
+
if (o && l && (c = Ae(o, l)), !((a = c) != null && a.length))
|
|
9690
9690
|
return;
|
|
9691
9691
|
const u = {
|
|
9692
9692
|
type: e.type,
|
|
@@ -10083,7 +10083,7 @@ function ql(s) {
|
|
|
10083
10083
|
scriptURL: e
|
|
10084
10084
|
};
|
|
10085
10085
|
}
|
|
10086
|
-
function
|
|
10086
|
+
function we(s = "", e = 9e4) {
|
|
10087
10087
|
return {
|
|
10088
10088
|
type: s,
|
|
10089
10089
|
id: -1,
|
|
@@ -10122,14 +10122,14 @@ class ls {
|
|
|
10122
10122
|
}
|
|
10123
10123
|
// feed incoming data to the front of the parsing pipeline
|
|
10124
10124
|
demux(e, t) {
|
|
10125
|
-
this.cachedData && (e =
|
|
10125
|
+
this.cachedData && (e = Ae(this.cachedData, e), this.cachedData = null);
|
|
10126
10126
|
let i = vt(e, 0), r = i ? i.length : 0, n;
|
|
10127
10127
|
const a = this._audioTrack, o = this._id3Track, l = i ? is(i) : void 0, c = e.length;
|
|
10128
10128
|
for ((this.basePTS === null || this.frameIndex === 0 && K(l)) && (this.basePTS = Xl(l, t, this.initPTS), this.lastPTS = this.basePTS), this.lastPTS === null && (this.lastPTS = this.basePTS), i && i.length > 0 && o.samples.push({
|
|
10129
10129
|
pts: this.lastPTS,
|
|
10130
10130
|
dts: this.lastPTS,
|
|
10131
10131
|
data: i,
|
|
10132
|
-
type:
|
|
10132
|
+
type: Ce.audioId3,
|
|
10133
10133
|
duration: Number.POSITIVE_INFINITY
|
|
10134
10134
|
}); r < c; ) {
|
|
10135
10135
|
if (this.canParse(e, r)) {
|
|
@@ -10140,19 +10140,19 @@ class ls {
|
|
|
10140
10140
|
pts: this.lastPTS,
|
|
10141
10141
|
dts: this.lastPTS,
|
|
10142
10142
|
data: i,
|
|
10143
|
-
type:
|
|
10143
|
+
type: Ce.audioId3,
|
|
10144
10144
|
duration: Number.POSITIVE_INFINITY
|
|
10145
10145
|
}), r += i.length, n = r) : r++;
|
|
10146
10146
|
if (r === c && n !== c) {
|
|
10147
10147
|
const u = Xe(e, n);
|
|
10148
|
-
this.cachedData ? this.cachedData =
|
|
10148
|
+
this.cachedData ? this.cachedData = Ae(this.cachedData, u) : this.cachedData = u;
|
|
10149
10149
|
}
|
|
10150
10150
|
}
|
|
10151
10151
|
return {
|
|
10152
10152
|
audioTrack: a,
|
|
10153
|
-
videoTrack:
|
|
10153
|
+
videoTrack: we(),
|
|
10154
10154
|
id3Track: o,
|
|
10155
|
-
textTrack:
|
|
10155
|
+
textTrack: we()
|
|
10156
10156
|
};
|
|
10157
10157
|
}
|
|
10158
10158
|
demuxSampleAes(e, t, i) {
|
|
@@ -10162,9 +10162,9 @@ class ls {
|
|
|
10162
10162
|
const t = this.cachedData;
|
|
10163
10163
|
return t && (this.cachedData = null, this.demux(t, 0)), {
|
|
10164
10164
|
audioTrack: this._audioTrack,
|
|
10165
|
-
videoTrack:
|
|
10165
|
+
videoTrack: we(),
|
|
10166
10166
|
id3Track: this._id3Track,
|
|
10167
|
-
textTrack:
|
|
10167
|
+
textTrack: we()
|
|
10168
10168
|
};
|
|
10169
10169
|
}
|
|
10170
10170
|
destroy() {
|
|
@@ -10440,8 +10440,8 @@ class cc {
|
|
|
10440
10440
|
resetTimeStamp() {
|
|
10441
10441
|
}
|
|
10442
10442
|
resetInitSegment(e, t, i, r) {
|
|
10443
|
-
const n = this.videoTrack =
|
|
10444
|
-
if (this.id3Track =
|
|
10443
|
+
const n = this.videoTrack = we("video", 1), a = this.audioTrack = we("audio", 1), o = this.txtTrack = we("text", 1);
|
|
10444
|
+
if (this.id3Track = we("id3", 1), this.timeOffset = 0, !(e != null && e.byteLength))
|
|
10445
10445
|
return;
|
|
10446
10446
|
const l = fn(e);
|
|
10447
10447
|
if (l.video) {
|
|
@@ -10473,7 +10473,7 @@ class cc {
|
|
|
10473
10473
|
let i = e;
|
|
10474
10474
|
const r = this.videoTrack, n = this.txtTrack;
|
|
10475
10475
|
if (this.config.progressive) {
|
|
10476
|
-
this.remainderData && (i =
|
|
10476
|
+
this.remainderData && (i = Ae(this.remainderData, e));
|
|
10477
10477
|
const o = Mo(i);
|
|
10478
10478
|
this.remainderData = o.remainder, r.samples = o.valid || new Uint8Array();
|
|
10479
10479
|
} else
|
|
@@ -10492,9 +10492,9 @@ class cc {
|
|
|
10492
10492
|
const r = this.extractID3Track(t, this.timeOffset);
|
|
10493
10493
|
return i.samples = Ss(e, t), {
|
|
10494
10494
|
videoTrack: t,
|
|
10495
|
-
audioTrack:
|
|
10495
|
+
audioTrack: we(),
|
|
10496
10496
|
id3Track: r,
|
|
10497
|
-
textTrack:
|
|
10497
|
+
textTrack: we()
|
|
10498
10498
|
};
|
|
10499
10499
|
}
|
|
10500
10500
|
extractID3Track(e, t) {
|
|
@@ -10513,7 +10513,7 @@ class cc {
|
|
|
10513
10513
|
len: c.byteLength,
|
|
10514
10514
|
dts: o,
|
|
10515
10515
|
pts: o,
|
|
10516
|
-
type:
|
|
10516
|
+
type: Ce.emsg,
|
|
10517
10517
|
duration: l
|
|
10518
10518
|
});
|
|
10519
10519
|
}
|
|
@@ -10903,7 +10903,7 @@ class dc extends hc {
|
|
|
10903
10903
|
a.push(f);
|
|
10904
10904
|
} else {
|
|
10905
10905
|
const f = this.getLastNalUnit(e.samples);
|
|
10906
|
-
f && (n && o <= 4 - n && f.state && (f.data = f.data.subarray(0, f.data.byteLength - n)), c > 0 && (f.data =
|
|
10906
|
+
f && (n && o <= 4 - n && f.state && (f.data = f.data.subarray(0, f.data.byteLength - n)), c > 0 && (f.data = Ae(f.data, t.subarray(0, c)), f.state = 0));
|
|
10907
10907
|
}
|
|
10908
10908
|
o < i ? (u = t[o] & 31, h = o, d = u, r = 0) : r = -1;
|
|
10909
10909
|
} else
|
|
@@ -10919,7 +10919,7 @@ class dc extends hc {
|
|
|
10919
10919
|
}
|
|
10920
10920
|
if (a.length === 0) {
|
|
10921
10921
|
const f = this.getLastNalUnit(e.samples);
|
|
10922
|
-
f && (f.data =
|
|
10922
|
+
f && (f.data = Ae(f.data, t));
|
|
10923
10923
|
}
|
|
10924
10924
|
return e.naluState = r, a;
|
|
10925
10925
|
}
|
|
@@ -11057,7 +11057,7 @@ class Ve {
|
|
|
11057
11057
|
let n;
|
|
11058
11058
|
const a = this._videoTrack, o = this._audioTrack, l = this._id3Track, c = this._txtTrack;
|
|
11059
11059
|
let u = a.pid, h = a.pesData, d = o.pid, f = l.pid, g = o.pesData, m = l.pesData, y = null, v = this.pmtParsed, T = this._pmtId, x = e.length;
|
|
11060
|
-
if (this.remainderData && (e =
|
|
11060
|
+
if (this.remainderData && (e = Ae(this.remainderData, e), x = e.length, this.remainderData = null), x < ue && !r)
|
|
11061
11061
|
return this.remainderData = e, {
|
|
11062
11062
|
audioTrack: o,
|
|
11063
11063
|
videoTrack: a,
|
|
@@ -11215,7 +11215,7 @@ class Ve {
|
|
|
11215
11215
|
this.aacOverFlow = null;
|
|
11216
11216
|
const h = r.missing, d = r.sample.unit.byteLength;
|
|
11217
11217
|
if (h === -1)
|
|
11218
|
-
n =
|
|
11218
|
+
n = Ae(r.sample.unit, n);
|
|
11219
11219
|
else {
|
|
11220
11220
|
const f = d - h;
|
|
11221
11221
|
r.sample.unit.set(n.subarray(0, h), f), e.samples.push(r.sample), i = r.missing;
|
|
@@ -11296,7 +11296,7 @@ class Ve {
|
|
|
11296
11296
|
return;
|
|
11297
11297
|
}
|
|
11298
11298
|
const i = oe({}, t, {
|
|
11299
|
-
type: this._videoTrack ?
|
|
11299
|
+
type: this._videoTrack ? Ce.emsg : Ce.audioId3,
|
|
11300
11300
|
duration: Number.POSITIVE_INFINITY
|
|
11301
11301
|
});
|
|
11302
11302
|
e.samples.push(i);
|
|
@@ -11385,7 +11385,7 @@ function et(s) {
|
|
|
11385
11385
|
if (!s || s.size === 0)
|
|
11386
11386
|
return null;
|
|
11387
11387
|
for (; o[0].length < 19 && o.length > 1; )
|
|
11388
|
-
o[0] =
|
|
11388
|
+
o[0] = Ae(o[0], o[1]), o.splice(1, 1);
|
|
11389
11389
|
if (t = o[0], (t[0] << 16) + (t[1] << 8) + t[2] === 1) {
|
|
11390
11390
|
if (i = (t[4] << 8) + t[5], i && i > s.size - 6)
|
|
11391
11391
|
return null;
|
|
@@ -12477,7 +12477,7 @@ class A {
|
|
|
12477
12477
|
static initSegment(e) {
|
|
12478
12478
|
A.types || A.init();
|
|
12479
12479
|
const t = A.moov(e);
|
|
12480
|
-
return
|
|
12480
|
+
return Ae(A.FTYP, t);
|
|
12481
12481
|
}
|
|
12482
12482
|
}
|
|
12483
12483
|
A.types = void 0;
|
|
@@ -12534,7 +12534,7 @@ class Ft {
|
|
|
12534
12534
|
let t = !1;
|
|
12535
12535
|
const i = e.reduce((r, n) => {
|
|
12536
12536
|
const a = n.pts - r;
|
|
12537
|
-
return a < -4294967296 ? (t = !0,
|
|
12537
|
+
return a < -4294967296 ? (t = !0, be(r, n.pts)) : a > 0 ? r : n.pts;
|
|
12538
12538
|
}, e[0].pts);
|
|
12539
12539
|
return t && S.debug("PTS rollover detected"), i;
|
|
12540
12540
|
}
|
|
@@ -12559,7 +12559,7 @@ class Ft {
|
|
|
12559
12559
|
k === -1 && (S.warn(`[mp4-remuxer]: No keyframe found out of ${x} video samples`), g = !1);
|
|
12560
12560
|
if (this.ISGenerated) {
|
|
12561
12561
|
if (L && E) {
|
|
12562
|
-
const U = this.getVideoStartPts(t.samples), $ = (
|
|
12562
|
+
const U = this.getVideoStartPts(t.samples), $ = (be(e.samples[0].pts, U) - U) / t.inputTimeScale;
|
|
12563
12563
|
m += Math.max(0, $), y += Math.max(0, -$);
|
|
12564
12564
|
}
|
|
12565
12565
|
if (L) {
|
|
@@ -12616,7 +12616,7 @@ class Ft {
|
|
|
12616
12616
|
}, u)
|
|
12617
12617
|
if (g = t.inputTimeScale, !c || g !== c.timescale) {
|
|
12618
12618
|
const m = this.getVideoStartPts(a), y = Math.round(g * i);
|
|
12619
|
-
f = Math.min(f,
|
|
12619
|
+
f = Math.min(f, be(a[0].dts, m) - y), d = Math.min(d, m - y);
|
|
12620
12620
|
} else
|
|
12621
12621
|
u = !1;
|
|
12622
12622
|
this.videoTrackConfig = {
|
|
@@ -12642,13 +12642,13 @@ class Ft {
|
|
|
12642
12642
|
const n = e.inputTimeScale, a = e.samples, o = [], l = a.length, c = this._initPTS;
|
|
12643
12643
|
let u = this.nextAvcDts, h = 8, d = this.videoSampleDuration, f, g, m = Number.POSITIVE_INFINITY, y = Number.NEGATIVE_INFINITY, v = !1;
|
|
12644
12644
|
if (!i || u === null) {
|
|
12645
|
-
const G = t * n, F = a[0].pts -
|
|
12645
|
+
const G = t * n, F = a[0].pts - be(a[0].dts, a[0].pts);
|
|
12646
12646
|
tt && u !== null && Math.abs(G - F - u) < 15e3 ? i = !0 : u = G - F;
|
|
12647
12647
|
}
|
|
12648
12648
|
const T = c.baseTime * n / c.timescale;
|
|
12649
12649
|
for (let G = 0; G < l; G++) {
|
|
12650
12650
|
const F = a[G];
|
|
12651
|
-
F.pts =
|
|
12651
|
+
F.pts = be(F.pts - T, u), F.dts = be(F.dts - T, u), F.dts < a[G > 0 ? G - 1 : G].dts && (v = !0);
|
|
12652
12652
|
}
|
|
12653
12653
|
v && a.sort(function(G, F) {
|
|
12654
12654
|
const Q = G.dts - F.dts, Z = G.pts - F.pts;
|
|
@@ -12700,7 +12700,7 @@ class Ft {
|
|
|
12700
12700
|
const F = a[G], Q = F.units;
|
|
12701
12701
|
let Z = 0;
|
|
12702
12702
|
for (let ce = 0, fe = Q.length; ce < fe; ce++) {
|
|
12703
|
-
const
|
|
12703
|
+
const Ee = Q[ce], dt = Ee.data, ii = Ee.data.byteLength;
|
|
12704
12704
|
b.setUint32(h, ii), h += 4, C.set(dt, h), h += ii, Z += 4 + ii;
|
|
12705
12705
|
}
|
|
12706
12706
|
let ee;
|
|
@@ -12709,8 +12709,8 @@ class Ft {
|
|
|
12709
12709
|
else {
|
|
12710
12710
|
const ce = this.config, fe = G > 0 ? F.dts - a[G - 1].dts : L;
|
|
12711
12711
|
if (ee = G > 0 ? F.pts - a[G - 1].pts : L, ce.stretchShortVideoTrack && this.nextAudioPts !== null) {
|
|
12712
|
-
const
|
|
12713
|
-
dt >
|
|
12712
|
+
const Ee = Math.floor(ce.maxBufferHole * n), dt = (r ? m + r * n : this.nextAudioPts) - F.pts;
|
|
12713
|
+
dt > Ee ? (d = dt - fe, d < 0 ? d = fe : D = !0, S.log(`[mp4-remuxer]: It is approximately ${dt / 90} ms to the next segment; using duration ${d / 90} ms for the last video frame.`)) : d = fe;
|
|
12714
12714
|
} else
|
|
12715
12715
|
d = fe;
|
|
12716
12716
|
}
|
|
@@ -12769,8 +12769,8 @@ class Ft {
|
|
|
12769
12769
|
const a = e.inputTimeScale, o = e.samplerate ? e.samplerate : a, l = a / o, c = this.getSamplesPerFrame(e), u = c * l, h = this._initPTS, d = e.segmentCodec === "mp3" && this.typeSupported.mpeg, f = [], g = n !== void 0;
|
|
12770
12770
|
let m = e.samples, y = d ? 0 : 8, v = this.nextAudioPts || -1;
|
|
12771
12771
|
const T = t * a, x = h.baseTime * a / h.timescale;
|
|
12772
|
-
if (this.isAudioContiguous = i = i || m.length && v > 0 && (r && Math.abs(T - v) < 9e3 || Math.abs(
|
|
12773
|
-
$.pts =
|
|
12772
|
+
if (this.isAudioContiguous = i = i || m.length && v > 0 && (r && Math.abs(T - v) < 9e3 || Math.abs(be(m[0].pts - x, T) - v) < 20 * u), m.forEach(function($) {
|
|
12773
|
+
$.pts = be($.pts - x, T);
|
|
12774
12774
|
}), !i || v < 0) {
|
|
12775
12775
|
if (m = m.filter(($) => $.pts >= 0), !m.length)
|
|
12776
12776
|
return;
|
|
@@ -12869,7 +12869,7 @@ class Ft {
|
|
|
12869
12869
|
return e.samples = y, this.remuxAudio(e, t, i, !1);
|
|
12870
12870
|
}
|
|
12871
12871
|
}
|
|
12872
|
-
function
|
|
12872
|
+
function be(s, e) {
|
|
12873
12873
|
let t;
|
|
12874
12874
|
if (e === null)
|
|
12875
12875
|
return s;
|
|
@@ -12890,7 +12890,7 @@ function Gn(s, e, t, i) {
|
|
|
12890
12890
|
const n = s.inputTimeScale;
|
|
12891
12891
|
for (let o = 0; o < r; o++) {
|
|
12892
12892
|
const l = s.samples[o];
|
|
12893
|
-
l.pts =
|
|
12893
|
+
l.pts = be(l.pts - t.baseTime * n / t.timescale, e * n) / n, l.dts = be(l.dts - i.baseTime * n / i.timescale, e * n) / n;
|
|
12894
12894
|
}
|
|
12895
12895
|
const a = s.samples;
|
|
12896
12896
|
return s.samples = [], {
|
|
@@ -12904,7 +12904,7 @@ function Hn(s, e, t) {
|
|
|
12904
12904
|
const r = s.inputTimeScale;
|
|
12905
12905
|
for (let a = 0; a < i; a++) {
|
|
12906
12906
|
const o = s.samples[a];
|
|
12907
|
-
o.pts =
|
|
12907
|
+
o.pts = be(o.pts - t.baseTime * r / t.timescale, e * r) / r;
|
|
12908
12908
|
}
|
|
12909
12909
|
s.samples.sort((a, o) => a.pts - o.pts);
|
|
12910
12910
|
const n = s.samples;
|
|
@@ -14100,11 +14100,11 @@ class Ic extends rs {
|
|
|
14100
14100
|
this.tracksInGroup = o;
|
|
14101
14101
|
const l = this.hls.config.audioPreference;
|
|
14102
14102
|
if (!n && l) {
|
|
14103
|
-
const d =
|
|
14103
|
+
const d = Pe(l, o, Qe);
|
|
14104
14104
|
if (d > -1)
|
|
14105
14105
|
n = o[d];
|
|
14106
14106
|
else {
|
|
14107
|
-
const f =
|
|
14107
|
+
const f = Pe(l, this.tracks);
|
|
14108
14108
|
n = this.tracks[f];
|
|
14109
14109
|
}
|
|
14110
14110
|
}
|
|
@@ -14153,7 +14153,7 @@ class Ic extends rs {
|
|
|
14153
14153
|
const r = this.currentTrack;
|
|
14154
14154
|
if (r && nt(e, r, Qe))
|
|
14155
14155
|
return r;
|
|
14156
|
-
const n =
|
|
14156
|
+
const n = Pe(e, this.tracksInGroup, Qe);
|
|
14157
14157
|
if (n > -1) {
|
|
14158
14158
|
const a = this.tracksInGroup[n];
|
|
14159
14159
|
return this.setAudioTrack(n), a;
|
|
@@ -14166,7 +14166,7 @@ class Ic extends rs {
|
|
|
14166
14166
|
t.nextLoadLevel = o;
|
|
14167
14167
|
}
|
|
14168
14168
|
if (e.channels || e.audioCodec) {
|
|
14169
|
-
const a =
|
|
14169
|
+
const a = Pe(e, i);
|
|
14170
14170
|
if (a > -1)
|
|
14171
14171
|
return i[a];
|
|
14172
14172
|
}
|
|
@@ -14591,11 +14591,11 @@ class Pc extends rs {
|
|
|
14591
14591
|
const o = this.hls.config.subtitlePreference;
|
|
14592
14592
|
if (!n && o) {
|
|
14593
14593
|
this.selectDefaultTrack = !1;
|
|
14594
|
-
const u =
|
|
14594
|
+
const u = Pe(o, a);
|
|
14595
14595
|
if (u > -1)
|
|
14596
14596
|
n = a[u];
|
|
14597
14597
|
else {
|
|
14598
|
-
const h =
|
|
14598
|
+
const h = Pe(o, this.tracks);
|
|
14599
14599
|
n = this.tracks[h];
|
|
14600
14600
|
}
|
|
14601
14601
|
}
|
|
@@ -14664,7 +14664,7 @@ class Pc extends rs {
|
|
|
14664
14664
|
const i = this.currentTrack;
|
|
14665
14665
|
if (i && nt(e, i))
|
|
14666
14666
|
return i;
|
|
14667
|
-
const r =
|
|
14667
|
+
const r = Pe(e, this.tracksInGroup);
|
|
14668
14668
|
if (r > -1) {
|
|
14669
14669
|
const n = this.tracksInGroup[r];
|
|
14670
14670
|
return this.setSubtitleTrack(r), n;
|
|
@@ -14672,7 +14672,7 @@ class Pc extends rs {
|
|
|
14672
14672
|
if (i)
|
|
14673
14673
|
return null;
|
|
14674
14674
|
{
|
|
14675
|
-
const n =
|
|
14675
|
+
const n = Pe(e, t);
|
|
14676
14676
|
if (n > -1)
|
|
14677
14677
|
return t[n];
|
|
14678
14678
|
}
|
|
@@ -15596,7 +15596,7 @@ const nr = {
|
|
|
15596
15596
|
}, zn = function(e) {
|
|
15597
15597
|
let t = e;
|
|
15598
15598
|
return nr.hasOwnProperty(e) && (t = nr[e]), String.fromCharCode(t);
|
|
15599
|
-
},
|
|
15599
|
+
}, Re = 15, Ne = 100, Nc = {
|
|
15600
15600
|
17: 1,
|
|
15601
15601
|
18: 3,
|
|
15602
15602
|
21: 5,
|
|
@@ -15781,19 +15781,19 @@ class Kc {
|
|
|
15781
15781
|
}
|
|
15782
15782
|
class vi {
|
|
15783
15783
|
constructor(e) {
|
|
15784
|
-
this.rows = [], this.currRow =
|
|
15785
|
-
for (let t = 0; t <
|
|
15784
|
+
this.rows = [], this.currRow = Re - 1, this.nrRollUpRows = null, this.lastOutputScreen = null, this.logger = void 0;
|
|
15785
|
+
for (let t = 0; t < Re; t++)
|
|
15786
15786
|
this.rows.push(new Kc(e));
|
|
15787
15787
|
this.logger = e;
|
|
15788
15788
|
}
|
|
15789
15789
|
reset() {
|
|
15790
|
-
for (let e = 0; e <
|
|
15790
|
+
for (let e = 0; e < Re; e++)
|
|
15791
15791
|
this.rows[e].clear();
|
|
15792
|
-
this.currRow =
|
|
15792
|
+
this.currRow = Re - 1;
|
|
15793
15793
|
}
|
|
15794
15794
|
equals(e) {
|
|
15795
15795
|
let t = !0;
|
|
15796
|
-
for (let i = 0; i <
|
|
15796
|
+
for (let i = 0; i < Re; i++)
|
|
15797
15797
|
if (!this.rows[i].equals(e.rows[i])) {
|
|
15798
15798
|
t = !1;
|
|
15799
15799
|
break;
|
|
@@ -15801,12 +15801,12 @@ class vi {
|
|
|
15801
15801
|
return t;
|
|
15802
15802
|
}
|
|
15803
15803
|
copy(e) {
|
|
15804
|
-
for (let t = 0; t <
|
|
15804
|
+
for (let t = 0; t < Re; t++)
|
|
15805
15805
|
this.rows[t].copy(e.rows[t]);
|
|
15806
15806
|
}
|
|
15807
15807
|
isEmpty() {
|
|
15808
15808
|
let e = !0;
|
|
15809
|
-
for (let t = 0; t <
|
|
15809
|
+
for (let t = 0; t < Re; t++)
|
|
15810
15810
|
if (!this.rows[t].isEmpty()) {
|
|
15811
15811
|
e = !1;
|
|
15812
15812
|
break;
|
|
@@ -15838,7 +15838,7 @@ class vi {
|
|
|
15838
15838
|
this.logger.log(2, () => "pacData = " + JSON.stringify(e));
|
|
15839
15839
|
let t = e.row - 1;
|
|
15840
15840
|
if (this.nrRollUpRows && t < this.nrRollUpRows - 1 && (t = this.nrRollUpRows - 1), this.nrRollUpRows && this.currRow !== t) {
|
|
15841
|
-
for (let o = 0; o <
|
|
15841
|
+
for (let o = 0; o < Re; o++)
|
|
15842
15842
|
this.rows[o].clear();
|
|
15843
15843
|
const n = this.currRow + 1 - this.nrRollUpRows, a = this.lastOutputScreen;
|
|
15844
15844
|
if (a) {
|
|
@@ -15888,7 +15888,7 @@ class vi {
|
|
|
15888
15888
|
e = e || !1;
|
|
15889
15889
|
const t = [];
|
|
15890
15890
|
let i = "", r = -1;
|
|
15891
|
-
for (let n = 0; n <
|
|
15891
|
+
for (let n = 0; n < Re; n++) {
|
|
15892
15892
|
const a = this.rows[n].getTextString();
|
|
15893
15893
|
a && (r = n + 1, e ? t.push("Row " + r + ": '" + a + "'") : t.push(a.trim()));
|
|
15894
15894
|
}
|
|
@@ -15901,10 +15901,10 @@ class vi {
|
|
|
15901
15901
|
}
|
|
15902
15902
|
class ar {
|
|
15903
15903
|
constructor(e, t, i) {
|
|
15904
|
-
this.chNr = void 0, this.outputFilter = void 0, this.mode = void 0, this.verbose = void 0, this.displayedMemory = void 0, this.nonDisplayedMemory = void 0, this.lastOutputScreen = void 0, this.currRollUpRow = void 0, this.writeScreen = void 0, this.cueStartTime = void 0, this.logger = void 0, this.chNr = e, this.outputFilter = t, this.mode = null, this.verbose = 0, this.displayedMemory = new vi(i), this.nonDisplayedMemory = new vi(i), this.lastOutputScreen = new vi(i), this.currRollUpRow = this.displayedMemory.rows[
|
|
15904
|
+
this.chNr = void 0, this.outputFilter = void 0, this.mode = void 0, this.verbose = void 0, this.displayedMemory = void 0, this.nonDisplayedMemory = void 0, this.lastOutputScreen = void 0, this.currRollUpRow = void 0, this.writeScreen = void 0, this.cueStartTime = void 0, this.logger = void 0, this.chNr = e, this.outputFilter = t, this.mode = null, this.verbose = 0, this.displayedMemory = new vi(i), this.nonDisplayedMemory = new vi(i), this.lastOutputScreen = new vi(i), this.currRollUpRow = this.displayedMemory.rows[Re - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null, this.logger = i;
|
|
15905
15905
|
}
|
|
15906
15906
|
reset() {
|
|
15907
|
-
this.mode = null, this.displayedMemory.reset(), this.nonDisplayedMemory.reset(), this.lastOutputScreen.reset(), this.outputFilter.reset(), this.currRollUpRow = this.displayedMemory.rows[
|
|
15907
|
+
this.mode = null, this.displayedMemory.reset(), this.nonDisplayedMemory.reset(), this.lastOutputScreen.reset(), this.outputFilter.reset(), this.currRollUpRow = this.displayedMemory.rows[Re - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null;
|
|
15908
15908
|
}
|
|
15909
15909
|
getHandler() {
|
|
15910
15910
|
return this.outputFilter;
|
|
@@ -16589,7 +16589,7 @@ function Qc(s, e, t, i, r, n, a) {
|
|
|
16589
16589
|
}
|
|
16590
16590
|
T = x - t.presentationOffset;
|
|
16591
16591
|
}
|
|
16592
|
-
const L = y.endTime - y.startTime, E =
|
|
16592
|
+
const L = y.endTime - y.startTime, E = be((y.startTime + T - f) * 9e4, r * 9e4) / 9e4;
|
|
16593
16593
|
y.startTime = Math.max(E, 0), y.endTime = Math.max(E + L, 0);
|
|
16594
16594
|
const w = y.text.trim();
|
|
16595
16595
|
y.text = decodeURIComponent(encodeURIComponent(w)), y.id || (y.id = gs(y.startTime, y.endTime, w)), y.endTime > 0 && c.push(y);
|
|
@@ -17024,7 +17024,7 @@ class ru {
|
|
|
17024
17024
|
a.push(e);
|
|
17025
17025
|
return;
|
|
17026
17026
|
}
|
|
17027
|
-
const l = this.hls, c = (t = i.initSegment) != null && t.data ?
|
|
17027
|
+
const l = this.hls, c = (t = i.initSegment) != null && t.data ? Ae(i.initSegment.data, new Uint8Array(r)) : r;
|
|
17028
17028
|
Qc(c, this.initPTS[i.cc], this.vttCCs, i.cc, i.start, (u) => {
|
|
17029
17029
|
this._appendCues(u, i.level), l.trigger(p.SUBTITLE_FRAG_PROCESSED, {
|
|
17030
17030
|
success: !0,
|
|
@@ -17376,7 +17376,7 @@ class at {
|
|
|
17376
17376
|
keySystem: u,
|
|
17377
17377
|
mediaKeys: h
|
|
17378
17378
|
})).catch((h) => {
|
|
17379
|
-
c.length ? l(c) : h instanceof
|
|
17379
|
+
c.length ? l(c) : h instanceof Se ? o(h) : o(new Se({
|
|
17380
17380
|
type: q.KEY_SYSTEM_ERROR,
|
|
17381
17381
|
details: _.KEY_SYSTEM_NO_ACCESS,
|
|
17382
17382
|
error: h,
|
|
@@ -17422,7 +17422,7 @@ class at {
|
|
|
17422
17422
|
keySystem: t,
|
|
17423
17423
|
mediaKeys: i
|
|
17424
17424
|
}) {
|
|
17425
|
-
this.log(`Creating key-system session "${t}" keyId: ${
|
|
17425
|
+
this.log(`Creating key-system session "${t}" keyId: ${_e.hexDump(e.keyId || [])}`);
|
|
17426
17426
|
const r = i.createSession(), n = {
|
|
17427
17427
|
decryptdata: e,
|
|
17428
17428
|
keySystem: t,
|
|
@@ -17446,12 +17446,12 @@ class at {
|
|
|
17446
17446
|
throw new Error("Could not read keyId of undefined decryptdata");
|
|
17447
17447
|
if (e.keyId === null)
|
|
17448
17448
|
throw new Error("keyId is null");
|
|
17449
|
-
return
|
|
17449
|
+
return _e.hexDump(e.keyId);
|
|
17450
17450
|
}
|
|
17451
17451
|
updateKeySession(e, t) {
|
|
17452
17452
|
var i;
|
|
17453
17453
|
const r = e.mediaKeysSession;
|
|
17454
|
-
return this.log(`Updating key-session "${r.sessionId}" for keyID ${
|
|
17454
|
+
return this.log(`Updating key-session "${r.sessionId}" for keyID ${_e.hexDump(((i = e.decryptdata) == null ? void 0 : i.keyId) || [])}
|
|
17455
17455
|
} (data length: ${t && t.byteLength})`), r.update(t);
|
|
17456
17456
|
}
|
|
17457
17457
|
selectKeySystemFormat(e) {
|
|
@@ -17491,7 +17491,7 @@ class at {
|
|
|
17491
17491
|
throw new Error("invalid state");
|
|
17492
17492
|
}
|
|
17493
17493
|
handleError(e) {
|
|
17494
|
-
this.hls && (this.error(e.message), e instanceof
|
|
17494
|
+
this.hls && (this.error(e.message), e instanceof Se ? this.hls.trigger(p.ERROR, e.data) : this.hls.trigger(p.ERROR, {
|
|
17495
17495
|
type: q.KEY_SYSTEM_ERROR,
|
|
17496
17496
|
details: _.KEY_SYSTEM_NO_KEYS,
|
|
17497
17497
|
error: e,
|
|
@@ -17508,7 +17508,7 @@ class at {
|
|
|
17508
17508
|
}
|
|
17509
17509
|
getKeySystemSelectionPromise(e) {
|
|
17510
17510
|
if (e.length || (e = ai(this.config)), e.length === 0)
|
|
17511
|
-
throw new
|
|
17511
|
+
throw new Se({
|
|
17512
17512
|
type: q.KEY_SYSTEM_ERROR,
|
|
17513
17513
|
details: _.KEY_SYSTEM_NO_CONFIGURED_LICENSE,
|
|
17514
17514
|
fatal: !0
|
|
@@ -17544,7 +17544,7 @@ class at {
|
|
|
17544
17544
|
}
|
|
17545
17545
|
if (!n || !r)
|
|
17546
17546
|
return;
|
|
17547
|
-
const a =
|
|
17547
|
+
const a = _e.hexDump(r), {
|
|
17548
17548
|
keyIdToKeySessionPromise: o,
|
|
17549
17549
|
mediaKeySessions: l
|
|
17550
17550
|
} = this;
|
|
@@ -17553,7 +17553,7 @@ class at {
|
|
|
17553
17553
|
const h = l[u], d = h.decryptdata;
|
|
17554
17554
|
if (d.pssh || !d.keyId)
|
|
17555
17555
|
continue;
|
|
17556
|
-
const f =
|
|
17556
|
+
const f = _e.hexDump(d.keyId);
|
|
17557
17557
|
if (a === f || d.uri.replace(/-/g, "").indexOf(a) !== -1) {
|
|
17558
17558
|
c = o[f], delete o[f], d.pssh = new Uint8Array(i), d.keyId = r, c = o[a] = c.then(() => this.generateRequestWithPreferredKeySession(h, t, i, "encrypted-event-key-match"));
|
|
17559
17559
|
break;
|
|
@@ -17635,11 +17635,11 @@ class at {
|
|
|
17635
17635
|
e.mediaKeysSession.addEventListener("message", h), e.mediaKeysSession.addEventListener("keystatuseschange", d);
|
|
17636
17636
|
const f = new Promise((g, m) => {
|
|
17637
17637
|
u.on("error", m), u.on("keyStatus", (y) => {
|
|
17638
|
-
y.startsWith("usable") ? g() : y === "output-restricted" ? m(new
|
|
17638
|
+
y.startsWith("usable") ? g() : y === "output-restricted" ? m(new Se({
|
|
17639
17639
|
type: q.KEY_SYSTEM_ERROR,
|
|
17640
17640
|
details: _.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,
|
|
17641
17641
|
fatal: !1
|
|
17642
|
-
}, "HDCP level output restricted")) : y === "internal-error" ? m(new
|
|
17642
|
+
}, "HDCP level output restricted")) : y === "internal-error" ? m(new Se({
|
|
17643
17643
|
type: q.KEY_SYSTEM_ERROR,
|
|
17644
17644
|
details: _.KEY_SYSTEM_STATUS_INTERNAL_ERROR,
|
|
17645
17645
|
fatal: !0
|
|
@@ -17650,7 +17650,7 @@ class at {
|
|
|
17650
17650
|
var g;
|
|
17651
17651
|
this.log(`Request generated for key-session "${(g = e.mediaKeysSession) == null ? void 0 : g.sessionId}" keyId: ${c}`);
|
|
17652
17652
|
}).catch((g) => {
|
|
17653
|
-
throw new
|
|
17653
|
+
throw new Se({
|
|
17654
17654
|
type: q.KEY_SYSTEM_ERROR,
|
|
17655
17655
|
details: _.KEY_SYSTEM_NO_SESSION,
|
|
17656
17656
|
error: g,
|
|
@@ -17662,7 +17662,7 @@ class at {
|
|
|
17662
17662
|
}
|
|
17663
17663
|
onKeyStatusChange(e) {
|
|
17664
17664
|
e.mediaKeysSession.keyStatuses.forEach((t, i) => {
|
|
17665
|
-
this.log(`key status change "${t}" for keyStatuses keyId: ${
|
|
17665
|
+
this.log(`key status change "${t}" for keyStatuses keyId: ${_e.hexDump("buffer" in i ? new Uint8Array(i.buffer, i.byteOffset, i.byteLength) : new Uint8Array(i))} session keyId: ${_e.hexDump(new Uint8Array(e.decryptdata.keyId || []))} uri: ${e.decryptdata.uri}`), e.keyStatus = t;
|
|
17666
17666
|
});
|
|
17667
17667
|
}
|
|
17668
17668
|
fetchServerCertificate(e) {
|
|
@@ -17682,7 +17682,7 @@ class at {
|
|
|
17682
17682
|
a(d.data);
|
|
17683
17683
|
},
|
|
17684
17684
|
onError: (d, f, g, m) => {
|
|
17685
|
-
o(new
|
|
17685
|
+
o(new Se({
|
|
17686
17686
|
type: q.KEY_SYSTEM_ERROR,
|
|
17687
17687
|
details: _.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,
|
|
17688
17688
|
fatal: !0,
|
|
@@ -17694,7 +17694,7 @@ class at {
|
|
|
17694
17694
|
}, `"${e}" certificate request failed (${n}). Status: ${d.code} (${d.text})`));
|
|
17695
17695
|
},
|
|
17696
17696
|
onTimeout: (d, f, g) => {
|
|
17697
|
-
o(new
|
|
17697
|
+
o(new Se({
|
|
17698
17698
|
type: q.KEY_SYSTEM_ERROR,
|
|
17699
17699
|
details: _.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,
|
|
17700
17700
|
fatal: !0,
|
|
@@ -17717,7 +17717,7 @@ class at {
|
|
|
17717
17717
|
e.setServerCertificate(i).then((a) => {
|
|
17718
17718
|
this.log(`setServerCertificate ${a ? "success" : "not supported by CDM"} (${i == null ? void 0 : i.byteLength}) on "${t}"`), r(e);
|
|
17719
17719
|
}).catch((a) => {
|
|
17720
|
-
n(new
|
|
17720
|
+
n(new Se({
|
|
17721
17721
|
type: q.KEY_SYSTEM_ERROR,
|
|
17722
17722
|
details: _.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,
|
|
17723
17723
|
error: a,
|
|
@@ -17728,7 +17728,7 @@ class at {
|
|
|
17728
17728
|
}
|
|
17729
17729
|
renewLicense(e, t) {
|
|
17730
17730
|
return this.requestLicense(e, new Uint8Array(t)).then((i) => this.updateKeySession(e, new Uint8Array(i)).catch((r) => {
|
|
17731
|
-
throw new
|
|
17731
|
+
throw new Se({
|
|
17732
17732
|
type: q.KEY_SYSTEM_ERROR,
|
|
17733
17733
|
details: _.KEY_SYSTEM_SESSION_UPDATE_FAILED,
|
|
17734
17734
|
error: r,
|
|
@@ -17798,7 +17798,7 @@ class at {
|
|
|
17798
17798
|
} else {
|
|
17799
17799
|
const l = i.errorRetry, c = l ? l.maxNumRetry : 0;
|
|
17800
17800
|
if (this._requestLicenseFailureCount++, this._requestLicenseFailureCount > c || o.status >= 400 && o.status < 500)
|
|
17801
|
-
n(new
|
|
17801
|
+
n(new Se({
|
|
17802
17802
|
type: q.KEY_SYSTEM_ERROR,
|
|
17803
17803
|
details: _.KEY_SYSTEM_LICENSE_REQUEST_FAILED,
|
|
17804
17804
|
fatal: !0,
|
|
@@ -17869,7 +17869,7 @@ class at {
|
|
|
17869
17869
|
}
|
|
17870
17870
|
}
|
|
17871
17871
|
at.CDMCleanupPromise = void 0;
|
|
17872
|
-
class
|
|
17872
|
+
class Se extends Error {
|
|
17873
17873
|
constructor(e, t) {
|
|
17874
17874
|
super(t), this.data = void 0, e.error || (e.error = new Error(t)), this.data = e, e.err = e.error;
|
|
17875
17875
|
}
|
|
@@ -18363,7 +18363,7 @@ class Ku {
|
|
|
18363
18363
|
const {
|
|
18364
18364
|
errorAction: i
|
|
18365
18365
|
} = t;
|
|
18366
|
-
if ((i == null ? void 0 : i.action) === ge.SendAlternateToPenaltyBox && i.flags ===
|
|
18366
|
+
if ((i == null ? void 0 : i.action) === ge.SendAlternateToPenaltyBox && i.flags === Le.MoveAllAlternatesMatchingHost) {
|
|
18367
18367
|
const r = this.levels;
|
|
18368
18368
|
let n = this.pathwayPriority, a = this.pathwayId;
|
|
18369
18369
|
if (t.context) {
|
|
@@ -20527,7 +20527,7 @@ class gh extends os {
|
|
|
20527
20527
|
return this._forceStartLoad;
|
|
20528
20528
|
}
|
|
20529
20529
|
}
|
|
20530
|
-
class
|
|
20530
|
+
class Te {
|
|
20531
20531
|
/**
|
|
20532
20532
|
* Get the video-dev/hls.js package version.
|
|
20533
20533
|
*/
|
|
@@ -20565,13 +20565,13 @@ class Pe {
|
|
|
20565
20565
|
* Get the default configuration applied to new instances.
|
|
20566
20566
|
*/
|
|
20567
20567
|
static get DefaultConfig() {
|
|
20568
|
-
return
|
|
20568
|
+
return Te.defaultConfig ? Te.defaultConfig : la;
|
|
20569
20569
|
}
|
|
20570
20570
|
/**
|
|
20571
20571
|
* Replace the default configuration applied to new instances.
|
|
20572
20572
|
*/
|
|
20573
20573
|
static set DefaultConfig(e) {
|
|
20574
|
-
|
|
20574
|
+
Te.defaultConfig = e;
|
|
20575
20575
|
}
|
|
20576
20576
|
/**
|
|
20577
20577
|
* Creates an instance of an HLS client that can attach to exactly one `HTMLMediaElement`.
|
|
@@ -20579,7 +20579,7 @@ class Pe {
|
|
|
20579
20579
|
*/
|
|
20580
20580
|
constructor(e = {}) {
|
|
20581
20581
|
this.config = void 0, this.userConfig = void 0, this.coreComponents = void 0, this.networkControllers = void 0, this.started = !1, this._emitter = new ds(), this._autoLevelCapping = -1, this._maxHdcpLevel = null, this.abrController = void 0, this.bufferController = void 0, this.capLevelController = void 0, this.latencyController = void 0, this.levelController = void 0, this.streamController = void 0, this.audioTrackController = void 0, this.subtitleTrackController = void 0, this.emeController = void 0, this.cmcdController = void 0, this._media = null, this.url = null, this.triggeringException = void 0, no(e.debug || !1, "Hls instance");
|
|
20582
|
-
const t = this.config = sh(
|
|
20582
|
+
const t = this.config = sh(Te.DefaultConfig, e);
|
|
20583
20583
|
this.userConfig = e, t.progressive && rh(t);
|
|
20584
20584
|
const {
|
|
20585
20585
|
abrController: i,
|
|
@@ -21106,7 +21106,7 @@ class Pe {
|
|
|
21106
21106
|
return this.streamController.forceStartLoad;
|
|
21107
21107
|
}
|
|
21108
21108
|
}
|
|
21109
|
-
|
|
21109
|
+
Te.defaultConfig = void 0;
|
|
21110
21110
|
function ha() {
|
|
21111
21111
|
const s = document;
|
|
21112
21112
|
return !!(s.fullscreenElement || s.mozFullScreenElement || s.webkitFullscreenElement || s.msFullscreenElement);
|
|
@@ -21211,7 +21211,7 @@ const Ri = new Intl.NumberFormat(void 0, {
|
|
|
21211
21211
|
isFinished: !1,
|
|
21212
21212
|
isLoading: !0,
|
|
21213
21213
|
isError: !1,
|
|
21214
|
-
player: new
|
|
21214
|
+
player: new Te()
|
|
21215
21215
|
};
|
|
21216
21216
|
},
|
|
21217
21217
|
computed: {
|
|
@@ -21234,18 +21234,41 @@ const Ri = new Intl.NumberFormat(void 0, {
|
|
|
21234
21234
|
},
|
|
21235
21235
|
methods: {
|
|
21236
21236
|
initHls() {
|
|
21237
|
-
var e, t, i, r;
|
|
21237
|
+
var e, t, i, r, n;
|
|
21238
21238
|
const s = this.$refs.player;
|
|
21239
|
-
(e = this.player) != null && e.stopLoad && this.player.stopLoad(),
|
|
21239
|
+
(e = this.player) != null && e.stopLoad && this.player.stopLoad(), Te.isSupported() && (this.isLoading = !0, this.player = new Te({
|
|
21240
21240
|
startPosition: 0,
|
|
21241
|
-
xhrSetup: (
|
|
21242
|
-
this.streamingToken &&
|
|
21241
|
+
xhrSetup: (a) => {
|
|
21242
|
+
this.streamingToken && a.setRequestHeader(
|
|
21243
21243
|
"Authorization",
|
|
21244
21244
|
`Bearer ${this.streamingToken}`
|
|
21245
21245
|
);
|
|
21246
21246
|
}
|
|
21247
|
-
}), (t = this.player) == null || t.loadSource(this.sources[0].src), (i = this.player) == null || i.attachMedia(s), (r = this.player) == null || r.on(
|
|
21247
|
+
}), (t = this.player) == null || t.loadSource(this.sources[0].src), (i = this.player) == null || i.attachMedia(s), (r = this.player) == null || r.on(Te.Events.MANIFEST_PARSED, () => {
|
|
21248
21248
|
this.playing && s.play();
|
|
21249
|
+
}), (n = this.player) == null || n.on(Te.Events.ERROR, (a, o) => {
|
|
21250
|
+
var l;
|
|
21251
|
+
if (o.fatal)
|
|
21252
|
+
switch (o.type) {
|
|
21253
|
+
case Te.ErrorTypes.NETWORK_ERROR:
|
|
21254
|
+
if (((l = o.networkDetails) == null ? void 0 : l.status) === 404) {
|
|
21255
|
+
this.player.destroy(), this.videoListeners.error ? this.videoListeners.error() : this.handle404Error();
|
|
21256
|
+
return;
|
|
21257
|
+
}
|
|
21258
|
+
console.error("A network error occurred:", o), this.player.startLoad();
|
|
21259
|
+
break;
|
|
21260
|
+
case Te.ErrorTypes.MEDIA_ERROR:
|
|
21261
|
+
console.error("A media error occurred:", o), this.player.recoverMediaError();
|
|
21262
|
+
break;
|
|
21263
|
+
default:
|
|
21264
|
+
if (this.player.destroy(), this.videoListeners.error) {
|
|
21265
|
+
this.videoListeners.error();
|
|
21266
|
+
return;
|
|
21267
|
+
} else {
|
|
21268
|
+
this.handle404Error();
|
|
21269
|
+
return;
|
|
21270
|
+
}
|
|
21271
|
+
}
|
|
21249
21272
|
}));
|
|
21250
21273
|
},
|
|
21251
21274
|
handle404Error() {
|
|
@@ -21269,7 +21292,7 @@ const Ri = new Intl.NumberFormat(void 0, {
|
|
|
21269
21292
|
},
|
|
21270
21293
|
bindVideoEvent(s) {
|
|
21271
21294
|
const e = this.$refs.player, t = this.$refs.timelineContainer;
|
|
21272
|
-
s === "loadeddata" && (this.videoLength = Ci(e.duration)), s === "timeupdate" && (this.percentagePlayed = (e == null ? void 0 : e.currentTime) / e.duration * 100, t.style.setProperty(
|
|
21295
|
+
s === "loadeddata" && (this.videoLength = Ci(e == null ? void 0 : e.duration)), s === "timeupdate" && (this.percentagePlayed = (e == null ? void 0 : e.currentTime) / (e == null ? void 0 : e.duration) * 100, t.style.setProperty(
|
|
21273
21296
|
"--progress-position",
|
|
21274
21297
|
this.percentagePlayed.toString()
|
|
21275
21298
|
)), this.$emit(s, { event, player: e });
|
|
@@ -21279,7 +21302,7 @@ const Ri = new Intl.NumberFormat(void 0, {
|
|
|
21279
21302
|
s && (s.autoplay && this.setPlaying(!0), document.addEventListener("mouseup", this.handleScrubbingOnMouseEnd), document.addEventListener("keydown", this.handleKeyDown));
|
|
21280
21303
|
},
|
|
21281
21304
|
destroyPlayer() {
|
|
21282
|
-
window.removeEventListener("keydown", this.handleKeyDown), document.removeEventListener("mouseup", this.handleScrubbingOnMouseEnd);
|
|
21305
|
+
this.player && (this.player.stopLoad(), this.player.destroy()), window.removeEventListener("keydown", this.handleKeyDown), document.removeEventListener("mouseup", this.handleScrubbingOnMouseEnd);
|
|
21283
21306
|
},
|
|
21284
21307
|
removeFullscreenListeners() {
|
|
21285
21308
|
document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled || document.msFullscreenEnabled ? (document.removeEventListener(
|
|
@@ -21455,7 +21478,7 @@ var xh = function() {
|
|
|
21455
21478
|
Th,
|
|
21456
21479
|
!1,
|
|
21457
21480
|
null,
|
|
21458
|
-
"
|
|
21481
|
+
"41f72992",
|
|
21459
21482
|
null,
|
|
21460
21483
|
null
|
|
21461
21484
|
);
|