@eluvio/elv-player-js 2.1.19 → 2.1.21
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/.vite/manifest.json +15 -15
- package/dist/{dash.all.min-BT21BUPx.mjs → dash.all.min-5J8yNMod.mjs} +948 -932
- package/dist/{dash.all.min-DyD0Ukfn.js → dash.all.min-DcWAUYtf.js} +14 -14
- package/dist/elv-player-js.cjs.js +1 -1
- package/dist/elv-player-js.css +1 -1
- package/dist/elv-player-js.es.js +1 -1
- package/dist/index-Cy05VtkV.js +380 -0
- package/dist/{index-mZTC0Ozx.mjs → index-DGtOYjg1.mjs} +13824 -13751
- package/dist/{index-d1_smzyi.js → index-_P2w1dEo.js} +1 -1
- package/dist/{index-B6hXRwn0.mjs → index-tPLClaAD.mjs} +1 -1
- package/lib/player/Controls.js +10 -0
- package/lib/player/Player.js +4 -28
- package/lib/player/ThumbnailHandler.js +2 -2
- package/lib/static/stylesheets/controls-web.module.scss +11 -2
- package/lib/ui/WebControls.jsx +2 -2
- package/package.json +2 -2
- package/dist/index-Ch0cqMhO.js +0 -380
|
@@ -1,14 +1,30 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
|
|
1
|
+
import { g as il } from "./index-DGtOYjg1.mjs";
|
|
2
|
+
function al(qr, Ui) {
|
|
3
|
+
for (var Cr = 0; Cr < Ui.length; Cr++) {
|
|
4
|
+
const ar = Ui[Cr];
|
|
5
|
+
if (typeof ar != "string" && !Array.isArray(ar)) {
|
|
6
|
+
for (const Bn in ar)
|
|
7
|
+
if (Bn !== "default" && !(Bn in qr)) {
|
|
8
|
+
const Dr = Object.getOwnPropertyDescriptor(ar, Bn);
|
|
9
|
+
Dr && Object.defineProperty(qr, Bn, Dr.get ? Dr : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => ar[Bn]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(qr, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var va = { exports: {} };
|
|
3
19
|
/*! For license information please see dash.all.min.js.LICENSE.txt */
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
return
|
|
7
|
-
(function(
|
|
8
|
-
|
|
20
|
+
var Xo;
|
|
21
|
+
function ol() {
|
|
22
|
+
return Xo || (Xo = 1, (function(qr, Ui) {
|
|
23
|
+
(function(Cr, ar) {
|
|
24
|
+
qr.exports = ar();
|
|
9
25
|
})(self, (function() {
|
|
10
26
|
return (function() {
|
|
11
|
-
var
|
|
27
|
+
var Cr = { 8107: function(vt, Le) {
|
|
12
28
|
var M, ce, I, u, n, _ = function(h) {
|
|
13
29
|
for (var g = [], r = 0; r < h.length; ++r) {
|
|
14
30
|
var m = h.charCodeAt(r);
|
|
@@ -1274,7 +1290,7 @@ function rl() {
|
|
|
1274
1290
|
Le.A = ce;
|
|
1275
1291
|
}, 4716: function(vt, Le, M) {
|
|
1276
1292
|
M.d(Le, { A: function() {
|
|
1277
|
-
return
|
|
1293
|
+
return rl;
|
|
1278
1294
|
} });
|
|
1279
1295
|
var ce = M(4947), I = M.n(ce), u = M(7256), n = M(5810), _ = M(1991), y = M(8366), i = M(4865), h = M(5742), g = M(4413), r = M(7547);
|
|
1280
1296
|
function m() {
|
|
@@ -1478,8 +1494,8 @@ function rl() {
|
|
|
1478
1494
|
}, getEnded: Ze, getIsDynamic: at, getStreamController: function() {
|
|
1479
1495
|
return o;
|
|
1480
1496
|
}, computeAndSetLiveDelay: function(Te, We) {
|
|
1481
|
-
var wt, jt, hn, En = !isNaN(Te) && isFinite(Te) ? Te : NaN, dn = C.getSuggestedPresentationDelay(),
|
|
1482
|
-
return wt = isNaN(S.get().streaming.delay.liveDelay) ? S.get().streaming.delay.liveDelayFragmentCount === null || isNaN(S.get().streaming.delay.liveDelayFragmentCount) || isNaN(En) ?
|
|
1497
|
+
var wt, jt, hn, En = !isNaN(Te) && isFinite(Te) ? Te : NaN, dn = C.getSuggestedPresentationDelay(), qn = l.getServiceDescriptionSettings();
|
|
1498
|
+
return wt = isNaN(S.get().streaming.delay.liveDelay) ? S.get().streaming.delay.liveDelayFragmentCount === null || isNaN(S.get().streaming.delay.liveDelayFragmentCount) || isNaN(En) ? qn && !isNaN(qn.liveDelay) && qn.liveDelay > 0 ? qn.liveDelay : S.get().streaming.delay.useSuggestedPresentationDelay === !0 && dn !== null && !isNaN(dn) && dn > 0 ? dn : isNaN(En) ? We && !isNaN(We.minBufferTime) ? 4 * We.minBufferTime : 4 * w.manifestInfo.minBufferTime : 4 * En : En * S.get().streaming.delay.liveDelayFragmentCount : S.get().streaming.delay.liveDelay, (hn = C.getAvailabilityStartTime()) !== null && (he = hn), jt = We && We.dvrWindowSize > 0 ? Math.min(wt, We.dvrWindowSize) : wt, H = jt, B = jt, jt;
|
|
1483
1499
|
}, getLiveDelay: function() {
|
|
1484
1500
|
return H;
|
|
1485
1501
|
}, getOriginalLiveDelay: function() {
|
|
@@ -1896,8 +1912,8 @@ function rl() {
|
|
|
1896
1912
|
te && xe ? b ? (w = !1, (function(Te, We) {
|
|
1897
1913
|
return new Promise((function(wt, jt) {
|
|
1898
1914
|
var hn = ue.getQualityFor(Y, $.id);
|
|
1899
|
-
H = Ne(f).create({ mediaSource: b, textController: de, eventBus: N }), (function(En, dn,
|
|
1900
|
-
var Pn = fe(
|
|
1915
|
+
H = Ne(f).create({ mediaSource: b, textController: de, eventBus: N }), (function(En, dn, qn) {
|
|
1916
|
+
var Pn = fe(qn);
|
|
1901
1917
|
return dn && dn[Y] && (Y === u.A.VIDEO || Y === u.A.AUDIO) ? H.initializeForStreamSwitch(En, Pn, dn[Y]) : H.initializeForFirstUse($, En, Pn);
|
|
1902
1918
|
})(Te, We, hn).then((function() {
|
|
1903
1919
|
return gt(fe(hn));
|
|
@@ -1995,8 +2011,8 @@ function rl() {
|
|
|
1995
2011
|
})(xe, lt), Te = (function(We, wt) {
|
|
1996
2012
|
var jt = wt.end(wt.length - 1) + 0.5, hn = pt(We), En = $.manifestInfo.duration >= ge.get().streaming.buffer.longFormContentDurationThreshold ? ge.get().streaming.buffer.bufferTimeAtTopQualityLongForm : ge.get().streaming.buffer.bufferTimeAtTopQuality, dn = isNaN(hn) ? We : Math.min(hn, We + En);
|
|
1997
2013
|
if (dn >= wt.end(wt.length - 1)) return null;
|
|
1998
|
-
var
|
|
1999
|
-
if (
|
|
2014
|
+
var qn = L.getRequests({ state: J.FRAGMENT_MODEL_EXECUTED, time: We, threshold: ft })[0];
|
|
2015
|
+
if (qn && (dn = Math.max(qn.startTime + qn.duration, dn)), ge.get().streaming.buffer.avoidCurrentTimeRangePruning) {
|
|
2000
2016
|
for (var Pn = 0; Pn < wt.length; Pn++) if (wt.start(Pn) <= We && We <= wt.end(Pn) && wt.start(Pn) <= dn && dn <= wt.end(Pn)) {
|
|
2001
2017
|
var Zn = dn;
|
|
2002
2018
|
dn = Pn + 1 < wt.length ? wt.start(Pn + 1) : wt.end(Pn) + 1, o.debug("Buffered range [" + wt.start(Pn) + ", " + wt.end(Pn) + "] overlaps with targetTime " + We + " and range to be pruned [" + Zn + ", " + jt + "], using [" + dn + ", " + jt + "] instead" + (dn < jt ? "" : " (no actual pruning)"));
|
|
@@ -2742,10 +2758,10 @@ function rl() {
|
|
|
2742
2758
|
if (lt && ye) {
|
|
2743
2759
|
var Te;
|
|
2744
2760
|
if (Y.get().streaming.parseInbandPrft && Fe.request.type === je.G.MEDIA_SEGMENT_TYPE) {
|
|
2745
|
-
var We = (function(dn,
|
|
2761
|
+
var We = (function(dn, qn) {
|
|
2746
2762
|
var Pn = dn.getBoxes("prft"), Zn = [];
|
|
2747
|
-
return Pn.forEach((function(
|
|
2748
|
-
Zn.push((function(ir,
|
|
2763
|
+
return Pn.forEach((function(Rr) {
|
|
2764
|
+
Zn.push((function(ir, fr) {
|
|
2749
2765
|
var er = "unknown";
|
|
2750
2766
|
switch (ir.flags) {
|
|
2751
2767
|
case 0:
|
|
@@ -2757,23 +2773,23 @@ function rl() {
|
|
|
2757
2773
|
case 24:
|
|
2758
2774
|
er = n.A.PRODUCER_REFERENCE_TIME_TYPE.CAPTURED;
|
|
2759
2775
|
}
|
|
2760
|
-
var
|
|
2761
|
-
return { type: er, ntpTimestamp:
|
|
2762
|
-
})(
|
|
2776
|
+
var wr = 1e3 * ir.ntp_timestamp_sec + ir.ntp_timestamp_frac / Math.pow(2, 32) * 1e3;
|
|
2777
|
+
return { type: er, ntpTimestamp: wr = Tt(he).getInstance().ntpToUTC(wr), mediaTime: ir.media_time / fr };
|
|
2778
|
+
})(Rr, qn));
|
|
2763
2779
|
})), Zn;
|
|
2764
2780
|
})(Te = Te || ge.parse(xe), ye.timescale);
|
|
2765
2781
|
We && We.length && oe.trigger(r.A.INBAND_PRFT, { data: We }, { streamId: te.id, mediaType: Z });
|
|
2766
2782
|
}
|
|
2767
2783
|
var wt = N.getEventsFor(lt.mediaInfo, null, te), jt = N.getEventsFor(lt, ye, te);
|
|
2768
2784
|
if (wt && wt.length > 0 || jt && jt.length > 0) {
|
|
2769
|
-
var hn = R.getRequests({ state: J.FRAGMENT_MODEL_EXECUTED, quality: Ge, index: st.index })[0], En = (function(dn,
|
|
2785
|
+
var hn = R.getRequests({ state: J.FRAGMENT_MODEL_EXECUTED, quality: Ge, index: st.index })[0], En = (function(dn, qn, Pn, Zn) {
|
|
2770
2786
|
try {
|
|
2771
|
-
for (var
|
|
2772
|
-
var
|
|
2773
|
-
if (!
|
|
2774
|
-
for (var
|
|
2775
|
-
var
|
|
2776
|
-
|
|
2787
|
+
for (var Rr = {}, ir = [], fr = Pn.concat(Zn), er = 0, wr = fr.length; er < wr; er++) Rr[fr[er].schemeIdUri + "/" + fr[er].value] = fr[er];
|
|
2788
|
+
var dr = dn.getBoxes("emsg");
|
|
2789
|
+
if (!dr || dr.length === 0) return ir;
|
|
2790
|
+
for (var pr = dn.getBox("sidx"), Li = !pr || isNaN(pr.earliest_presentation_time) || isNaN(pr.timescale) ? qn && !isNaN(qn.mediaStartTime) ? qn.mediaStartTime : 0 : pr.earliest_presentation_time / pr.timescale, Ar = Math.max(Li, 0), fi = U.getCurrentRepresentation(), jr = 0, Fi = dr.length; jr < Fi; jr++) {
|
|
2791
|
+
var Nr = N.getEvent(dr[jr], Rr, Ar, fi);
|
|
2792
|
+
Nr && ir.push(Nr);
|
|
2777
2793
|
}
|
|
2778
2794
|
return ir;
|
|
2779
2795
|
} catch {
|
|
@@ -3156,7 +3172,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3156
3172
|
} }, e;
|
|
3157
3173
|
}
|
|
3158
3174
|
xn.__dashjs_factory_name = "FetchLoader";
|
|
3159
|
-
var
|
|
3175
|
+
var Hn = h.A.getClassFactory(xn), An = M(7125);
|
|
3160
3176
|
function Un(t) {
|
|
3161
3177
|
return Un = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
3162
3178
|
return typeof e;
|
|
@@ -3167,10 +3183,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3167
3183
|
function Sn(t, e) {
|
|
3168
3184
|
for (var o = 0; o < e.length; o++) {
|
|
3169
3185
|
var l = e[o];
|
|
3170
|
-
l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t,
|
|
3186
|
+
l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, Gn(l.key), l);
|
|
3171
3187
|
}
|
|
3172
3188
|
}
|
|
3173
|
-
function
|
|
3189
|
+
function Gn(t) {
|
|
3174
3190
|
var e = (function(o) {
|
|
3175
3191
|
if (Un(o) != "object" || !o) return o;
|
|
3176
3192
|
var l = o[Symbol.toPrimitive];
|
|
@@ -3183,7 +3199,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3183
3199
|
})(t);
|
|
3184
3200
|
return Un(e) == "symbol" ? e : e + "";
|
|
3185
3201
|
}
|
|
3186
|
-
var
|
|
3202
|
+
var Vn = (function() {
|
|
3187
3203
|
return t = function o() {
|
|
3188
3204
|
(function(l, p) {
|
|
3189
3205
|
if (!(l instanceof p)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -3195,80 +3211,80 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3195
3211
|
} }]) && Sn(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
3196
3212
|
var t, e;
|
|
3197
3213
|
})();
|
|
3198
|
-
function
|
|
3214
|
+
function Wn(t, e, o) {
|
|
3199
3215
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
3200
3216
|
}
|
|
3201
|
-
var
|
|
3217
|
+
var hr = Wn((function t() {
|
|
3202
3218
|
(function(e, o) {
|
|
3203
3219
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
3204
3220
|
})(this, t), this.period = null, this.index = -1, this.type = null;
|
|
3205
3221
|
}));
|
|
3206
|
-
function
|
|
3222
|
+
function Or(t, e, o) {
|
|
3207
3223
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
3208
3224
|
}
|
|
3209
|
-
var
|
|
3225
|
+
var gr = Or((function t() {
|
|
3210
3226
|
(function(e, o) {
|
|
3211
3227
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
3212
3228
|
})(this, t), this.id = null, this.index = -1, this.duration = NaN, this.start = NaN, this.mpd = null, this.nextPeriodId = null;
|
|
3213
3229
|
}));
|
|
3214
|
-
|
|
3215
|
-
var
|
|
3216
|
-
function
|
|
3230
|
+
gr.DEFAULT_ID = "defaultId";
|
|
3231
|
+
var ur = gr;
|
|
3232
|
+
function mr(t, e, o) {
|
|
3217
3233
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
3218
3234
|
}
|
|
3219
|
-
var
|
|
3235
|
+
var Yr = mr((function t() {
|
|
3220
3236
|
(function(e, o) {
|
|
3221
3237
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
3222
3238
|
})(this, t), this.manifest = null, this.suggestedPresentationDelay = 0, this.availabilityStartTime = null, this.availabilityEndTime = Number.POSITIVE_INFINITY, this.timeShiftBufferDepth = Number.POSITIVE_INFINITY, this.maxSegmentDuration = Number.POSITIVE_INFINITY, this.publishTime = null, this.minimumUpdatePeriod = NaN, this.mediaPresentationDuration = NaN;
|
|
3223
|
-
})),
|
|
3224
|
-
function
|
|
3239
|
+
})), Hr = M(289);
|
|
3240
|
+
function vr(t, e, o) {
|
|
3225
3241
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
3226
3242
|
}
|
|
3227
|
-
var
|
|
3243
|
+
var Vr = vr((function t() {
|
|
3228
3244
|
(function(e, o) {
|
|
3229
3245
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
3230
3246
|
})(this, t), this.type = "", this.duration = NaN, this.presentationTime = NaN, this.id = NaN, this.messageData = "", this.eventStream = null, this.presentationTimeDelta = NaN;
|
|
3231
3247
|
}));
|
|
3232
|
-
function
|
|
3248
|
+
function Bi(t, e, o) {
|
|
3233
3249
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
3234
3250
|
}
|
|
3235
|
-
var
|
|
3251
|
+
var Mr = Bi((function t(e, o, l, p) {
|
|
3236
3252
|
(function(C, b) {
|
|
3237
3253
|
if (!(C instanceof b)) throw new TypeError("Cannot call a class as a function");
|
|
3238
3254
|
})(this, t), this.url = e || "", this.serviceLocation = o || e || "", this.dvbPriority = l || 1, this.dvbWeight = p || 1, this.availabilityTimeOffset = 0, this.availabilityTimeComplete = !0, this.queryParams = {};
|
|
3239
3255
|
}));
|
|
3240
|
-
|
|
3241
|
-
var
|
|
3242
|
-
function
|
|
3256
|
+
Mr.DEFAULT_DVB_PRIORITY = 1, Mr.DEFAULT_DVB_WEIGHT = 1;
|
|
3257
|
+
var Pr = Mr;
|
|
3258
|
+
function di(t, e, o) {
|
|
3243
3259
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
3244
3260
|
}
|
|
3245
|
-
var
|
|
3261
|
+
var pi = di((function t() {
|
|
3246
3262
|
(function(e, o) {
|
|
3247
3263
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
3248
3264
|
})(this, t), this.adaptionSet = null, this.representation = null, this.period = null, this.timescale = 1, this.value = "", this.schemeIdUri = "", this.presentationTimeOffset = 0;
|
|
3249
3265
|
}));
|
|
3250
|
-
function
|
|
3266
|
+
function hi(t, e, o) {
|
|
3251
3267
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
3252
3268
|
}
|
|
3253
|
-
var
|
|
3269
|
+
var gi = hi((function t() {
|
|
3254
3270
|
(function(e, o) {
|
|
3255
3271
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
3256
3272
|
})(this, t), this.id = null, this.inband = !1, this.type = "encoder", this.applicationScheme = null, this.wallClockTime = null, this.presentationTime = NaN, this.UTCTiming = null;
|
|
3257
3273
|
}));
|
|
3258
|
-
function
|
|
3274
|
+
function Kr(t, e, o) {
|
|
3259
3275
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
3260
3276
|
}
|
|
3261
|
-
var
|
|
3277
|
+
var Lr = Kr((function t() {
|
|
3262
3278
|
(function(e, o) {
|
|
3263
3279
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
3264
3280
|
})(this, t), this.defaultServiceLocation = null, this.defaultServiceLocationArray = [], this.queryBeforeStart = !1, this.serverUrl = null, this.clientRequirement = !0;
|
|
3265
3281
|
}));
|
|
3266
|
-
function
|
|
3267
|
-
return
|
|
3282
|
+
function Tr(t) {
|
|
3283
|
+
return Tr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
3268
3284
|
return typeof e;
|
|
3269
3285
|
} : function(e) {
|
|
3270
3286
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3271
|
-
},
|
|
3287
|
+
}, Tr(t);
|
|
3272
3288
|
}
|
|
3273
3289
|
function ot(t, e) {
|
|
3274
3290
|
for (var o = 0; o < e.length; o++) {
|
|
@@ -3278,16 +3294,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3278
3294
|
}
|
|
3279
3295
|
function et(t) {
|
|
3280
3296
|
var e = (function(o) {
|
|
3281
|
-
if (
|
|
3297
|
+
if (Tr(o) != "object" || !o) return o;
|
|
3282
3298
|
var l = o[Symbol.toPrimitive];
|
|
3283
3299
|
if (l !== void 0) {
|
|
3284
3300
|
var p = l.call(o, "string");
|
|
3285
|
-
if (
|
|
3301
|
+
if (Tr(p) != "object") return p;
|
|
3286
3302
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3287
3303
|
}
|
|
3288
3304
|
return String(o);
|
|
3289
3305
|
})(t);
|
|
3290
|
-
return
|
|
3306
|
+
return Tr(e) == "symbol" ? e : e + "";
|
|
3291
3307
|
}
|
|
3292
3308
|
var rt = (function() {
|
|
3293
3309
|
return t = function o() {
|
|
@@ -3480,14 +3496,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3480
3496
|
}
|
|
3481
3497
|
function te(f, N) {
|
|
3482
3498
|
if (!f) throw new Error("Period cannot be null or undefined");
|
|
3483
|
-
var S =
|
|
3499
|
+
var S = ur.DEFAULT_ID + "_" + N;
|
|
3484
3500
|
return f.hasOwnProperty(n.A.ID) && f.id.length > 0 && f.id !== "__proto__" && (S = f.id), S;
|
|
3485
3501
|
}
|
|
3486
3502
|
function Z(f, N, S) {
|
|
3487
3503
|
var L, R = [];
|
|
3488
3504
|
if (!f) return R;
|
|
3489
3505
|
for (L = 0; L < f.length; L++) {
|
|
3490
|
-
var V = new
|
|
3506
|
+
var V = new pi();
|
|
3491
3507
|
if (V.timescale = 1, V.representation = N, !f[L].hasOwnProperty(u.A.SCHEME_ID_URI)) throw new Error("Invalid EventStream. SchemeIdUri has to be set");
|
|
3492
3508
|
V.schemeIdUri = f[L].schemeIdUri, f[L].hasOwnProperty(n.A.TIMESCALE) && (V.timescale = f[L].timescale), f[L].hasOwnProperty(n.A.VALUE) && (V.value = f[L].value), R.push(V), V.period = S;
|
|
3493
3509
|
}
|
|
@@ -3497,13 +3513,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3497
3513
|
var N = [], S = f.BaseURL_asArray || [f.baseUri], L = !1;
|
|
3498
3514
|
return S.some((function(R) {
|
|
3499
3515
|
if (R) {
|
|
3500
|
-
var V = new
|
|
3516
|
+
var V = new Pr(), de = R.__text || R;
|
|
3501
3517
|
return C.isRelative(de) && (L = !0, f.baseUri && (de = C.resolve(de, f.baseUri))), V.url = de, R.hasOwnProperty(n.A.SERVICE_LOCATION) && R.serviceLocation.length ? V.serviceLocation = R.serviceLocation : V.serviceLocation = de, R.hasOwnProperty(n.A.DVB_PRIORITY) && (V.dvbPriority = R[n.A.DVB_PRIORITY]), R.hasOwnProperty(n.A.DVB_WEIGHT) && (V.dvbWeight = R[n.A.DVB_WEIGHT]), R.hasOwnProperty(n.A.AVAILABILITY_TIME_OFFSET) && (V.availabilityTimeOffset = R[n.A.AVAILABILITY_TIME_OFFSET]), R.hasOwnProperty(n.A.AVAILABILITY_TIME_COMPLETE) && (V.availabilityTimeComplete = R[n.A.AVAILABILITY_TIME_COMPLETE] !== "false"), N.push(V), L;
|
|
3502
3518
|
}
|
|
3503
3519
|
})), N;
|
|
3504
3520
|
}
|
|
3505
3521
|
function z(f) {
|
|
3506
|
-
var N = new
|
|
3522
|
+
var N = new Lr();
|
|
3507
3523
|
return N.serverUrl = f.__text, f.hasOwnProperty(n.A.DEFAULT_SERVICE_LOCATION) && (N.defaultServiceLocation = f[n.A.DEFAULT_SERVICE_LOCATION], N.defaultServiceLocationArray = N.defaultServiceLocation.split(" ")), f.hasOwnProperty(n.A.QUERY_BEFORE_START) && (N.queryBeforeStart = f[n.A.QUERY_BEFORE_START].toLowerCase() === "true"), f.hasOwnProperty(n.A.CLIENT_REQUIREMENT) && (N.clientRequirement = f[n.A.CLIENT_REQUIREMENT].toLowerCase() !== "false"), N;
|
|
3508
3524
|
}
|
|
3509
3525
|
return t = { getIsTypeOf: F, getIsText: B, getIsFragmented: U, getProducerReferenceTimesForAdaptation: function(f) {
|
|
@@ -3521,7 +3537,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3521
3537
|
}));
|
|
3522
3538
|
var S = [];
|
|
3523
3539
|
return N.forEach((function(L) {
|
|
3524
|
-
var R = new
|
|
3540
|
+
var R = new gi();
|
|
3525
3541
|
L.hasOwnProperty(n.A.ID) && (R[n.A.ID] = L[n.A.ID], L.hasOwnProperty(n.A.WALL_CLOCK_TIME) && (R[n.A.WALL_CLOCK_TIME] = L[n.A.WALL_CLOCK_TIME], L.hasOwnProperty(n.A.PRESENTATION_TIME) && (R[n.A.PRESENTATION_TIME] = L[n.A.PRESENTATION_TIME], L.hasOwnProperty(n.A.INBAND) && (R[n.A.INBAND] = L[n.A.INBAND] !== "false"), L.hasOwnProperty(n.A.TYPE) && (R[n.A.TYPE] = L[n.A.TYPE]), S.push(R))));
|
|
3526
3542
|
})), S;
|
|
3527
3543
|
}, getLanguageForAdaptation: function(f) {
|
|
@@ -3625,7 +3641,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3625
3641
|
ue && (S = ue[0]);
|
|
3626
3642
|
}
|
|
3627
3643
|
for (var P = 0, $ = de.Representation_asArray.length; P < $; ++P) {
|
|
3628
|
-
var Y = de.Representation_asArray[P], ge = new
|
|
3644
|
+
var Y = de.Representation_asArray[P], ge = new Vn();
|
|
3629
3645
|
if (ge.index = P, ge.adaptation = f, Y.hasOwnProperty(n.A.ID) && (ge.id = Y.id), Y.hasOwnProperty(n.A.CODECS) && (ge.codecs = Y.codecs), Y.hasOwnProperty(n.A.MIME_TYPE) && (ge.mimeType = Y[n.A.MIME_TYPE]), Y.hasOwnProperty(n.A.CODEC_PRIVATE_DATA) && (ge.codecPrivateData = Y.codecPrivateData), Y.hasOwnProperty(n.A.BANDWITH) && (ge.bandwidth = Y.bandwidth), Y.hasOwnProperty(n.A.WIDTH) && (ge.width = Y.width), Y.hasOwnProperty(n.A.HEIGHT) && (ge.height = Y.height), Y.hasOwnProperty(n.A.SCAN_TYPE) && (ge.scanType = Y.scanType), Y.hasOwnProperty(n.A.MAX_PLAYOUT_RATE) && (ge.maxPlayoutRate = Y.maxPlayoutRate), Y.hasOwnProperty(n.A.SEGMENT_BASE) ? (N = Y.SegmentBase, ge.segmentInfoType = n.A.SEGMENT_BASE) : Y.hasOwnProperty(n.A.SEGMENT_LIST) ? (N = Y.SegmentList).hasOwnProperty(n.A.SEGMENT_TIMELINE) ? ge.segmentInfoType = n.A.SEGMENT_TIMELINE : ge.segmentInfoType = n.A.SEGMENT_LIST : Y.hasOwnProperty(n.A.SEGMENT_TEMPLATE) ? ((N = Y.SegmentTemplate).hasOwnProperty(n.A.SEGMENT_TIMELINE) ? ge.segmentInfoType = n.A.SEGMENT_TIMELINE : ge.segmentInfoType = n.A.SEGMENT_TEMPLATE, N.hasOwnProperty(n.A.INITIALIZATION_MINUS) && (ge.initialization = N.initialization.split("$Bandwidth$").join(Y.bandwidth).split("$RepresentationID$").join(Y.id))) : ge.segmentInfoType = n.A.BASE_URL, ge.essentialProperties = he(Y), N) {
|
|
3630
3646
|
if (N.hasOwnProperty(n.A.INITIALIZATION)) {
|
|
3631
3647
|
var ve = N.Initialization;
|
|
@@ -3639,11 +3655,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3639
3655
|
return V;
|
|
3640
3656
|
}, getAdaptationsForPeriod: function(f) {
|
|
3641
3657
|
var N, S, L, R = f && b(f.index) ? f.mpd.manifest.Period_asArray[f.index] : null, V = [];
|
|
3642
|
-
if (R && R.AdaptationSet_asArray) for (L = 0; L < R.AdaptationSet_asArray.length; L++) S = R.AdaptationSet_asArray[L], N = new
|
|
3658
|
+
if (R && R.AdaptationSet_asArray) for (L = 0; L < R.AdaptationSet_asArray.length; L++) S = R.AdaptationSet_asArray[L], N = new hr(), S.hasOwnProperty(n.A.ID) && (N.id = S.id), N.index = L, N.period = f, F(S, u.A.MUXED) ? N.type = u.A.MUXED : F(S, u.A.AUDIO) ? N.type = u.A.AUDIO : H(S) ? N.type = u.A.VIDEO : B(S) ? N.type = u.A.TEXT : w(S) ? N.type = u.A.IMAGE : e.warn("Unknown Adaptation stream type"), V.push(N);
|
|
3643
3659
|
return V;
|
|
3644
3660
|
}, getRegularPeriods: function(f) {
|
|
3645
3661
|
var N, S, L = !!f && ie(f.manifest), R = [], V = null, de = null, ue = null, P = null;
|
|
3646
|
-
for (S = 0, N = f && f.manifest && f.manifest.Period_asArray ? f.manifest.Period_asArray.length : 0; S < N; S++) (de = f.manifest.Period_asArray[S]).hasOwnProperty(n.A.START) ? (P = new
|
|
3662
|
+
for (S = 0, N = f && f.manifest && f.manifest.Period_asArray ? f.manifest.Period_asArray.length : 0; S < N; S++) (de = f.manifest.Period_asArray[S]).hasOwnProperty(n.A.START) ? (P = new ur()).start = de.start : V !== null && V.hasOwnProperty(n.A.DURATION) && ue !== null ? (P = new ur()).start = parseFloat((ue.start + ue.duration).toFixed(5)) : S !== 0 || L || ((P = new ur()).start = 0), ue !== null && isNaN(ue.duration) && (P !== null ? ue.duration = parseFloat((P.start - ue.start).toFixed(5)) : e.warn("First period duration could not be calculated because lack of start and duration period properties. This will cause timing issues during playback")), P !== null && (P.id = te(de, S), P.index = S, P.mpd = f, de.hasOwnProperty(n.A.DURATION) && (P.duration = de.duration), ue && (ue.nextPeriodId = P.id), R.push(P), V = de, ue = P), de = null, P = null;
|
|
3647
3663
|
return R.length === 0 || ue !== null && isNaN(ue.duration) && (ue.duration = parseFloat(((function($) {
|
|
3648
3664
|
(function() {
|
|
3649
3665
|
if (!o || !o.hasOwnProperty("error")) throw new Error(u.A.MISSING_CONFIG_ERROR);
|
|
@@ -3652,15 +3668,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3652
3668
|
return $.mpd.manifest.mediaPresentationDuration ? Y = $.mpd.manifest.mediaPresentationDuration : $.duration ? Y = $.duration : ge ? Y = Number.POSITIVE_INFINITY : o.error(new pe.A(me.MANIFEST_ERROR_ID_PARSE_CODE, "Must have @mediaPresentationDuration on MPD or an explicit @duration on the last period.", $)), Y;
|
|
3653
3669
|
})(ue) - ue.start).toFixed(5))), R;
|
|
3654
3670
|
}, getMpd: function(f) {
|
|
3655
|
-
var N = new
|
|
3671
|
+
var N = new Yr();
|
|
3656
3672
|
return f && (N.manifest = f, f.hasOwnProperty(n.A.AVAILABILITY_START_TIME) ? N.availabilityStartTime = new Date(f.availabilityStartTime.getTime()) : f.loadedTime && (N.availabilityStartTime = new Date(f.loadedTime.getTime())), f.hasOwnProperty(n.A.AVAILABILITY_END_TIME) && (N.availabilityEndTime = new Date(f.availabilityEndTime.getTime())), f.hasOwnProperty(n.A.MINIMUM_UPDATE_PERIOD) && (N.minimumUpdatePeriod = f.minimumUpdatePeriod), f.hasOwnProperty(n.A.MEDIA_PRESENTATION_DURATION) && (N.mediaPresentationDuration = f.mediaPresentationDuration), f.hasOwnProperty(n.A.SUGGESTED_PRESENTATION_DELAY) && (N.suggestedPresentationDelay = f.suggestedPresentationDelay), f.hasOwnProperty(n.A.TIMESHIFT_BUFFER_DEPTH) && (N.timeShiftBufferDepth = f.timeShiftBufferDepth), f.hasOwnProperty(n.A.MAX_SEGMENT_DURATION) && (N.maxSegmentDuration = f.maxSegmentDuration), f.hasOwnProperty(n.A.PUBLISH_TIME) && (N.publishTime = new Date(f.publishTime))), N;
|
|
3657
3673
|
}, getEventsForPeriod: function(f) {
|
|
3658
3674
|
var N, S, L = f && f.mpd && f.mpd.manifest ? f.mpd.manifest : null, R = L ? L.Period_asArray : null, V = R && f && b(f.index) ? R[f.index].EventStream_asArray : null, de = [];
|
|
3659
3675
|
if (V) for (N = 0; N < V.length; N++) {
|
|
3660
|
-
var ue = new
|
|
3676
|
+
var ue = new pi();
|
|
3661
3677
|
if (ue.period = f, ue.timescale = 1, !V[N].hasOwnProperty(u.A.SCHEME_ID_URI)) throw new Error("Invalid EventStream. SchemeIdUri has to be set");
|
|
3662
3678
|
for (ue.schemeIdUri = V[N][u.A.SCHEME_ID_URI], V[N].hasOwnProperty(n.A.TIMESCALE) && (ue.timescale = V[N][n.A.TIMESCALE]), V[N].hasOwnProperty(n.A.VALUE) && (ue.value = V[N][n.A.VALUE]), V[N].hasOwnProperty(n.A.PRESENTATION_TIME_OFFSET) && (ue.presentationTimeOffset = V[N][n.A.PRESENTATION_TIME_OFFSET]), S = 0; V[N].Event_asArray && S < V[N].Event_asArray.length; S++) {
|
|
3663
|
-
var P = V[N].Event_asArray[S], $ = new
|
|
3679
|
+
var P = V[N].Event_asArray[S], $ = new Vr();
|
|
3664
3680
|
$.presentationTime = 0, $.eventStream = ue, P.hasOwnProperty(n.A.PRESENTATION_TIME) && ($.presentationTime = P.presentationTime);
|
|
3665
3681
|
var Y = ue.presentationTimeOffset ? ue.presentationTimeOffset / ue.timescale : 0;
|
|
3666
3682
|
$.calculatedPresentationTime = $.presentationTime / ue.timescale + f.start - Y, P.hasOwnProperty(n.A.DURATION) && ($.duration = P.duration / ue.timescale), P.hasOwnProperty(n.A.ID) ? $.id = P.id : $.id = null, P.Signal && P.Signal.Binary ? $.messageData = l.decodeArray(P.Signal.Binary.toString()) : $.messageData = P.messageData || P.__cdata || P.__text, de.push($);
|
|
@@ -3696,7 +3712,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3696
3712
|
}, getUTCTimingSources: function(f) {
|
|
3697
3713
|
var N = ie(f), S = !!f && f.hasOwnProperty(n.A.AVAILABILITY_START_TIME), L = f ? f.UTCTiming_asArray : null, R = [];
|
|
3698
3714
|
return (N || S) && L && L.forEach((function(V) {
|
|
3699
|
-
var de = new
|
|
3715
|
+
var de = new Hr.A();
|
|
3700
3716
|
V.hasOwnProperty(u.A.SCHEME_ID_URI) && (de.schemeIdUri = V.schemeIdUri, V.hasOwnProperty(n.A.VALUE) && (de.value = V.value.toString(), R.push(de)));
|
|
3701
3717
|
})), R;
|
|
3702
3718
|
}, getBaseURLsFromElement: K, getRepresentationSortFunction: function() {
|
|
@@ -4037,15 +4053,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4037
4053
|
}
|
|
4038
4054
|
_n.__dashjs_factory_name = "CmcdModel";
|
|
4039
4055
|
var Tn = h.A.getSingletonFactory(_n);
|
|
4040
|
-
function
|
|
4041
|
-
return
|
|
4056
|
+
function Yn(t) {
|
|
4057
|
+
return Yn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4042
4058
|
return typeof e;
|
|
4043
4059
|
} : function(e) {
|
|
4044
4060
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4045
|
-
},
|
|
4061
|
+
}, Yn(t);
|
|
4046
4062
|
}
|
|
4047
|
-
function
|
|
4048
|
-
|
|
4063
|
+
function Kn() {
|
|
4064
|
+
Kn = function(p, C) {
|
|
4049
4065
|
return new o(p, void 0, C);
|
|
4050
4066
|
};
|
|
4051
4067
|
var t = RegExp.prototype, e = /* @__PURE__ */ new WeakMap();
|
|
@@ -4088,19 +4104,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4088
4104
|
var F = this;
|
|
4089
4105
|
return t[Symbol.replace].call(this, p, (function() {
|
|
4090
4106
|
var U = arguments;
|
|
4091
|
-
return
|
|
4107
|
+
return Yn(U[U.length - 1]) != "object" && (U = [].slice.call(U)).push(l(U, F)), C.apply(this, U);
|
|
4092
4108
|
}));
|
|
4093
4109
|
}
|
|
4094
4110
|
return t[Symbol.replace].call(this, p, C);
|
|
4095
|
-
},
|
|
4111
|
+
}, Kn.apply(this, arguments);
|
|
4096
4112
|
}
|
|
4097
4113
|
function In(t, e) {
|
|
4098
4114
|
return In = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, l) {
|
|
4099
4115
|
return o.__proto__ = l, o;
|
|
4100
4116
|
}, In(t, e);
|
|
4101
4117
|
}
|
|
4102
|
-
var
|
|
4103
|
-
function
|
|
4118
|
+
var kn = "static", Ln = "dynamic", zn = "cmsd-", br = zn + kn, yr = zn + Ln, tr = "stream", Xn = ["mb", "st", "sf", "v"], mi = { video: "v", audio: "a", text: "tt", stream: tr }, yi = /^[-0-9]/;
|
|
4119
|
+
function Wr() {
|
|
4104
4120
|
var t, e, o, l, p = this.context, C = (0, y.A)(p).getInstance();
|
|
4105
4121
|
function b() {
|
|
4106
4122
|
o = {}, l = {};
|
|
@@ -4111,7 +4127,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4111
4127
|
}));
|
|
4112
4128
|
}
|
|
4113
4129
|
function U(k) {
|
|
4114
|
-
return !k || k.toLowerCase() !== "false" && (
|
|
4130
|
+
return !k || k.toLowerCase() !== "false" && (yi.test(k) ? parseInt(k, 10) : k.replace(/["]+/g, ""));
|
|
4115
4131
|
}
|
|
4116
4132
|
function H(k) {
|
|
4117
4133
|
try {
|
|
@@ -4136,10 +4152,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4136
4152
|
}
|
|
4137
4153
|
}
|
|
4138
4154
|
function w(k) {
|
|
4139
|
-
return
|
|
4155
|
+
return mi[k] || "o";
|
|
4140
4156
|
}
|
|
4141
4157
|
function j(k, se, ie) {
|
|
4142
|
-
var he = k ===
|
|
4158
|
+
var he = k === kn ? o : l, oe = he[se] || {}, te = he[tr] || {};
|
|
4143
4159
|
return oe[ie] || te[ie];
|
|
4144
4160
|
}
|
|
4145
4161
|
return t = { setConfig: function() {
|
|
@@ -4149,14 +4165,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4149
4165
|
}, parseResponseHeaders: function(k, se) {
|
|
4150
4166
|
for (var ie = null, he = null, oe = k.split(`\r
|
|
4151
4167
|
`), te = oe.length - 1; te >= 0; te--) {
|
|
4152
|
-
var Z = oe[te].match(
|
|
4168
|
+
var Z = oe[te].match(Kn(/^([^:]*):\s*(.*)$/, { key: 1, value: 2 }));
|
|
4153
4169
|
if (Z && Z.groups) {
|
|
4154
4170
|
var K = Z.groups.key.toLowerCase(), z = Z.groups.value;
|
|
4155
4171
|
switch (K) {
|
|
4156
|
-
case
|
|
4172
|
+
case br:
|
|
4157
4173
|
ie = H(z), C.trigger(i.A.CMSD_STATIC_HEADER, ie);
|
|
4158
4174
|
break;
|
|
4159
|
-
case
|
|
4175
|
+
case yr:
|
|
4160
4176
|
he || (he = B(z));
|
|
4161
4177
|
}
|
|
4162
4178
|
}
|
|
@@ -4177,9 +4193,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4177
4193
|
return j(Ln, se, "rtt") || null;
|
|
4178
4194
|
} }, e = (0, g.A)(p).getInstance().getLogger(t), b(), t;
|
|
4179
4195
|
}
|
|
4180
|
-
|
|
4181
|
-
var
|
|
4182
|
-
function
|
|
4196
|
+
Wr.__dashjs_factory_name = "CmsdModel";
|
|
4197
|
+
var zr = h.A.getSingletonFactory(Wr);
|
|
4198
|
+
function Xr() {
|
|
4183
4199
|
var t, e, o = this.context, l = {};
|
|
4184
4200
|
function p() {
|
|
4185
4201
|
e = (0, g.A)(o).getInstance().getLogger(t);
|
|
@@ -4232,8 +4248,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4232
4248
|
})), z === U.bitrate ? U.fetchDownloadDurationMS * j : j * U.segmentBytes * 8 * 1e3 / z;
|
|
4233
4249
|
} }, p(), t;
|
|
4234
4250
|
}
|
|
4235
|
-
|
|
4236
|
-
var
|
|
4251
|
+
Xr.__dashjs_factory_name = "LowLatencyThroughputModel";
|
|
4252
|
+
var Qr = h.A.getSingletonFactory(Xr), Lt = M(6890);
|
|
4237
4253
|
function en(t) {
|
|
4238
4254
|
return en = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4239
4255
|
return typeof e;
|
|
@@ -4284,7 +4300,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4284
4300
|
j.error(new pe.A(C[L.type], L.url + " is not available", { request: L, response: S.response })), f.error && f.error(L, "error", S.response.statusText, S.response), f.complete && f.complete(L, S.response.statusText);
|
|
4285
4301
|
}
|
|
4286
4302
|
};
|
|
4287
|
-
L.hasOwnProperty("availabilityTimeComplete") && L.availabilityTimeComplete === !1 && window.fetch && L.responseType === "arraybuffer" && L.type === je.G.MEDIA_SEGMENT_TYPE ? ((ve =
|
|
4303
|
+
L.hasOwnProperty("availabilityTimeComplete") && L.availabilityTimeComplete === !1 && window.fetch && L.responseType === "arraybuffer" && L.type === je.G.MEDIA_SEGMENT_TYPE ? ((ve = Hn(w).create({ requestModifier: ie, lowLatencyThroughputModel: H, boxParser: he })).setup({ dashMetrics: k }), ge = u.A.FILE_LOADER_TYPES.FETCH) : (ve = (0, Qt.A)(w).create({ requestModifier: ie }), ge = u.A.FILE_LOADER_TYPES.XHR);
|
|
4288
4304
|
var Qe = null, $e = ie.modifyRequestURL ? ie.modifyRequestURL(L.url) : L.url;
|
|
4289
4305
|
if (K.get().streaming.cmcd && K.get().streaming.cmcd.enabled) {
|
|
4290
4306
|
var Ze = K.get().streaming.cmcd.mode;
|
|
@@ -4350,11 +4366,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4350
4366
|
})), l = [], o.forEach((function(f) {
|
|
4351
4367
|
f.request.type !== je.G.MSS_FRAGMENT_INFO_SEGMENT_TYPE && (f.onloadend = f.onerror = f.onprogress = void 0, f.loader.abort(f));
|
|
4352
4368
|
})), o = [];
|
|
4353
|
-
} }, B = (0, g.A)(w).getInstance().getLogger(e), o = [], l = [], p = [], b = Tn(w).getInstance(), F =
|
|
4369
|
+
} }, B = (0, g.A)(w).getInstance().getLogger(e), o = [], l = [], p = [], b = Tn(w).getInstance(), F = zr(w).getInstance(), H = Qr(w).getInstance(), U = (0, Lt.A)(w).getInstance(), C = fn(fn(fn(fn(fn(fn(fn({}, je.G.MPD_TYPE, oe.DOWNLOAD_ERROR_ID_MANIFEST_CODE), je.G.XLINK_EXPANSION_TYPE, oe.DOWNLOAD_ERROR_ID_XLINK_CODE), je.G.INIT_SEGMENT_TYPE, oe.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE), je.G.MEDIA_SEGMENT_TYPE, oe.DOWNLOAD_ERROR_ID_CONTENT_CODE), je.G.INDEX_SEGMENT_TYPE, oe.DOWNLOAD_ERROR_ID_CONTENT_CODE), je.G.BITSTREAM_SWITCHING_SEGMENT_TYPE, oe.DOWNLOAD_ERROR_ID_CONTENT_CODE), je.G.OTHER_TYPE, oe.DOWNLOAD_ERROR_ID_CONTENT_CODE), e;
|
|
4354
4370
|
}
|
|
4355
4371
|
Fn.__dashjs_factory_name = "HTTPLoader";
|
|
4356
4372
|
var On = h.A.getClassFactory(Fn);
|
|
4357
|
-
function
|
|
4373
|
+
function jn() {
|
|
4358
4374
|
var t;
|
|
4359
4375
|
function e() {
|
|
4360
4376
|
t = {};
|
|
@@ -4371,8 +4387,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4371
4387
|
t[l] && delete t[l];
|
|
4372
4388
|
}, unregisterAllLoader: e, reset: o };
|
|
4373
4389
|
}
|
|
4374
|
-
|
|
4375
|
-
var bn = h.A.getSingletonFactory(
|
|
4390
|
+
jn.__dashjs_factory_name = "SchemeLoaderFactory";
|
|
4391
|
+
var bn = h.A.getSingletonFactory(jn);
|
|
4376
4392
|
function Jn(t) {
|
|
4377
4393
|
t = t || {};
|
|
4378
4394
|
var e, o, l = this.context;
|
|
@@ -4425,7 +4441,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4425
4441
|
return o.__proto__ = l, o;
|
|
4426
4442
|
}, $n(t, e);
|
|
4427
4443
|
}
|
|
4428
|
-
var
|
|
4444
|
+
var Er = (function(t) {
|
|
4429
4445
|
function e(l) {
|
|
4430
4446
|
var p;
|
|
4431
4447
|
return (function(C, b) {
|
|
@@ -4438,7 +4454,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4438
4454
|
})(e, t), o = e, Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
4439
4455
|
var o;
|
|
4440
4456
|
})(T.A);
|
|
4441
|
-
function
|
|
4457
|
+
function lr(t) {
|
|
4442
4458
|
t = t || {};
|
|
4443
4459
|
var e, o, l = this.context, p = t.eventBus, C = t.events, b = t.urlUtils, F = t.errors, U = t.streamId;
|
|
4444
4460
|
return e = { checkForExistence: function(H) {
|
|
@@ -4446,7 +4462,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4446
4462
|
p.trigger(C.CHECK_FOR_EXISTENCE_COMPLETED, { request: H, exists: j });
|
|
4447
4463
|
};
|
|
4448
4464
|
if (H) {
|
|
4449
|
-
var w = new
|
|
4465
|
+
var w = new Er(H.url);
|
|
4450
4466
|
o.load({ request: w, success: function() {
|
|
4451
4467
|
B(!0);
|
|
4452
4468
|
}, error: function() {
|
|
@@ -4472,18 +4488,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4472
4488
|
o && (o.abort(), o = null);
|
|
4473
4489
|
} }, o = Mn(l).create({ errHandler: t.errHandler, errors: F, dashMetrics: t.dashMetrics, mediaPlayerModel: t.mediaPlayerModel, requestModifier: t.requestModifier, urlUtils: b, constants: u.A, boxParser: t.boxParser, dashConstants: t.dashConstants, requestTimeout: t.settings.get().streaming.fragmentRequestTimeout }), e;
|
|
4474
4490
|
}
|
|
4475
|
-
|
|
4476
|
-
var
|
|
4477
|
-
function
|
|
4491
|
+
lr.__dashjs_factory_name = "FragmentLoader";
|
|
4492
|
+
var Ei = h.A.getClassFactory(lr);
|
|
4493
|
+
function Sr() {
|
|
4478
4494
|
return { modifyResponseAsync: function(t) {
|
|
4479
4495
|
return Promise.resolve(t);
|
|
4480
4496
|
} };
|
|
4481
4497
|
}
|
|
4482
|
-
|
|
4483
|
-
var
|
|
4484
|
-
function
|
|
4498
|
+
Sr.__dashjs_factory_name = "SegmentResponseModifier";
|
|
4499
|
+
var $r = h.A.getSingletonFactory(Sr);
|
|
4500
|
+
function Jr(t) {
|
|
4485
4501
|
t = t || {};
|
|
4486
|
-
var e, o, l, p = this.context, C = (0, y.A)(p).getInstance(), b = t.errHandler, F = t.mediaPlayerModel, U = t.dashMetrics, H = (0, g.A)(p).getInstance(), B =
|
|
4502
|
+
var e, o, l, p = this.context, C = (0, y.A)(p).getInstance(), b = t.errHandler, F = t.mediaPlayerModel, U = t.dashMetrics, H = (0, g.A)(p).getInstance(), B = $r(p).getInstance(), w = t.streamInfo;
|
|
4487
4503
|
function j() {
|
|
4488
4504
|
return w.id;
|
|
4489
4505
|
}
|
|
@@ -4509,30 +4525,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4509
4525
|
}
|
|
4510
4526
|
return e = { getStreamId: j, getModel: function(ie) {
|
|
4511
4527
|
var he = l[ie];
|
|
4512
|
-
return he || (he = J(p).create({ streamInfo: w, type: ie, dashMetrics: U, fragmentLoader:
|
|
4528
|
+
return he || (he = J(p).create({ streamInfo: w, type: ie, dashMetrics: U, fragmentLoader: Ei(p).create({ dashMetrics: U, mediaPlayerModel: F, errHandler: b, requestModifier: (0, De.A)(p).getInstance(), settings: t.settings, boxParser: t.boxParser, eventBus: C, events: i.A, errors: me, dashConstants: t.dashConstants, urlUtils: t.urlUtils, streamId: j() }), debug: H, eventBus: C, events: i.A }), l[ie] = he), he;
|
|
4513
4529
|
}, reset: function() {
|
|
4514
4530
|
C.off(r.A.FRAGMENT_LOADING_COMPLETED, se, this), C.off(r.A.FRAGMENT_LOADING_PROGRESS, se, this), k();
|
|
4515
4531
|
} }, o = H.getLogger(e), k(), C.on(r.A.FRAGMENT_LOADING_COMPLETED, se, e), C.on(r.A.FRAGMENT_LOADING_PROGRESS, se, e), e;
|
|
4516
4532
|
}
|
|
4517
|
-
|
|
4518
|
-
var
|
|
4519
|
-
function
|
|
4533
|
+
Jr.__dashjs_factory_name = "FragmentController";
|
|
4534
|
+
var ki = h.A.getClassFactory(Jr);
|
|
4535
|
+
function Gi(t, e, o) {
|
|
4520
4536
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
4521
4537
|
}
|
|
4522
|
-
var
|
|
4538
|
+
var ji = Gi((function t() {
|
|
4523
4539
|
(function(e, o) {
|
|
4524
4540
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
4525
4541
|
})(this, t), this.url = null, this.width = null, this.height = null, this.x = null, this.y = null;
|
|
4526
4542
|
}));
|
|
4527
|
-
function
|
|
4543
|
+
function qi(t, e, o) {
|
|
4528
4544
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
4529
4545
|
}
|
|
4530
|
-
var
|
|
4546
|
+
var _i = qi((function t() {
|
|
4531
4547
|
(function(e, o) {
|
|
4532
4548
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
4533
4549
|
})(this, t), this.mediaType = null, this.bitrate = null, this.width = null, this.height = null, this.scanType = null, this.qualityIndex = NaN;
|
|
4534
4550
|
}));
|
|
4535
|
-
function
|
|
4551
|
+
function Ai(t) {
|
|
4536
4552
|
var e, o, l = this.context, p = t.streamInfo;
|
|
4537
4553
|
function C(F) {
|
|
4538
4554
|
o.setTrackByIndex(F);
|
|
@@ -4552,7 +4568,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4552
4568
|
if (!w || w.segmentDuration <= 0 || F == null) U(null);
|
|
4553
4569
|
else {
|
|
4554
4570
|
(B = o.getThumbnailRequestForTime(F)) && (w.segmentDuration = B.duration), H = F % w.segmentDuration;
|
|
4555
|
-
var j = Math.floor(H * w.tilesHor * w.tilesVert / w.segmentDuration), k = new
|
|
4571
|
+
var j = Math.floor(H * w.tilesHor * w.tilesVert / w.segmentDuration), k = new ji();
|
|
4556
4572
|
if (k.width = Math.floor(w.widthPerTile), k.height = Math.floor(w.heightPerTile), k.x = Math.floor(j % w.tilesHor) * w.widthPerTile, k.y = Math.floor(j / w.tilesHor) * w.heightPerTile, "readThumbnail" in w) return w.readThumbnail(F, (function(ie) {
|
|
4557
4573
|
k.url = ie, U(k);
|
|
4558
4574
|
}));
|
|
@@ -4572,14 +4588,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4572
4588
|
}, getBitrateList: function() {
|
|
4573
4589
|
var F = o.getTracks(), U = 0;
|
|
4574
4590
|
return F.map((function(H) {
|
|
4575
|
-
var B = new
|
|
4591
|
+
var B = new _i();
|
|
4576
4592
|
return B.mediaType = u.A.IMAGE, B.qualityIndex = U++, B.bitrate = H.bitrate, B.width = H.width, B.height = H.height, B;
|
|
4577
4593
|
}));
|
|
4578
4594
|
}, reset: b }, b(), o = (0, Bt.A)(l).create({ streamInfo: p, adapter: t.adapter, baseURLController: t.baseURLController, timelineConverter: t.timelineConverter, debug: t.debug, eventBus: t.eventBus, events: t.events, dashConstants: t.dashConstants, dashMetrics: t.dashMetrics, segmentBaseController: t.segmentBaseController }), e;
|
|
4579
4595
|
}
|
|
4580
|
-
|
|
4581
|
-
var
|
|
4582
|
-
function
|
|
4596
|
+
Ai.__dashjs_factory_name = "ThumbnailController";
|
|
4597
|
+
var Yi = h.A.getClassFactory(Ai), Zr = M(255);
|
|
4598
|
+
function ei(t) {
|
|
4583
4599
|
var e;
|
|
4584
4600
|
t = t || {};
|
|
4585
4601
|
var o = [], l = (0, y.A)(this.context).getInstance(), p = t.updateEventName, C = t.addBlacklistEventName;
|
|
@@ -4594,9 +4610,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4594
4610
|
b(F.entry);
|
|
4595
4611
|
}), e), e;
|
|
4596
4612
|
}
|
|
4597
|
-
|
|
4598
|
-
var
|
|
4599
|
-
function
|
|
4613
|
+
ei.__dashjs_factory_name = "BlackListController";
|
|
4614
|
+
var ti = h.A.getClassFactory(ei), Nn = [u.A.VIDEO, u.A.AUDIO, u.A.TEXT, u.A.MUXED, u.A.IMAGE];
|
|
4615
|
+
function _r(t) {
|
|
4600
4616
|
t = t || {};
|
|
4601
4617
|
var e, o, l, p, C, b, F, U, H, B, w, j, k, se, ie, he, oe, te, Z = this.context, K = (0, y.A)(Z).getInstance(), z = (0, Ae.A)(Z).getInstance(), f = t.manifestModel, N = t.mediaPlayerModel, S = t.dashMetrics, L = t.manifestUpdater, R = t.adapter, V = t.timelineConverter, de = t.capabilities, ue = t.errHandler, P = t.abrController, $ = t.playbackController, Y = t.eventController, ge = t.mediaController, ve = t.protectionController, fe = t.textController, Ce = t.videoModel, Me = t.streamInfo, Qe = t.settings;
|
|
4602
4618
|
function $e(pt, Ot) {
|
|
@@ -4638,11 +4654,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4638
4654
|
if (xe.length > 0 && (ge.setInitialMediaSettingsForType(pt, Me), fe.addMediaInfosToBuffer(Me, pt, xe)), st = st.filter((function(We) {
|
|
4639
4655
|
return !We.isEmbedded;
|
|
4640
4656
|
})), st.length === 0) return Promise.resolve();
|
|
4641
|
-
if (pt === u.A.IMAGE) return (j =
|
|
4657
|
+
if (pt === u.A.IMAGE) return (j = Yi(Z).create({ streamInfo: Me, adapter: R, baseURLController: t.baseURLController, timelineConverter: t.timelineConverter, debug: he, eventBus: K, events: i.A, dashConstants: n.A, dashMetrics: t.dashMetrics, segmentBaseController: t.segmentBaseController })).initialize(), Promise.resolve();
|
|
4642
4658
|
K.trigger(i.A.STREAM_INITIALIZING, { streamInfo: Me, mediaInfo: Ge }), ge.setInitialMediaSettingsForType(pt, Me);
|
|
4643
4659
|
var Te = (function(We, wt) {
|
|
4644
|
-
var jt = We && We.length > 0 ? We[0] : null, hn = w.getModel(jt ? jt.type : null), En = jt ? jt.type : null, dn = jt ? jt.mimeType : null,
|
|
4645
|
-
Pn.initialize(wt, F,
|
|
4660
|
+
var jt = We && We.length > 0 ? We[0] : null, hn = w.getModel(jt ? jt.type : null), En = jt ? jt.type : null, dn = jt ? jt.mimeType : null, qn = jt ? jt.isFragmented : null, Pn = Ut(Z).create({ streamInfo: Me, type: En, mimeType: dn, timelineConverter: V, adapter: R, manifestModel: f, mediaPlayerModel: N, fragmentModel: hn, dashMetrics: t.dashMetrics, baseURLController: t.baseURLController, segmentBaseController: t.segmentBaseController, abrController: P, playbackController: $, mediaController: ge, textController: fe, errHandler: ue, settings: Qe, boxParser: ie, segmentBlacklistController: k });
|
|
4661
|
+
Pn.initialize(wt, F, qn), l.push(Pn);
|
|
4646
4662
|
for (var Zn = 0; Zn < We.length; Zn++) Pn.addMediaInfo(We[Zn]);
|
|
4647
4663
|
return En === u.A.TEXT && fe.addMediaInfosToBuffer(Me, En, We, hn), Pn;
|
|
4648
4664
|
})(st, Ot);
|
|
@@ -4890,31 +4906,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4890
4906
|
Ot && Ot.prepareQualityChange(pt);
|
|
4891
4907
|
} }, (function() {
|
|
4892
4908
|
try {
|
|
4893
|
-
he = (0, g.A)(Z).getInstance(), o = he.getLogger(e), Ee(), ie = (0,
|
|
4909
|
+
he = (0, g.A)(Z).getInstance(), o = he.getLogger(e), Ee(), ie = (0, Zr.A)(Z).getInstance(), k = ti(Z).create({ updateEventName: i.A.SEGMENT_LOCATION_BLACKLIST_CHANGED, addBlacklistEventName: i.A.SEGMENT_LOCATION_BLACKLIST_ADD }), w = ki(Z).create({ streamInfo: Me, mediaPlayerModel: N, dashMetrics: S, errHandler: ue, settings: Qe, boxParser: ie, dashConstants: n.A, urlUtils: z });
|
|
4894
4910
|
} catch (pt) {
|
|
4895
4911
|
throw pt;
|
|
4896
4912
|
}
|
|
4897
4913
|
})(), e;
|
|
4898
4914
|
}
|
|
4899
|
-
|
|
4900
|
-
var
|
|
4901
|
-
function
|
|
4915
|
+
_r.__dashjs_factory_name = "Stream";
|
|
4916
|
+
var Fr = h.A.getClassFactory(_r);
|
|
4917
|
+
function Ir(t, e, o) {
|
|
4902
4918
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
4903
4919
|
}
|
|
4904
|
-
var
|
|
4920
|
+
var Hi = Ir((function t(e) {
|
|
4905
4921
|
(function(o, l) {
|
|
4906
4922
|
if (!(o instanceof l)) throw new TypeError("Cannot call a class as a function");
|
|
4907
4923
|
})(this, t), this.url = e || null, this.type = je.G.CONTENT_STEERING_TYPE, this.responseType = "json";
|
|
4908
4924
|
}));
|
|
4909
|
-
function
|
|
4925
|
+
function or(t, e, o) {
|
|
4910
4926
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
4911
4927
|
}
|
|
4912
|
-
var
|
|
4928
|
+
var Vi = or((function t() {
|
|
4913
4929
|
(function(e, o) {
|
|
4914
4930
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
4915
4931
|
})(this, t), this.version = null, this.ttl = 300, this.reloadUri = null, this.pathwayPriority = [], this.pathwayClones = [];
|
|
4916
4932
|
}));
|
|
4917
|
-
function
|
|
4933
|
+
function cr() {
|
|
4918
4934
|
var t, e, o, l, p, C, b, F, U, H, B, w, j, k, se, ie = this.context, he = (0, Ae.A)(ie).getInstance();
|
|
4919
4935
|
function oe(P) {
|
|
4920
4936
|
f(P, "baseUrl");
|
|
@@ -4973,10 +4989,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4973
4989
|
})), Ce.push({ key: "_DASH_pathway", value: '"'.concat($e, '"') }), Ce.push({ key: "_DASH_throughput", value: Ze });
|
|
4974
4990
|
}
|
|
4975
4991
|
return fe = Ft.A.addAditionalQueryParameterToUrl(fe, Ce);
|
|
4976
|
-
})($), ge = new
|
|
4992
|
+
})($), ge = new Hi(Y);
|
|
4977
4993
|
b.load({ request: ge, success: function(ve) {
|
|
4978
4994
|
(function(fe) {
|
|
4979
|
-
fe && fe[n.A.CONTENT_STEERING_RESPONSE.VERSION] && parseInt(fe[n.A.CONTENT_STEERING_RESPONSE.VERSION]) === 1 && ((o = new
|
|
4995
|
+
fe && fe[n.A.CONTENT_STEERING_RESPONSE.VERSION] && parseInt(fe[n.A.CONTENT_STEERING_RESPONSE.VERSION]) === 1 && ((o = new Vi()).version = fe[n.A.CONTENT_STEERING_RESPONSE.VERSION], fe[n.A.CONTENT_STEERING_RESPONSE.TTL] && !isNaN(fe[n.A.CONTENT_STEERING_RESPONSE.TTL]) && (o.ttl = fe[n.A.CONTENT_STEERING_RESPONSE.TTL]), fe[n.A.CONTENT_STEERING_RESPONSE.RELOAD_URI] && (o.reloadUri = fe[n.A.CONTENT_STEERING_RESPONSE.RELOAD_URI]), fe[n.A.CONTENT_STEERING_RESPONSE.PATHWAY_PRIORITY] && (o.pathwayPriority = fe[n.A.CONTENT_STEERING_RESPONSE.PATHWAY_PRIORITY]), fe[n.A.CONTENT_STEERING_RESPONSE.PATHWAY_CLONES] && (o.pathwayClones = fe[n.A.CONTENT_STEERING_RESPONSE.PATHWAY_CLONES], o.pathwayClones = o.pathwayClones.filter((function(Ce) {
|
|
4980
4996
|
return (function(Me) {
|
|
4981
4997
|
return Me[n.A.CONTENT_STEERING_RESPONSE.BASE_ID] && Me[n.A.CONTENT_STEERING_RESPONSE.ID] && Me[n.A.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT] && Me[n.A.CONTENT_STEERING_RESPONSE.URI_REPLACEMENT][n.A.CONTENT_STEERING_RESPONSE.HOST];
|
|
4982
4998
|
})(Ce);
|
|
@@ -5053,7 +5069,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5053
5069
|
}, getSteeringDataFromManifest: N, stopSteeringRequestTimer: de, getSynthesizedBaseUrlElements: function(P) {
|
|
5054
5070
|
try {
|
|
5055
5071
|
return R(P).map((function($) {
|
|
5056
|
-
var Y = new
|
|
5072
|
+
var Y = new Pr($.synthesizedUrl, $.serviceLocation);
|
|
5057
5073
|
return Y.queryParams = $.queryParams, Y.dvbPriority = $.reference.dvbPriority, Y.dvbWeight = $.reference.dvbWeight, Y.availabilityTimeOffset = $.reference.availabilityTimeOffset, Y.availabilityTimeComplete = $.reference.availabilityTimeComplete, Y;
|
|
5058
5074
|
}));
|
|
5059
5075
|
} catch ($) {
|
|
@@ -5072,9 +5088,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5072
5088
|
b = Mn(ie).create({ errHandler: F, dashMetrics: U, mediaPlayerModel: H, requestModifier: w, errors: me }), k.on(r.A.FRAGMENT_LOADING_STARTED, oe, t), k.on(r.A.MANIFEST_LOADING_STARTED, te, t), k.on(r.A.MANIFEST_LOADING_FINISHED, Z, t), k.on(r.A.THROUGHPUT_MEASUREMENT_STORED, K, t);
|
|
5073
5089
|
} }, e = (0, g.A)(ie).getInstance().getLogger(t), ue(), t;
|
|
5074
5090
|
}
|
|
5075
|
-
|
|
5076
|
-
var
|
|
5077
|
-
function
|
|
5091
|
+
cr.__dashjs_factory_name = "ContentSteeringController";
|
|
5092
|
+
var ni = h.A.getSingletonFactory(cr);
|
|
5093
|
+
function Ta() {
|
|
5078
5094
|
var t, e, o, l = this.context, p = (0, le.A)(l).getInstance();
|
|
5079
5095
|
return t = { select: function(C) {
|
|
5080
5096
|
if (!C || C.length === 0) return null;
|
|
@@ -5098,11 +5114,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5098
5114
|
C.blacklistController && (e = C.blacklistController), C.contentSteeringController && (o = C.contentSteeringController);
|
|
5099
5115
|
}, reset: function() {
|
|
5100
5116
|
e.reset();
|
|
5101
|
-
} }, e =
|
|
5117
|
+
} }, e = ti(l).create({ updateEventName: i.A.SERVICE_LOCATION_LOCATION_BLACKLIST_CHANGED, addBlacklistEventName: i.A.SERVICE_LOCATION_LOCATION_BLACKLIST_ADD }), o = ni(l).getInstance(), t;
|
|
5102
5118
|
}
|
|
5103
|
-
|
|
5104
|
-
var
|
|
5105
|
-
function
|
|
5119
|
+
Ta.__dashjs_factory_name = "LocationSelector";
|
|
5120
|
+
var $o = h.A.getClassFactory(Ta);
|
|
5121
|
+
function ba() {
|
|
5106
5122
|
var t, e, o, l, p, C, b, F, U, H, B, w, j, k, se = this.context, ie = (0, y.A)(se).getInstance(), he = (0, Ae.A)(se).getInstance();
|
|
5107
5123
|
function oe() {
|
|
5108
5124
|
o = NaN, b = !1, p = !0, C = !1, te();
|
|
@@ -5173,11 +5189,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5173
5189
|
V && (V.manifestModel && (U = V.manifestModel), V.adapter && (B = V.adapter), V.manifestLoader && (F = V.manifestLoader), V.errHandler && (w = V.errHandler), V.locationSelector && (H = V.locationSelector), V.settings && (k = V.settings), V.contentSteeringController && (j = V.contentSteeringController));
|
|
5174
5190
|
}, reset: function() {
|
|
5175
5191
|
ie.off(r.A.PLAYBACK_STARTED, S, this), ie.off(r.A.PLAYBACK_PAUSED, L, this), ie.off(i.A.STREAMS_COMPOSED, R, this), ie.off(i.A.INTERNAL_MANIFEST_LOADED, N, this), oe();
|
|
5176
|
-
} }, e = (0, g.A)(se).getInstance().getLogger(t), H =
|
|
5192
|
+
} }, e = (0, g.A)(se).getInstance().getLogger(t), H = $o(se).create(), t;
|
|
5177
5193
|
}
|
|
5178
|
-
|
|
5179
|
-
var
|
|
5180
|
-
function
|
|
5194
|
+
ba.__dashjs_factory_name = "ManifestUpdater";
|
|
5195
|
+
var Sa = h.A.getClassFactory(ba);
|
|
5196
|
+
function Ki() {
|
|
5181
5197
|
var t, e, o, l, p, C, b, F, U, H, B, w, j, k, se, ie, he = this.context, oe = (0, y.A)(he).getInstance(), te = (0, Ae.A)(he).getInstance();
|
|
5182
5198
|
function Z() {
|
|
5183
5199
|
F = [], U = [], H = null, B = null, j = null, w = NaN, o = !1, l = !1, k = p.get().streaming.utcSynchronization.timeBetweenSyncAttempts;
|
|
@@ -5308,11 +5324,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5308
5324
|
Z(), oe.off(i.A.ATTEMPT_BACKGROUND_SYNC, K, t);
|
|
5309
5325
|
} }, e = (0, g.A)(he).getInstance().getLogger(t), oe.on(i.A.ATTEMPT_BACKGROUND_SYNC, K, t), t;
|
|
5310
5326
|
}
|
|
5311
|
-
|
|
5312
|
-
var
|
|
5313
|
-
|
|
5314
|
-
var
|
|
5315
|
-
function
|
|
5327
|
+
Ki.__dashjs_factory_name = "TimeSyncController";
|
|
5328
|
+
var Wi = h.A.getSingletonFactory(Ki);
|
|
5329
|
+
Wi.HTTP_TIMEOUT_MS = 5e3, h.A.updateSingletonFactory(Ki.__dashjs_factory_name, Wi);
|
|
5330
|
+
var Jo = Wi;
|
|
5331
|
+
function Ia() {
|
|
5316
5332
|
var t, e, o, l, p, C = this.context, b = (0, y.A)(C).getInstance();
|
|
5317
5333
|
return t = { attachMediaSource: function(F) {
|
|
5318
5334
|
var U = window.URL.createObjectURL(e);
|
|
@@ -5343,9 +5359,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5343
5359
|
}
|
|
5344
5360
|
} }, p = (0, g.A)(C).getInstance().getLogger(t), t;
|
|
5345
5361
|
}
|
|
5346
|
-
|
|
5347
|
-
var
|
|
5348
|
-
function
|
|
5362
|
+
Ia.__dashjs_factory_name = "MediaSourceController";
|
|
5363
|
+
var Zo = h.A.getSingletonFactory(Ia);
|
|
5364
|
+
function Ra() {
|
|
5349
5365
|
var t, e, o, l, p, C, b, F, U, H, B, w = "urn:mpeg:dash:event:2012", j = 1, k = "urn:mpeg:dash:event:callback:2015", se = 1, ie = 300, he = "discarded", oe = "updated", te = "added", Z = this.context, K = (0, y.A)(Z).getInstance();
|
|
5350
5366
|
function z() {
|
|
5351
5367
|
if (!b || !F) throw new Error("setConfig function has to be called previously");
|
|
@@ -5531,14 +5547,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5531
5547
|
})(), f();
|
|
5532
5548
|
} }, e = (0, g.A)(Z).getInstance().getLogger(t), f(), t;
|
|
5533
5549
|
}
|
|
5534
|
-
|
|
5535
|
-
var
|
|
5536
|
-
function
|
|
5550
|
+
Ra.__dashjs_factory_name = "EventController";
|
|
5551
|
+
var es = h.A.getSingletonFactory(Ra), xr = { LEVELS: { WARNING: "Warning", ERROR: "Error" }, EVENTS: { NO_UTC_TIMING_ELEMENT: { key: "NO_UTC_TIMING_ELEMENT", message: "No UTCTiming element is present in the manifest. You may experience playback failures. For a detailed validation use https://conformance.dashif.org/" }, NON_COMPLIANT_SMPTE_IMAGE_ATTRIBUTE: { key: "NON_COMPLIANT_SMPTE_IMAGE_ATTRIBUTE", message: 'SMPTE 2052-1:2013 defines the attribute name as "imageType" and does not define "imagetype"' }, INVALID_DVR_WINDOW: { key: "INVALID_DVR_WINDOW", message: "No valid segment found when applying a specification compliant DVR window calculation. Using SegmentTimeline entries as a fallback." } } };
|
|
5552
|
+
function zi(t, e) {
|
|
5537
5553
|
(e == null || e > t.length) && (e = t.length);
|
|
5538
5554
|
for (var o = 0, l = Array(e); o < e; o++) l[o] = t[o];
|
|
5539
5555
|
return l;
|
|
5540
5556
|
}
|
|
5541
|
-
function
|
|
5557
|
+
function wa() {
|
|
5542
5558
|
var t, e, o, l, p, C, b, F, U, H, B, w, j, k, se, ie, he, oe, te, Z, K, z, f, N, S, L, R, V, de, ue, P, $, Y, ge, ve, fe, Ce, Me, Qe, $e, Ze, at, Nt, Ee, Pe, ct, Ke, yt, ht = this.context, dt = (0, y.A)(ht).getInstance();
|
|
5543
5559
|
function qt() {
|
|
5544
5560
|
if (!(C && C.hasOwnProperty("load") && K && K.hasOwnProperty("initialize") && K.hasOwnProperty("reset") && K.hasOwnProperty("getClientTimeOffset") && b && Z && U && Y)) throw new Error(u.A.MISSING_CONFIG_ERROR);
|
|
@@ -5570,7 +5586,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5570
5586
|
throw gn;
|
|
5571
5587
|
}));
|
|
5572
5588
|
} catch (gn) {
|
|
5573
|
-
Z.error(new pe.A(me.MANIFEST_ERROR_ID_NOSTREAMS_CODE, gn.message + " nostreamscomposed", b.getValue())), ue = !0,
|
|
5589
|
+
Z.error(new pe.A(me.MANIFEST_ERROR_ID_NOSTREAMS_CODE, gn.message + " nostreamscomposed", b.getValue())), ue = !0, Nr();
|
|
5574
5590
|
}
|
|
5575
5591
|
})();
|
|
5576
5592
|
}
|
|
@@ -5578,8 +5594,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5578
5594
|
Pe = !0;
|
|
5579
5595
|
}
|
|
5580
5596
|
function ln(ze) {
|
|
5581
|
-
var Ct =
|
|
5582
|
-
return Ct ? Ct.updateData(ze) : (Ct =
|
|
5597
|
+
var Ct = fi(ze.id);
|
|
5598
|
+
return Ct ? Ct.updateData(ze) : (Ct = Fr(ht).create({ manifestModel: b, mediaPlayerModel: ve, dashMetrics: U, manifestUpdater: p, adapter: F, timelineConverter: K, capabilities: o, capabilitiesFilter: l, errHandler: Z, baseURLController: j, segmentBaseController: k, textController: S, abrController: ie, playbackController: Y, eventController: oe, mediaController: he, protectionController: N, videoModel: $, streamInfo: ze, settings: Ee }), z.push(Ct), Ct.initialize(), Promise.resolve());
|
|
5583
5599
|
}
|
|
5584
5600
|
function ke(ze, Ct, Jt) {
|
|
5585
5601
|
try {
|
|
@@ -5627,18 +5643,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5627
5643
|
var wn = Ee.get().streaming.timeShiftBuffer.calcFromSegmentTimeline ? 0.1 : 0;
|
|
5628
5644
|
on = Math.max(on, gn.start + wn);
|
|
5629
5645
|
}
|
|
5630
|
-
} else if (on =
|
|
5631
|
-
var
|
|
5632
|
-
isNaN(
|
|
5646
|
+
} else if (on = xi()[0].getStreamInfo().start, isNaN(Ke)) {
|
|
5647
|
+
var sr = Pn(!1);
|
|
5648
|
+
isNaN(sr) || (e.info("Start time from URI parameters: ".concat(sr)), on = Math.max(on, sr));
|
|
5633
5649
|
} else {
|
|
5634
5650
|
e.info("Start time provided by the app: ".concat(Ke));
|
|
5635
|
-
var
|
|
5636
|
-
isNaN(
|
|
5651
|
+
var zo = Zn(!1, Ke);
|
|
5652
|
+
isNaN(zo) || (on = Math.max(on, zo));
|
|
5637
5653
|
}
|
|
5638
5654
|
return on;
|
|
5639
5655
|
})(), Ct = Fe(ze), Jt = Ct !== null ? Ct : z[0];
|
|
5640
5656
|
dt.trigger(i.A.INITIAL_STREAM_SWITCH, { startTime: ze }), tt(Jt, null, ze), $e || ($e = setInterval((function() {
|
|
5641
|
-
!V && Y.getTimeToStreamEnd() <= 0 && !Y.isSeeking() && dt.trigger(i.A.PLAYBACK_ENDED, { isLast:
|
|
5657
|
+
!V && Y.getTimeToStreamEnd() <= 0 && !Y.isSeeking() && dt.trigger(i.A.PLAYBACK_ENDED, { isLast: Ar().isLast });
|
|
5642
5658
|
}), 200));
|
|
5643
5659
|
}
|
|
5644
5660
|
function tt(ze, Ct, Jt) {
|
|
@@ -5648,7 +5664,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5648
5664
|
var on = !1;
|
|
5649
5665
|
f = ze, Ct && (on = pt(ze, Ct), Ct.deactivate(on)), Jt = isNaN(Jt) ? !on && Ct ? ze.getStreamInfo().start : NaN : Jt, e.info("Switch to stream ".concat(ze.getId(), ". Seektime is ").concat(Jt, ", current playback time is ").concat(Y.getTime(), ". Seamless period switch is set to ").concat(on)), at = at.filter((function(mn) {
|
|
5650
5666
|
return mn.getId() !== f.getId();
|
|
5651
|
-
})), Y.initialize(
|
|
5667
|
+
})), Y.initialize(Ar(), !!Ct), $.getElement() ? gt(Jt, on, !1) : Dt(Jt, on);
|
|
5652
5668
|
} catch {
|
|
5653
5669
|
V = !1;
|
|
5654
5670
|
}
|
|
@@ -5657,7 +5673,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5657
5673
|
var Jt, on = arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
|
|
5658
5674
|
function mn() {
|
|
5659
5675
|
if (P && P.readyState === "open") {
|
|
5660
|
-
e.debug("MediaSource is open!"), window.URL.revokeObjectURL(Jt), P.removeEventListener("sourceopen", mn), P.removeEventListener("webkitsourceopen", mn),
|
|
5676
|
+
e.debug("MediaSource is open!"), window.URL.revokeObjectURL(Jt), P.removeEventListener("sourceopen", mn), P.removeEventListener("webkitsourceopen", mn), qn();
|
|
5661
5677
|
var cn = U.getCurrentDVRInfo();
|
|
5662
5678
|
H.setSeekable(cn.range.start, cn.range.end), on ? (isNaN(ze) || Y.seek(ze, !0, !0), f.setMediaSource(P).then((function() {
|
|
5663
5679
|
f.initializeForTextWithMediaSource(P);
|
|
@@ -5675,7 +5691,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5675
5691
|
var on = Object.keys(Jt);
|
|
5676
5692
|
on.length > 0 && Jt[on[0]].getBuffer().changeType && (Nt = !0), Ze = Jt;
|
|
5677
5693
|
}
|
|
5678
|
-
isNaN(ze) || (dt.trigger(i.A.SEEK_TARGET, { time: ze }, { streamId: f.getId() }), Y.seek(ze, !1, !0), f.startScheduleControllers()), V = !1, dt.trigger(i.A.PERIOD_SWITCH_COMPLETED, { toStreamInfo:
|
|
5694
|
+
isNaN(ze) || (dt.trigger(i.A.SEEK_TARGET, { time: ze }, { streamId: f.getId() }), Y.seek(ze, !1, !0), f.startScheduleControllers()), V = !1, dt.trigger(i.A.PERIOD_SWITCH_COMPLETED, { toStreamInfo: Ar() });
|
|
5679
5695
|
}));
|
|
5680
5696
|
}
|
|
5681
5697
|
function Vt(ze) {
|
|
@@ -5692,8 +5708,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5692
5708
|
})(ze, Ct)) : (Gt(), (function(Jt) {
|
|
5693
5709
|
f.getProcessors().forEach((function(on) {
|
|
5694
5710
|
return on.prepareInnerPeriodPlaybackSeeking(Jt);
|
|
5695
|
-
})),
|
|
5696
|
-
})(ze)),
|
|
5711
|
+
})), dr(Ve.USER_REQUEST_STOP_REASON);
|
|
5712
|
+
})(ze)), pr(Ye.SEEK_START_REASON);
|
|
5697
5713
|
}
|
|
5698
5714
|
function Gt() {
|
|
5699
5715
|
Kt();
|
|
@@ -5746,12 +5762,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5746
5762
|
function xe(ze) {
|
|
5747
5763
|
if (Me && R) {
|
|
5748
5764
|
var Ct = ve.getInitialBufferLevel(), Jt = [u.A.TEXT];
|
|
5749
|
-
(isNaN(Ct) || Ct <= Y.getBufferLevel(Jt) || F.getIsDynamic() && Ct > Y.getLiveDelay()) && (Me = !1,
|
|
5765
|
+
(isNaN(Ct) || Ct <= Y.getBufferLevel(Jt) || F.getIsDynamic() && Ct > Y.getLiveDelay()) && (Me = !1, pr(Ye.INITIAL_PLAYOUT_START_REASON), Y.play());
|
|
5750
5766
|
}
|
|
5751
5767
|
ze && ze.mediaType && U.addBufferLevel(ze.mediaType, /* @__PURE__ */ new Date(), 1e3 * ze.bufferLevel);
|
|
5752
5768
|
}
|
|
5753
5769
|
function Ge(ze) {
|
|
5754
|
-
ze.streamInfo.id === f.getId() && ze.reason && ze.reason.forceReplace && Kt(),
|
|
5770
|
+
ze.streamInfo.id === f.getId() && ze.reason && ze.reason.forceReplace && Kt(), fi(ze.streamInfo.id).prepareQualityChange(ze);
|
|
5755
5771
|
}
|
|
5756
5772
|
function lt() {
|
|
5757
5773
|
if (F.getIsDynamic() && Y.getOriginalLiveDelay() !== 0 && f) {
|
|
@@ -5769,10 +5785,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5769
5785
|
}
|
|
5770
5786
|
}
|
|
5771
5787
|
function Te() {
|
|
5772
|
-
e.debug("[onPlaybackStarted]"), !Me && Ce &&
|
|
5788
|
+
e.debug("[onPlaybackStarted]"), !Me && Ce && pr(Ye.RESUME_FROM_PAUSE_START_REASON), Me && (Me = !1), Qe && (Qe = !1, Ee.get().streaming.applyContentSteering && !w.shouldQueryBeforeStart() && w.loadSteeringData()), Ce = !1;
|
|
5773
5789
|
}
|
|
5774
5790
|
function We(ze) {
|
|
5775
|
-
e.debug("[onPlaybackPaused]"), ze.ended || (Ce = !0,
|
|
5791
|
+
e.debug("[onPlaybackPaused]"), ze.ended || (Ce = !0, dr(Ve.USER_REQUEST_STOP_REASON));
|
|
5776
5792
|
}
|
|
5777
5793
|
function wt(ze) {
|
|
5778
5794
|
e.debug("Stream with id ".concat(ze.streamInfo.id, " finished buffering"));
|
|
@@ -5812,30 +5828,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5812
5828
|
var Jt = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null) || f || null;
|
|
5813
5829
|
if (!Jt) return null;
|
|
5814
5830
|
for (var on = Jt.getStreamInfo(), mn = on.start, gn = 0, cn = -1, Dn = NaN; gn < z.length; ) {
|
|
5815
|
-
var wn = z[gn].getStreamInfo(),
|
|
5816
|
-
|
|
5831
|
+
var wn = z[gn].getStreamInfo(), sr = wn.start - mn;
|
|
5832
|
+
sr > 0 && (isNaN(Dn) || sr < Dn) && on.id !== wn.id && (Dn = sr, cn = gn), gn += 1;
|
|
5817
5833
|
}
|
|
5818
5834
|
return cn >= 0 ? z[cn] : null;
|
|
5819
5835
|
})();
|
|
5820
|
-
Ct ? (e.debug("StreamController onEnded, found next stream with id ".concat(Ct.getStreamInfo().id, ". Switching from ").concat(f.getStreamInfo().id, " to ").concat(Ct.getStreamInfo().id)), tt(Ct, f, NaN)) : (e.debug("StreamController no next stream found"), f.setIsEndedEventSignaled(!1)),
|
|
5836
|
+
Ct ? (e.debug("StreamController onEnded, found next stream with id ".concat(Ct.getStreamInfo().id, ". Switching from ").concat(f.getStreamInfo().id, " to ").concat(Ct.getStreamInfo().id)), tt(Ct, f, NaN)) : (e.debug("StreamController no next stream found"), f.setIsEndedEventSignaled(!1)), dr(Ct ? Ve.END_OF_PERIOD_STOP_REASON : Ve.END_OF_CONTENT_STOP_REASON);
|
|
5821
5837
|
}
|
|
5822
5838
|
ze && ze.isLast && (hn(), w.stopSteeringRequestTimer());
|
|
5823
5839
|
}
|
|
5824
|
-
function
|
|
5825
|
-
var Ct = ze ||
|
|
5840
|
+
function qn(ze) {
|
|
5841
|
+
var Ct = ze || Ar().manifestInfo.duration;
|
|
5826
5842
|
H.setDuration(Ct);
|
|
5827
5843
|
}
|
|
5828
5844
|
function Pn(ze) {
|
|
5829
5845
|
var Ct = se.getURIFragmentData();
|
|
5830
5846
|
if (!Ct || !Ct.t) return NaN;
|
|
5831
|
-
var Jt =
|
|
5832
|
-
return Ct.t = Ct.t.split(",")[0],
|
|
5847
|
+
var Jt = xi()[0].getStreamInfo().start;
|
|
5848
|
+
return Ct.t = Ct.t.split(",")[0], Rr(ze, Ct.t, Jt);
|
|
5833
5849
|
}
|
|
5834
5850
|
function Zn(ze, Ct) {
|
|
5835
5851
|
var Jt = 0;
|
|
5836
|
-
return ze || (Jt =
|
|
5852
|
+
return ze || (Jt = xi()[0].getStreamInfo().start), Rr(ze, Ct, Jt);
|
|
5837
5853
|
}
|
|
5838
|
-
function
|
|
5854
|
+
function Rr(ze, Ct, Jt) {
|
|
5839
5855
|
var on = F.getRegularPeriods()[0], mn = Ct.toString(), gn = mn.indexOf("posix:") !== -1 ? mn.substring(6) === "now" ? Date.now() / 1e3 : parseFloat(mn.substring(6)) : NaN;
|
|
5840
5856
|
return ze && !isNaN(gn) ? K.calcPresentationTimeFromWallTime(new Date(1e3 * gn), on) : parseFloat(mn) + Jt;
|
|
5841
5857
|
}
|
|
@@ -5849,22 +5865,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5849
5865
|
return wn && wn.isFragmented !== !1 && cn.push(wn), cn;
|
|
5850
5866
|
}), []).reduce((function(cn, Dn) {
|
|
5851
5867
|
var wn = F.getVoRepresentations(Dn);
|
|
5852
|
-
return wn && wn.length > 0 && wn.forEach((function(
|
|
5853
|
-
|
|
5868
|
+
return wn && wn.length > 0 && wn.forEach((function(sr) {
|
|
5869
|
+
sr && cn.push(sr);
|
|
5854
5870
|
})), cn;
|
|
5855
5871
|
}), []).reduce((function(cn, Dn) {
|
|
5856
5872
|
var wn = F.convertRepresentationToRepresentationInfo(Dn);
|
|
5857
5873
|
return wn && wn.fragmentDuration && !isNaN(wn.fragmentDuration) && cn.push(wn.fragmentDuration), cn;
|
|
5858
5874
|
}), []);
|
|
5859
5875
|
Jt = Math.max.apply(Math, (function(cn) {
|
|
5860
|
-
if (Array.isArray(cn)) return
|
|
5876
|
+
if (Array.isArray(cn)) return zi(cn);
|
|
5861
5877
|
})(gn = mn) || (function(cn) {
|
|
5862
5878
|
if (typeof Symbol < "u" && cn[Symbol.iterator] != null || cn["@@iterator"] != null) return Array.from(cn);
|
|
5863
5879
|
})(gn) || (function(cn, Dn) {
|
|
5864
5880
|
if (cn) {
|
|
5865
|
-
if (typeof cn == "string") return
|
|
5881
|
+
if (typeof cn == "string") return zi(cn, Dn);
|
|
5866
5882
|
var wn = {}.toString.call(cn).slice(8, -1);
|
|
5867
|
-
return wn === "Object" && cn.constructor && (wn = cn.constructor.name), wn === "Map" || wn === "Set" ? Array.from(cn) : wn === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(wn) ?
|
|
5883
|
+
return wn === "Object" && cn.constructor && (wn = cn.constructor.name), wn === "Map" || wn === "Set" ? Array.from(cn) : wn === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(wn) ? zi(cn, Dn) : void 0;
|
|
5868
5884
|
}
|
|
5869
5885
|
})(gn) || (function() {
|
|
5870
5886
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
@@ -5877,14 +5893,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5877
5893
|
}
|
|
5878
5894
|
var gn;
|
|
5879
5895
|
}
|
|
5880
|
-
function
|
|
5881
|
-
if (ze.error) ue = !0,
|
|
5896
|
+
function fr(ze) {
|
|
5897
|
+
if (ze.error) ue = !0, Nr();
|
|
5882
5898
|
else {
|
|
5883
5899
|
e.info("Manifest updated... updating data system wide.");
|
|
5884
5900
|
var Ct = ze.manifest;
|
|
5885
5901
|
F.updatePeriods(Ct);
|
|
5886
5902
|
var Jt = F.getUTCTimingSources();
|
|
5887
|
-
!F.getIsDynamic() || Jt && Jt.length !== 0 || dt.trigger(r.A.CONFORMANCE_VIOLATION, { level:
|
|
5903
|
+
!F.getIsDynamic() || Jt && Jt.length !== 0 || dt.trigger(r.A.CONFORMANCE_VIOLATION, { level: xr.LEVELS.WARNING, event: xr.EVENTS.NO_UTC_TIMING_ELEMENT });
|
|
5888
5904
|
var on = F.getIsDynamic() ? Jt.concat(fe.getUTCTimingSources()) : Jt;
|
|
5889
5905
|
l.filterUnsupportedFeatures(Ct).then((function() {
|
|
5890
5906
|
j.initialize(Ct), B.attemptSync(on, F.getIsDynamic());
|
|
@@ -5894,18 +5910,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5894
5910
|
function er() {
|
|
5895
5911
|
return !!f && f.getHasVideoTrack();
|
|
5896
5912
|
}
|
|
5897
|
-
function
|
|
5913
|
+
function wr() {
|
|
5898
5914
|
return !!f && f.getHasAudioTrack();
|
|
5899
5915
|
}
|
|
5900
|
-
function
|
|
5916
|
+
function dr(ze, Ct) {
|
|
5901
5917
|
Ct = Ct || /* @__PURE__ */ new Date(), En().forEach((function(Jt) {
|
|
5902
5918
|
Jt.finalisePlayList(Ct, ze);
|
|
5903
5919
|
})), U.addPlayList();
|
|
5904
5920
|
}
|
|
5905
|
-
function
|
|
5921
|
+
function pr(ze) {
|
|
5906
5922
|
U.createPlaylistMetrics(1e3 * Y.getTime(), ze);
|
|
5907
5923
|
}
|
|
5908
|
-
function
|
|
5924
|
+
function Li(ze) {
|
|
5909
5925
|
if (ze.error) {
|
|
5910
5926
|
var Ct = "";
|
|
5911
5927
|
switch (ze.error.code) {
|
|
@@ -5931,39 +5947,39 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5931
5947
|
e.warn("A MEDIA_ERR_DECODE occured: Resetting the MediaSource");
|
|
5932
5948
|
var Jt = Y.getTime();
|
|
5933
5949
|
f.deactivate(!1), e.warn("MediaSource has been resetted. Resuming playback from time ".concat(Jt)), gt(Jt, !1, !1);
|
|
5934
|
-
})() : (de = !0, ze.error.message && (Ct += " (" + ze.error.message + ")"), ze.error.msExtendedCode && (Ct += " (0x" + (ze.error.msExtendedCode >>> 0).toString(16).toUpperCase() + ")"), e.fatal("Video Element Error: " + Ct), ze.error && e.fatal(ze.error), Z.error(new pe.A(ze.error.code, Ct)),
|
|
5950
|
+
})() : (de = !0, ze.error.message && (Ct += " (" + ze.error.message + ")"), ze.error.msExtendedCode && (Ct += " (0x" + (ze.error.msExtendedCode >>> 0).toString(16).toUpperCase() + ")"), e.fatal("Video Element Error: " + Ct), ze.error && e.fatal(ze.error), Z.error(new pe.A(ze.error.code, Ct)), Nr());
|
|
5935
5951
|
}
|
|
5936
5952
|
}
|
|
5937
|
-
function
|
|
5953
|
+
function Ar() {
|
|
5938
5954
|
return f ? f.getStreamInfo() : null;
|
|
5939
5955
|
}
|
|
5940
|
-
function
|
|
5956
|
+
function fi(ze) {
|
|
5941
5957
|
for (var Ct = 0, Jt = z.length; Ct < Jt; Ct++) if (z[Ct].getId() === ze) return z[Ct];
|
|
5942
5958
|
return null;
|
|
5943
5959
|
}
|
|
5944
|
-
function
|
|
5945
|
-
isNaN(ze.newDuration) ||
|
|
5960
|
+
function jr(ze) {
|
|
5961
|
+
isNaN(ze.newDuration) || qn(ze.newDuration);
|
|
5946
5962
|
}
|
|
5947
|
-
function
|
|
5963
|
+
function Fi() {
|
|
5948
5964
|
z = [], Ke = NaN, N = null, V = !1, f = null, de = !1, ue = !1, Me = !0, Qe = !0, Ce = !1, R = !0, $e = null, Pe = !1, Nt = !1, at = [], ct = null, yt = { counts: { mediaErrorDecode: 0 } };
|
|
5949
5965
|
}
|
|
5950
|
-
function
|
|
5951
|
-
qt(), B.reset(),
|
|
5966
|
+
function Nr() {
|
|
5967
|
+
qt(), B.reset(), dr(de || ue ? Ve.FAILURE_STOP_REASON : Ve.USER_REQUEST_STOP_REASON);
|
|
5952
5968
|
for (var ze = 0, Ct = z ? z.length : 0; ze < Ct; ze++) z[ze].reset(de);
|
|
5953
|
-
dt.off(r.A.PLAYBACK_TIME_UPDATED, ye, t), dt.off(r.A.PLAYBACK_SEEKING, Vt, t), dt.off(r.A.PLAYBACK_ERROR,
|
|
5969
|
+
dt.off(r.A.PLAYBACK_TIME_UPDATED, ye, t), dt.off(r.A.PLAYBACK_SEEKING, Vt, t), dt.off(r.A.PLAYBACK_ERROR, Li, t), dt.off(r.A.PLAYBACK_STARTED, Te, t), dt.off(r.A.PLAYBACK_PAUSED, We, t), dt.off(r.A.PLAYBACK_ENDED, dn, t), dt.off(r.A.METRIC_ADDED, Aa, t), dt.off(r.A.MANIFEST_VALIDITY_CHANGED, jr, t), dt.off(r.A.BUFFER_LEVEL_UPDATED, xe, t), dt.off(r.A.QUALITY_CHANGE_REQUESTED, Ge, t), i.A.KEY_SESSION_UPDATED && dt.off(i.A.KEY_SESSION_UPDATED, sn, t), dt.off(i.A.MANIFEST_UPDATED, fr, t), dt.off(i.A.STREAM_BUFFERING_COMPLETED, wt, t), dt.off(i.A.TIME_SYNCHRONIZATION_COMPLETED, Yt, t), dt.off(i.A.CURRENT_TRACK_CHANGED, Zt, t), dt.off(i.A.SETTING_UPDATED_LIVE_DELAY, lt, t), dt.off(i.A.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT, lt, t), j.reset(), p.reset(), oe.reset(), U.clearAllCurrentMetrics(), b.setValue(null), C.reset(), K.reset(), te.reset(), P && (H.detachMediaSource($), P = null), $ = null, N && (N = null, L = null, b.getValue() && dt.trigger(i.A.PROTECTION_DESTROYED, { data: b.getValue().url })), hn(), dt.trigger(i.A.STREAM_TEARDOWN_COMPLETE), Fi();
|
|
5954
5970
|
}
|
|
5955
|
-
function
|
|
5971
|
+
function Aa(ze) {
|
|
5956
5972
|
if (ze.metric === _.A.DVR_INFO) {
|
|
5957
|
-
var Ct =
|
|
5973
|
+
var Ct = wr() ? u.A.AUDIO : u.A.VIDEO;
|
|
5958
5974
|
ze.mediaType === Ct && H.setSeekable(ze.value.range.start, ze.value.range.end);
|
|
5959
5975
|
}
|
|
5960
5976
|
}
|
|
5961
|
-
function
|
|
5977
|
+
function xi() {
|
|
5962
5978
|
return z;
|
|
5963
5979
|
}
|
|
5964
5980
|
return t = { initialize: function(ze, Ct) {
|
|
5965
|
-
qt(), R = ze, L = Ct, K.initialize(), (p =
|
|
5966
|
-
}, getActiveStreamInfo:
|
|
5981
|
+
qt(), R = ze, L = Ct, K.initialize(), (p = Sa(ht).create()).setConfig({ manifestModel: b, adapter: F, manifestLoader: C, errHandler: Z, settings: Ee, contentSteeringController: w }), p.initialize(), (oe = es(ht).getInstance()).setConfig({ manifestUpdater: p, playbackController: Y, settings: Ee }), oe.start(), B.setConfig({ dashMetrics: U, baseURLController: j, errHandler: Z, settings: Ee }), B.initialize(), H.setConfig({ settings: Ee }), N && (dt.trigger(i.A.PROTECTION_CREATED, { controller: N }), N.setMediaElement($.getElement()), L && N.setProtectionData(L)), dt.on(r.A.PLAYBACK_TIME_UPDATED, ye, t), dt.on(r.A.PLAYBACK_SEEKING, Vt, t), dt.on(r.A.PLAYBACK_ERROR, Li, t), dt.on(r.A.PLAYBACK_STARTED, Te, t), dt.on(r.A.PLAYBACK_PAUSED, We, t), dt.on(r.A.PLAYBACK_ENDED, dn, t), dt.on(r.A.METRIC_ADDED, Aa, t), dt.on(r.A.MANIFEST_VALIDITY_CHANGED, jr, t), dt.on(r.A.BUFFER_LEVEL_UPDATED, xe, t), dt.on(r.A.QUALITY_CHANGE_REQUESTED, Ge, t), i.A.KEY_SESSION_UPDATED && dt.on(i.A.KEY_SESSION_UPDATED, sn, t), dt.on(i.A.MANIFEST_UPDATED, fr, t), dt.on(i.A.STREAM_BUFFERING_COMPLETED, wt, t), dt.on(i.A.TIME_SYNCHRONIZATION_COMPLETED, Yt, t), dt.on(i.A.CURRENT_TRACK_CHANGED, Zt, t), dt.on(i.A.SETTING_UPDATED_LIVE_DELAY, lt, t), dt.on(i.A.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT, lt, t);
|
|
5982
|
+
}, getActiveStreamInfo: Ar, addDVRMetric: st, hasVideoTrack: er, hasAudioTrack: wr, getStreamById: fi, getStreamForTime: Fe, getTimeRelativeToStreamId: function(ze, Ct) {
|
|
5967
5983
|
for (var Jt = null, on = 0, mn = 0, gn = null, cn = 0; cn < z.length; cn++) {
|
|
5968
5984
|
if (mn = (Jt = z[cn]).getStartTime(), gn = Jt.getDuration(), Number.isFinite(mn) && (on = mn), Jt.getId() === Ct) return ze - on;
|
|
5969
5985
|
Number.isFinite(gn) && (on += gn);
|
|
@@ -5984,10 +6000,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5984
6000
|
}, getIsStreamSwitchInProgress: function() {
|
|
5985
6001
|
return V;
|
|
5986
6002
|
}, switchToVideoElement: function(ze) {
|
|
5987
|
-
f && (Y.initialize(
|
|
6003
|
+
f && (Y.initialize(Ar()), gt(ze, !1, !0));
|
|
5988
6004
|
}, getHasMediaOrInitialisationError: function() {
|
|
5989
6005
|
return de || ue;
|
|
5990
|
-
}, getStreams:
|
|
6006
|
+
}, getStreams: xi, getActiveStream: function() {
|
|
5991
6007
|
return f;
|
|
5992
6008
|
}, getInitialPlayback: function() {
|
|
5993
6009
|
return Me;
|
|
@@ -5995,11 +6011,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5995
6011
|
return R;
|
|
5996
6012
|
}, refreshManifest: function() {
|
|
5997
6013
|
p.getIsUpdating() || p.refreshManifest();
|
|
5998
|
-
}, reset:
|
|
6014
|
+
}, reset: Nr }, e = (0, g.A)(ht).getInstance().getLogger(t), B = Jo(ht).getInstance(), H = Zo(ht).getInstance(), te = Oe(ht).getInstance(), Fi(), t;
|
|
5999
6015
|
}
|
|
6000
|
-
|
|
6001
|
-
var
|
|
6002
|
-
function
|
|
6016
|
+
wa.__dashjs_factory_name = "StreamController";
|
|
6017
|
+
var Na = h.A.getSingletonFactory(wa);
|
|
6018
|
+
function Ca() {
|
|
6003
6019
|
var t, e, o, l, p, C, b, F, U, H, B, w, j = this.context, k = (0, y.A)(j).getInstance();
|
|
6004
6020
|
function se() {
|
|
6005
6021
|
w.debug("Stopping the gap controller"), p && (clearInterval(p), p = null), (function() {
|
|
@@ -6087,9 +6103,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6087
6103
|
})();
|
|
6088
6104
|
} }, w = (0, g.A)(j).getInstance().getLogger(t), se(), t;
|
|
6089
6105
|
}
|
|
6090
|
-
|
|
6091
|
-
var
|
|
6092
|
-
function
|
|
6106
|
+
Ca.__dashjs_factory_name = "GapController";
|
|
6107
|
+
var ts = h.A.getSingletonFactory(Ca);
|
|
6108
|
+
function Da() {
|
|
6093
6109
|
var t, e, o, l, p, C, b, F, U, H, B = this.context, w = (0, y.A)(B).getInstance();
|
|
6094
6110
|
function j() {
|
|
6095
6111
|
e = !1;
|
|
@@ -6179,9 +6195,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6179
6195
|
w.on(r.A.BUFFER_LEVEL_UPDATED, se, t), w.on(r.A.BUFFER_LEVEL_STATE_CHANGED, ie, t), w.on(r.A.PLAYBACK_PROGRESS, oe, t), w.on(r.A.PLAYBACK_TIME_UPDATED, oe, t), w.on(r.A.PLAYBACK_SEEKED, k, t), w.on(i.A.SETTING_UPDATED_CATCHUP_ENABLED, he, t), w.on(i.A.SETTING_UPDATED_PLAYBACK_RATE_MIN, K, t), w.on(i.A.SETTING_UPDATED_PLAYBACK_RATE_MAX, K, t), w.on(r.A.STREAM_INITIALIZED, K, t), K();
|
|
6180
6196
|
} }, H = (0, g.A)(B).getInstance().getLogger(t), j(), t;
|
|
6181
6197
|
}
|
|
6182
|
-
|
|
6183
|
-
var
|
|
6184
|
-
function
|
|
6198
|
+
Da.__dashjs_factory_name = "CatchupController";
|
|
6199
|
+
var ns = h.A.getSingletonFactory(Da), rs = [u.A.SERVICE_DESCRIPTION_DVB_LL_SCHEME], Oa = "video", Ma = "audio";
|
|
6200
|
+
function Pa() {
|
|
6185
6201
|
var t, e, o, l, p, C = this.context;
|
|
6186
6202
|
function b() {
|
|
6187
6203
|
e = { liveDelay: NaN, liveCatchup: { maxDrift: NaN, playbackRate: { min: NaN, max: NaN } }, minBitrate: {}, maxBitrate: {}, initialBitrate: {}, contentSteering: null }, o = [];
|
|
@@ -6224,7 +6240,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6224
6240
|
}, applyServiceDescription: function(U) {
|
|
6225
6241
|
if (U && U.serviceDescriptions) {
|
|
6226
6242
|
var H = U.serviceDescriptions.filter((function(j) {
|
|
6227
|
-
return
|
|
6243
|
+
return rs.includes(j.schemeIdUri);
|
|
6228
6244
|
})), B = U.serviceDescriptions.filter((function(j) {
|
|
6229
6245
|
return j.schemeIdUri == null;
|
|
6230
6246
|
})), w = H.length > 0 ? H[H.length - 1] : B[B.length - 1];
|
|
@@ -6252,7 +6268,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6252
6268
|
var k = {};
|
|
6253
6269
|
k.minBandwidth = j.operatingBandwidth.min, k.maxBandwidth = j.operatingBandwidth.max, k.targetBandwidth = j.operatingBandwidth.target;
|
|
6254
6270
|
var se = [];
|
|
6255
|
-
j.operatingBandwidth.mediaType ===
|
|
6271
|
+
j.operatingBandwidth.mediaType === Oa || j.operatingBandwidth.mediaType === Ma ? se.push(j.operatingBandwidth.mediaType) : j.operatingBandwidth.mediaType === "any" && (se.push(Ma), se.push(Oa)), se.forEach((function(ie) {
|
|
6256
6272
|
isNaN(k.minBandwidth) || F("minBitrate", ie, k.minBandwidth), isNaN(k.maxBandwidth) || F("maxBitrate", ie, k.maxBandwidth), isNaN(k.targetBandwidth) || F("initialBitrate", ie, k.targetBandwidth);
|
|
6257
6273
|
}));
|
|
6258
6274
|
}
|
|
@@ -6266,9 +6282,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6266
6282
|
U && U.adapter && (p = U.adapter);
|
|
6267
6283
|
} }, l = (0, g.A)(C).getInstance().getLogger(t), b(), t;
|
|
6268
6284
|
}
|
|
6269
|
-
|
|
6270
|
-
var
|
|
6271
|
-
function
|
|
6285
|
+
Pa.__dashjs_factory_name = "ServiceDescriptionController";
|
|
6286
|
+
var is = h.A.getSingletonFactory(Pa);
|
|
6287
|
+
function Xi() {
|
|
6272
6288
|
var t, e, o, l, p, C, b, F, U = this.context, H = (0, y.A)(U).getInstance();
|
|
6273
6289
|
function B(P, $) {
|
|
6274
6290
|
return P && o[$] && o[$][P] ? o[$][P].list : [];
|
|
@@ -6448,23 +6464,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6448
6464
|
P && (P.domStorage && (F = P.domStorage), P.settings && (l = P.settings), P.customParametersModel && (b = P.customParametersModel));
|
|
6449
6465
|
}, reset: he }, e = (0, g.A)(U).getInstance().getLogger(t), he(), t;
|
|
6450
6466
|
}
|
|
6451
|
-
|
|
6452
|
-
var
|
|
6453
|
-
h.A.updateSingletonFactory(
|
|
6454
|
-
var
|
|
6455
|
-
function
|
|
6467
|
+
Xi.__dashjs_factory_name = "MediaController";
|
|
6468
|
+
var La = h.A.getSingletonFactory(Xi);
|
|
6469
|
+
h.A.updateSingletonFactory(Xi.__dashjs_factory_name, La);
|
|
6470
|
+
var as = La;
|
|
6471
|
+
function os(t, e, o) {
|
|
6456
6472
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
6457
6473
|
}
|
|
6458
|
-
var
|
|
6474
|
+
var vi = NaN, Fa = os((function t(e, o) {
|
|
6459
6475
|
(function(l, p) {
|
|
6460
6476
|
if (!(l instanceof p)) throw new TypeError("Cannot call a class as a function");
|
|
6461
|
-
})(this, t), this.data = { baseUrls: e || null, selectedIdx: o ||
|
|
6477
|
+
})(this, t), this.data = { baseUrls: e || null, selectedIdx: o || vi }, this.children = [];
|
|
6462
6478
|
}));
|
|
6463
|
-
function
|
|
6479
|
+
function xa() {
|
|
6464
6480
|
var t, e, o, l, p = this.context, C = Et(p).getInstance();
|
|
6465
6481
|
function b(B, w, j) {
|
|
6466
6482
|
var k = F(j);
|
|
6467
|
-
B[w] ? C.areEqual(k, B[w].data.baseUrls) || (B[w].data.baseUrls = k, B[w].data.selectedIdx =
|
|
6483
|
+
B[w] ? C.areEqual(k, B[w].data.baseUrls) || (B[w].data.baseUrls = k, B[w].data.selectedIdx = vi) : B[w] = new Fa(k);
|
|
6468
6484
|
}
|
|
6469
6485
|
function F(B) {
|
|
6470
6486
|
var w = o.getBaseURLsFromElement(B), j = l.getSynthesizedBaseUrlElements(w);
|
|
@@ -6477,7 +6493,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6477
6493
|
}));
|
|
6478
6494
|
}
|
|
6479
6495
|
function H() {
|
|
6480
|
-
e = new
|
|
6496
|
+
e = new Fa();
|
|
6481
6497
|
}
|
|
6482
6498
|
return t = { reset: H, update: function(B) {
|
|
6483
6499
|
(function(w) {
|
|
@@ -6485,7 +6501,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6485
6501
|
if (!o || !o.hasOwnProperty("getBaseURLsFromElement") || !o.hasOwnProperty("getRepresentationSortFunction")) throw new Error("setConfig function has to be called previously");
|
|
6486
6502
|
})();
|
|
6487
6503
|
var j = F(w);
|
|
6488
|
-
C.areEqual(j, e.data.baseUrls) || (e.data.baseUrls = j, e.data.selectedIdx =
|
|
6504
|
+
C.areEqual(j, e.data.baseUrls) || (e.data.baseUrls = j, e.data.selectedIdx = vi), w && w.Period_asArray && w.Period_asArray.forEach((function(k, se) {
|
|
6489
6505
|
b(e.children, se, k), k.AdaptationSet_asArray && k.AdaptationSet_asArray.forEach((function(ie, he) {
|
|
6490
6506
|
b(e.children[se].children, he, ie), ie.Representation_asArray && ie.Representation_asArray.sort(o.getRepresentationSortFunction()).forEach((function(oe, te) {
|
|
6491
6507
|
b(e.children[se].children[he].children, te, oe);
|
|
@@ -6502,7 +6518,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6502
6518
|
}));
|
|
6503
6519
|
}, invalidateSelectedIndexes: function(B) {
|
|
6504
6520
|
U((function(w) {
|
|
6505
|
-
isNaN(w.selectedIdx) || B === w.baseUrls[w.selectedIdx].serviceLocation && (w.selectedIdx =
|
|
6521
|
+
isNaN(w.selectedIdx) || B === w.baseUrls[w.selectedIdx].serviceLocation && (w.selectedIdx = vi);
|
|
6506
6522
|
}));
|
|
6507
6523
|
}, setConfig: function(B) {
|
|
6508
6524
|
B.adapter && (o = B.adapter), B.contentSteeringController && (l = B.contentSteeringController);
|
|
@@ -6510,9 +6526,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6510
6526
|
return F(B);
|
|
6511
6527
|
} }, H(), t;
|
|
6512
6528
|
}
|
|
6513
|
-
|
|
6514
|
-
var
|
|
6515
|
-
function
|
|
6529
|
+
xa.__dashjs_factory_name = "BaseURLTreeModel";
|
|
6530
|
+
var ss = h.A.getClassFactory(xa);
|
|
6531
|
+
function Ua(t) {
|
|
6516
6532
|
var e = (t = t || {}).blacklistController;
|
|
6517
6533
|
return { select: function(o) {
|
|
6518
6534
|
return o && (function(p) {
|
|
@@ -6535,9 +6551,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6535
6551
|
var l;
|
|
6536
6552
|
} };
|
|
6537
6553
|
}
|
|
6538
|
-
|
|
6539
|
-
var
|
|
6540
|
-
function
|
|
6554
|
+
Ua.__dashjs_factory_name = "DVBSelector";
|
|
6555
|
+
var us = h.A.getClassFactory(Ua);
|
|
6556
|
+
function Ba(t) {
|
|
6541
6557
|
var e = (t = t || {}).blacklistController;
|
|
6542
6558
|
return { select: function(o) {
|
|
6543
6559
|
var l, p = 0;
|
|
@@ -6546,9 +6562,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6546
6562
|
})) && (l = o[p]), l;
|
|
6547
6563
|
} };
|
|
6548
6564
|
}
|
|
6549
|
-
|
|
6550
|
-
var
|
|
6551
|
-
function
|
|
6565
|
+
Ba.__dashjs_factory_name = "BasicSelector";
|
|
6566
|
+
var ls = h.A.getClassFactory(Ba);
|
|
6567
|
+
function ka() {
|
|
6552
6568
|
var t, e, o, l = this.context;
|
|
6553
6569
|
function p() {
|
|
6554
6570
|
for (var C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], F = 0, U = NaN, H = function() {
|
|
@@ -6570,11 +6586,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6570
6586
|
return C.baseUrls && C.baseUrls.length && U && U.pathwayPriority && U.pathwayPriority.length && (b = p(U.pathwayPriority, C.baseUrls)), b;
|
|
6571
6587
|
}, setConfig: function(C) {
|
|
6572
6588
|
C.blacklistController && (o = C.blacklistController), C.contentSteeringController && (e = C.contentSteeringController);
|
|
6573
|
-
} }, e =
|
|
6589
|
+
} }, e = ni(l).getInstance(), t;
|
|
6574
6590
|
}
|
|
6575
|
-
|
|
6576
|
-
var
|
|
6577
|
-
function
|
|
6591
|
+
ka.__dashjs_factory_name = "ContentSteeringSelector";
|
|
6592
|
+
var cs = h.A.getClassFactory(ka);
|
|
6593
|
+
function Ga() {
|
|
6578
6594
|
var t, e, o, l, p, C, b = this.context, F = (0, y.A)(b).getInstance(), U = (0, le.A)(b).getInstance();
|
|
6579
6595
|
function H() {
|
|
6580
6596
|
e.reset();
|
|
@@ -6593,11 +6609,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6593
6609
|
}
|
|
6594
6610
|
}, reset: H, setConfig: function(B) {
|
|
6595
6611
|
B.selector && (C = B.selector), B.contentSteeringSelector && (p = B.contentSteeringSelector);
|
|
6596
|
-
} }, e =
|
|
6612
|
+
} }, e = ti(b).create({ updateEventName: i.A.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED, addBlacklistEventName: i.A.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD }), o = ls(b).create({ blacklistController: e }), l = us(b).create({ blacklistController: e }), (p = cs(b).create()).setConfig({ blacklistController: e }), C = o, t;
|
|
6597
6613
|
}
|
|
6598
|
-
|
|
6599
|
-
var
|
|
6600
|
-
function
|
|
6614
|
+
Ga.__dashjs_factory_name = "BaseURLSelector";
|
|
6615
|
+
var fs = h.A.getClassFactory(Ga);
|
|
6616
|
+
function ja() {
|
|
6601
6617
|
var t, e, o, l, p, C = this.context, b = (0, y.A)(C).getInstance(), F = (0, Ae.A)(C).getInstance();
|
|
6602
6618
|
function U(B) {
|
|
6603
6619
|
o.update(B), l.chooseSelector(e.getIsDVB(B)), b.trigger(r.A.BASE_URLS_UPDATED, { baseUrls: H(B) });
|
|
@@ -6612,68 +6628,68 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6612
6628
|
}, resolve: function(B) {
|
|
6613
6629
|
var w = o.getForPath(B).reduce((function(j, k) {
|
|
6614
6630
|
var se = l.select(k);
|
|
6615
|
-
return se ? (F.isRelative(se.url) ? j.url = F.resolve(se.url, j.url) : (j.url = se.url, j.serviceLocation = se.serviceLocation), j.availabilityTimeOffset = se.availabilityTimeOffset, j.availabilityTimeComplete = se.availabilityTimeComplete, j.queryParams = se.queryParams, j) : new
|
|
6616
|
-
}), new
|
|
6631
|
+
return se ? (F.isRelative(se.url) ? j.url = F.resolve(se.url, j.url) : (j.url = se.url, j.serviceLocation = se.serviceLocation), j.availabilityTimeOffset = se.availabilityTimeOffset, j.availabilityTimeComplete = se.availabilityTimeComplete, j.queryParams = se.queryParams, j) : new Pr();
|
|
6632
|
+
}), new Pr());
|
|
6617
6633
|
if (!F.isRelative(w.url)) return w;
|
|
6618
6634
|
}, setConfig: function(B) {
|
|
6619
6635
|
B.baseURLTreeModel && (o = B.baseURLTreeModel), B.baseURLSelector && (l = B.baseURLSelector), B.adapter && (e = B.adapter), B.contentSteeringController && (p = B.contentSteeringController);
|
|
6620
|
-
}, getBaseUrls: H, update: U }, o =
|
|
6636
|
+
}, getBaseUrls: H, update: U }, o = ss(C).create(), l = fs(C).create(), b.on(i.A.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED, (function(B) {
|
|
6621
6637
|
o.invalidateSelectedIndexes(B.entry);
|
|
6622
6638
|
}), t), t;
|
|
6623
6639
|
}
|
|
6624
|
-
|
|
6625
|
-
var
|
|
6626
|
-
function
|
|
6627
|
-
return
|
|
6640
|
+
ja.__dashjs_factory_name = "BaseURLController";
|
|
6641
|
+
var ds = h.A.getClassFactory(ja);
|
|
6642
|
+
function Qi(t) {
|
|
6643
|
+
return Qi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
6628
6644
|
return typeof e;
|
|
6629
6645
|
} : function(e) {
|
|
6630
6646
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
6631
|
-
},
|
|
6647
|
+
}, Qi(t);
|
|
6632
6648
|
}
|
|
6633
|
-
function
|
|
6634
|
-
return e =
|
|
6635
|
-
if (p && (
|
|
6649
|
+
function ps(t, e, o) {
|
|
6650
|
+
return e = Ti(e), (function(l, p) {
|
|
6651
|
+
if (p && (Qi(p) == "object" || typeof p == "function")) return p;
|
|
6636
6652
|
if (p !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
6637
6653
|
return (function(C) {
|
|
6638
6654
|
if (C === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6639
6655
|
return C;
|
|
6640
6656
|
})(l);
|
|
6641
|
-
})(t,
|
|
6657
|
+
})(t, qa() ? Reflect.construct(e, [], Ti(t).constructor) : e.apply(t, o));
|
|
6642
6658
|
}
|
|
6643
|
-
function
|
|
6659
|
+
function qa() {
|
|
6644
6660
|
try {
|
|
6645
6661
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {
|
|
6646
6662
|
})));
|
|
6647
6663
|
} catch {
|
|
6648
6664
|
}
|
|
6649
|
-
return (
|
|
6665
|
+
return (qa = function() {
|
|
6650
6666
|
return !!t;
|
|
6651
6667
|
})();
|
|
6652
6668
|
}
|
|
6653
|
-
function
|
|
6654
|
-
return
|
|
6669
|
+
function Ti(t) {
|
|
6670
|
+
return Ti = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
6655
6671
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
6656
|
-
},
|
|
6672
|
+
}, Ti(t);
|
|
6657
6673
|
}
|
|
6658
|
-
function
|
|
6659
|
-
return
|
|
6674
|
+
function $i(t, e) {
|
|
6675
|
+
return $i = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, l) {
|
|
6660
6676
|
return o.__proto__ = l, o;
|
|
6661
|
-
},
|
|
6677
|
+
}, $i(t, e);
|
|
6662
6678
|
}
|
|
6663
|
-
var
|
|
6679
|
+
var Ya = (function(t) {
|
|
6664
6680
|
function e(l, p) {
|
|
6665
6681
|
var C;
|
|
6666
6682
|
return (function(b, F) {
|
|
6667
6683
|
if (!(b instanceof F)) throw new TypeError("Cannot call a class as a function");
|
|
6668
|
-
})(this, e), (C =
|
|
6684
|
+
})(this, e), (C = ps(this, e)).url = l || null, C.type = p || null, C.mediaType = u.A.STREAM, C.responseType = "", C;
|
|
6669
6685
|
}
|
|
6670
6686
|
return (function(l, p) {
|
|
6671
6687
|
if (typeof p != "function" && p !== null) throw new TypeError("Super expression must either be null or a function");
|
|
6672
|
-
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p &&
|
|
6688
|
+
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p && $i(l, p);
|
|
6673
6689
|
})(e, t), o = e, Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
6674
6690
|
var o;
|
|
6675
6691
|
})(T.A);
|
|
6676
|
-
function
|
|
6692
|
+
function Ha(t) {
|
|
6677
6693
|
t = t || {};
|
|
6678
6694
|
var e = this.context, o = (0, y.A)(e).getInstance(), l = Mn(e).create({ errHandler: t.errHandler, dashMetrics: t.dashMetrics, mediaPlayerModel: t.mediaPlayerModel, requestModifier: t.requestModifier, errors: me });
|
|
6679
6695
|
return { load: function(p, C, b) {
|
|
@@ -6682,7 +6698,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6682
6698
|
};
|
|
6683
6699
|
if (p === "urn:mpeg:dash:resolve-to-zero:2013") F(null, !0);
|
|
6684
6700
|
else {
|
|
6685
|
-
var U = new
|
|
6701
|
+
var U = new Ya(p, je.G.XLINK_EXPANSION_TYPE);
|
|
6686
6702
|
l.load({ request: U, success: function(H) {
|
|
6687
6703
|
F(H);
|
|
6688
6704
|
}, error: function() {
|
|
@@ -6693,8 +6709,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6693
6709
|
l && (l.abort(), l = null);
|
|
6694
6710
|
} };
|
|
6695
6711
|
}
|
|
6696
|
-
|
|
6697
|
-
var
|
|
6712
|
+
Ha.__dashjs_factory_name = "XlinkLoader";
|
|
6713
|
+
var hs = h.A.getClassFactory(Ha), Va = function(t) {
|
|
6698
6714
|
(t = t || {}).escapeMode === void 0 && (t.escapeMode = !0), t.attributePrefix === void 0 && (t.attributePrefix = "_"), t.arrayAccessForm = t.arrayAccessForm || "none", t.emptyNodeForm = t.emptyNodeForm || "text", t.enableToStringFunc === void 0 && (t.enableToStringFunc = !0), t.arrayAccessFormPaths = t.arrayAccessFormPaths || [], t.skipEmptyTextNodesForObj === void 0 && (t.skipEmptyTextNodesForObj = !0), t.stripWhitespaces === void 0 && (t.stripWhitespaces = !0), t.datetimeAccessFormPaths = t.datetimeAccessFormPaths || [], t.useDoubleQuotes === void 0 && (t.useDoubleQuotes = !1), t.xmlElementsFilter = t.xmlElementsFilter || [], t.jsonPropertiesFilter = t.jsonPropertiesFilter || [], t.keepCData === void 0 && (t.keepCData = !1), t.ignoreRoot === void 0 && (t.ignoreRoot = !1);
|
|
6699
6715
|
var e = { ELEMENT_NODE: 1, TEXT_NODE: 3, CDATA_SECTION_NODE: 4, COMMENT_NODE: 8, DOCUMENT_NODE: 9 };
|
|
6700
6716
|
function o(Z) {
|
|
@@ -6861,8 +6877,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6861
6877
|
}, this.getVersion = function() {
|
|
6862
6878
|
return "1.2.0";
|
|
6863
6879
|
};
|
|
6864
|
-
},
|
|
6865
|
-
function
|
|
6880
|
+
}, Ur = "onLoad";
|
|
6881
|
+
function Ka(t) {
|
|
6866
6882
|
t = t || {};
|
|
6867
6883
|
var e, o, l, p, C, b, F = this.context, U = (0, y.A)(F).getInstance(), H = (0, Ae.A)(F).getInstance();
|
|
6868
6884
|
function B(ie, he, oe) {
|
|
@@ -6894,10 +6910,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6894
6910
|
R = [];
|
|
6895
6911
|
}
|
|
6896
6912
|
Z.elements.length > 0 && l.run(p);
|
|
6897
|
-
})(ie), ie.resolveType === "onActuate" && U.trigger(i.A.XLINK_READY, { manifest: p }), ie.resolveType ===
|
|
6913
|
+
})(ie), ie.resolveType === "onActuate" && U.trigger(i.A.XLINK_READY, { manifest: p }), ie.resolveType === Ur) switch (ie.type) {
|
|
6898
6914
|
case n.A.PERIOD:
|
|
6899
|
-
for (he = 0; he < p[n.A.PERIOD + "_asArray"].length; he++) (oe = p[n.A.PERIOD + "_asArray"][he]).hasOwnProperty(n.A.ADAPTATION_SET + "_asArray") && (te = te.concat(k(oe[n.A.ADAPTATION_SET + "_asArray"], oe, n.A.ADAPTATION_SET,
|
|
6900
|
-
B(te, n.A.ADAPTATION_SET,
|
|
6915
|
+
for (he = 0; he < p[n.A.PERIOD + "_asArray"].length; he++) (oe = p[n.A.PERIOD + "_asArray"][he]).hasOwnProperty(n.A.ADAPTATION_SET + "_asArray") && (te = te.concat(k(oe[n.A.ADAPTATION_SET + "_asArray"], oe, n.A.ADAPTATION_SET, Ur))), oe.hasOwnProperty(n.A.EVENT_STREAM + "_asArray") && (te = te.concat(k(oe[n.A.EVENT_STREAM + "_asArray"], oe, n.A.EVENT_STREAM, Ur)));
|
|
6916
|
+
B(te, n.A.ADAPTATION_SET, Ur);
|
|
6901
6917
|
break;
|
|
6902
6918
|
case n.A.ADAPTATION_SET:
|
|
6903
6919
|
U.trigger(i.A.XLINK_READY, { manifest: p });
|
|
@@ -6913,25 +6929,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6913
6929
|
return { url: ie, parentElement: he, type: oe, index: te, resolveType: Z, originalContent: K, resolvedContent: null, resolved: !1 };
|
|
6914
6930
|
}
|
|
6915
6931
|
return e = { resolveManifestOnLoad: function(ie) {
|
|
6916
|
-
C = new
|
|
6932
|
+
C = new Va({ escapeMode: !1, attributePrefix: "", arrayAccessForm: "property", emptyNodeForm: "object", stripWhitespaces: !1, enableToStringFunc: !1, ignoreRoot: !0, matchers: o }), (p = ie).Period_asArray ? B(k(p.Period_asArray, p, n.A.PERIOD, Ur), n.A.PERIOD, Ur) : U.trigger(i.A.XLINK_READY, { manifest: p });
|
|
6917
6933
|
}, setMatchers: function(ie) {
|
|
6918
6934
|
ie && (o = ie);
|
|
6919
6935
|
}, setIron: function(ie) {
|
|
6920
6936
|
ie && (l = ie);
|
|
6921
6937
|
}, reset: function() {
|
|
6922
6938
|
U.off(i.A.XLINK_ELEMENT_LOADED, w, e), b && (b.reset(), b = null);
|
|
6923
|
-
} }, U.on(i.A.XLINK_ELEMENT_LOADED, w, e), b =
|
|
6939
|
+
} }, U.on(i.A.XLINK_ELEMENT_LOADED, w, e), b = hs(F).create({ errHandler: t.errHandler, dashMetrics: t.dashMetrics, mediaPlayerModel: t.mediaPlayerModel, requestModifier: t.requestModifier, settings: t.settings }), e;
|
|
6924
6940
|
}
|
|
6925
|
-
|
|
6926
|
-
var
|
|
6927
|
-
function
|
|
6928
|
-
return
|
|
6941
|
+
Ka.__dashjs_factory_name = "XlinkController";
|
|
6942
|
+
var gs = h.A.getClassFactory(Ka);
|
|
6943
|
+
function ri(t) {
|
|
6944
|
+
return ri = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
6929
6945
|
return typeof e;
|
|
6930
6946
|
} : function(e) {
|
|
6931
6947
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
6932
|
-
},
|
|
6948
|
+
}, ri(t);
|
|
6933
6949
|
}
|
|
6934
|
-
function
|
|
6950
|
+
function Wa(t) {
|
|
6935
6951
|
function e(p, C) {
|
|
6936
6952
|
for (var b in p) C.hasOwnProperty(b) || (C[b] = p[b]);
|
|
6937
6953
|
}
|
|
@@ -6941,7 +6957,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6941
6957
|
if (C[H.name]) if (b[H.name]) {
|
|
6942
6958
|
if (H.merge) {
|
|
6943
6959
|
var B = C[H.name], w = b[H.name];
|
|
6944
|
-
|
|
6960
|
+
ri(B) === "object" && ri(w) === "object" ? e(B, w) : b[H.name] = B + w;
|
|
6945
6961
|
}
|
|
6946
6962
|
} else b[H.name] = C[H.name];
|
|
6947
6963
|
}
|
|
@@ -6956,7 +6972,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6956
6972
|
}
|
|
6957
6973
|
}
|
|
6958
6974
|
return { run: function(p) {
|
|
6959
|
-
if (p === null ||
|
|
6975
|
+
if (p === null || ri(p) !== "object") return p;
|
|
6960
6976
|
if (p.Period_asArray && "period" in t) for (var C = t.period, b = p.Period_asArray, F = 0, U = b.length; F < U; ++F) {
|
|
6961
6977
|
var H = b[F];
|
|
6962
6978
|
if (l(C, H), "adaptationset" in t) {
|
|
@@ -6967,35 +6983,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6967
6983
|
return p;
|
|
6968
6984
|
} };
|
|
6969
6985
|
}
|
|
6970
|
-
|
|
6971
|
-
var
|
|
6972
|
-
function
|
|
6973
|
-
return
|
|
6986
|
+
Wa.__dashjs_factory_name = "ObjectIron";
|
|
6987
|
+
var ms = h.A.getClassFactory(Wa);
|
|
6988
|
+
function ii(t) {
|
|
6989
|
+
return ii = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
6974
6990
|
return typeof e;
|
|
6975
6991
|
} : function(e) {
|
|
6976
6992
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
6977
|
-
},
|
|
6993
|
+
}, ii(t);
|
|
6978
6994
|
}
|
|
6979
|
-
function
|
|
6995
|
+
function ys(t, e) {
|
|
6980
6996
|
for (var o = 0; o < e.length; o++) {
|
|
6981
6997
|
var l = e[o];
|
|
6982
|
-
l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t,
|
|
6998
|
+
l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, Es(l.key), l);
|
|
6983
6999
|
}
|
|
6984
7000
|
}
|
|
6985
|
-
function
|
|
7001
|
+
function Es(t) {
|
|
6986
7002
|
var e = (function(o) {
|
|
6987
|
-
if (
|
|
7003
|
+
if (ii(o) != "object" || !o) return o;
|
|
6988
7004
|
var l = o[Symbol.toPrimitive];
|
|
6989
7005
|
if (l !== void 0) {
|
|
6990
7006
|
var p = l.call(o, "string");
|
|
6991
|
-
if (
|
|
7007
|
+
if (ii(p) != "object") return p;
|
|
6992
7008
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6993
7009
|
}
|
|
6994
7010
|
return String(o);
|
|
6995
7011
|
})(t);
|
|
6996
|
-
return
|
|
7012
|
+
return ii(e) == "symbol" ? e : e + "";
|
|
6997
7013
|
}
|
|
6998
|
-
var
|
|
7014
|
+
var bi = (function() {
|
|
6999
7015
|
return t = function o(l, p) {
|
|
7000
7016
|
(function(C, b) {
|
|
7001
7017
|
if (!(C instanceof b)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -7004,67 +7020,67 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7004
7020
|
return this._test;
|
|
7005
7021
|
} }, { key: "converter", get: function() {
|
|
7006
7022
|
return this._converter;
|
|
7007
|
-
} }]) &&
|
|
7023
|
+
} }]) && ys(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
7008
7024
|
var t, e;
|
|
7009
7025
|
})();
|
|
7010
|
-
function
|
|
7011
|
-
return
|
|
7026
|
+
function Br(t) {
|
|
7027
|
+
return Br = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
7012
7028
|
return typeof e;
|
|
7013
7029
|
} : function(e) {
|
|
7014
7030
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7015
|
-
},
|
|
7031
|
+
}, Br(t);
|
|
7016
7032
|
}
|
|
7017
7033
|
function Cn(t, e, o) {
|
|
7018
|
-
return (e =
|
|
7034
|
+
return (e = _s(e)) in t ? Object.defineProperty(t, e, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = o, t;
|
|
7019
7035
|
}
|
|
7020
|
-
function
|
|
7036
|
+
function _s(t) {
|
|
7021
7037
|
var e = (function(o) {
|
|
7022
|
-
if (
|
|
7038
|
+
if (Br(o) != "object" || !o) return o;
|
|
7023
7039
|
var l = o[Symbol.toPrimitive];
|
|
7024
7040
|
if (l !== void 0) {
|
|
7025
7041
|
var p = l.call(o, "string");
|
|
7026
|
-
if (
|
|
7042
|
+
if (Br(p) != "object") return p;
|
|
7027
7043
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7028
7044
|
}
|
|
7029
7045
|
return String(o);
|
|
7030
7046
|
})(t);
|
|
7031
|
-
return
|
|
7047
|
+
return Br(e) == "symbol" ? e : e + "";
|
|
7032
7048
|
}
|
|
7033
|
-
function
|
|
7034
|
-
return e =
|
|
7035
|
-
if (p && (
|
|
7049
|
+
function As(t, e, o) {
|
|
7050
|
+
return e = Si(e), (function(l, p) {
|
|
7051
|
+
if (p && (Br(p) == "object" || typeof p == "function")) return p;
|
|
7036
7052
|
if (p !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
7037
7053
|
return (function(C) {
|
|
7038
7054
|
if (C === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7039
7055
|
return C;
|
|
7040
7056
|
})(l);
|
|
7041
|
-
})(t,
|
|
7057
|
+
})(t, za() ? Reflect.construct(e, o || [], Si(t).constructor) : e.apply(t, o));
|
|
7042
7058
|
}
|
|
7043
|
-
function
|
|
7059
|
+
function za() {
|
|
7044
7060
|
try {
|
|
7045
7061
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {
|
|
7046
7062
|
})));
|
|
7047
7063
|
} catch {
|
|
7048
7064
|
}
|
|
7049
|
-
return (
|
|
7065
|
+
return (za = function() {
|
|
7050
7066
|
return !!t;
|
|
7051
7067
|
})();
|
|
7052
7068
|
}
|
|
7053
|
-
function
|
|
7054
|
-
return
|
|
7069
|
+
function Si(t) {
|
|
7070
|
+
return Si = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
7055
7071
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
7056
|
-
},
|
|
7072
|
+
}, Si(t);
|
|
7057
7073
|
}
|
|
7058
|
-
function
|
|
7059
|
-
return
|
|
7074
|
+
function Ji(t, e) {
|
|
7075
|
+
return Ji = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, l) {
|
|
7060
7076
|
return o.__proto__ = l, o;
|
|
7061
|
-
},
|
|
7077
|
+
}, Ji(t, e);
|
|
7062
7078
|
}
|
|
7063
|
-
var
|
|
7079
|
+
var vs = (function(t) {
|
|
7064
7080
|
function e() {
|
|
7065
7081
|
return (function(l, p) {
|
|
7066
7082
|
if (!(l instanceof p)) throw new TypeError("Cannot call a class as a function");
|
|
7067
|
-
})(this, e),
|
|
7083
|
+
})(this, e), As(this, e, [function(l, p) {
|
|
7068
7084
|
var C, b = (Cn(Cn(Cn(Cn(Cn(Cn(Cn(Cn(Cn(Cn(C = {}, n.A.MPD, [n.A.ID, n.A.PROFILES]), n.A.PERIOD, [n.A.ID]), n.A.BASE_URL, [n.A.SERVICE_LOCATION, n.A.BYTE_RANGE]), n.A.SEGMENT_BASE, [n.A.INDEX_RANGE]), n.A.INITIALIZATION, [n.A.RANGE]), n.A.REPRESENTATION_INDEX, [n.A.RANGE]), n.A.SEGMENT_LIST, [n.A.INDEX_RANGE]), n.A.BITSTREAM_SWITCHING, [n.A.RANGE]), n.A.SEGMENT_URL, [n.A.MEDIA_RANGE, n.A.INDEX_RANGE]), n.A.SEGMENT_TEMPLATE, [n.A.INDEX_RANGE, n.A.MEDIA, n.A.INDEX, n.A.INITIALIZATION_MINUS, n.A.BITSTREAM_SWITCHING_MINUS]), Cn(Cn(Cn(Cn(Cn(Cn(Cn(Cn(Cn(Cn(C, n.A.ASSET_IDENTIFIER, [n.A.VALUE, n.A.ID]), n.A.EVENT_STREAM, [n.A.VALUE]), n.A.ADAPTATION_SET, [n.A.PROFILES, n.A.MIME_TYPE, n.A.SEGMENT_PROFILES, n.A.CODECS, n.A.CONTENT_TYPE]), n.A.FRAME_PACKING, [n.A.VALUE, n.A.ID]), n.A.AUDIO_CHANNEL_CONFIGURATION, [n.A.VALUE, n.A.ID]), n.A.CONTENT_PROTECTION, [n.A.VALUE, n.A.ID]), n.A.ESSENTIAL_PROPERTY, [n.A.VALUE, n.A.ID]), n.A.SUPPLEMENTAL_PROPERTY, [n.A.VALUE, n.A.ID]), n.A.INBAND_EVENT_STREAM, [n.A.VALUE, n.A.ID]), n.A.ACCESSIBILITY, [n.A.VALUE, n.A.ID]), Cn(Cn(Cn(Cn(Cn(Cn(Cn(Cn(C, n.A.ROLE, [n.A.VALUE, n.A.ID]), n.A.RATING, [n.A.VALUE, n.A.ID]), n.A.VIEWPOINT, [n.A.VALUE, n.A.ID]), n.A.CONTENT_COMPONENT, [n.A.CONTENT_TYPE]), n.A.REPRESENTATION, [n.A.ID, n.A.DEPENDENCY_ID, n.A.MEDIA_STREAM_STRUCTURE_ID]), n.A.SUBSET, [n.A.ID]), n.A.METRICS, [n.A.METRICS_MINUS]), n.A.REPORTING, [n.A.VALUE, n.A.ID]));
|
|
7069
7085
|
if (b.hasOwnProperty(p)) {
|
|
7070
7086
|
var F = b[p];
|
|
@@ -7077,110 +7093,110 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7077
7093
|
}
|
|
7078
7094
|
return (function(l, p) {
|
|
7079
7095
|
if (typeof p != "function" && p !== null) throw new TypeError("Super expression must either be null or a function");
|
|
7080
|
-
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p &&
|
|
7096
|
+
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p && Ji(l, p);
|
|
7081
7097
|
})(e, t), o = e, Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
7082
7098
|
var o;
|
|
7083
|
-
})(
|
|
7084
|
-
function
|
|
7085
|
-
return
|
|
7099
|
+
})(bi);
|
|
7100
|
+
function Zi(t) {
|
|
7101
|
+
return Zi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
7086
7102
|
return typeof e;
|
|
7087
7103
|
} : function(e) {
|
|
7088
7104
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7089
|
-
},
|
|
7105
|
+
}, Zi(t);
|
|
7090
7106
|
}
|
|
7091
|
-
function
|
|
7092
|
-
return e =
|
|
7093
|
-
if (p && (
|
|
7107
|
+
function Ts(t, e, o) {
|
|
7108
|
+
return e = Ii(e), (function(l, p) {
|
|
7109
|
+
if (p && (Zi(p) == "object" || typeof p == "function")) return p;
|
|
7094
7110
|
if (p !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
7095
7111
|
return (function(C) {
|
|
7096
7112
|
if (C === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7097
7113
|
return C;
|
|
7098
7114
|
})(l);
|
|
7099
|
-
})(t,
|
|
7115
|
+
})(t, Xa() ? Reflect.construct(e, o || [], Ii(t).constructor) : e.apply(t, o));
|
|
7100
7116
|
}
|
|
7101
|
-
function
|
|
7117
|
+
function Xa() {
|
|
7102
7118
|
try {
|
|
7103
7119
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {
|
|
7104
7120
|
})));
|
|
7105
7121
|
} catch {
|
|
7106
7122
|
}
|
|
7107
|
-
return (
|
|
7123
|
+
return (Xa = function() {
|
|
7108
7124
|
return !!t;
|
|
7109
7125
|
})();
|
|
7110
7126
|
}
|
|
7111
|
-
function
|
|
7112
|
-
return
|
|
7127
|
+
function Ii(t) {
|
|
7128
|
+
return Ii = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
7113
7129
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
7114
|
-
},
|
|
7130
|
+
}, Ii(t);
|
|
7115
7131
|
}
|
|
7116
|
-
function
|
|
7117
|
-
return
|
|
7132
|
+
function ea(t, e) {
|
|
7133
|
+
return ea = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, l) {
|
|
7118
7134
|
return o.__proto__ = l, o;
|
|
7119
|
-
},
|
|
7135
|
+
}, ea(t, e);
|
|
7120
7136
|
}
|
|
7121
|
-
var
|
|
7137
|
+
var Qa = /^([-])?P(([\d.]*)Y)?(([\d.]*)M)?(([\d.]*)D)?T?(([\d.]*)H)?(([\d.]*)M)?(([\d.]*)S)?/, bs = (function(t) {
|
|
7122
7138
|
function e() {
|
|
7123
7139
|
return (function(l, p) {
|
|
7124
7140
|
if (!(l instanceof p)) throw new TypeError("Cannot call a class as a function");
|
|
7125
|
-
})(this, e),
|
|
7126
|
-
for (var p = [n.A.MIN_BUFFER_TIME, n.A.MEDIA_PRESENTATION_DURATION, n.A.MINIMUM_UPDATE_PERIOD, n.A.TIMESHIFT_BUFFER_DEPTH, n.A.MAX_SEGMENT_DURATION, n.A.MAX_SUBSEGMENT_DURATION, n.A.SUGGESTED_PRESENTATION_DELAY, n.A.START, u.A.START_TIME, n.A.DURATION], C = p.length, b = 0; b < C; b++) if (l.nodeName === p[b]) return
|
|
7141
|
+
})(this, e), Ts(this, e, [function(l) {
|
|
7142
|
+
for (var p = [n.A.MIN_BUFFER_TIME, n.A.MEDIA_PRESENTATION_DURATION, n.A.MINIMUM_UPDATE_PERIOD, n.A.TIMESHIFT_BUFFER_DEPTH, n.A.MAX_SEGMENT_DURATION, n.A.MAX_SUBSEGMENT_DURATION, n.A.SUGGESTED_PRESENTATION_DELAY, n.A.START, u.A.START_TIME, n.A.DURATION], C = p.length, b = 0; b < C; b++) if (l.nodeName === p[b]) return Qa.test(l.value);
|
|
7127
7143
|
return !1;
|
|
7128
7144
|
}, function(l) {
|
|
7129
|
-
var p =
|
|
7145
|
+
var p = Qa.exec(l), C = 31536e3 * parseFloat(p[3] || 0) + 2592e3 * parseFloat(p[5] || 0) + 86400 * parseFloat(p[7] || 0) + 3600 * parseFloat(p[9] || 0) + 60 * parseFloat(p[11] || 0) + parseFloat(p[13] || 0);
|
|
7130
7146
|
return p[1] !== void 0 && (C = -C), C;
|
|
7131
7147
|
}]);
|
|
7132
7148
|
}
|
|
7133
7149
|
return (function(l, p) {
|
|
7134
7150
|
if (typeof p != "function" && p !== null) throw new TypeError("Super expression must either be null or a function");
|
|
7135
|
-
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p &&
|
|
7151
|
+
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p && ea(l, p);
|
|
7136
7152
|
})(e, t), o = e, Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
7137
7153
|
var o;
|
|
7138
|
-
})(
|
|
7139
|
-
function
|
|
7140
|
-
return
|
|
7154
|
+
})(bi);
|
|
7155
|
+
function ta(t) {
|
|
7156
|
+
return ta = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
7141
7157
|
return typeof e;
|
|
7142
7158
|
} : function(e) {
|
|
7143
7159
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7144
|
-
},
|
|
7160
|
+
}, ta(t);
|
|
7145
7161
|
}
|
|
7146
|
-
function
|
|
7147
|
-
return e =
|
|
7148
|
-
if (p && (
|
|
7162
|
+
function Ss(t, e, o) {
|
|
7163
|
+
return e = Ri(e), (function(l, p) {
|
|
7164
|
+
if (p && (ta(p) == "object" || typeof p == "function")) return p;
|
|
7149
7165
|
if (p !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
7150
7166
|
return (function(C) {
|
|
7151
7167
|
if (C === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7152
7168
|
return C;
|
|
7153
7169
|
})(l);
|
|
7154
|
-
})(t,
|
|
7170
|
+
})(t, $a() ? Reflect.construct(e, o || [], Ri(t).constructor) : e.apply(t, o));
|
|
7155
7171
|
}
|
|
7156
|
-
function
|
|
7172
|
+
function $a() {
|
|
7157
7173
|
try {
|
|
7158
7174
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {
|
|
7159
7175
|
})));
|
|
7160
7176
|
} catch {
|
|
7161
7177
|
}
|
|
7162
|
-
return (
|
|
7178
|
+
return ($a = function() {
|
|
7163
7179
|
return !!t;
|
|
7164
7180
|
})();
|
|
7165
7181
|
}
|
|
7166
|
-
function
|
|
7167
|
-
return
|
|
7182
|
+
function Ri(t) {
|
|
7183
|
+
return Ri = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
7168
7184
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
7169
|
-
},
|
|
7185
|
+
}, Ri(t);
|
|
7170
7186
|
}
|
|
7171
|
-
function
|
|
7172
|
-
return
|
|
7187
|
+
function na(t, e) {
|
|
7188
|
+
return na = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, l) {
|
|
7173
7189
|
return o.__proto__ = l, o;
|
|
7174
|
-
},
|
|
7190
|
+
}, na(t, e);
|
|
7175
7191
|
}
|
|
7176
|
-
var
|
|
7192
|
+
var Ja = /^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2})(?::([0-9]*)(\.[0-9]*)?)?(?:([+-])([0-9]{2})(?::?)([0-9]{2}))?/, Is = (function(t) {
|
|
7177
7193
|
function e() {
|
|
7178
7194
|
return (function(l, p) {
|
|
7179
7195
|
if (!(l instanceof p)) throw new TypeError("Cannot call a class as a function");
|
|
7180
|
-
})(this, e),
|
|
7181
|
-
return
|
|
7196
|
+
})(this, e), Ss(this, e, [function(l) {
|
|
7197
|
+
return Ja.test(l.value);
|
|
7182
7198
|
}, function(l) {
|
|
7183
|
-
var p, C =
|
|
7199
|
+
var p, C = Ja.exec(l);
|
|
7184
7200
|
if (p = Date.UTC(parseInt(C[1], 10), parseInt(C[2], 10) - 1, parseInt(C[3], 10), parseInt(C[4], 10), parseInt(C[5], 10), C[6] && parseInt(C[6], 10) || 0, C[7] && 1e3 * parseFloat(C[7]) || 0), C[9] && C[10]) {
|
|
7185
7201
|
var b = 60 * parseInt(C[9], 10) + parseInt(C[10], 10);
|
|
7186
7202
|
p += (C[8] === "+" ? -1 : 1) * b * 60 * 1e3;
|
|
@@ -7190,90 +7206,90 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7190
7206
|
}
|
|
7191
7207
|
return (function(l, p) {
|
|
7192
7208
|
if (typeof p != "function" && p !== null) throw new TypeError("Super expression must either be null or a function");
|
|
7193
|
-
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p &&
|
|
7209
|
+
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p && na(l, p);
|
|
7194
7210
|
})(e, t), o = e, Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
7195
7211
|
var o;
|
|
7196
|
-
})(
|
|
7197
|
-
function
|
|
7198
|
-
return
|
|
7212
|
+
})(bi);
|
|
7213
|
+
function ra(t) {
|
|
7214
|
+
return ra = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
7199
7215
|
return typeof e;
|
|
7200
7216
|
} : function(e) {
|
|
7201
7217
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7202
|
-
},
|
|
7218
|
+
}, ra(t);
|
|
7203
7219
|
}
|
|
7204
|
-
function
|
|
7205
|
-
return e =
|
|
7206
|
-
if (p && (
|
|
7220
|
+
function Rs(t, e, o) {
|
|
7221
|
+
return e = wi(e), (function(l, p) {
|
|
7222
|
+
if (p && (ra(p) == "object" || typeof p == "function")) return p;
|
|
7207
7223
|
if (p !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
7208
7224
|
return (function(C) {
|
|
7209
7225
|
if (C === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7210
7226
|
return C;
|
|
7211
7227
|
})(l);
|
|
7212
|
-
})(t,
|
|
7228
|
+
})(t, Za() ? Reflect.construct(e, o || [], wi(t).constructor) : e.apply(t, o));
|
|
7213
7229
|
}
|
|
7214
|
-
function
|
|
7230
|
+
function Za() {
|
|
7215
7231
|
try {
|
|
7216
7232
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {
|
|
7217
7233
|
})));
|
|
7218
7234
|
} catch {
|
|
7219
7235
|
}
|
|
7220
|
-
return (
|
|
7236
|
+
return (Za = function() {
|
|
7221
7237
|
return !!t;
|
|
7222
7238
|
})();
|
|
7223
7239
|
}
|
|
7224
|
-
function
|
|
7225
|
-
return
|
|
7240
|
+
function wi(t) {
|
|
7241
|
+
return wi = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
7226
7242
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
7227
|
-
},
|
|
7243
|
+
}, wi(t);
|
|
7228
7244
|
}
|
|
7229
|
-
function
|
|
7230
|
-
return
|
|
7245
|
+
function ia(t, e) {
|
|
7246
|
+
return ia = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, l) {
|
|
7231
7247
|
return o.__proto__ = l, o;
|
|
7232
|
-
},
|
|
7248
|
+
}, ia(t, e);
|
|
7233
7249
|
}
|
|
7234
|
-
var
|
|
7250
|
+
var ws = /^[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?$/, Ns = (function(t) {
|
|
7235
7251
|
function e() {
|
|
7236
7252
|
return (function(l, p) {
|
|
7237
7253
|
if (!(l instanceof p)) throw new TypeError("Cannot call a class as a function");
|
|
7238
|
-
})(this, e),
|
|
7239
|
-
return
|
|
7254
|
+
})(this, e), Rs(this, e, [function(l) {
|
|
7255
|
+
return ws.test(l.value);
|
|
7240
7256
|
}, function(l) {
|
|
7241
7257
|
return parseFloat(l);
|
|
7242
7258
|
}]);
|
|
7243
7259
|
}
|
|
7244
7260
|
return (function(l, p) {
|
|
7245
7261
|
if (typeof p != "function" && p !== null) throw new TypeError("Super expression must either be null or a function");
|
|
7246
|
-
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p &&
|
|
7262
|
+
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p && ia(l, p);
|
|
7247
7263
|
})(e, t), o = e, Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
7248
7264
|
var o;
|
|
7249
|
-
})(
|
|
7250
|
-
function
|
|
7251
|
-
return
|
|
7265
|
+
})(bi);
|
|
7266
|
+
function ai(t) {
|
|
7267
|
+
return ai = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
7252
7268
|
return typeof e;
|
|
7253
7269
|
} : function(e) {
|
|
7254
7270
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7255
|
-
},
|
|
7271
|
+
}, ai(t);
|
|
7256
7272
|
}
|
|
7257
|
-
function
|
|
7273
|
+
function Cs(t, e) {
|
|
7258
7274
|
for (var o = 0; o < e.length; o++) {
|
|
7259
7275
|
var l = e[o];
|
|
7260
|
-
l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t,
|
|
7276
|
+
l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, Ds(l.key), l);
|
|
7261
7277
|
}
|
|
7262
7278
|
}
|
|
7263
|
-
function
|
|
7279
|
+
function Ds(t) {
|
|
7264
7280
|
var e = (function(o) {
|
|
7265
|
-
if (
|
|
7281
|
+
if (ai(o) != "object" || !o) return o;
|
|
7266
7282
|
var l = o[Symbol.toPrimitive];
|
|
7267
7283
|
if (l !== void 0) {
|
|
7268
7284
|
var p = l.call(o, "string");
|
|
7269
|
-
if (
|
|
7285
|
+
if (ai(p) != "object") return p;
|
|
7270
7286
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7271
7287
|
}
|
|
7272
7288
|
return String(o);
|
|
7273
7289
|
})(t);
|
|
7274
|
-
return
|
|
7290
|
+
return ai(e) == "symbol" ? e : e + "";
|
|
7275
7291
|
}
|
|
7276
|
-
var
|
|
7292
|
+
var Os = (function() {
|
|
7277
7293
|
return t = function o(l) {
|
|
7278
7294
|
var p;
|
|
7279
7295
|
(function(C, b) {
|
|
@@ -7283,42 +7299,42 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7283
7299
|
return this._name;
|
|
7284
7300
|
} }, { key: "merge", get: function() {
|
|
7285
7301
|
return this._merge;
|
|
7286
|
-
} }]) &&
|
|
7302
|
+
} }]) && Cs(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
7287
7303
|
var t, e;
|
|
7288
7304
|
})();
|
|
7289
|
-
function
|
|
7290
|
-
return
|
|
7305
|
+
function oi(t) {
|
|
7306
|
+
return oi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
7291
7307
|
return typeof e;
|
|
7292
7308
|
} : function(e) {
|
|
7293
7309
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7294
|
-
},
|
|
7310
|
+
}, oi(t);
|
|
7295
7311
|
}
|
|
7296
|
-
function
|
|
7312
|
+
function Ms(t, e) {
|
|
7297
7313
|
for (var o = 0; o < e.length; o++) {
|
|
7298
7314
|
var l = e[o];
|
|
7299
|
-
l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t,
|
|
7315
|
+
l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, Ps(l.key), l);
|
|
7300
7316
|
}
|
|
7301
7317
|
}
|
|
7302
|
-
function
|
|
7318
|
+
function Ps(t) {
|
|
7303
7319
|
var e = (function(o) {
|
|
7304
|
-
if (
|
|
7320
|
+
if (oi(o) != "object" || !o) return o;
|
|
7305
7321
|
var l = o[Symbol.toPrimitive];
|
|
7306
7322
|
if (l !== void 0) {
|
|
7307
7323
|
var p = l.call(o, "string");
|
|
7308
|
-
if (
|
|
7324
|
+
if (oi(p) != "object") return p;
|
|
7309
7325
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
7310
7326
|
}
|
|
7311
7327
|
return String(o);
|
|
7312
7328
|
})(t);
|
|
7313
|
-
return
|
|
7329
|
+
return oi(e) == "symbol" ? e : e + "";
|
|
7314
7330
|
}
|
|
7315
|
-
var
|
|
7331
|
+
var kr = (function() {
|
|
7316
7332
|
return t = function o(l, p, C) {
|
|
7317
7333
|
var b = this;
|
|
7318
7334
|
(function(F, U) {
|
|
7319
7335
|
if (!(F instanceof U)) throw new TypeError("Cannot call a class as a function");
|
|
7320
7336
|
})(this, o), this._name = l || "", this._properties = [], this._children = C || [], Array.isArray(p) && p.forEach((function(F) {
|
|
7321
|
-
b._properties.push(new
|
|
7337
|
+
b._properties.push(new Os(F));
|
|
7322
7338
|
}));
|
|
7323
7339
|
}, (e = [{ key: "name", get: function() {
|
|
7324
7340
|
return this._name;
|
|
@@ -7326,112 +7342,112 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7326
7342
|
return this._children;
|
|
7327
7343
|
} }, { key: "properties", get: function() {
|
|
7328
7344
|
return this._properties;
|
|
7329
|
-
} }]) &&
|
|
7345
|
+
} }]) && Ms(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
7330
7346
|
var t, e;
|
|
7331
7347
|
})();
|
|
7332
|
-
function
|
|
7333
|
-
return
|
|
7348
|
+
function aa(t) {
|
|
7349
|
+
return aa = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
7334
7350
|
return typeof e;
|
|
7335
7351
|
} : function(e) {
|
|
7336
7352
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7337
|
-
},
|
|
7353
|
+
}, aa(t);
|
|
7338
7354
|
}
|
|
7339
|
-
function
|
|
7340
|
-
return e =
|
|
7341
|
-
if (p && (
|
|
7355
|
+
function Ls(t, e, o) {
|
|
7356
|
+
return e = Ni(e), (function(l, p) {
|
|
7357
|
+
if (p && (aa(p) == "object" || typeof p == "function")) return p;
|
|
7342
7358
|
if (p !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
7343
7359
|
return (function(C) {
|
|
7344
7360
|
if (C === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7345
7361
|
return C;
|
|
7346
7362
|
})(l);
|
|
7347
|
-
})(t,
|
|
7363
|
+
})(t, eo() ? Reflect.construct(e, o || [], Ni(t).constructor) : e.apply(t, o));
|
|
7348
7364
|
}
|
|
7349
|
-
function
|
|
7365
|
+
function eo() {
|
|
7350
7366
|
try {
|
|
7351
7367
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {
|
|
7352
7368
|
})));
|
|
7353
7369
|
} catch {
|
|
7354
7370
|
}
|
|
7355
|
-
return (
|
|
7371
|
+
return (eo = function() {
|
|
7356
7372
|
return !!t;
|
|
7357
7373
|
})();
|
|
7358
7374
|
}
|
|
7359
|
-
function
|
|
7360
|
-
return
|
|
7375
|
+
function Ni(t) {
|
|
7376
|
+
return Ni = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
7361
7377
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
7362
|
-
},
|
|
7378
|
+
}, Ni(t);
|
|
7363
7379
|
}
|
|
7364
|
-
function
|
|
7365
|
-
return
|
|
7380
|
+
function oa(t, e) {
|
|
7381
|
+
return oa = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, l) {
|
|
7366
7382
|
return o.__proto__ = l, o;
|
|
7367
|
-
},
|
|
7383
|
+
}, oa(t, e);
|
|
7368
7384
|
}
|
|
7369
|
-
var
|
|
7385
|
+
var Fs = (function(t) {
|
|
7370
7386
|
function e() {
|
|
7371
7387
|
(function(p, C) {
|
|
7372
7388
|
if (!(p instanceof C)) throw new TypeError("Cannot call a class as a function");
|
|
7373
7389
|
})(this, e);
|
|
7374
7390
|
var l = [n.A.PROFILES, n.A.WIDTH, n.A.HEIGHT, n.A.SAR, n.A.FRAMERATE, n.A.AUDIO_SAMPLING_RATE, n.A.MIME_TYPE, n.A.SEGMENT_PROFILES, n.A.CODECS, n.A.MAXIMUM_SAP_PERIOD, n.A.START_WITH_SAP, n.A.MAX_PLAYOUT_RATE, n.A.CODING_DEPENDENCY, n.A.SCAN_TYPE, n.A.FRAME_PACKING, n.A.AUDIO_CHANNEL_CONFIGURATION, n.A.CONTENT_PROTECTION, n.A.ESSENTIAL_PROPERTY, n.A.ESSENTIAL_PROPERTY + "_asArray", n.A.SUPPLEMENTAL_PROPERTY, n.A.INBAND_EVENT_STREAM];
|
|
7375
|
-
return
|
|
7391
|
+
return Ls(this, e, [n.A.ADAPTATION_SET, l, [new kr(n.A.REPRESENTATION, l, [new kr(n.A.SUB_REPRESENTATION, l)])]]);
|
|
7376
7392
|
}
|
|
7377
7393
|
return (function(l, p) {
|
|
7378
7394
|
if (typeof p != "function" && p !== null) throw new TypeError("Super expression must either be null or a function");
|
|
7379
|
-
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p &&
|
|
7395
|
+
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p && oa(l, p);
|
|
7380
7396
|
})(e, t), o = e, Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
7381
7397
|
var o;
|
|
7382
|
-
})(
|
|
7383
|
-
function
|
|
7384
|
-
return
|
|
7398
|
+
})(kr);
|
|
7399
|
+
function sa(t) {
|
|
7400
|
+
return sa = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
7385
7401
|
return typeof e;
|
|
7386
7402
|
} : function(e) {
|
|
7387
7403
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
7388
|
-
},
|
|
7404
|
+
}, sa(t);
|
|
7389
7405
|
}
|
|
7390
|
-
function
|
|
7391
|
-
return e =
|
|
7392
|
-
if (p && (
|
|
7406
|
+
function xs(t, e, o) {
|
|
7407
|
+
return e = Ci(e), (function(l, p) {
|
|
7408
|
+
if (p && (sa(p) == "object" || typeof p == "function")) return p;
|
|
7393
7409
|
if (p !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
7394
7410
|
return (function(C) {
|
|
7395
7411
|
if (C === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7396
7412
|
return C;
|
|
7397
7413
|
})(l);
|
|
7398
|
-
})(t,
|
|
7414
|
+
})(t, to() ? Reflect.construct(e, o || [], Ci(t).constructor) : e.apply(t, o));
|
|
7399
7415
|
}
|
|
7400
|
-
function
|
|
7416
|
+
function to() {
|
|
7401
7417
|
try {
|
|
7402
7418
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {
|
|
7403
7419
|
})));
|
|
7404
7420
|
} catch {
|
|
7405
7421
|
}
|
|
7406
|
-
return (
|
|
7422
|
+
return (to = function() {
|
|
7407
7423
|
return !!t;
|
|
7408
7424
|
})();
|
|
7409
7425
|
}
|
|
7410
|
-
function
|
|
7411
|
-
return
|
|
7426
|
+
function Ci(t) {
|
|
7427
|
+
return Ci = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
7412
7428
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
7413
|
-
},
|
|
7429
|
+
}, Ci(t);
|
|
7414
7430
|
}
|
|
7415
|
-
function
|
|
7416
|
-
return
|
|
7431
|
+
function ua(t, e) {
|
|
7432
|
+
return ua = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, l) {
|
|
7417
7433
|
return o.__proto__ = l, o;
|
|
7418
|
-
},
|
|
7434
|
+
}, ua(t, e);
|
|
7419
7435
|
}
|
|
7420
|
-
var
|
|
7436
|
+
var Us = (function(t) {
|
|
7421
7437
|
function e() {
|
|
7422
7438
|
(function(p, C) {
|
|
7423
7439
|
if (!(p instanceof C)) throw new TypeError("Cannot call a class as a function");
|
|
7424
7440
|
})(this, e);
|
|
7425
7441
|
var l = [n.A.SEGMENT_BASE, n.A.SEGMENT_TEMPLATE, n.A.SEGMENT_LIST];
|
|
7426
|
-
return
|
|
7442
|
+
return xs(this, e, [n.A.PERIOD, l, [new kr(n.A.ADAPTATION_SET, l, [new kr(n.A.REPRESENTATION, l)])]]);
|
|
7427
7443
|
}
|
|
7428
7444
|
return (function(l, p) {
|
|
7429
7445
|
if (typeof p != "function" && p !== null) throw new TypeError("Super expression must either be null or a function");
|
|
7430
|
-
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p &&
|
|
7446
|
+
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p && ua(l, p);
|
|
7431
7447
|
})(e, t), o = e, Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
7432
7448
|
var o;
|
|
7433
|
-
})(
|
|
7434
|
-
function
|
|
7449
|
+
})(kr);
|
|
7450
|
+
function no(t) {
|
|
7435
7451
|
t = t || {};
|
|
7436
7452
|
var e, o, l, p, C, b = this.context, F = t.debug;
|
|
7437
7453
|
return e = { parse: function(U) {
|
|
@@ -7449,23 +7465,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7449
7465
|
return l;
|
|
7450
7466
|
}, getIron: function() {
|
|
7451
7467
|
return C;
|
|
7452
|
-
} }, o = F.getLogger(e), l = [new
|
|
7468
|
+
} }, o = F.getLogger(e), l = [new bs(), new Is(), new Ns(), new vs()], p = new Va({ escapeMode: !1, attributePrefix: "", arrayAccessForm: "property", emptyNodeForm: "object", stripWhitespaces: !1, enableToStringFunc: !0, ignoreRoot: !1, matchers: l }), C = ms(b).create({ adaptationset: new Fs(), period: new Us() }), e;
|
|
7453
7469
|
}
|
|
7454
|
-
|
|
7455
|
-
var
|
|
7456
|
-
function
|
|
7470
|
+
no.__dashjs_factory_name = "DashParser";
|
|
7471
|
+
var Bs = h.A.getClassFactory(no);
|
|
7472
|
+
function ro(t) {
|
|
7457
7473
|
t = t || {};
|
|
7458
7474
|
var e, o, l, p, C, b = this.context, F = t.debug, U = t.settings, H = (0, y.A)(b).getInstance(), B = (0, Ae.A)(b).getInstance(), w = t.mssHandler, j = t.errHandler;
|
|
7459
7475
|
function k(se) {
|
|
7460
7476
|
H.trigger(i.A.INTERNAL_MANIFEST_LOADED, { manifest: se.manifest });
|
|
7461
7477
|
}
|
|
7462
7478
|
return e = { load: function(se) {
|
|
7463
|
-
var ie = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, he = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, oe = /* @__PURE__ */ new Date(), te = new
|
|
7479
|
+
var ie = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null, he = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, oe = /* @__PURE__ */ new Date(), te = new Ya(se, je.G.MPD_TYPE);
|
|
7464
7480
|
ie && (te.serviceLocation = ie), he && (te.queryParams = he), te.requestStartDate || (te.requestStartDate = oe), H.trigger(i.A.MANIFEST_LOADING_STARTED, { request: te }), l.load({ request: te, success: function(Z, K, z) {
|
|
7465
7481
|
var f, N, S;
|
|
7466
7482
|
if (p) if (z && z !== se ? (N = B.parseBaseUrl(z), f = z) : (B.isRelative(se) && (se = B.resolve(se, window.location.href)), N = B.parseBaseUrl(se)), K != "No Content") if (C === null && (C = (function(R) {
|
|
7467
7483
|
var V = null;
|
|
7468
|
-
return R.indexOf("SmoothStreamingMedia") > -1 ? (w && (V = w.createMssParser(), w.createMssFragmentProcessor(), w.registerEvents()), V) : R.indexOf("MPD") > -1 || R.indexOf("Patch") > -1 ?
|
|
7484
|
+
return R.indexOf("SmoothStreamingMedia") > -1 ? (w && (V = w.createMssParser(), w.createMssFragmentProcessor(), w.registerEvents()), V) : R.indexOf("MPD") > -1 || R.indexOf("Patch") > -1 ? Bs(b).create({ debug: F }) : V;
|
|
7469
7485
|
})(Z)), C !== null) {
|
|
7470
7486
|
p.setMatchers(C.getMatchers()), p.setIron(C.getIron());
|
|
7471
7487
|
try {
|
|
@@ -7489,19 +7505,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7489
7505
|
} });
|
|
7490
7506
|
}, reset: function() {
|
|
7491
7507
|
H.off(i.A.XLINK_READY, k, e), w && w.reset(), p && (p.reset(), p = null), l && (l.abort(), l = null);
|
|
7492
|
-
} }, o = F.getLogger(e), H.on(i.A.XLINK_READY, k, e), l = Mn(b).create({ errHandler: t.errHandler, dashMetrics: t.dashMetrics, mediaPlayerModel: t.mediaPlayerModel, requestModifier: t.requestModifier, urlUtils: B, constants: u.A, dashConstants: n.A, errors: me, requestTimeout: t.settings.get().streaming.manifestRequestTimeout }), p =
|
|
7508
|
+
} }, o = F.getLogger(e), H.on(i.A.XLINK_READY, k, e), l = Mn(b).create({ errHandler: t.errHandler, dashMetrics: t.dashMetrics, mediaPlayerModel: t.mediaPlayerModel, requestModifier: t.requestModifier, urlUtils: B, constants: u.A, dashConstants: n.A, errors: me, requestTimeout: t.settings.get().streaming.manifestRequestTimeout }), p = gs(b).create({ errHandler: j, dashMetrics: t.dashMetrics, mediaPlayerModel: t.mediaPlayerModel, requestModifier: t.requestModifier, settings: t.settings }), C = null, e;
|
|
7493
7509
|
}
|
|
7494
|
-
|
|
7495
|
-
var
|
|
7496
|
-
function
|
|
7510
|
+
ro.__dashjs_factory_name = "ManifestLoader";
|
|
7511
|
+
var ks = h.A.getClassFactory(ro);
|
|
7512
|
+
function io() {
|
|
7497
7513
|
var t = this.context, e = (0, y.A)(t).getInstance();
|
|
7498
7514
|
return { error: function(o) {
|
|
7499
7515
|
e.trigger(i.A.ERROR, { error: o });
|
|
7500
7516
|
} };
|
|
7501
7517
|
}
|
|
7502
|
-
|
|
7503
|
-
var
|
|
7504
|
-
function
|
|
7518
|
+
io.__dashjs_factory_name = "ErrorHandler";
|
|
7519
|
+
var Gs = h.A.getSingletonFactory(io), ao = M(6035);
|
|
7520
|
+
function oo() {
|
|
7505
7521
|
var t, e, o, l, p, C, b = this.context, F = (0, y.A)(b).getInstance();
|
|
7506
7522
|
function U(H, B) {
|
|
7507
7523
|
if (!B || !B.Period_asArray || B.Period_asArray.length === 0) return Promise.resolve();
|
|
@@ -7593,20 +7609,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7593
7609
|
}));
|
|
7594
7610
|
} }, C = (0, g.A)(b).getInstance().getLogger(t), t;
|
|
7595
7611
|
}
|
|
7596
|
-
|
|
7597
|
-
var
|
|
7598
|
-
function
|
|
7612
|
+
oo.__dashjs_factory_name = "CapabilitiesFilter";
|
|
7613
|
+
var js = h.A.getSingletonFactory(oo);
|
|
7614
|
+
function qs(t, e, o) {
|
|
7599
7615
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
7600
7616
|
}
|
|
7601
|
-
var
|
|
7617
|
+
var Ys = qs((function t() {
|
|
7602
7618
|
(function(e, o) {
|
|
7603
7619
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
7604
7620
|
})(this, t), this.t = null, this.xywh = null, this.track = null, this.id = null, this.s = null, this.r = null;
|
|
7605
7621
|
}));
|
|
7606
|
-
function
|
|
7622
|
+
function so() {
|
|
7607
7623
|
var t;
|
|
7608
7624
|
return { initialize: function(e) {
|
|
7609
|
-
if (t = new
|
|
7625
|
+
if (t = new Ys(), !e) return null;
|
|
7610
7626
|
var o = e.indexOf("#");
|
|
7611
7627
|
if (o !== -1) for (var l = e.substr(o + 1).split("&"), p = 0, C = l.length; p < C; ++p) {
|
|
7612
7628
|
var b = l[p], F = b.indexOf("=");
|
|
@@ -7619,9 +7635,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7619
7635
|
return t;
|
|
7620
7636
|
} };
|
|
7621
7637
|
}
|
|
7622
|
-
|
|
7623
|
-
var
|
|
7624
|
-
function
|
|
7638
|
+
so.__dashjs_factory_name = "URIFragmentModel";
|
|
7639
|
+
var Hs = h.A.getSingletonFactory(so);
|
|
7640
|
+
function uo() {
|
|
7625
7641
|
var t, e = this.context, o = (0, y.A)(e).getInstance();
|
|
7626
7642
|
return { getValue: function() {
|
|
7627
7643
|
return t;
|
|
@@ -7629,12 +7645,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7629
7645
|
t = l, l && o.trigger(i.A.MANIFEST_LOADED, { data: l });
|
|
7630
7646
|
} };
|
|
7631
7647
|
}
|
|
7632
|
-
|
|
7633
|
-
var
|
|
7634
|
-
function
|
|
7648
|
+
uo.__dashjs_factory_name = "ManifestModel";
|
|
7649
|
+
var Vs = h.A.getSingletonFactory(uo), la = -0.5;
|
|
7650
|
+
function lo() {
|
|
7635
7651
|
var t, e, o, l, p = this.context, C = (0, le.A)(p).getInstance();
|
|
7636
7652
|
function b(H, B) {
|
|
7637
|
-
return isNaN(H) ? 0 : H > 0 ? (B && e.warn("Supplied minimum playback rate is a positive value when it should be negative or 0. The supplied rate will not be applied and set to 0: 100% playback speed."), 0) : H <
|
|
7653
|
+
return isNaN(H) ? 0 : H > 0 ? (B && e.warn("Supplied minimum playback rate is a positive value when it should be negative or 0. The supplied rate will not be applied and set to 0: 100% playback speed."), 0) : H < la ? (B && e.warn("Supplied minimum playback rate is out of range and will be limited to ".concat(la, ": ").concat(-50, "% playback speed.")), la) : H;
|
|
7638
7654
|
}
|
|
7639
7655
|
function F(H, B) {
|
|
7640
7656
|
return isNaN(H) ? 0 : H < 0 ? (B && e.warn("Supplied maximum playback rate is a negative value when it should be negative or 0. The supplied rate will not be applied and set to 0: 100% playback speed."), 0) : H > 1 ? (B && e.warn("Supplied maximum playback rate is out of range and will be limited to ".concat(1, ": ").concat(200, "% playback speed.")), 1) : H;
|
|
@@ -7681,9 +7697,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7681
7697
|
}, reset: function() {
|
|
7682
7698
|
} }, e = (0, g.A)(p).getInstance().getLogger(t), t;
|
|
7683
7699
|
}
|
|
7684
|
-
|
|
7685
|
-
var
|
|
7686
|
-
function
|
|
7700
|
+
lo.__dashjs_factory_name = "MediaPlayerModel";
|
|
7701
|
+
var Ks = h.A.getSingletonFactory(lo), Ws = M(2365);
|
|
7702
|
+
function co(t) {
|
|
7687
7703
|
var e = (t = t || {}).abrController, o = t.switchHistory, l = t.droppedFramesHistory, p = t.currentRequest, C = t.useBufferOccupancyABR, b = t.useL2AABR, F = t.useLoLPABR, U = t.streamProcessor ? t.streamProcessor.getScheduleController() : null, H = t.streamProcessor ? t.streamProcessor.getRepresentationInfo() : null, B = t.videoModel ? t.videoModel : null;
|
|
7688
7704
|
function w() {
|
|
7689
7705
|
return H ? H.mediaInfo : null;
|
|
@@ -7716,12 +7732,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7716
7732
|
return B;
|
|
7717
7733
|
} };
|
|
7718
7734
|
}
|
|
7719
|
-
|
|
7720
|
-
var
|
|
7721
|
-
function
|
|
7735
|
+
co.__dashjs_factory_name = "RulesContext";
|
|
7736
|
+
var fo = h.A.getClassFactory(co), Di = M(5066);
|
|
7737
|
+
function po() {
|
|
7722
7738
|
var t = [], e = [];
|
|
7723
7739
|
return { push: function(o) {
|
|
7724
|
-
o.newValue ===
|
|
7740
|
+
o.newValue === Di.A.NO_CHANGE && (o.newValue = o.oldValue), t[o.oldValue] || (t[o.oldValue] = { noDrops: 0, drops: 0, dropSize: 0 });
|
|
7725
7741
|
var l = o.newValue - o.oldValue, p = l < 0 ? 1 : 0, C = p ? -l : 0, b = p ? 0 : 1;
|
|
7726
7742
|
if (t[o.oldValue].drops += p, t[o.oldValue].dropSize += C, t[o.oldValue].noDrops += b, e.push({ idx: o.oldValue, noDrop: b, drop: p, dropSize: C }), e.length > 8) {
|
|
7727
7743
|
var F = e.shift();
|
|
@@ -7733,9 +7749,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7733
7749
|
t = [], e = [];
|
|
7734
7750
|
} };
|
|
7735
7751
|
}
|
|
7736
|
-
|
|
7737
|
-
var
|
|
7738
|
-
function
|
|
7752
|
+
po.__dashjs_factory_name = "SwitchRequestHistory";
|
|
7753
|
+
var zs = h.A.getClassFactory(po);
|
|
7754
|
+
function ho() {
|
|
7739
7755
|
var t = {}, e = {}, o = {};
|
|
7740
7756
|
return { push: function(l, p, C) {
|
|
7741
7757
|
if (p) {
|
|
@@ -7758,9 +7774,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7758
7774
|
t = {}, e = {}, o = {};
|
|
7759
7775
|
} };
|
|
7760
7776
|
}
|
|
7761
|
-
|
|
7762
|
-
var
|
|
7763
|
-
function
|
|
7777
|
+
ho.__dashjs_factory_name = "DroppedFramesHistory";
|
|
7778
|
+
var Xs = h.A.getClassFactory(ho);
|
|
7779
|
+
function go(t) {
|
|
7764
7780
|
var e, o, l, p, C, b = this.context, F = 3, U = 4, H = 4, B = 1.3, w = 1.3, j = (t = t || {}).settings, k = (0, y.A)(b).getInstance();
|
|
7765
7781
|
function se(K, z, f, N) {
|
|
7766
7782
|
var S = Math.pow(0.5, f / N.fast);
|
|
@@ -7832,9 +7848,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7832
7848
|
}, reset: te };
|
|
7833
7849
|
return C = { throughputHalfLife: { fast: 3, slow: 8 }, latencyHalfLife: { fast: 1, slow: 2 } }, te(), Z;
|
|
7834
7850
|
}
|
|
7835
|
-
|
|
7836
|
-
var
|
|
7837
|
-
function
|
|
7851
|
+
go.__dashjs_factory_name = "ThroughputHistory";
|
|
7852
|
+
var Qs = h.A.getClassFactory(go);
|
|
7853
|
+
function ca() {
|
|
7838
7854
|
var t, e, o, l, p, C, b, F, U, H, B, w, j, k, se, ie, he, oe, te, Z, K, z, f, N, S, L, R, V = this.context, de = (0, g.A)(V).getInstance(), ue = (0, y.A)(V).getInstance();
|
|
7839
7855
|
function P() {
|
|
7840
7856
|
p = {}, C = {}, F = {}, b = {}, Z = {}, f = {}, N = {}, S = {}, H === void 0 && (H = !1), K && K.reset(), te = void 0, K = void 0, z = void 0, clearTimeout(U), U = null;
|
|
@@ -7844,8 +7860,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7844
7860
|
if (Pe && ct && b[ct] && R.get().streaming.abr.autoSwitchBitrate[Pe]) {
|
|
7845
7861
|
var Ke = b[ct][Pe];
|
|
7846
7862
|
if (Ke) {
|
|
7847
|
-
var yt =
|
|
7848
|
-
ht.quality >
|
|
7863
|
+
var yt = fo(V).create({ abrController: t, streamProcessor: Ke, currentRequest: Ee.request, useBufferOccupancyABR: f[Pe], useL2AABR: N[Pe], useLoLPABR: S[Pe], videoModel: k }), ht = o.shouldAbandonFragment(yt, ct);
|
|
7864
|
+
ht.quality > Di.A.NO_CHANGE && Ke.getFragmentModel().getRequests({ state: J.FRAGMENT_MODEL_LOADING, index: Ee.request.index })[0] && (F[ct][Pe].state = _.A.ABANDON_LOAD, Z[ct][Pe].reset(), Z[ct][Pe].push({ oldValue: Ce(Pe, ct), newValue: ht.quality, confidence: 1, reason: ht.reason }), Me(Pe, l.getActiveStreamInfo(), ht.quality, ht.reason), clearTimeout(U), U = setTimeout((function() {
|
|
7849
7865
|
F[ct][Pe].state = _.A.ALLOW_LOAD, U = null;
|
|
7850
7866
|
}), R.get().streaming.abandonLoadTimeout));
|
|
7851
7867
|
}
|
|
@@ -7973,7 +7989,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7973
7989
|
function at(Ee) {
|
|
7974
7990
|
var Pe = [];
|
|
7975
7991
|
if (!Ee || !Ee.bitrateList) return Pe;
|
|
7976
|
-
for (var ct, Ke = Ee.bitrateList, yt = Ee.type, ht = 0, dt = Ke.length; ht < dt; ht++) (ct = new
|
|
7992
|
+
for (var ct, Ke = Ee.bitrateList, yt = Ee.type, ht = 0, dt = Ke.length; ht < dt; ht++) (ct = new _i()).mediaType = yt, ct.qualityIndex = ht, ct.bitrate = Ke[ht].bandwidth, ct.width = Ke[ht].width, ct.height = Ke[ht].height, ct.scanType = Ke[ht].scanType, Pe.push(ct);
|
|
7977
7993
|
return Pe;
|
|
7978
7994
|
}
|
|
7979
7995
|
function Nt() {
|
|
@@ -7983,7 +7999,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7983
7999
|
}
|
|
7984
8000
|
}
|
|
7985
8001
|
return t = { initialize: function() {
|
|
7986
|
-
K =
|
|
8002
|
+
K = Xs(V).create(), z = Qs(V).create({ settings: R }), (o = (0, Ws.A)(V).create({ dashMetrics: L, customParametersModel: ie, mediaPlayerModel: se, settings: R })).initialize(), ue.on(r.A.QUALITY_CHANGE_RENDERED, Y, t), ue.on(r.A.METRIC_ADDED, ge, t), ue.on(i.A.LOADING_PROGRESS, $, t);
|
|
7987
8003
|
}, isPlayingAtTopQuality: function(Ee) {
|
|
7988
8004
|
var Pe = Ee ? Ee.id : null, ct = Ce(u.A.AUDIO, Pe), Ke = Ce(u.A.VIDEO, Pe);
|
|
7989
8005
|
return ct === ve(u.A.AUDIO, Pe) && Ke === ve(u.A.VIDEO, Pe);
|
|
@@ -8021,8 +8037,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8021
8037
|
ct && K.push(Pe, te, ct);
|
|
8022
8038
|
}
|
|
8023
8039
|
if (!R.get().streaming.abr.autoSwitchBitrate[Ee]) return !1;
|
|
8024
|
-
var Ke = Ce(Ee, Pe), yt =
|
|
8025
|
-
return ht !== void 0 && (Yt >
|
|
8040
|
+
var Ke = Ce(Ee, Pe), yt = fo(V).create({ abrController: t, switchHistory: Z[Pe][Ee], droppedFramesHistory: K, streamProcessor: b[Pe][Ee], currentValue: Ke, useBufferOccupancyABR: f[Ee], useL2AABR: N[Ee], useLoLPABR: S[Ee], videoModel: k }), ht = fe(Ee, Pe), dt = ve(Ee, Pe), qt = o.getMaxQuality(yt), Yt = qt.quality;
|
|
8041
|
+
return ht !== void 0 && (Yt > Di.A.NO_CHANGE ? Yt : Ke) < ht && (Yt = ht), Yt > dt && (Yt = dt), Z[Pe][Ee].push({ oldValue: Ke, newValue: Yt }), Yt > Di.A.NO_CHANGE && Yt !== Ke && (F[Pe][Ee].state === _.A.ALLOW_LOAD || Yt < Ke) && (Qe(Ee, Ke, Yt, dt, qt.reason, Pe), !0);
|
|
8026
8042
|
} catch {
|
|
8027
8043
|
return !1;
|
|
8028
8044
|
}
|
|
@@ -8030,7 +8046,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8030
8046
|
H = Ee;
|
|
8031
8047
|
}, registerStreamType: function(Ee, Pe) {
|
|
8032
8048
|
var ct = Pe.getStreamInfo().id;
|
|
8033
|
-
b[ct] || (b[ct] = {}), Z[ct] || (Z[ct] = {}), F[ct] || (F[ct] = {}), Z[ct][Ee] =
|
|
8049
|
+
b[ct] || (b[ct] = {}), Z[ct] || (Z[ct] = {}), F[ct] || (F[ct] = {}), Z[ct][Ee] = zs(V).create(), b[ct][Ee] = Pe, F[ct][Ee] = {}, F[ct][Ee].state = _.A.ALLOW_LOAD, (function(Ke) {
|
|
8034
8050
|
var yt = R.get().streaming.abr.ABRStrategy;
|
|
8035
8051
|
yt === u.A.ABR_STRATEGY_L2A ? (f[Ke] = !1, S[Ke] = !1, N[Ke] = !0) : yt === u.A.ABR_STRATEGY_LoLP ? (f[Ke] = !1, S[Ke] = !0, N[Ke] = !1) : yt === u.A.ABR_STRATEGY_BOLA ? (f[Ke] = !0, S[Ke] = !1, N[Ke] = !1) : yt === u.A.ABR_STRATEGY_THROUGHPUT ? (f[Ke] = !1, S[Ke] = !1, N[Ke] = !1) : yt === u.A.ABR_STRATEGY_DYNAMIC && (f[Ke] = !(!f || !f[Ke]) && f[Ke], S[Ke] = !1, N[Ke] = !1);
|
|
8036
8052
|
})(Ee), Ee === u.A.VIDEO && Nt();
|
|
@@ -8045,11 +8061,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8045
8061
|
P(), ue.off(i.A.LOADING_PROGRESS, $, t), ue.off(r.A.QUALITY_CHANGE_RENDERED, Y, t), ue.off(r.A.METRIC_ADDED, ge, t), o && o.reset();
|
|
8046
8062
|
} }, e = de.getLogger(t), P(), t;
|
|
8047
8063
|
}
|
|
8048
|
-
|
|
8049
|
-
var
|
|
8050
|
-
|
|
8051
|
-
var
|
|
8052
|
-
function
|
|
8064
|
+
ca.__dashjs_factory_name = "AbrController";
|
|
8065
|
+
var fa = h.A.getSingletonFactory(ca);
|
|
8066
|
+
fa.QUALITY_DEFAULT = 0, h.A.updateSingletonFactory(ca.__dashjs_factory_name, fa);
|
|
8067
|
+
var $s = fa, Js = /* @__PURE__ */ new Map([[u.A.VIDEO_ELEMENT_READY_STATES.HAVE_METADATA, "loadedmetadata"], [u.A.VIDEO_ELEMENT_READY_STATES.HAVE_CURRENT_DATA, "loadeddata"], [u.A.VIDEO_ELEMENT_READY_STATES.HAVE_FUTURE_DATA, "canplay"], [u.A.VIDEO_ELEMENT_READY_STATES.HAVE_ENOUGH_DATA, "canplaythrough"]]);
|
|
8068
|
+
function mo() {
|
|
8053
8069
|
var t, e, o, l, p, C, b, F, U = this.context, H = (0, y.A)(U).getInstance(), B = [];
|
|
8054
8070
|
function w() {
|
|
8055
8071
|
o && (o.playbackRate = 1, o.removeEventListener("canplay", w));
|
|
@@ -8087,7 +8103,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8087
8103
|
ie(f, S), N(f);
|
|
8088
8104
|
};
|
|
8089
8105
|
return se(f, S), { func: S, event: f };
|
|
8090
|
-
})(
|
|
8106
|
+
})(Js.get(K), z);
|
|
8091
8107
|
}
|
|
8092
8108
|
return t = { addEventListener: se, addTextTrack: function(K, z, f, N, S) {
|
|
8093
8109
|
if (!o) return null;
|
|
@@ -8200,9 +8216,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8200
8216
|
o && (o.disableRemotePlayback = K);
|
|
8201
8217
|
} }, e = (0, g.A)(U).getInstance().getLogger(t), l = NaN, t;
|
|
8202
8218
|
}
|
|
8203
|
-
|
|
8204
|
-
var
|
|
8205
|
-
function
|
|
8219
|
+
mo.__dashjs_factory_name = "VideoModel";
|
|
8220
|
+
var Zs = h.A.getSingletonFactory(mo), eu = [{ oldKey: "dashjs_vbitrate", newKey: "dashjs_video_bitrate" }, { oldKey: "dashjs_abitrate", newKey: "dashjs_audio_bitrate" }, { oldKey: "dashjs_vsettings", newKey: "dashjs_video_settings" }, { oldKey: "dashjs_asettings", newKey: "dashjs_audio_settings" }], yo = "dashjs_?_bitrate", Eo = "dashjs_?_settings", Gr = "localStorage", _o = "lastBitrate", Ao = "lastMediaSettings";
|
|
8221
|
+
function vo(t) {
|
|
8206
8222
|
t = t || {};
|
|
8207
8223
|
var e, o, l, p = this.context, C = t.settings;
|
|
8208
8224
|
function b(B) {
|
|
@@ -8214,7 +8230,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8214
8230
|
} catch (j) {
|
|
8215
8231
|
return o.warn("DOMStorage access denied: " + j.message), l;
|
|
8216
8232
|
}
|
|
8217
|
-
if (!w || B !==
|
|
8233
|
+
if (!w || B !== Gr) return l;
|
|
8218
8234
|
try {
|
|
8219
8235
|
w.setItem("1", "1"), w.removeItem("1"), l = !0;
|
|
8220
8236
|
} catch (j) {
|
|
@@ -8235,8 +8251,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8235
8251
|
return e = { getSavedBitrateSettings: function(B) {
|
|
8236
8252
|
if (H(), !C.get().streaming.lastBitrateCachingInfo.enabled) return NaN;
|
|
8237
8253
|
var w = NaN;
|
|
8238
|
-
if (U(
|
|
8239
|
-
var j =
|
|
8254
|
+
if (U(Gr, _o)) {
|
|
8255
|
+
var j = yo.replace(/\?/, B);
|
|
8240
8256
|
try {
|
|
8241
8257
|
var k = JSON.parse(localStorage.getItem(j)) || {}, se = (/* @__PURE__ */ new Date()).getTime() - parseInt(k.timestamp, 10) >= C.get().streaming.lastBitrateCachingInfo.ttl || !1, ie = parseFloat(k.bitrate);
|
|
8242
8258
|
isNaN(ie) || se ? se && localStorage.removeItem(j) : (w = ie, o.debug("Last saved bitrate for " + B + " was " + ie));
|
|
@@ -8246,8 +8262,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8246
8262
|
}
|
|
8247
8263
|
return w;
|
|
8248
8264
|
}, setSavedBitrateSettings: function(B, w) {
|
|
8249
|
-
if (U(
|
|
8250
|
-
var j =
|
|
8265
|
+
if (U(Gr, _o) && w) {
|
|
8266
|
+
var j = yo.replace(/\?/, B);
|
|
8251
8267
|
try {
|
|
8252
8268
|
localStorage.setItem(j, JSON.stringify({ bitrate: w.toFixed(3), timestamp: F() }));
|
|
8253
8269
|
} catch (k) {
|
|
@@ -8257,8 +8273,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8257
8273
|
}, getSavedMediaSettings: function(B) {
|
|
8258
8274
|
if (H(), !C.get().streaming.lastMediaSettingsCachingInfo.enabled) return null;
|
|
8259
8275
|
var w = null;
|
|
8260
|
-
if (U(
|
|
8261
|
-
var j =
|
|
8276
|
+
if (U(Gr, Ao)) {
|
|
8277
|
+
var j = Eo.replace(/\?/, B);
|
|
8262
8278
|
try {
|
|
8263
8279
|
var k = JSON.parse(localStorage.getItem(j)) || {}, se = (/* @__PURE__ */ new Date()).getTime() - parseInt(k.timestamp, 10) >= C.get().streaming.lastMediaSettingsCachingInfo.ttl || !1;
|
|
8264
8280
|
w = k.settings, se && (localStorage.removeItem(j), w = null);
|
|
@@ -8268,15 +8284,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8268
8284
|
}
|
|
8269
8285
|
return w;
|
|
8270
8286
|
}, setSavedMediaSettings: function(B, w) {
|
|
8271
|
-
if (U(
|
|
8272
|
-
var j =
|
|
8287
|
+
if (U(Gr, Ao)) {
|
|
8288
|
+
var j = Eo.replace(/\?/, B);
|
|
8273
8289
|
try {
|
|
8274
8290
|
localStorage.setItem(j, JSON.stringify({ settings: w, timestamp: F() }));
|
|
8275
8291
|
} catch (k) {
|
|
8276
8292
|
o.error(k.message);
|
|
8277
8293
|
}
|
|
8278
8294
|
}
|
|
8279
|
-
} }, o = (0, g.A)(p).getInstance().getLogger(e), b(
|
|
8295
|
+
} }, o = (0, g.A)(p).getInstance().getLogger(e), b(Gr) && eu.forEach((function(B) {
|
|
8280
8296
|
var w = localStorage.getItem(B.oldKey);
|
|
8281
8297
|
if (w) {
|
|
8282
8298
|
localStorage.removeItem(B.oldKey);
|
|
@@ -8288,9 +8304,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8288
8304
|
}
|
|
8289
8305
|
})), e;
|
|
8290
8306
|
}
|
|
8291
|
-
|
|
8292
|
-
var
|
|
8293
|
-
function
|
|
8307
|
+
vo.__dashjs_factory_name = "DOMStorage";
|
|
8308
|
+
var tu = h.A.getSingletonFactory(vo), nu = M(6558), To = M(5708);
|
|
8309
|
+
function bo() {
|
|
8294
8310
|
var t, e, o, l, p, C, b, F, U, H, B, w, j, k = this.context;
|
|
8295
8311
|
function se(te, Z, K, z) {
|
|
8296
8312
|
var f = null, N = te ? j.resolve(te.path) : null, S = z || { init: !0, url: N ? N.url : void 0, range: { start: 0, end: 1500 }, searching: !1, bytesLoaded: 0, bytesToLoad: 1500, mediaType: Z };
|
|
@@ -8324,7 +8340,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8324
8340
|
};
|
|
8325
8341
|
for (Me = 0, Qe = Ce.length; Me < Qe; Me++) $e = Ee, Ze = Ee + Ce[Me].referenced_size - 1, Ee += Ce[Me].referenced_size, ie(te, Z, { start: $e, end: Ze }, z, Pe, ue);
|
|
8326
8342
|
} else e.debug("Parsing segments from SIDX. representation " + Z + " - id: " + te.id + " for range : " + ue.range.start + " - " + ue.range.end), fe = (function(Ke, yt) {
|
|
8327
|
-
for (var ht, dt, qt, Yt, sn = Ke.references, ln = sn.length, ke = Ke.timescale, ut = Ke.earliest_presentation_time, tt = yt.range.start + Ke.offset + Ke.first_offset + Ke.size, gt = [], Dt = 0; Dt < ln; Dt++) qt = sn[Dt].subsegment_duration, Yt = sn[Dt].referenced_size, (ht = new
|
|
8343
|
+
for (var ht, dt, qt, Yt, sn = Ke.references, ln = sn.length, ke = Ke.timescale, ut = Ke.earliest_presentation_time, tt = yt.range.start + Ke.offset + Ke.first_offset + Ke.size, gt = [], Dt = 0; Dt < ln; Dt++) qt = sn[Dt].subsegment_duration, Yt = sn[Dt].referenced_size, (ht = new To.A()).duration = qt, ht.startTime = ut, ht.timescale = ke, dt = tt + Yt - 1, ht.mediaRange = tt + "-" + dt, gt.push(ht), ut += qt, tt += Yt;
|
|
8328
8344
|
return gt;
|
|
8329
8345
|
})(R, ue), f(fe, te, z);
|
|
8330
8346
|
} else {
|
|
@@ -8365,9 +8381,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8365
8381
|
F && (F.abort(), F = null);
|
|
8366
8382
|
} };
|
|
8367
8383
|
}
|
|
8368
|
-
|
|
8369
|
-
var
|
|
8370
|
-
function
|
|
8384
|
+
bo.__dashjs_factory_name = "SegmentBaseLoader";
|
|
8385
|
+
var ru = h.A.getSingletonFactory(bo);
|
|
8386
|
+
function So(t) {
|
|
8371
8387
|
var e;
|
|
8372
8388
|
t = t || {};
|
|
8373
8389
|
var o = new DataView(t.data), l = 0;
|
|
@@ -8428,9 +8444,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8428
8444
|
return l < o.byteLength;
|
|
8429
8445
|
} };
|
|
8430
8446
|
}
|
|
8431
|
-
|
|
8432
|
-
var
|
|
8433
|
-
function
|
|
8447
|
+
So.__dashjs_factory_name = "EBMLParser";
|
|
8448
|
+
var Io = h.A.getClassFactory(So);
|
|
8449
|
+
function Ro() {
|
|
8434
8450
|
var t, e, o, l, p, C, b, F, U, H, B = this.context;
|
|
8435
8451
|
function w(j) {
|
|
8436
8452
|
var k = new T.A();
|
|
@@ -8456,7 +8472,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8456
8472
|
he = w({ bytesLoaded: 0, bytesToLoad: 8192, range: { start: 0, end: 8192 }, request: he, url: te, init: !1, mediaType: k }), e.debug("Parsing ebml header"), F.load({ request: he, success: function(Z) {
|
|
8457
8473
|
(function(K, z, f, N) {
|
|
8458
8474
|
if (K && K.byteLength !== 0) {
|
|
8459
|
-
var S, L, R, V, de =
|
|
8475
|
+
var S, L, R, V, de = Io(B).create({ data: K }), ue = f ? f.split("-") : null, P = null, $ = { url: z, range: { start: ue ? parseFloat(ue[0]) : null, end: ue ? parseFloat(ue[1]) : null }, request: P };
|
|
8460
8476
|
for (e.debug("Parse EBML header: " + $.url), de.skipOverElement(o.EBML), de.consumeTag(o.Segment), R = de.getMatroskaCodedNum(), R += de.getPos(), V = de.getPos(); de.moreData() && !de.consumeTagAndSize(o.Segment.Info, !0); ) if (!(de.skipOverElement(o.Segment.SeekHead, !0) || de.skipOverElement(o.Segment.Tracks, !0) || de.skipOverElement(o.Segment.Cues, !0) || de.skipOverElement(o.Void, !0))) throw new Error("no valid top level element found");
|
|
8461
8477
|
for (; S === void 0; ) {
|
|
8462
8478
|
var Y = de.getMatroskaCodedNum(!0), ge = de.getMatroskaCodedNum();
|
|
@@ -8466,7 +8482,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8466
8482
|
L = (function(fe, Ce, Me, Qe) {
|
|
8467
8483
|
var $e, Ze, at, Nt, Ee, Pe, ct, Ke;
|
|
8468
8484
|
for (at = [], Ee = 0, Pe = (Ze = (function(yt) {
|
|
8469
|
-
var ht, dt, qt = [], Yt =
|
|
8485
|
+
var ht, dt, qt = [], Yt = Io(B).create({ data: yt });
|
|
8470
8486
|
for (Yt.consumeTagAndSize(o.Segment.Cues); Yt.moreData() && Yt.consumeTagAndSize(o.Segment.Cues.CuePoint, !0); ) {
|
|
8471
8487
|
for ((ht = {}).CueTime = Yt.parseTag(o.Segment.Cues.CuePoint.CueTime), ht.CueTracks = []; Yt.moreData() && Yt.consumeTag(o.Segment.Cues.CuePoint.CueTrackPositions, !0); ) {
|
|
8472
8488
|
var sn = Yt.getMatroskaCodedNum(), ln = Yt.getPos();
|
|
@@ -8478,7 +8494,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8478
8494
|
}
|
|
8479
8495
|
if (qt.length === 0) throw new Error("mandatory cuepoint not found");
|
|
8480
8496
|
return qt;
|
|
8481
|
-
})(fe)).length; Ee < Pe; Ee += 1) Nt = new
|
|
8497
|
+
})(fe)).length; Ee < Pe; Ee += 1) Nt = new To.A(), $e = Ee < Ze.length - 1 ? Ze[Ee + 1].CueTime - Ze[Ee].CueTime : Qe - Ze[Ee].CueTime, Nt.duration = $e, Nt.startTime = Ze[Ee].CueTime, Nt.timescale = 1e3, ct = Ze[Ee].CueTracks[0].ClusterPosition + Ce, Ke = Ee < Ze.length - 1 ? Ze[Ee + 1].CueTracks[0].ClusterPosition + Ce - 1 : Me - 1, Nt.mediaRange = ct + "-" + Ke, at.push(Nt);
|
|
8482
8498
|
return e.debug("Parsed cues: " + at.length + " cues."), at;
|
|
8483
8499
|
})(ve, V, R, S), N(L);
|
|
8484
8500
|
}, error: function() {
|
|
@@ -8496,9 +8512,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8496
8512
|
F && (F.abort(), F = null);
|
|
8497
8513
|
} }, o = { EBML: { tag: 440786851, required: !0 }, Segment: { tag: 408125543, required: !0, SeekHead: { tag: 290298740, required: !0 }, Info: { tag: 357149030, required: !0, TimecodeScale: { tag: 2807729, required: !0, parse: "getMatroskaUint" }, Duration: { tag: 17545, required: !0, parse: "getMatroskaFloat" } }, Tracks: { tag: 374648427, required: !0 }, Cues: { tag: 475249515, required: !0, CuePoint: { tag: 187, required: !0, CueTime: { tag: 179, required: !0, parse: "getMatroskaUint" }, CueTrackPositions: { tag: 183, required: !0, CueTrack: { tag: 247, required: !0, parse: "getMatroskaUint" }, CueClusterPosition: { tag: 241, required: !0, parse: "getMatroskaUint" } } } } }, Void: { tag: 236, required: !0 } }, t;
|
|
8498
8514
|
}
|
|
8499
|
-
|
|
8500
|
-
var
|
|
8501
|
-
function
|
|
8515
|
+
Ro.__dashjs_factory_name = "WebmSegmentBaseLoader";
|
|
8516
|
+
var iu = h.A.getSingletonFactory(Ro);
|
|
8517
|
+
function wo(t) {
|
|
8502
8518
|
t = t || {};
|
|
8503
8519
|
var e, o, l, p = this.context, C = t.eventBus, b = t.events, F = t.dashMetrics, U = t.mediaPlayerModel, H = t.errHandler, B = t.baseURLController, w = t.debug, j = t.boxParser, k = t.requestModifier, se = t.errors;
|
|
8504
8520
|
function ie(he) {
|
|
@@ -8512,69 +8528,69 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8512
8528
|
return ie(he.mimeType) ? l.loadSegments(he.representation, he.mediaType, he.representation ? he.representation.indexRange : null) : o.loadSegments(he.representation, he.mediaType, he.representation ? he.representation.indexRange : null);
|
|
8513
8529
|
}, reset: function() {
|
|
8514
8530
|
o.reset(), l.reset();
|
|
8515
|
-
} }, o =
|
|
8531
|
+
} }, o = ru(p).getInstance(), l = iu(p).getInstance(), o.setConfig({ baseURLController: B, dashMetrics: F, mediaPlayerModel: U, errHandler: H, eventBus: C, events: b, errors: se, debug: w, boxParser: j, requestModifier: k }), l.setConfig({ baseURLController: B, dashMetrics: F, mediaPlayerModel: U, errHandler: H, eventBus: C, events: b, errors: se, debug: w, requestModifier: k }), e;
|
|
8516
8532
|
}
|
|
8517
|
-
|
|
8518
|
-
var
|
|
8519
|
-
function
|
|
8533
|
+
wo.__dashjs_factory_name = "SegmentBaseController";
|
|
8534
|
+
var au = h.A.getSingletonFactory(wo);
|
|
8535
|
+
function ou(t, e, o) {
|
|
8520
8536
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
8521
8537
|
}
|
|
8522
|
-
var
|
|
8538
|
+
var No = ou((function t() {
|
|
8523
8539
|
(function(e, o) {
|
|
8524
8540
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
8525
8541
|
})(this, t), this.id = null, this.quality = null, this.fragmentDuration = null, this.mediaInfo = null, this.MSETimeOffset = null;
|
|
8526
8542
|
}));
|
|
8527
|
-
function
|
|
8543
|
+
function su(t, e, o) {
|
|
8528
8544
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
8529
8545
|
}
|
|
8530
|
-
var
|
|
8546
|
+
var da = su((function t() {
|
|
8531
8547
|
(function(e, o) {
|
|
8532
8548
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
8533
8549
|
})(this, t), this.id = null, this.index = null, this.type = null, this.streamInfo = null, this.representationCount = 0, this.labels = null, this.lang = null, this.viewpoint = null, this.viewpointsWithSchemeIdUri = null, this.accessibility = null, this.accessibilitiesWithSchemeIdUri = null, this.audioChannelConfiguration = null, this.audioChannelConfigurationsWithSchemeIdUri = null, this.roles = null, this.rolesWithSchemeIdUri = null, this.codec = null, this.mimeType = null, this.contentProtection = null, this.isText = !1, this.KID = null, this.bitrateList = null, this.isFragmented = null, this.isEmbedded = null, this.selectionPriority = 1, this.supplementalProperties = {}, this.supplementalPropertiesAsArray = [], this.essentialProperties = {}, this.essentialPropertiesAsArray = [], this.segmentAlignment = !1, this.subSegmentAlignment = !1;
|
|
8534
8550
|
}));
|
|
8535
|
-
function
|
|
8551
|
+
function uu(t, e, o) {
|
|
8536
8552
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
8537
8553
|
}
|
|
8538
|
-
var
|
|
8554
|
+
var Co = uu((function t() {
|
|
8539
8555
|
(function(e, o) {
|
|
8540
8556
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
8541
8557
|
})(this, t), this.id = null, this.index = null, this.start = NaN, this.duration = NaN, this.manifestInfo = null, this.isLast = !0;
|
|
8542
8558
|
}));
|
|
8543
|
-
function
|
|
8559
|
+
function lu(t, e, o) {
|
|
8544
8560
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
8545
8561
|
}
|
|
8546
|
-
var
|
|
8562
|
+
var cu = lu((function t() {
|
|
8547
8563
|
(function(e, o) {
|
|
8548
8564
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
8549
8565
|
})(this, t), this.dvrWindowSize = NaN, this.loadedTime = null, this.availableFrom = null, this.minBufferTime = NaN, this.duration = NaN, this.isDynamic = !1, this.maxFragmentDuration = null, this.serviceDescriptions = [], this.protocol = null;
|
|
8550
8566
|
}));
|
|
8551
|
-
function
|
|
8552
|
-
return
|
|
8567
|
+
function si(t) {
|
|
8568
|
+
return si = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
8553
8569
|
return typeof e;
|
|
8554
8570
|
} : function(e) {
|
|
8555
8571
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8556
|
-
},
|
|
8572
|
+
}, si(t);
|
|
8557
8573
|
}
|
|
8558
|
-
function
|
|
8574
|
+
function fu(t, e) {
|
|
8559
8575
|
for (var o = 0; o < e.length; o++) {
|
|
8560
8576
|
var l = e[o];
|
|
8561
|
-
l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t,
|
|
8577
|
+
l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, du(l.key), l);
|
|
8562
8578
|
}
|
|
8563
8579
|
}
|
|
8564
|
-
function
|
|
8580
|
+
function du(t) {
|
|
8565
8581
|
var e = (function(o) {
|
|
8566
|
-
if (
|
|
8582
|
+
if (si(o) != "object" || !o) return o;
|
|
8567
8583
|
var l = o[Symbol.toPrimitive];
|
|
8568
8584
|
if (l !== void 0) {
|
|
8569
8585
|
var p = l.call(o, "string");
|
|
8570
|
-
if (
|
|
8586
|
+
if (si(p) != "object") return p;
|
|
8571
8587
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
8572
8588
|
}
|
|
8573
8589
|
return String(o);
|
|
8574
8590
|
})(t);
|
|
8575
|
-
return
|
|
8591
|
+
return si(e) == "symbol" ? e : e + "";
|
|
8576
8592
|
}
|
|
8577
|
-
var
|
|
8593
|
+
var pu = (function() {
|
|
8578
8594
|
return t = function o(l) {
|
|
8579
8595
|
var p = this;
|
|
8580
8596
|
(function(C, b) {
|
|
@@ -8617,36 +8633,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8617
8633
|
F++;
|
|
8618
8634
|
}; F < this.path.length && b !== null; ) H();
|
|
8619
8635
|
return b === null ? null : U.startsWith("@") ? { name: U.substring(1), leaf: b, target: b } : U === "text()" ? { name: "__text", leaf: b, target: b } : { name: U, leaf: b, target: l ? C : b };
|
|
8620
|
-
} }]) &&
|
|
8636
|
+
} }]) && fu(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
8621
8637
|
var t, e;
|
|
8622
8638
|
})();
|
|
8623
|
-
function
|
|
8624
|
-
return
|
|
8639
|
+
function ui(t) {
|
|
8640
|
+
return ui = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
8625
8641
|
return typeof e;
|
|
8626
8642
|
} : function(e) {
|
|
8627
8643
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8628
|
-
},
|
|
8644
|
+
}, ui(t);
|
|
8629
8645
|
}
|
|
8630
|
-
function
|
|
8646
|
+
function hu(t, e) {
|
|
8631
8647
|
for (var o = 0; o < e.length; o++) {
|
|
8632
8648
|
var l = e[o];
|
|
8633
|
-
l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t,
|
|
8649
|
+
l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, gu(l.key), l);
|
|
8634
8650
|
}
|
|
8635
8651
|
}
|
|
8636
|
-
function
|
|
8652
|
+
function gu(t) {
|
|
8637
8653
|
var e = (function(o) {
|
|
8638
|
-
if (
|
|
8654
|
+
if (ui(o) != "object" || !o) return o;
|
|
8639
8655
|
var l = o[Symbol.toPrimitive];
|
|
8640
8656
|
if (l !== void 0) {
|
|
8641
8657
|
var p = l.call(o, "string");
|
|
8642
|
-
if (
|
|
8658
|
+
if (ui(p) != "object") return p;
|
|
8643
8659
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
8644
8660
|
}
|
|
8645
8661
|
return String(o);
|
|
8646
8662
|
})(t);
|
|
8647
|
-
return
|
|
8663
|
+
return ui(e) == "symbol" ? e : e + "";
|
|
8648
8664
|
}
|
|
8649
|
-
var
|
|
8665
|
+
var mu = (function() {
|
|
8650
8666
|
return t = function o(l, p, C) {
|
|
8651
8667
|
(function(b, F) {
|
|
8652
8668
|
if (!(b instanceof F)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -8654,10 +8670,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8654
8670
|
}, (e = [{ key: "getMpdTarget", value: function(o) {
|
|
8655
8671
|
var l = this.action === "remove" || this.action === "replace" || this.position === "before" || this.position === "after";
|
|
8656
8672
|
return this.xpath.getMpdTarget(o, l);
|
|
8657
|
-
} }]) &&
|
|
8673
|
+
} }]) && hu(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
8658
8674
|
var t, e;
|
|
8659
8675
|
})();
|
|
8660
|
-
function
|
|
8676
|
+
function Do() {
|
|
8661
8677
|
var t, e, o = this.context;
|
|
8662
8678
|
return t = { getIsPatch: function(l) {
|
|
8663
8679
|
return l && l.hasOwnProperty(n.A.ORIGINAL_MPD_ID) || !1;
|
|
@@ -8676,23 +8692,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8676
8692
|
if (!b.type.startsWith("@")) return e.warn("Ignoring add action for prefixed namespace declaration: ".concat(b.type, "=").concat(b.__text)), null;
|
|
8677
8693
|
F = "".concat(F, "/").concat(b.type);
|
|
8678
8694
|
}
|
|
8679
|
-
var U = new
|
|
8695
|
+
var U = new pu(F);
|
|
8680
8696
|
if (!U.isValid()) return e.warn("Ignoring action with invalid selector: ".concat(C, " - ").concat(F)), null;
|
|
8681
8697
|
var H = null;
|
|
8682
8698
|
U.findsAttribute() || U.findsTextReplace() ? H = b.__text || "" : C !== "remove" && (H = b.__children.reduce((function(w, j) {
|
|
8683
8699
|
var k = Object.keys(j)[0];
|
|
8684
8700
|
return k !== "#text" && (w[k] = w[k] || [], w[k].push(j[k])), w;
|
|
8685
8701
|
}), {}));
|
|
8686
|
-
var B = new
|
|
8702
|
+
var B = new mu(C, U, H);
|
|
8687
8703
|
return C === "add" && (B.position = b.pos), B;
|
|
8688
8704
|
})).filter((function(p) {
|
|
8689
8705
|
return !!p;
|
|
8690
8706
|
})) : [];
|
|
8691
8707
|
} }, e = (0, g.A)(o).getInstance().getLogger(t), t;
|
|
8692
8708
|
}
|
|
8693
|
-
|
|
8694
|
-
var
|
|
8695
|
-
function
|
|
8709
|
+
Do.__dashjs_factory_name = "PatchManifestModel";
|
|
8710
|
+
var yu = h.A.getSingletonFactory(Do);
|
|
8711
|
+
function Oo() {
|
|
8696
8712
|
var t, e, o, l, p, C, b, F = this.context;
|
|
8697
8713
|
function U(S, L, R) {
|
|
8698
8714
|
var V, de = e.getAdaptationsForType(l[0].mpd.manifest, S, L);
|
|
@@ -8771,7 +8787,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8771
8787
|
}
|
|
8772
8788
|
function te(S) {
|
|
8773
8789
|
if (!S) return null;
|
|
8774
|
-
var L, R, V, de, ue, P = new
|
|
8790
|
+
var L, R, V, de, ue, P = new da(), $ = S.period.mpd.manifest.Period_asArray[S.period.index].AdaptationSet_asArray[S.index];
|
|
8775
8791
|
if (P.id = S.id, P.index = S.index, P.type = S.type, P.streamInfo = K(S.period), P.representationCount = e.getRepresentationCount($), P.labels = e.getLabelsForAdaptation($), P.lang = e.getLanguageForAdaptation($), P.segmentAlignment = e.getSegmentAlignment($), P.subSegmentAlignment = e.getSubSegmentAlignment($), L = e.getViewpointForAdaptation($), P.viewpoint = L.length ? L[0].value : void 0, P.viewpointsWithSchemeIdUri = L, ue = e.getAccessibilityForAdaptation($), P.accessibility = ue.map((function(Ce) {
|
|
8776
8792
|
var Me = Ce.value, Qe = Me;
|
|
8777
8793
|
return Ce.schemeIdUri && Ce.schemeIdUri.search("cea-608") >= 0 && b !== void 0 && (Qe = Me ? "cea-608:" + Me : "cea-608", P.embeddedCaptions = !0), Qe;
|
|
@@ -8816,8 +8832,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8816
8832
|
S.id = L, S.index = 100 + parseInt(L.substring(2, 3)), S.type = C.TEXT, S.codec = "cea-608-in-SEI", S.isEmbedded = !0, S.isFragmented = !1, S.lang = R, S.roles = ["caption"], S.rolesWithSchemeIdUri = [{ schemeIdUri: "urn:mpeg:dash:role:2011", value: "caption" }];
|
|
8817
8833
|
}
|
|
8818
8834
|
function K(S) {
|
|
8819
|
-
var L, R, V = new
|
|
8820
|
-
return V.id = S.id, V.index = S.index, V.start = S.start, V.duration = S.duration, V.manifestInfo = (L = S.mpd, (R = new
|
|
8835
|
+
var L, R, V = new Co();
|
|
8836
|
+
return V.id = S.id, V.index = S.index, V.start = S.start, V.duration = S.duration, V.manifestInfo = (L = S.mpd, (R = new cu()).dvrWindowSize = L.timeShiftBufferDepth, R.loadedTime = L.manifest.loadedTime, R.availableFrom = L.availabilityStartTime, R.minBufferTime = L.manifest.minBufferTime, R.maxFragmentDuration = L.maxSegmentDuration, R.duration = e.getDuration(L.manifest), R.isDynamic = e.getIsDynamic(L.manifest), R.serviceDescriptions = e.getServiceDescriptions(L.manifest), R.protocol = L.manifest.protocol, R), V.isLast = S.mpd.manifest.Period_asArray.length === 1 || Math.abs(V.start + V.duration - V.manifestInfo.duration) < 1, V;
|
|
8821
8837
|
}
|
|
8822
8838
|
function z() {
|
|
8823
8839
|
if (!C) throw new Error("setConfig function has to be called previously");
|
|
@@ -8849,7 +8865,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8849
8865
|
})(f(L), S);
|
|
8850
8866
|
}, convertRepresentationToRepresentationInfo: function(S) {
|
|
8851
8867
|
if (S) {
|
|
8852
|
-
var L = new
|
|
8868
|
+
var L = new No(), R = S.adaptation.period.mpd.manifest.Period_asArray[S.adaptation.period.index].AdaptationSet_asArray[S.adaptation.index], V = e.getRepresentationFor(S.index, R);
|
|
8853
8869
|
return L.id = S.id, L.quality = S.index, L.bandwidth = e.getBandwidth(V), L.fragmentDuration = S.segmentDuration || (S.segments && S.segments.length > 0 ? S.segments[0].duration : NaN), L.MSETimeOffset = S.MSETimeOffset, L.mediaInfo = te(S.adaptation), L;
|
|
8854
8870
|
}
|
|
8855
8871
|
return null;
|
|
@@ -8887,13 +8903,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8887
8903
|
var V = [];
|
|
8888
8904
|
if (l.length > 0) {
|
|
8889
8905
|
var de = l[0].mpd.manifest;
|
|
8890
|
-
if (S instanceof
|
|
8906
|
+
if (S instanceof Co) {
|
|
8891
8907
|
var ue = oe(S, l);
|
|
8892
8908
|
V = e.getEventsForPeriod(ue);
|
|
8893
|
-
} else if (S instanceof
|
|
8909
|
+
} else if (S instanceof da) {
|
|
8894
8910
|
var P = oe(R, l);
|
|
8895
8911
|
V = e.getEventStreamForAdaptationSet(de, he(S), P);
|
|
8896
|
-
} else if (S instanceof
|
|
8912
|
+
} else if (S instanceof No) {
|
|
8897
8913
|
var $ = oe(R, l);
|
|
8898
8914
|
V = e.getEventStreamForRepresentation(de, L, $);
|
|
8899
8915
|
}
|
|
@@ -8904,7 +8920,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8904
8920
|
if (!S || !L || isNaN(R) || !V) return null;
|
|
8905
8921
|
var de = S.scheme_id_uri, ue = S.value;
|
|
8906
8922
|
if (!L[de + "/" + ue]) return null;
|
|
8907
|
-
var P, $ = new
|
|
8923
|
+
var P, $ = new Vr(), Y = S.timescale || 1, ge = V.adaptation.period.start, ve = L[de + "/" + ue], fe = isNaN(V.presentationTimeOffset) ? isNaN(ve.presentationTimeOffset) ? 0 : ve.presentationTimeOffset : V.presentationTimeOffset, Ce = S.presentation_time_delta / Y;
|
|
8908
8924
|
P = S.version === 0 ? ge + R - fe + Ce : ge - fe + Ce;
|
|
8909
8925
|
var Me = S.event_duration / Y, Qe = S.id, $e = S.message_data;
|
|
8910
8926
|
return $.eventStream = ve, $.eventStream.value = ue, $.eventStream.timescale = Y, $.duration = Me, $.id = Qe, $.calculatedPresentationTime = P, $.messageData = $e, $.presentationTimeDelta = Ce, $;
|
|
@@ -9001,37 +9017,37 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9001
9017
|
}
|
|
9002
9018
|
}
|
|
9003
9019
|
}));
|
|
9004
|
-
}, areMediaInfosEqual: H, reset: se }, e = It(F).getInstance(), o =
|
|
9020
|
+
}, areMediaInfosEqual: H, reset: se }, e = It(F).getInstance(), o = yu(F).getInstance(), se(), t;
|
|
9005
9021
|
}
|
|
9006
|
-
|
|
9007
|
-
var
|
|
9008
|
-
function
|
|
9009
|
-
return
|
|
9022
|
+
Oo.__dashjs_factory_name = "DashAdapter";
|
|
9023
|
+
var Eu = h.A.getSingletonFactory(Oo);
|
|
9024
|
+
function li(t) {
|
|
9025
|
+
return li = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
9010
9026
|
return typeof e;
|
|
9011
9027
|
} : function(e) {
|
|
9012
9028
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9013
|
-
},
|
|
9029
|
+
}, li(t);
|
|
9014
9030
|
}
|
|
9015
|
-
function
|
|
9031
|
+
function _u(t, e) {
|
|
9016
9032
|
for (var o = 0; o < e.length; o++) {
|
|
9017
9033
|
var l = e[o];
|
|
9018
|
-
l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t,
|
|
9034
|
+
l.enumerable = l.enumerable || !1, l.configurable = !0, "value" in l && (l.writable = !0), Object.defineProperty(t, Au(l.key), l);
|
|
9019
9035
|
}
|
|
9020
9036
|
}
|
|
9021
|
-
function
|
|
9037
|
+
function Au(t) {
|
|
9022
9038
|
var e = (function(o) {
|
|
9023
|
-
if (
|
|
9039
|
+
if (li(o) != "object" || !o) return o;
|
|
9024
9040
|
var l = o[Symbol.toPrimitive];
|
|
9025
9041
|
if (l !== void 0) {
|
|
9026
9042
|
var p = l.call(o, "string");
|
|
9027
|
-
if (
|
|
9043
|
+
if (li(p) != "object") return p;
|
|
9028
9044
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
9029
9045
|
}
|
|
9030
9046
|
return String(o);
|
|
9031
9047
|
})(t);
|
|
9032
|
-
return
|
|
9048
|
+
return li(e) == "symbol" ? e : e + "";
|
|
9033
9049
|
}
|
|
9034
|
-
var
|
|
9050
|
+
var vu = (function() {
|
|
9035
9051
|
return t = function o() {
|
|
9036
9052
|
(function(l, p) {
|
|
9037
9053
|
if (!(l instanceof p)) throw new TypeError("Cannot call a class as a function");
|
|
@@ -9040,24 +9056,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9040
9056
|
return (function(p, C, b) {
|
|
9041
9057
|
return b === void 0 || +b == 0 ? Math[p](C) : (b = +b, (C = +C) === null || isNaN(C) || typeof b != "number" || b % 1 != 0 ? NaN : (C = C.toString().split("e"), +((C = (C = Math[p](+(C[0] + "e" + (C[1] ? +C[1] - b : -b)))).toString().split("e"))[0] + "e" + (C[1] ? +C[1] + b : b))));
|
|
9042
9058
|
})("round", o, l);
|
|
9043
|
-
} }], e &&
|
|
9059
|
+
} }], e && _u(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
9044
9060
|
var t, e;
|
|
9045
9061
|
})();
|
|
9046
|
-
function Au(t, e, o) {
|
|
9047
|
-
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
9048
|
-
}
|
|
9049
|
-
var vu = Au((function t() {
|
|
9050
|
-
(function(e, o) {
|
|
9051
|
-
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
9052
|
-
})(this, t), this.TcpList = [], this.HttpList = [], this.RepSwitchList = [], this.BufferLevel = [], this.BufferState = [], this.PlayList = [], this.DroppedFrames = [], this.SchedulingInfo = [], this.DVRInfo = [], this.ManifestUpdate = [], this.RequestsQueue = null, this.DVBErrors = [];
|
|
9053
|
-
}));
|
|
9054
9062
|
function Tu(t, e, o) {
|
|
9055
9063
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
9056
9064
|
}
|
|
9057
9065
|
var bu = Tu((function t() {
|
|
9058
9066
|
(function(e, o) {
|
|
9059
9067
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
9060
|
-
})(this, t), this.
|
|
9068
|
+
})(this, t), this.TcpList = [], this.HttpList = [], this.RepSwitchList = [], this.BufferLevel = [], this.BufferState = [], this.PlayList = [], this.DroppedFrames = [], this.SchedulingInfo = [], this.DVRInfo = [], this.ManifestUpdate = [], this.RequestsQueue = null, this.DVBErrors = [];
|
|
9061
9069
|
}));
|
|
9062
9070
|
function Su(t, e, o) {
|
|
9063
9071
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
@@ -9065,7 +9073,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9065
9073
|
var Iu = Su((function t() {
|
|
9066
9074
|
(function(e, o) {
|
|
9067
9075
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
9068
|
-
})(this, t), this.t = null, this.
|
|
9076
|
+
})(this, t), this.t = null, this.mt = null, this.to = null, this.lto = null;
|
|
9069
9077
|
}));
|
|
9070
9078
|
function Ru(t, e, o) {
|
|
9071
9079
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
@@ -9073,7 +9081,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9073
9081
|
var wu = Ru((function t() {
|
|
9074
9082
|
(function(e, o) {
|
|
9075
9083
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
9076
|
-
})(this, t), this.
|
|
9084
|
+
})(this, t), this.t = null, this.level = null;
|
|
9077
9085
|
}));
|
|
9078
9086
|
function Nu(t, e, o) {
|
|
9079
9087
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
@@ -9081,46 +9089,54 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9081
9089
|
var Cu = Nu((function t() {
|
|
9082
9090
|
(function(e, o) {
|
|
9083
9091
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
9084
|
-
})(this, t), this.
|
|
9092
|
+
})(this, t), this.target = null, this.state = _.A.BUFFER_EMPTY;
|
|
9085
9093
|
}));
|
|
9086
9094
|
function Du(t, e, o) {
|
|
9087
9095
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
9088
9096
|
}
|
|
9089
9097
|
var Ou = Du((function t() {
|
|
9098
|
+
(function(e, o) {
|
|
9099
|
+
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
9100
|
+
})(this, t), this.time = null, this.range = null, this.manifestInfo = null;
|
|
9101
|
+
}));
|
|
9102
|
+
function Mu(t, e, o) {
|
|
9103
|
+
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
9104
|
+
}
|
|
9105
|
+
var Pu = Mu((function t() {
|
|
9090
9106
|
(function(e, o) {
|
|
9091
9107
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
9092
9108
|
})(this, t), this.time = null, this.droppedFrames = null;
|
|
9093
9109
|
}));
|
|
9094
|
-
function
|
|
9110
|
+
function pa(t, e, o) {
|
|
9095
9111
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
9096
9112
|
}
|
|
9097
|
-
function
|
|
9113
|
+
function ha(t, e) {
|
|
9098
9114
|
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
9099
9115
|
}
|
|
9100
|
-
var
|
|
9101
|
-
|
|
9102
|
-
})),
|
|
9103
|
-
|
|
9104
|
-
})),
|
|
9105
|
-
|
|
9116
|
+
var Lu = pa((function t() {
|
|
9117
|
+
ha(this, t), this.mediaType = null, this.type = null, this.requestTime = null, this.fetchTime = null, this.availabilityStartTime = null, this.presentationStartTime = 0, this.clientTimeOffset = 0, this.currentTime = null, this.buffered = null, this.latency = 0, this.streamInfo = [], this.representationInfo = [];
|
|
9118
|
+
})), Fu = pa((function t() {
|
|
9119
|
+
ha(this, t), this.id = null, this.index = null, this.start = null, this.duration = null;
|
|
9120
|
+
})), xu = pa((function t() {
|
|
9121
|
+
ha(this, t), this.id = null, this.index = null, this.mediaType = null, this.streamIndex = null, this.presentationTimeOffset = null, this.startNumber = null, this.fragmentInfoType = null;
|
|
9106
9122
|
}));
|
|
9107
|
-
function
|
|
9123
|
+
function Uu(t, e, o) {
|
|
9108
9124
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
9109
9125
|
}
|
|
9110
|
-
var
|
|
9126
|
+
var Bu = Uu((function t() {
|
|
9111
9127
|
(function(e, o) {
|
|
9112
9128
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
9113
9129
|
})(this, t), this.mediaType = null, this.t = null, this.type = null, this.startTime = null, this.availabilityStartTime = null, this.duration = null, this.quality = null, this.range = null, this.state = null;
|
|
9114
9130
|
}));
|
|
9115
|
-
function
|
|
9131
|
+
function ku(t, e, o) {
|
|
9116
9132
|
return Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
9117
9133
|
}
|
|
9118
|
-
var
|
|
9134
|
+
var Gu = ku((function t() {
|
|
9119
9135
|
(function(e, o) {
|
|
9120
9136
|
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
9121
9137
|
})(this, t), this.loadingRequests = [], this.executedRequests = [];
|
|
9122
9138
|
}));
|
|
9123
|
-
function
|
|
9139
|
+
function Mo(t) {
|
|
9124
9140
|
var e, o, l = (t = t || {}).settings, p = this.context, C = (0, y.A)(p).getInstance();
|
|
9125
9141
|
function b() {
|
|
9126
9142
|
C.trigger(i.A.METRICS_CHANGED);
|
|
@@ -9136,7 +9152,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9136
9152
|
}
|
|
9137
9153
|
function B(k, se) {
|
|
9138
9154
|
var ie = null;
|
|
9139
|
-
return k && (o.hasOwnProperty(k) ? ie = o[k] : se || (ie = new
|
|
9155
|
+
return k && (o.hasOwnProperty(k) ? ie = o[k] : se || (ie = new bu(), o[k] = ie)), ie;
|
|
9140
9156
|
}
|
|
9141
9157
|
function w(k, se, ie) {
|
|
9142
9158
|
var he = B(k);
|
|
@@ -9158,28 +9174,28 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9158
9174
|
})($, Y.s, Y.d, Y.b);
|
|
9159
9175
|
})) : (delete $.interval, delete $.trace), j(se, _.A.HTTP_REQUEST, $);
|
|
9160
9176
|
}, addRepresentationSwitch: function(k, se, ie, he, oe) {
|
|
9161
|
-
var te = new
|
|
9177
|
+
var te = new Iu();
|
|
9162
9178
|
te.t = se, te.mt = ie, te.to = he, oe ? te.lto = oe : delete te.lto, j(k, _.A.TRACK_SWITCH, te);
|
|
9163
9179
|
}, addBufferLevel: function(k, se, ie) {
|
|
9164
|
-
var he = new
|
|
9180
|
+
var he = new wu();
|
|
9165
9181
|
he.t = se, he.level = ie, j(k, _.A.BUFFER_LEVEL, he);
|
|
9166
9182
|
}, addBufferState: function(k, se, ie) {
|
|
9167
|
-
var he = new
|
|
9183
|
+
var he = new Cu();
|
|
9168
9184
|
he.target = ie, he.state = se, j(k, _.A.BUFFER_STATE, he);
|
|
9169
9185
|
}, addDVRInfo: function(k, se, ie, he) {
|
|
9170
|
-
var oe = new
|
|
9186
|
+
var oe = new Ou();
|
|
9171
9187
|
oe.time = se, oe.range = he, oe.manifestInfo = ie, j(k, _.A.DVR_INFO, oe);
|
|
9172
9188
|
}, addDroppedFrames: function(k, se) {
|
|
9173
|
-
var ie = new
|
|
9189
|
+
var ie = new Pu(), he = B(k).DroppedFrames;
|
|
9174
9190
|
se && (ie.time = se.creationTime, ie.droppedFrames = se.droppedVideoFrames, he.length > 0 && he[he.length - 1] == ie || j(k, _.A.DROPPED_FRAMES, ie));
|
|
9175
9191
|
}, addSchedulingInfo: function(k, se, ie, he, oe, te, Z, K, z) {
|
|
9176
|
-
var f = new
|
|
9192
|
+
var f = new Bu();
|
|
9177
9193
|
f.mediaType = k, f.t = se, f.type = ie, f.startTime = he, f.availabilityStartTime = oe, f.duration = te, f.quality = Z, f.range = K, f.state = z, j(k, _.A.SCHEDULING_INFO, f);
|
|
9178
9194
|
}, addRequestsQueue: function(k, se, ie) {
|
|
9179
|
-
var he = new
|
|
9195
|
+
var he = new Gu();
|
|
9180
9196
|
he.loadingRequests = se, he.executedRequests = ie, B(k).RequestsQueue = he, H(k, _.A.REQUESTS_QUEUE, he);
|
|
9181
9197
|
}, addManifestUpdate: function(k, se, ie, he, oe, te, Z, K, z, f) {
|
|
9182
|
-
var N = new
|
|
9198
|
+
var N = new Lu();
|
|
9183
9199
|
N.mediaType = k, N.type = se, N.requestTime = ie, N.fetchTime = he, N.availabilityStartTime = oe, N.presentationStartTime = te, N.clientTimeOffset = Z, N.currentTime = K, N.buffered = z, N.latency = f, w(u.A.STREAM, _.A.MANIFEST_UPDATE, N), H(k, _.A.MANIFEST_UPDATE, N);
|
|
9184
9200
|
}, updateManifestUpdateInfo: function(k, se) {
|
|
9185
9201
|
if (k) {
|
|
@@ -9188,12 +9204,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9188
9204
|
}
|
|
9189
9205
|
}, addManifestUpdateStreamInfo: function(k, se, ie, he, oe) {
|
|
9190
9206
|
if (k) {
|
|
9191
|
-
var te = new
|
|
9207
|
+
var te = new Fu();
|
|
9192
9208
|
te.id = se, te.index = ie, te.start = he, te.duration = oe, k.streamInfo.push(te), U(k.mediaType, _.A.MANIFEST_UPDATE_STREAM_INFO, k);
|
|
9193
9209
|
}
|
|
9194
9210
|
}, addManifestUpdateRepresentationInfo: function(k, se, ie, he, oe, te, Z, K) {
|
|
9195
9211
|
if (k && k.representationInfo) {
|
|
9196
|
-
var z = new
|
|
9212
|
+
var z = new xu();
|
|
9197
9213
|
z.id = se, z.index = ie, z.streamIndex = he, z.mediaType = oe, z.startNumber = Z, z.fragmentInfoType = K, z.presentationTimeOffset = te, k.representationInfo.push(z), U(k.mediaType, _.A.MANIFEST_UPDATE_TRACK_INFO, k);
|
|
9198
9214
|
}
|
|
9199
9215
|
}, addPlayList: function(k) {
|
|
@@ -9204,9 +9220,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9204
9220
|
j(u.A.STREAM, _.A.DVB_ERRORS, k);
|
|
9205
9221
|
} }, o = {}, e;
|
|
9206
9222
|
}
|
|
9207
|
-
|
|
9208
|
-
var
|
|
9209
|
-
function
|
|
9223
|
+
Mo.__dashjs_factory_name = "MetricsModel";
|
|
9224
|
+
var ju = h.A.getSingletonFactory(Mo);
|
|
9225
|
+
function Po(t) {
|
|
9210
9226
|
t = t || {};
|
|
9211
9227
|
var e, o, l, p, C = this.context, b = t.metricsModel;
|
|
9212
9228
|
function F(B) {
|
|
@@ -9238,7 +9254,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9238
9254
|
return H(b.getMetricsFor(B, !0), _.A.BUFFER_STATE);
|
|
9239
9255
|
}, getCurrentBufferLevel: function(B) {
|
|
9240
9256
|
var w = H(b.getMetricsFor(B, !0), _.A.BUFFER_LEVEL);
|
|
9241
|
-
return w ?
|
|
9257
|
+
return w ? vu.round10(w.level / 1e3, -3) : 0;
|
|
9242
9258
|
}, getCurrentHttpRequest: F, getHttpRequests: U, getCurrentDroppedFrames: function() {
|
|
9243
9259
|
return H(b.getMetricsFor(u.A.VIDEO, !0), _.A.DROPPED_FRAMES);
|
|
9244
9260
|
}, getCurrentSchedulingInfo: function(B) {
|
|
@@ -9310,11 +9326,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9310
9326
|
}
|
|
9311
9327
|
}, clearAllCurrentMetrics: function() {
|
|
9312
9328
|
b.clearAllCurrentMetrics();
|
|
9313
|
-
} }, b = b ||
|
|
9329
|
+
} }, b = b || ju(C).getInstance({ settings: t.settings }), o = !0, l = null, p = null, e;
|
|
9314
9330
|
}
|
|
9315
|
-
|
|
9316
|
-
var
|
|
9317
|
-
function
|
|
9331
|
+
Po.__dashjs_factory_name = "DashMetrics";
|
|
9332
|
+
var qu = h.A.getSingletonFactory(Po);
|
|
9333
|
+
function Lo() {
|
|
9318
9334
|
var t, e, o, l, p = this.context, C = (0, y.A)(p).getInstance(), b = (0, le.A)(p).getInstance();
|
|
9319
9335
|
function F(oe) {
|
|
9320
9336
|
l = oe;
|
|
@@ -9412,65 +9428,65 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9412
9428
|
var f = K[0].getAdapter().getRegularPeriods()[0], N = H(/* @__PURE__ */ new Date(), f), S = f.mpd.timeShiftBufferDepth, L = isNaN(S) ? 0 : N - S;
|
|
9413
9429
|
if (z.start = k(K, L), z.end = !isNaN(z.start) && N < z.start ? N : k(K, N, !0), !isNaN(S) && z.end < N - S && (z.end = NaN), b.get().streaming.timeShiftBuffer.fallbackToSegmentTimeline) {
|
|
9414
9430
|
var R = w(K);
|
|
9415
|
-
if (R.range.end < z.start) return C.trigger(r.A.CONFORMANCE_VIOLATION, { level:
|
|
9431
|
+
if (R.range.end < z.start) return C.trigger(r.A.CONFORMANCE_VIOLATION, { level: xr.LEVELS.WARNING, event: xr.EVENTS.INVALID_DVR_WINDOW }), j(R.now, R.range), R.range;
|
|
9416
9432
|
}
|
|
9417
9433
|
return z;
|
|
9418
9434
|
})(oe);
|
|
9419
9435
|
}, reset: he }, e = It(p).getInstance(), he(), t;
|
|
9420
9436
|
}
|
|
9421
|
-
|
|
9422
|
-
var
|
|
9423
|
-
function
|
|
9424
|
-
return
|
|
9437
|
+
Lo.__dashjs_factory_name = "TimelineConverter";
|
|
9438
|
+
var Yu = h.A.getSingletonFactory(Lo), ga = M(8107), Oi = M(8667);
|
|
9439
|
+
function ma(t) {
|
|
9440
|
+
return ma = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
9425
9441
|
return typeof e;
|
|
9426
9442
|
} : function(e) {
|
|
9427
9443
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
9428
|
-
},
|
|
9444
|
+
}, ma(t);
|
|
9429
9445
|
}
|
|
9430
|
-
function
|
|
9431
|
-
return e =
|
|
9432
|
-
if (p && (
|
|
9446
|
+
function Hu(t, e, o) {
|
|
9447
|
+
return e = Mi(e), (function(l, p) {
|
|
9448
|
+
if (p && (ma(p) == "object" || typeof p == "function")) return p;
|
|
9433
9449
|
if (p !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
9434
9450
|
return (function(C) {
|
|
9435
9451
|
if (C === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9436
9452
|
return C;
|
|
9437
9453
|
})(l);
|
|
9438
|
-
})(t,
|
|
9454
|
+
})(t, Fo() ? Reflect.construct(e, [], Mi(t).constructor) : e.apply(t, o));
|
|
9439
9455
|
}
|
|
9440
|
-
function
|
|
9456
|
+
function Fo() {
|
|
9441
9457
|
try {
|
|
9442
9458
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {
|
|
9443
9459
|
})));
|
|
9444
9460
|
} catch {
|
|
9445
9461
|
}
|
|
9446
|
-
return (
|
|
9462
|
+
return (Fo = function() {
|
|
9447
9463
|
return !!t;
|
|
9448
9464
|
})();
|
|
9449
9465
|
}
|
|
9450
|
-
function
|
|
9451
|
-
return
|
|
9466
|
+
function Mi(t) {
|
|
9467
|
+
return Mi = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
9452
9468
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
9453
|
-
},
|
|
9469
|
+
}, Mi(t);
|
|
9454
9470
|
}
|
|
9455
|
-
function
|
|
9456
|
-
return
|
|
9471
|
+
function ya(t, e) {
|
|
9472
|
+
return ya = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, l) {
|
|
9457
9473
|
return o.__proto__ = l, o;
|
|
9458
|
-
},
|
|
9474
|
+
}, ya(t, e);
|
|
9459
9475
|
}
|
|
9460
|
-
var
|
|
9476
|
+
var Vu = (function(t) {
|
|
9461
9477
|
function e() {
|
|
9462
9478
|
var l;
|
|
9463
9479
|
return (function(p, C) {
|
|
9464
9480
|
if (!(p instanceof C)) throw new TypeError("Cannot call a class as a function");
|
|
9465
|
-
})(this, e), (l =
|
|
9481
|
+
})(this, e), (l = Hu(this, e)).captionData = null, l.label = null, l.defaultTrack = !1, l.kind = null, l.isFragmented = !1, l.isEmbedded = !1, l.isTTML = null, l;
|
|
9466
9482
|
}
|
|
9467
9483
|
return (function(l, p) {
|
|
9468
9484
|
if (typeof p != "function" && p !== null) throw new TypeError("Super expression must either be null or a function");
|
|
9469
|
-
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p &&
|
|
9485
|
+
l.prototype = Object.create(p && p.prototype, { constructor: { value: l, writable: !0, configurable: !0 } }), Object.defineProperty(l, "prototype", { writable: !1 }), p && ya(l, p);
|
|
9470
9486
|
})(e, t), o = e, Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
9471
9487
|
var o;
|
|
9472
|
-
})(
|
|
9473
|
-
function
|
|
9488
|
+
})(da), Ku = M(6877);
|
|
9489
|
+
function xo() {
|
|
9474
9490
|
var t = 0;
|
|
9475
9491
|
function e(F) {
|
|
9476
9492
|
for (var U = "", H = 0; H < F.length; ++H) U += F[H].uchar;
|
|
@@ -9546,15 +9562,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9546
9562
|
return ue;
|
|
9547
9563
|
} };
|
|
9548
9564
|
}
|
|
9549
|
-
|
|
9550
|
-
var
|
|
9551
|
-
function
|
|
9565
|
+
xo.__dashjs_factory_name = "EmbeddedTextHtmlRender";
|
|
9566
|
+
var Wu = h.A.getSingletonFactory(xo);
|
|
9567
|
+
function Uo(t) {
|
|
9552
9568
|
var e, o, l, p, C, b, F, U, H, B, w, j, k, se, ie, he, oe, te = t.errHandler, Z = t.manifestModel, K = t.mediaController, z = t.videoModel, f = t.textTracks, N = t.vttParser, S = t.vttCustomRenderingParser, L = t.ttmlParser, R = t.streamInfo, V = t.settings, de = this.context, ue = (0, y.A)(de).getInstance(), P = !1;
|
|
9553
9569
|
function $() {
|
|
9554
9570
|
b = null, U = NaN, H = [], B = null, F = !1, C = [], p = null;
|
|
9555
9571
|
}
|
|
9556
9572
|
function Y(Ze) {
|
|
9557
|
-
var at = new
|
|
9573
|
+
var at = new Vu();
|
|
9558
9574
|
for (var Nt in Ze) at[Nt] = Ze[Nt];
|
|
9559
9575
|
at.labels = Ze.labels, at.defaultTrack = (function(Ee) {
|
|
9560
9576
|
var Pe = !1;
|
|
@@ -9585,7 +9601,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9585
9601
|
for (p = p !== null ? p : Qe(sn), ln = 0; ln < Yt.length; ln++) {
|
|
9586
9602
|
var ut = Yt[ln], tt = ut.cts, gt = Me(), Dt = gt + tt / U, Vt = Dt + ut.duration / U;
|
|
9587
9603
|
e.buffered.add(Dt, Vt);
|
|
9588
|
-
var Gt = new DataView(qt, ut.offset, ut.subSizes[0]), Kt =
|
|
9604
|
+
var Gt = new DataView(qt, ut.offset, ut.subSizes[0]), Kt = Oi.Utils.dataViewToString(Gt, u.A.UTF8), Zt = [], pt = ut.offset + ut.subSizes[0];
|
|
9589
9605
|
for (ke = 1; ke < ut.subSizes.length; ke++) {
|
|
9590
9606
|
var Ot = new Uint8Array(qt, pt, ut.subSizes[ke]), Fe = String.fromCharCode.apply(null, Ot);
|
|
9591
9607
|
Zt.push(Fe), pt += ut.subSizes[ke];
|
|
@@ -9604,7 +9620,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9604
9620
|
tt.cts -= B;
|
|
9605
9621
|
var gt = Me() + tt.cts / U, Dt = gt + tt.duration / U;
|
|
9606
9622
|
e.buffered.add(gt, Dt);
|
|
9607
|
-
var Vt = qt.slice(tt.offset, tt.offset + tt.size), Gt =
|
|
9623
|
+
var Vt = qt.slice(tt.offset, tt.offset + tt.size), Gt = Oi.parseBuffer(Vt);
|
|
9608
9624
|
for (ln = 0; ln < Gt.boxes.length; ln++) {
|
|
9609
9625
|
var Kt = Gt.boxes[ln];
|
|
9610
9626
|
if (o.debug("VTT box1: " + Kt.type), Kt.type !== "vtte" && Kt.type === "vttc") {
|
|
@@ -9663,7 +9679,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9663
9679
|
}
|
|
9664
9680
|
})(Ze, at) : (function(Ke, yt, ht) {
|
|
9665
9681
|
var dt, qt, Yt = new DataView(Ke, 0, Ke.byteLength);
|
|
9666
|
-
qt =
|
|
9682
|
+
qt = Oi.Utils.dataViewToString(Yt, u.A.UTF8);
|
|
9667
9683
|
try {
|
|
9668
9684
|
dt = Qe(ht).parse(qt, 0), f.addCaptions(f.getCurrentTrackIdx(), 0, dt), e.buffered && e.buffered.add(yt.start, yt.end);
|
|
9669
9685
|
} catch (sn) {
|
|
@@ -9691,10 +9707,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9691
9707
|
}));
|
|
9692
9708
|
}
|
|
9693
9709
|
return e = { initialize: function() {
|
|
9694
|
-
P || (j = [], w = null, k = 0, he = [], se = null, ie = null, P = !0, oe =
|
|
9710
|
+
P || (j = [], w = null, k = 0, he = [], se = null, ie = null, P = !0, oe = Wu(de).getInstance(), ue.on(i.A.VIDEO_CHUNK_RECEIVED, ge, e), ue.on(i.A.BUFFER_CLEARED, $e, e));
|
|
9695
9711
|
}, addMediaInfos: function(Ze, at, Nt) {
|
|
9696
9712
|
if (C = C.concat(at), Ze === u.A.TEXT && at[0].isFragmented && !at[0].isEmbedded) {
|
|
9697
|
-
b = Nt, e.buffered = (0,
|
|
9713
|
+
b = Nt, e.buffered = (0, Ku.A)(de).create(), H = K.getTracksFor(u.A.TEXT, R.id).filter((function(Ke) {
|
|
9698
9714
|
return Ke.isFragmented;
|
|
9699
9715
|
}));
|
|
9700
9716
|
for (var Ee = K.getCurrentTrackFor(u.A.TEXT, R.id), Pe = 0; Pe < H.length; Pe++) if (H[Pe] === Ee) {
|
|
@@ -9721,17 +9737,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9721
9737
|
Ze === void 0 && Ze === at && (Ze = e.buffered.start(0), at = e.buffered.end(e.buffered.length - 1)), e.buffered.remove(Ze, at), f.deleteCuesFromTrackIdx(w, Ze, at);
|
|
9722
9738
|
}, reset: function() {
|
|
9723
9739
|
$(), C = [], l = null;
|
|
9724
|
-
} }, o = (0, g.A)(de).getInstance().getLogger(e), l = (0,
|
|
9740
|
+
} }, o = (0, g.A)(de).getInstance().getLogger(e), l = (0, Zr.A)(de).getInstance(), $(), e;
|
|
9725
9741
|
}
|
|
9726
|
-
|
|
9727
|
-
var
|
|
9728
|
-
function
|
|
9742
|
+
Uo.__dashjs_factory_name = "TextSourceBuffer";
|
|
9743
|
+
var zu = h.A.getClassFactory(Uo), Ea = M(6586);
|
|
9744
|
+
function Bo(t, e) {
|
|
9729
9745
|
(e == null || e > t.length) && (e = t.length);
|
|
9730
9746
|
for (var o = 0, l = Array(e); o < e; o++) l[o] = t[o];
|
|
9731
9747
|
return l;
|
|
9732
9748
|
}
|
|
9733
|
-
var
|
|
9734
|
-
function
|
|
9749
|
+
var Xu = ["text", "align", "fontSize", "id", "isd", "line", "lineAlign", "lineHeight", "linePadding", "position", "positionAlign", "region", "size", "snapToLines", "vertical"];
|
|
9750
|
+
function ko(t) {
|
|
9735
9751
|
var e, o, l, p, C, b, F, U, H, B, w, j, k, se, ie, he, oe, te, Z, K, z = this.context, f = (0, y.A)(z).getInstance(), N = t.videoModel, S = t.streamInfo, L = t.settings;
|
|
9736
9752
|
function R(ke, ut, tt, gt, Dt, Vt) {
|
|
9737
9753
|
var Gt = 0, Kt = 0;
|
|
@@ -9802,7 +9818,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9802
9818
|
if (w) {
|
|
9803
9819
|
ln.call(this);
|
|
9804
9820
|
var ut = document.createElement("div");
|
|
9805
|
-
w.appendChild(ut), he = (0,
|
|
9821
|
+
w.appendChild(ut), he = (0, Ea.renderHTML)(ke.isd, ut, (function(tt) {
|
|
9806
9822
|
return ue(ke, tt);
|
|
9807
9823
|
}), w.clientHeight, w.clientWidth, L.get().streaming.text.imsc.displayForcedOnlyMode, (function(tt) {
|
|
9808
9824
|
o.info("renderCaption :", tt);
|
|
@@ -9819,7 +9835,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9819
9835
|
if (JSON.stringify(tt[Gt]) !== JSON.stringify(gt[Gt])) return !1;
|
|
9820
9836
|
}
|
|
9821
9837
|
return !0;
|
|
9822
|
-
})(ut, ke,
|
|
9838
|
+
})(ut, ke, Xu) && (ut.endTime = Math.max(ut.endTime, ke.endTime), !0);
|
|
9823
9839
|
}
|
|
9824
9840
|
function ge(ke, ut) {
|
|
9825
9841
|
ut && ut.forEach((function(tt) {
|
|
@@ -9904,9 +9920,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9904
9920
|
if (!Gt) {
|
|
9905
9921
|
if (Array.isArray(Dt) || (Gt = (function(st, xe) {
|
|
9906
9922
|
if (st) {
|
|
9907
|
-
if (typeof st == "string") return
|
|
9923
|
+
if (typeof st == "string") return Bo(st, xe);
|
|
9908
9924
|
var Ge = {}.toString.call(st).slice(8, -1);
|
|
9909
|
-
return Ge === "Object" && st.constructor && (Ge = st.constructor.name), Ge === "Map" || Ge === "Set" ? Array.from(st) : Ge === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ge) ?
|
|
9925
|
+
return Ge === "Object" && st.constructor && (Ge = st.constructor.name), Ge === "Map" || Ge === "Set" ? Array.from(st) : Ge === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ge) ? Bo(st, xe) : void 0;
|
|
9910
9926
|
}
|
|
9911
9927
|
})(Dt)) || Vt) {
|
|
9912
9928
|
Gt && (Dt = Gt);
|
|
@@ -10080,9 +10096,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10080
10096
|
}
|
|
10081
10097
|
} }, o = (0, g.A)(z).getInstance().getLogger(e), e;
|
|
10082
10098
|
}
|
|
10083
|
-
|
|
10084
|
-
var
|
|
10085
|
-
function
|
|
10099
|
+
ko.__dashjs_factory_name = "TextTracks";
|
|
10100
|
+
var Qu = h.A.getClassFactory(ko);
|
|
10101
|
+
function Go() {
|
|
10086
10102
|
var t, e, o, l, p, C, b = this.context;
|
|
10087
10103
|
function F(w) {
|
|
10088
10104
|
var j = w.split(":"), k = j.length - 1;
|
|
@@ -10128,9 +10144,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10128
10144
|
return se;
|
|
10129
10145
|
}, getCaptionStyles: H }, e = (0, g.A)(b).getInstance().getLogger(t), o = /(?:\r\n|\r|\n)/gm, l = /-->/, p = /(^[\s]+|[\s]+$)/g, C = /\s\b/g, t;
|
|
10130
10146
|
}
|
|
10131
|
-
|
|
10132
|
-
var
|
|
10133
|
-
function
|
|
10147
|
+
Go.__dashjs_factory_name = "VTTParser";
|
|
10148
|
+
var $u = h.A.getSingletonFactory(Go);
|
|
10149
|
+
function jo() {
|
|
10134
10150
|
var t, e;
|
|
10135
10151
|
return t = { parse: function(o) {
|
|
10136
10152
|
var l = [];
|
|
@@ -10144,13 +10160,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10144
10160
|
}
|
|
10145
10161
|
})(), t;
|
|
10146
10162
|
}
|
|
10147
|
-
|
|
10148
|
-
var
|
|
10149
|
-
function
|
|
10163
|
+
jo.__dashjs_factory_name = "VttCustomRenderingParser";
|
|
10164
|
+
var Ju = h.A.getSingletonFactory(jo);
|
|
10165
|
+
function qo() {
|
|
10150
10166
|
var t, e, o = this.context, l = (0, y.A)(o).getInstance(), p = 0;
|
|
10151
10167
|
return t = { parse: function(C, b, F, U, H) {
|
|
10152
10168
|
var B, w, j, k = "", se = [], ie = {}, he = {}, oe = "", te = "", Z = { onOpenTag: function(S, L, R) {
|
|
10153
|
-
if (R[" imagetype"] && !R[" imageType"] && (l.trigger(r.A.CONFORMANCE_VIOLATION, { level:
|
|
10169
|
+
if (R[" imagetype"] && !R[" imageType"] && (l.trigger(r.A.CONFORMANCE_VIOLATION, { level: xr.LEVELS.ERROR, event: xr.EVENTS.NON_COMPLIANT_SMPTE_IMAGE_ATTRIBUTE }), R[" imageType"] = R[" imagetype"]), L === "image" && (S === "http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt" || S === "http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt")) {
|
|
10154
10170
|
if (!R[" imageType"] || R[" imageType"].value !== "PNG") return void e.warn("smpte-tt imageType != PNG. Discarded");
|
|
10155
10171
|
oe = R["http://www.w3.org/XML/1998/namespace id"].value;
|
|
10156
10172
|
}
|
|
@@ -10161,13 +10177,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10161
10177
|
} };
|
|
10162
10178
|
if (!C) throw k = "no ttml data to parse", new Error(k);
|
|
10163
10179
|
ie.data = C, l.trigger(i.A.TTML_TO_PARSE, ie);
|
|
10164
|
-
var K = (0,
|
|
10180
|
+
var K = (0, Ea.fromXML)(ie.data, (function(S) {
|
|
10165
10181
|
k = S;
|
|
10166
10182
|
}), Z);
|
|
10167
10183
|
l.trigger(i.A.TTML_PARSED, { ttmlString: ie.data, ttmlDoc: K });
|
|
10168
10184
|
var z, f = K.getMediaTimeEvents();
|
|
10169
10185
|
for (j = 0; j < f.length; j++) {
|
|
10170
|
-
var N = (0,
|
|
10186
|
+
var N = (0, Ea.generateISD)(K, f[j], (function(S) {
|
|
10171
10187
|
k = S;
|
|
10172
10188
|
}));
|
|
10173
10189
|
N.contents.some((function(S) {
|
|
@@ -10178,16 +10194,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10178
10194
|
return se;
|
|
10179
10195
|
} }, e = (0, g.A)(o).getInstance().getLogger(t), t;
|
|
10180
10196
|
}
|
|
10181
|
-
|
|
10182
|
-
var
|
|
10183
|
-
function
|
|
10184
|
-
return
|
|
10197
|
+
qo.__dashjs_factory_name = "TTMLParser";
|
|
10198
|
+
var Zu = h.A.getSingletonFactory(qo);
|
|
10199
|
+
function ci(t) {
|
|
10200
|
+
return ci = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
10185
10201
|
return typeof e;
|
|
10186
10202
|
} : function(e) {
|
|
10187
10203
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
10188
|
-
},
|
|
10204
|
+
}, ci(t);
|
|
10189
10205
|
}
|
|
10190
|
-
function
|
|
10206
|
+
function Yo(t, e) {
|
|
10191
10207
|
var o = Object.keys(t);
|
|
10192
10208
|
if (Object.getOwnPropertySymbols) {
|
|
10193
10209
|
var l = Object.getOwnPropertySymbols(t);
|
|
@@ -10197,38 +10213,38 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10197
10213
|
}
|
|
10198
10214
|
return o;
|
|
10199
10215
|
}
|
|
10200
|
-
function
|
|
10216
|
+
function Ho(t) {
|
|
10201
10217
|
for (var e = 1; e < arguments.length; e++) {
|
|
10202
10218
|
var o = arguments[e] != null ? arguments[e] : {};
|
|
10203
|
-
e % 2 ?
|
|
10204
|
-
|
|
10205
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o)) :
|
|
10219
|
+
e % 2 ? Yo(Object(o), !0).forEach((function(l) {
|
|
10220
|
+
el(t, l, o[l]);
|
|
10221
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o)) : Yo(Object(o)).forEach((function(l) {
|
|
10206
10222
|
Object.defineProperty(t, l, Object.getOwnPropertyDescriptor(o, l));
|
|
10207
10223
|
}));
|
|
10208
10224
|
}
|
|
10209
10225
|
return t;
|
|
10210
10226
|
}
|
|
10211
|
-
function
|
|
10227
|
+
function el(t, e, o) {
|
|
10212
10228
|
return (e = (function(l) {
|
|
10213
10229
|
var p = (function(C) {
|
|
10214
|
-
if (
|
|
10230
|
+
if (ci(C) != "object" || !C) return C;
|
|
10215
10231
|
var b = C[Symbol.toPrimitive];
|
|
10216
10232
|
if (b !== void 0) {
|
|
10217
10233
|
var F = b.call(C, "string");
|
|
10218
|
-
if (
|
|
10234
|
+
if (ci(F) != "object") return F;
|
|
10219
10235
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
10220
10236
|
}
|
|
10221
10237
|
return String(C);
|
|
10222
10238
|
})(l);
|
|
10223
|
-
return
|
|
10239
|
+
return ci(p) == "symbol" ? p : p + "";
|
|
10224
10240
|
})(e)) in t ? Object.defineProperty(t, e, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = o, t;
|
|
10225
10241
|
}
|
|
10226
|
-
function
|
|
10242
|
+
function Vo(t, e) {
|
|
10227
10243
|
(e == null || e > t.length) && (e = t.length);
|
|
10228
10244
|
for (var o = 0, l = Array(e); o < e; o++) l[o] = t[o];
|
|
10229
10245
|
return l;
|
|
10230
10246
|
}
|
|
10231
|
-
function
|
|
10247
|
+
function Ko(t) {
|
|
10232
10248
|
var e, o, l, p = this.context, C = (0, y.A)(p).getInstance(), b = (0, Ae.A)(p).getInstance(), F = t.adapter, U = t.baseURLController, H = "error", B = "loaded", w = "unloaded";
|
|
10233
10249
|
function j(ie, he) {
|
|
10234
10250
|
var oe, te, Z = !1;
|
|
@@ -10253,7 +10269,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10253
10269
|
}
|
|
10254
10270
|
function k(ie, he) {
|
|
10255
10271
|
var oe = l[ie];
|
|
10256
|
-
l[ie] =
|
|
10272
|
+
l[ie] = Ho(Ho({}, oe), {}, { status: he });
|
|
10257
10273
|
}
|
|
10258
10274
|
function se() {
|
|
10259
10275
|
l = [];
|
|
@@ -10282,9 +10298,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10282
10298
|
if (!z) {
|
|
10283
10299
|
if (Array.isArray(Z) || (z = (function(V, de) {
|
|
10284
10300
|
if (V) {
|
|
10285
|
-
if (typeof V == "string") return
|
|
10301
|
+
if (typeof V == "string") return Vo(V, de);
|
|
10286
10302
|
var ue = {}.toString.call(V).slice(8, -1);
|
|
10287
|
-
return ue === "Object" && V.constructor && (ue = V.constructor.name), ue === "Map" || ue === "Set" ? Array.from(V) : ue === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ue) ?
|
|
10303
|
+
return ue === "Object" && V.constructor && (ue = V.constructor.name), ue === "Map" || ue === "Set" ? Array.from(V) : ue === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ue) ? Vo(V, de) : void 0;
|
|
10288
10304
|
}
|
|
10289
10305
|
})(Z)) || K) {
|
|
10290
10306
|
z && (Z = z);
|
|
@@ -10328,9 +10344,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10328
10344
|
})(), se();
|
|
10329
10345
|
} }, o = (0, g.A)(p).getInstance().getLogger(e), se(), e;
|
|
10330
10346
|
}
|
|
10331
|
-
|
|
10332
|
-
var
|
|
10333
|
-
function
|
|
10347
|
+
Ko.__dashjs_factory_name = "DVBFonts";
|
|
10348
|
+
var tl = h.A.getClassFactory(Ko);
|
|
10349
|
+
function Wo(t) {
|
|
10334
10350
|
var e, o, l, p, C, b, F, U, H, B, w, j, k, se, ie = this.context, he = t.adapter, oe = t.errHandler, te = t.manifestModel, Z = t.mediaController, K = t.baseURLController, z = t.videoModel, f = t.settings;
|
|
10335
10351
|
function N(Y) {
|
|
10336
10352
|
if (se.error("Could not download ".concat(Y.isEssential ? "an essential" : "a", " font - fontFamily: ").concat(Y.fontFamily, ", url: ").concat(Y.url)), Y.isEssential) {
|
|
@@ -10417,11 +10433,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10417
10433
|
l[ge] && l[ge].resetMediaInfos(), p[ge] && p[ge].deleteAllTextTracks();
|
|
10418
10434
|
}
|
|
10419
10435
|
}, initialize: function() {
|
|
10420
|
-
k =
|
|
10436
|
+
k = tl(ie).create({ adapter: he, baseURLController: K }), U.on(i.A.TEXT_TRACKS_QUEUE_INITIALIZED, L, e), U.on(i.A.DVB_FONT_DOWNLOAD_FAILED, N, e), U.on(i.A.DVB_FONT_DOWNLOAD_COMPLETE, S, e), f.get().streaming.text.webvtt.customRenderingEnabled && (U.on(i.A.PLAYBACK_TIME_UPDATED, R, e), U.on(i.A.PLAYBACK_SEEKING, V, e));
|
|
10421
10437
|
}, initializeForStream: function(Y) {
|
|
10422
|
-
var ge = Y.id, ve =
|
|
10438
|
+
var ge = Y.id, ve = Qu(ie).create({ videoModel: z, settings: f, streamInfo: Y });
|
|
10423
10439
|
ve.initialize(), p[ge] = ve;
|
|
10424
|
-
var fe =
|
|
10440
|
+
var fe = zu(ie).create({ errHandler: oe, adapter: he, dvbFonts: k, manifestModel: te, mediaController: Z, videoModel: z, textTracks: ve, vttParser: C, vttCustomRenderingParser: b, ttmlParser: F, streamInfo: Y, settings: f });
|
|
10425
10441
|
fe.initialize(), l[ge] = fe, o[ge] = {}, o[ge].lastEnabledIndex = -1;
|
|
10426
10442
|
}, createTracks: function(Y) {
|
|
10427
10443
|
var ge = Y.id;
|
|
@@ -10445,11 +10461,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10445
10461
|
k.reset(), $(), U.off(i.A.TEXT_TRACKS_QUEUE_INITIALIZED, L, e), U.off(i.A.DVB_FONT_DOWNLOAD_FAILED, N, e), U.off(i.A.DVB_FONT_DOWNLOAD_COMPLETE, S, e), f.get().streaming.text.webvtt.customRenderingEnabled && (U.off(i.A.PLAYBACK_TIME_UPDATED, R, e), U.off(i.A.PLAYBACK_SEEKING, V, e)), Object.keys(l).forEach((function(Y) {
|
|
10446
10462
|
l[Y].resetEmbedded(), l[Y].reset();
|
|
10447
10463
|
}));
|
|
10448
|
-
} }, B = !1, w = !1, j = !1, C =
|
|
10464
|
+
} }, B = !1, w = !1, j = !1, C = $u(ie).getInstance(), b = Ju(ie).getInstance(), F = Zu(ie).getInstance(), U = (0, y.A)(ie).getInstance(), se = (0, g.A)(ie).getInstance().getLogger(e), $(), e;
|
|
10449
10465
|
}
|
|
10450
|
-
|
|
10451
|
-
var
|
|
10452
|
-
function
|
|
10466
|
+
Wo.__dashjs_factory_name = "TextController";
|
|
10467
|
+
var nl = h.A.getClassFactory(Wo);
|
|
10468
|
+
function _a() {
|
|
10453
10469
|
var t, e, o, l, p, C, b, F, U, H, B, w, j, k, se, ie, he, oe, te, Z, K, z, f, N, S, L, R, V, de, ue, P, $, Y, ge, ve, fe, Ce, Me, Qe, $e = "You must first call initialize() and set a source before calling this method", Ze = "You must first call initialize() and set a valid source and view before calling this method", at = "You must first call attachView() to set the video element before calling this method", Nt = "You must first call attachSource() with a valid source before calling this method", Ee = "MediaPlayer not initialized!", Pe = this.context, ct = (0, y.A)(Pe).getInstance(), Ke = (0, le.A)(Pe).getInstance(), yt = (0, g.A)(Pe).getInstance({ settings: Ke });
|
|
10454
10470
|
function ht() {
|
|
10455
10471
|
Zt(null), Gt(null), l = null, k && (k.reset(), k = null), se && (se.reset(), se = null), Z && Z.reset(), Ke.reset(), he && (he.reset(), he = null);
|
|
@@ -10458,7 +10474,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10458
10474
|
return !!o && !!fe.getElement();
|
|
10459
10475
|
}
|
|
10460
10476
|
function qt() {
|
|
10461
|
-
return (0,
|
|
10477
|
+
return (0, nu.i)();
|
|
10462
10478
|
}
|
|
10463
10479
|
function Yt() {
|
|
10464
10480
|
if (!b) throw Ze;
|
|
@@ -10519,7 +10535,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10519
10535
|
})(), (function() {
|
|
10520
10536
|
if (!ie) {
|
|
10521
10537
|
var Te = dashjs.MssHandler;
|
|
10522
|
-
typeof Te == "function" && (me.extend(Te.errors), ie = Te(Pe).create({ eventBus: ct, mediaPlayerModel: te, dashMetrics: $, manifestModel: Y, playbackController: V, streamController: S, protectionController: k, baseURLController: z, errHandler: K, events: i.A, constants: u.A, debug: yt, initSegmentType: je.G.INIT_SEGMENT_TYPE, BASE64:
|
|
10538
|
+
typeof Te == "function" && (me.extend(Te.errors), ie = Te(Pe).create({ eventBus: ct, mediaPlayerModel: te, dashMetrics: $, manifestModel: Y, playbackController: V, streamController: S, protectionController: k, baseURLController: z, errHandler: K, events: i.A, constants: u.A, debug: yt, initSegmentType: je.G.INIT_SEGMENT_TYPE, BASE64: ga, ISOBoxer: Oi, settings: Ke }));
|
|
10523
10539
|
}
|
|
10524
10540
|
})(), S && S.switchToVideoElement(U)), b && Ot(), lt(U);
|
|
10525
10541
|
}
|
|
@@ -10542,14 +10558,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10542
10558
|
b = !1, C = !1, oe.reset(), S.reset(), R.reset(), P.reset(), V.reset(), de.reset(), ue.reset(), H.reset(), j.reset(), Qe.reset(), k && (Ke.get().streaming.protection.keepProtectionMediaKeys ? k.stop() : (k.reset(), k = null, st())), L.reset(), ge.reset(), ve.reset();
|
|
10543
10559
|
}
|
|
10544
10560
|
function Fe() {
|
|
10545
|
-
return
|
|
10561
|
+
return ks(Pe).create({ debug: yt, errHandler: K, dashMetrics: $, mediaPlayerModel: te, requestModifier: (0, De.A)(Pe).getInstance(), mssHandler: ie, settings: Ke });
|
|
10546
10562
|
}
|
|
10547
10563
|
function st() {
|
|
10548
10564
|
if (k) return k;
|
|
10549
10565
|
var ye = dashjs.Protection;
|
|
10550
10566
|
if (typeof ye == "function") {
|
|
10551
10567
|
var Te = ye(Pe).create();
|
|
10552
|
-
return i.A.extend(ye.events), r.A.extend(ye.events, { publicOnly: !0 }), me.extend(ye.errors), f || (f = (0,
|
|
10568
|
+
return i.A.extend(ye.events), r.A.extend(ye.events, { publicOnly: !0 }), me.extend(ye.errors), f || (f = (0, ao.A)(Pe).getInstance()), k = Te.createProtectionSystem({ debug: yt, errHandler: K, videoModel: fe, customParametersModel: Z, capabilities: f, eventBus: ct, events: i.A, BASE64: ga, constants: u.A, cmcdModel: ge, settings: Ke });
|
|
10553
10569
|
}
|
|
10554
10570
|
return null;
|
|
10555
10571
|
}
|
|
@@ -10559,7 +10575,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10559
10575
|
var ye = dashjs.OfflineController;
|
|
10560
10576
|
if (typeof ye == "function") {
|
|
10561
10577
|
i.A.extend(ye.events), r.A.extend(ye.events, { publicOnly: !0 }), me.extend(ye.errors);
|
|
10562
|
-
var Te = Fe(), We =
|
|
10578
|
+
var Te = Fe(), We = Sa(Pe).create();
|
|
10563
10579
|
return We.setConfig({ manifestModel: Y, adapter: oe, manifestLoader: Te, errHandler: K, contentSteeringController: ue }), he = ye(Pe).create({ debug: yt, manifestUpdater: We, baseURLController: z, manifestLoader: Te, manifestModel: Y, mediaPlayerModel: te, abrController: H, playbackController: V, adapter: oe, errHandler: K, dashMetrics: $, timelineConverter: w, segmentBaseController: Qe, schemeLoaderFactory: B, eventBus: ct, events: i.A, errors: me, constants: u.A, settings: Ke, dashConstants: n.A, urlUtils: (0, Ae.A)(Pe).getInstance() });
|
|
10564
10580
|
}
|
|
10565
10581
|
return null;
|
|
@@ -10570,11 +10586,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10570
10586
|
}
|
|
10571
10587
|
function lt() {
|
|
10572
10588
|
var ye, Te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : NaN;
|
|
10573
|
-
he && he.resetRecords(), !C && o && (C = !0, e.info("Streaming Initialized"), ye = Fe(), S || (S =
|
|
10589
|
+
he && he.resetRecords(), !C && o && (C = !0, e.info("Streaming Initialized"), ye = Fe(), S || (S = Na(Pe).getInstance()), L || (L = nl(Pe).create({ errHandler: K, manifestModel: Y, adapter: oe, mediaController: j, baseURLController: z, videoModel: fe, settings: Ke })), N.setConfig({ capabilities: f, customParametersModel: Z, adapter: oe, settings: Ke, manifestModel: Y, errHandler: K }), S.setConfig({ capabilities: f, capabilitiesFilter: N, manifestLoader: ye, manifestModel: Y, mediaPlayerModel: te, customParametersModel: Z, protectionController: k, textController: L, adapter: oe, dashMetrics: $, errHandler: K, timelineConverter: w, videoModel: fe, playbackController: V, serviceDescriptionController: de, contentSteeringController: ue, abrController: H, mediaController: j, settings: Ke, baseURLController: z, uriFragmentModel: Ce, segmentBaseController: Qe }), R.setConfig({ settings: Ke, playbackController: V, streamController: S, videoModel: fe, timelineConverter: w, adapter: oe }), V.setConfig({ streamController: S, serviceDescriptionController: de, dashMetrics: $, adapter: oe, videoModel: fe, timelineConverter: w, settings: Ke }), P.setConfig({ streamController: S, playbackController: V, mediaPlayerModel: te, videoModel: fe, settings: Ke }), H.setConfig({ streamController: S, domStorage: Me, mediaPlayerModel: te, customParametersModel: Z, cmsdModel: ve, dashMetrics: $, adapter: oe, videoModel: fe, settings: Ke }), ge.setConfig({ abrController: H, dashMetrics: $, playbackController: V }), ve.setConfig({}), H.initialize(), S.initialize(F, l), L.initialize(), R.initialize(), P.initialize(), ge.initialize(), ve.initialize(), ue.initialize(), Qe.initialize(), typeof o == "string" ? S.load(o, Te) : S.loadWithManifest(o, Te)), !b && dt() && (b = !0, e.info("Playback Initialized"));
|
|
10574
10590
|
}
|
|
10575
10591
|
return t = { initialize: function(ye, Te, We) {
|
|
10576
10592
|
var wt = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : NaN;
|
|
10577
|
-
f || (f = (0,
|
|
10593
|
+
f || (f = (0, ao.A)(Pe).getInstance()).setConfig({ settings: Ke }), K || (K = Gs(Pe).getInstance()), f.supportsMediaSource() ? (p || (p = !0, w = Yu(Pe).getInstance(), H || (H = $s(Pe).getInstance()).setConfig({ settings: Ke }), B || (B = bn(Pe).getInstance()), V || (V = d(Pe).getInstance()), j || (j = as(Pe).getInstance()), S || (S = Na(Pe).getInstance()), R || (R = ts(Pe).getInstance()), P || (P = ns(Pe).getInstance()), de || (de = is(Pe).getInstance()), ue || (ue = ni(Pe).getInstance()), N || (N = js(Pe).getInstance()), oe = Eu(Pe).getInstance(), Y = Vs(Pe).getInstance(), ge = Tn(Pe).getInstance(), ve = zr(Pe).getInstance(), $ = qu(Pe).getInstance({ settings: Ke }), Me = tu(Pe).getInstance({ settings: Ke }), oe.setConfig({ constants: u.A, cea608parser: I(), errHandler: K, BASE64: ga }), z || (z = ds(Pe).create()), z.setConfig({ adapter: oe, contentSteeringController: ue }), de.setConfig({ adapter: oe }), Qe || (Qe = au(Pe).getInstance({ dashMetrics: $, mediaPlayerModel: te, errHandler: K, baseURLController: z, events: i.A, eventBus: ct, debug: yt, boxParser: (0, Zr.A)(Pe).getInstance(), requestModifier: (0, De.A)(Pe).getInstance(), errors: me })), j.setConfig({ domStorage: Me, settings: Ke, customParametersModel: Z }), te.setConfig({ playbackController: V, serviceDescriptionController: de }), ue.setConfig({ adapter: oe, errHandler: K, dashMetrics: $, mediaPlayerModel: te, manifestModel: Y, serviceDescriptionController: de, eventBus: ct, requestModifier: (0, De.A)(Pe).getInstance() }), gt(), tt(We === void 0 || We), xe()), ye && Gt(ye), Te && Zt(Te, wt), e.info("[dash.js " + qt() + "] MediaPlayer has been initialized")) : K.error(new pe.A(me.CAPABILITY_MEDIASOURCE_ERROR_CODE, me.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE));
|
|
10578
10594
|
}, setConfig: function(ye) {
|
|
10579
10595
|
ye && (ye.capabilities && (f = ye.capabilities), ye.capabilitiesFilter && (N = ye.capabilitiesFilter), ye.streamController && (S = ye.streamController), ye.textController && (L = ye.textController), ye.gapController && (R = ye.gapController), ye.playbackController && (V = ye.playbackController), ye.serviceDescriptionController && (de = ye.serviceDescriptionController), ye.contentSteeringController && (ue = ye.contentSteeringController), ye.catchupController && (P = ye.catchupController), ye.mediaPlayerModel && (te = ye.mediaPlayerModel), ye.customParametersModel && (Z = ye.customParametersModel), ye.abrController && (H = ye.abrController), ye.schemeLoaderFactory && (B = ye.schemeLoaderFactory), ye.mediaController && (j = ye.mediaController), ye.settings && (Ke = ye.settings));
|
|
10580
10596
|
}, on: function(ye, Te, We, wt) {
|
|
@@ -10825,12 +10841,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10825
10841
|
Ke.reset();
|
|
10826
10842
|
}, reset: ht, destroy: function() {
|
|
10827
10843
|
ht(), h.A.deleteSingletonInstances(Pe);
|
|
10828
|
-
} }, e = yt.getLogger(t), p = !1, b = !1, C = !1, F = !0, U = NaN, k = null, he = null, l = null, oe = null, Qe = null, i.A.extend(r.A), te =
|
|
10844
|
+
} }, e = yt.getLogger(t), p = !1, b = !1, C = !1, F = !0, U = NaN, k = null, he = null, l = null, oe = null, Qe = null, i.A.extend(r.A), te = Ks(Pe).getInstance(), Z = (0, Lt.A)(Pe).getInstance(), fe = Zs(Pe).getInstance(), Ce = Hs(Pe).getInstance(), t;
|
|
10829
10845
|
}
|
|
10830
|
-
|
|
10831
|
-
var
|
|
10832
|
-
|
|
10833
|
-
var
|
|
10846
|
+
_a.__dashjs_factory_name = "MediaPlayer";
|
|
10847
|
+
var Pi = h.A.getClassFactory(_a);
|
|
10848
|
+
Pi.events = r.A, Pi.errors = me, h.A.updateClassFactory(_a.__dashjs_factory_name, Pi);
|
|
10849
|
+
var rl = Pi;
|
|
10834
10850
|
}, 7547: function(vt, Le, M) {
|
|
10835
10851
|
function ce(i) {
|
|
10836
10852
|
return ce = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(h) {
|
|
@@ -11080,16 +11096,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11080
11096
|
return Ae = { report: function(Qt, nn) {
|
|
11081
11097
|
Array.isArray(nn) || (nn = [nn]), Xe && Tt.isEnabled() && nn.forEach((function(yn) {
|
|
11082
11098
|
var xn = Re.serialise(yn);
|
|
11083
|
-
Qt !== Mt.DVB_ERRORS && (xn = "metricname=".concat(Qt, "&").concat(xn)), (function(
|
|
11099
|
+
Qt !== Mt.DVB_ERRORS && (xn = "metricname=".concat(Qt, "&").concat(xn)), (function(Hn, An, Un) {
|
|
11084
11100
|
var Sn = new XMLHttpRequest();
|
|
11085
11101
|
Sn.withCredentials = _e.getXHRWithCredentialsForType(Mt.HTTP_REQUEST_DVB_REPORTING_TYPE);
|
|
11086
|
-
var
|
|
11087
|
-
var
|
|
11088
|
-
|
|
11102
|
+
var Gn = function() {
|
|
11103
|
+
var Vn = Ut.indexOf(Sn);
|
|
11104
|
+
Vn !== -1 && (Ut.splice(Vn, 1), !(Sn.status >= 200 && Sn.status < 300) && Un && Un());
|
|
11089
11105
|
};
|
|
11090
11106
|
Ut.push(Sn);
|
|
11091
11107
|
try {
|
|
11092
|
-
Sn.open("GET",
|
|
11108
|
+
Sn.open("GET", Hn), Sn.onloadend = Gn, Sn.onerror = Gn, Sn.send();
|
|
11093
11109
|
} catch {
|
|
11094
11110
|
Sn.onerror();
|
|
11095
11111
|
}
|
|
@@ -11569,7 +11585,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11569
11585
|
return ce(et) == "symbol" ? et : et + "";
|
|
11570
11586
|
}
|
|
11571
11587
|
M.d(Le, { default: function() {
|
|
11572
|
-
return
|
|
11588
|
+
return Tr;
|
|
11573
11589
|
} });
|
|
11574
11590
|
var n = { attributes: ["Laurl", "laurl"], prefixes: ["clearkey", "dashif"] }, _ = (function() {
|
|
11575
11591
|
function ot() {
|
|
@@ -11736,21 +11752,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11736
11752
|
xt || Xt ? xt && Tn() : (function(fn, Fn) {
|
|
11737
11753
|
if (!Xt) {
|
|
11738
11754
|
Xt = !0;
|
|
11739
|
-
var On,
|
|
11755
|
+
var On, jn = [];
|
|
11740
11756
|
fn = fn.sort((function(Mn, Rn) {
|
|
11741
11757
|
return (bt && bt[Mn.ks.systemString] && bt[Mn.ks.systemString].priority >= 0 ? bt[Mn.ks.systemString].priority : fn.length) - (bt && bt[Rn.ks.systemString] && bt[Rn.ks.systemString].priority >= 0 ? bt[Rn.ks.systemString].priority : fn.length);
|
|
11742
11758
|
}));
|
|
11743
11759
|
for (var bn = 0; bn < fn.length; bn++) {
|
|
11744
|
-
var Jn =
|
|
11745
|
-
|
|
11760
|
+
var Jn = br(fn[bn]);
|
|
11761
|
+
jn.push({ ks: fn[bn].ks, configs: [Jn], protData: fn[bn].protData });
|
|
11746
11762
|
}
|
|
11747
|
-
Wt.requestKeySystemAccess(
|
|
11763
|
+
Wt.requestKeySystemAccess(jn).then((function(Mn) {
|
|
11748
11764
|
var Rn = (On = Mn.data).mksa && On.mksa.selectedSystemString ? On.mksa.selectedSystemString : On.keySystem.systemString;
|
|
11749
11765
|
return rt.info("DRM: KeySystem Access Granted for system string (" + Rn + ")! Selecting key system..."), Wt.selectKeySystem(On);
|
|
11750
11766
|
})).then((function(Mn) {
|
|
11751
11767
|
if (xt = Mn, Xt = !1, Wt) {
|
|
11752
11768
|
Ht.trigger(an.KEY_SYSTEM_SELECTED, { data: On });
|
|
11753
|
-
var Rn =
|
|
11769
|
+
var Rn = kn(xt);
|
|
11754
11770
|
Rn && Rn.serverCertificate && Rn.serverCertificate.length > 0 && Wt.setServerCertificate(vn.decodeArray(Rn.serverCertificate).buffer), Tn();
|
|
11755
11771
|
}
|
|
11756
11772
|
})).catch((function(Mn) {
|
|
@@ -11761,19 +11777,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11761
11777
|
}
|
|
11762
11778
|
function Tn() {
|
|
11763
11779
|
for (var Lt, en = 0; en < we.length; en++) for (Lt = 0; Lt < we[en].length; Lt++) if (xt === we[en][Lt].ks) {
|
|
11764
|
-
|
|
11780
|
+
Yn(we[en][Lt]);
|
|
11765
11781
|
break;
|
|
11766
11782
|
}
|
|
11767
11783
|
we = [];
|
|
11768
11784
|
}
|
|
11769
|
-
function
|
|
11785
|
+
function Yn(Lt) {
|
|
11770
11786
|
if (_t.isClearKey(xt) && Lt.protData && Lt.protData.hasOwnProperty("clearkeys") && Object.keys(Lt.protData.clearkeys).length !== 0) {
|
|
11771
11787
|
var en = { kids: Object.keys(Lt.protData.clearkeys) };
|
|
11772
11788
|
Lt.initData = new TextEncoder().encode(JSON.stringify(en));
|
|
11773
11789
|
}
|
|
11774
|
-
Lt.sessionId ?
|
|
11790
|
+
Lt.sessionId ? Kn(Lt) : Lt.initData !== null && In(Lt);
|
|
11775
11791
|
}
|
|
11776
|
-
function
|
|
11792
|
+
function Kn(Lt) {
|
|
11777
11793
|
un(), Wt.loadKeySession(Lt);
|
|
11778
11794
|
}
|
|
11779
11795
|
function In(Lt) {
|
|
@@ -11795,7 +11811,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11795
11811
|
}
|
|
11796
11812
|
} else Lt && Lt.initData ? Wt.createKeySession(Lt) : Ht.trigger(an.KEY_SESSION_CREATED, { data: null, error: new x.A(W.KEY_SESSION_CREATED_ERROR_CODE, W.KEY_SESSION_CREATED_ERROR_MESSAGE + "Selected key system is " + (xt ? xt.systemString : null) + ". needkey/encrypted event contains no initData corresponding to that key system!") });
|
|
11797
11813
|
}
|
|
11798
|
-
function
|
|
11814
|
+
function kn(Lt) {
|
|
11799
11815
|
if (Lt) {
|
|
11800
11816
|
var en = Lt.systemString;
|
|
11801
11817
|
if (bt) return en in bt ? bt[en] : null;
|
|
@@ -11811,73 +11827,73 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11811
11827
|
return !1;
|
|
11812
11828
|
}
|
|
11813
11829
|
}
|
|
11814
|
-
function
|
|
11815
|
-
un(), Lt ? (Wt.setMediaElement(Lt), Ht.on(an.NEED_KEY,
|
|
11830
|
+
function zn(Lt) {
|
|
11831
|
+
un(), Lt ? (Wt.setMediaElement(Lt), Ht.on(an.NEED_KEY, Qr, et)) : Lt === null && (Wt.setMediaElement(Lt), Ht.off(an.NEED_KEY, Qr, et));
|
|
11816
11832
|
}
|
|
11817
|
-
function
|
|
11818
|
-
var en = Lt.protData, fn = [], Fn = [], On = en && en.audioRobustness && en.audioRobustness.length > 0 ? en.audioRobustness : Bt,
|
|
11833
|
+
function br(Lt) {
|
|
11834
|
+
var en = Lt.protData, fn = [], Fn = [], On = en && en.audioRobustness && en.audioRobustness.length > 0 ? en.audioRobustness : Bt, jn = en && en.videoRobustness && en.videoRobustness.length > 0 ? en.videoRobustness : Bt, bn = Lt.sessionType, Jn = en && en.distinctiveIdentifier ? en.distinctiveIdentifier : "optional", Mn = en && en.persistentState ? en.persistentState : bn === "temporary" ? "optional" : "required";
|
|
11819
11835
|
return Je.forEach((function(Rn) {
|
|
11820
|
-
Rn.type === tn.AUDIO ? fn.push(new i(Rn.codec, On)) : Rn.type === tn.VIDEO && Fn.push(new i(Rn.codec,
|
|
11836
|
+
Rn.type === tn.AUDIO ? fn.push(new i(Rn.codec, On)) : Rn.type === tn.VIDEO && Fn.push(new i(Rn.codec, jn));
|
|
11821
11837
|
})), new g(fn, Fn, Jn, Mn, [bn]);
|
|
11822
11838
|
}
|
|
11823
|
-
function
|
|
11839
|
+
function yr(Lt) {
|
|
11824
11840
|
Lt.error ? Ht.trigger(an.KEY_STATUSES_CHANGED, { data: null, error: Lt.error }) : rt.debug("DRM: key status = " + Lt.status);
|
|
11825
11841
|
}
|
|
11826
11842
|
function tr(Lt) {
|
|
11827
11843
|
rt.debug("DRM: onKeyMessage");
|
|
11828
11844
|
var en = Lt.data;
|
|
11829
11845
|
Ht.trigger(an.KEY_MESSAGE, { data: en });
|
|
11830
|
-
var fn = en.messageType ? en.messageType : "license-request", Fn = en.message, On = en.sessionToken,
|
|
11846
|
+
var fn = en.messageType ? en.messageType : "license-request", Fn = en.message, On = en.sessionToken, jn = kn(xt), bn = _t.getLicenseServerModelInstance(xt, jn, fn), Jn = { sessionToken: On, messageType: fn };
|
|
11831
11847
|
if (Fn && Fn.byteLength !== 0) {
|
|
11832
11848
|
if (!bn) return rt.debug("DRM: License server request not required for this message (type = " + Lt.data.messageType + "). Session ID = " + On.getSessionId()), void Xn(Jn);
|
|
11833
11849
|
if (_t.isClearKey(xt)) {
|
|
11834
|
-
var Mn = _t.processClearKeyLicenseRequest(xt,
|
|
11850
|
+
var Mn = _t.processClearKeyLicenseRequest(xt, jn, Fn);
|
|
11835
11851
|
if (Mn && Mn.keyPairs && Mn.keyPairs.length > 0) return rt.debug("DRM: ClearKey license request handled by application!"), Xn(Jn), void Wt.updateKeySession(On, Mn);
|
|
11836
11852
|
}
|
|
11837
11853
|
(function(Rn, rr, Qn) {
|
|
11838
|
-
var nr = Rn.sessionToken, $n = Rn.messageType ? Rn.messageType : "license-request",
|
|
11839
|
-
var
|
|
11854
|
+
var nr = Rn.sessionToken, $n = Rn.messageType ? Rn.messageType : "license-request", Er = { sessionToken: nr, messageType: $n }, lr = xt ? xt.systemString : null, Ei = (function(Nn, _r, Fr, Ir, Hi) {
|
|
11855
|
+
var or = null, Vi = Ir.message;
|
|
11840
11856
|
if (Nn && Nn.serverURL) {
|
|
11841
|
-
var
|
|
11842
|
-
typeof
|
|
11843
|
-
} else if (Nn && Nn.laURL && Nn.laURL !== "")
|
|
11844
|
-
else if (!(
|
|
11845
|
-
var
|
|
11846
|
-
(
|
|
11857
|
+
var cr = Nn.serverURL;
|
|
11858
|
+
typeof cr == "string" && cr !== "" ? or = cr : Ue(cr) === "object" && cr.hasOwnProperty(_r) && (or = cr[_r]);
|
|
11859
|
+
} else if (Nn && Nn.laURL && Nn.laURL !== "") or = Nn.laURL;
|
|
11860
|
+
else if (!(or = _.getLicenseServerUrlFromMediaInfo(Je, xt.schemeIdURI)) && !_t.isClearKey(xt)) {
|
|
11861
|
+
var ni = _.getPSSHData(Fr.initData);
|
|
11862
|
+
(or = xt.getLicenseServerURLFromInitData(ni)) || (or = Ir.laURL);
|
|
11847
11863
|
}
|
|
11848
|
-
return
|
|
11864
|
+
return or = Hi.getServerURLFromMessage(or, Vi, _r);
|
|
11849
11865
|
})(Qn, $n, nr, Rn, rr);
|
|
11850
|
-
if (
|
|
11851
|
-
var
|
|
11852
|
-
Qn &&
|
|
11853
|
-
var
|
|
11854
|
-
|
|
11855
|
-
Nn.toLowerCase() === "authorization" && (
|
|
11856
|
-
})), Qn && typeof Qn.withCredentials == "boolean" && (
|
|
11857
|
-
var
|
|
11866
|
+
if (Ei) {
|
|
11867
|
+
var Sr = {}, $r = !1;
|
|
11868
|
+
Qn && Wr(Sr, Qn.httpRequestHeaders);
|
|
11869
|
+
var Jr = Rn.message;
|
|
11870
|
+
Wr(Sr, xt.getRequestHeadersFromMessage(Jr)), Object.keys(Sr).forEach((function(Nn) {
|
|
11871
|
+
Nn.toLowerCase() === "authorization" && ($r = !0);
|
|
11872
|
+
})), Qn && typeof Qn.withCredentials == "boolean" && ($r = Qn.withCredentials);
|
|
11873
|
+
var ki = function(Nn) {
|
|
11858
11874
|
if (Wt) if (Nn.status >= 200 && Nn.status <= 299) {
|
|
11859
|
-
var
|
|
11860
|
-
|
|
11861
|
-
var
|
|
11862
|
-
|
|
11875
|
+
var _r = X.A.parseHttpHeaders(Nn.getAllResponseHeaders ? Nn.getAllResponseHeaders() : null), Fr = new pe(Nn.responseURL, _r, Nn.response);
|
|
11876
|
+
Xr(rn.getLicenseResponseFilters(), Fr).then((function() {
|
|
11877
|
+
var Ir = rr.getLicenseMessage(Fr.data, lr, $n);
|
|
11878
|
+
Ir !== null ? (Xn(Er), Wt.updateKeySession(nr, Ir)) : zr(Nn, Er, lr, $n, rr);
|
|
11863
11879
|
}));
|
|
11864
|
-
} else
|
|
11865
|
-
},
|
|
11866
|
-
Xn(
|
|
11867
|
-
},
|
|
11868
|
-
Xn(
|
|
11869
|
-
},
|
|
11870
|
-
|
|
11871
|
-
|
|
11880
|
+
} else zr(Nn, Er, lr, $n, rr);
|
|
11881
|
+
}, Gi = function(Nn) {
|
|
11882
|
+
Xn(Er, new x.A(W.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE, W.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE + lr + ' update, XHR aborted. status is "' + Nn.statusText + '" (' + Nn.status + "), readyState is " + Nn.readyState));
|
|
11883
|
+
}, ji = function(Nn) {
|
|
11884
|
+
Xn(Er, new x.A(W.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE, W.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE + lr + ' update, XHR error. status is "' + Nn.statusText + '" (' + Nn.status + "), readyState is " + Nn.readyState));
|
|
11885
|
+
}, qi = xt.getLicenseRequestFromMessage(Jr), _i = rr.getHTTPMethod($n), Ai = rr.getResponseType(lr, $n), Yi = Qn && !isNaN(Qn.httpTimeout) ? Qn.httpTimeout : 8e3, Zr = nr.getSessionId() || null, ei = new O(Ei, _i, Ai, Sr, $r, $n, Zr, qi), ti = isNaN(Ft.get().streaming.retryAttempts[G.G.LICENSE]) ? 3 : Ft.get().streaming.retryAttempts[G.G.LICENSE];
|
|
11886
|
+
Xr(rn.getLicenseRequestFilters(), ei).then((function() {
|
|
11887
|
+
mi(ei, ti, Yi, ki, Gi, ji);
|
|
11872
11888
|
}));
|
|
11873
|
-
} else Xn(
|
|
11874
|
-
})(en, bn,
|
|
11889
|
+
} else Xn(Er, new x.A(W.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_CODE, W.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_MESSAGE));
|
|
11890
|
+
})(en, bn, jn);
|
|
11875
11891
|
} else Xn(Jn, new x.A(W.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_CODE, W.MEDIA_KEY_MESSAGE_NO_CHALLENGE_ERROR_MESSAGE));
|
|
11876
11892
|
}
|
|
11877
11893
|
function Xn(Lt, en) {
|
|
11878
11894
|
Ht.trigger(an.LICENSE_REQUEST_COMPLETE, { data: Lt, error: en });
|
|
11879
11895
|
}
|
|
11880
|
-
function
|
|
11896
|
+
function mi(Lt, en, fn, Fn, On, jn) {
|
|
11881
11897
|
var bn = new XMLHttpRequest();
|
|
11882
11898
|
if (Ft.get().streaming.cmcd && Ft.get().streaming.cmcd.enabled && Ft.get().streaming.cmcd.mode === re.A.CMCD_MODE_QUERY) {
|
|
11883
11899
|
var Jn = It.getQueryParameter({ url: Lt.url, type: G.G.LICENSE });
|
|
@@ -11895,39 +11911,39 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11895
11911
|
en--;
|
|
11896
11912
|
var $n = isNaN(Ft.get().streaming.retryIntervals[G.G.LICENSE]) ? 1e3 : Ft.get().streaming.retryIntervals[G.G.LICENSE];
|
|
11897
11913
|
kt = setTimeout((function() {
|
|
11898
|
-
|
|
11914
|
+
mi(Lt, en, fn, Fn, On, jn);
|
|
11899
11915
|
}), $n);
|
|
11900
11916
|
};
|
|
11901
11917
|
bn.onload = function() {
|
|
11902
11918
|
$t = null, this.status >= 200 && this.status <= 299 || en <= 0 ? Fn(this) : (rt.warn("License request failed (" + this.status + "). Retrying it... Pending retries: " + en), nr());
|
|
11903
11919
|
}, bn.ontimeout = bn.onerror = function() {
|
|
11904
|
-
$t = null, en <= 0 ?
|
|
11920
|
+
$t = null, en <= 0 ? jn(this) : (rt.warn("License request network request failed . Retrying it... Pending retries: " + en), nr());
|
|
11905
11921
|
}, bn.onabort = function() {
|
|
11906
11922
|
On(this);
|
|
11907
11923
|
}, Ht.trigger(an.LICENSE_REQUEST_SENDING, { url: Lt.url, headers: Lt.headers, payload: Lt.data, sessionId: Lt.sessionId }), $t = bn, bn.send(Lt.data);
|
|
11908
11924
|
}
|
|
11909
|
-
function
|
|
11925
|
+
function yi() {
|
|
11910
11926
|
$t && ($t.onloadend = $t.onerror = $t.onprogress = void 0, $t.abort(), $t = null), kt && (clearTimeout(kt), kt = null);
|
|
11911
11927
|
}
|
|
11912
|
-
function
|
|
11928
|
+
function Wr(Lt, en) {
|
|
11913
11929
|
if (en) for (var fn in en) Lt[fn] = en[fn];
|
|
11914
11930
|
}
|
|
11915
|
-
function
|
|
11916
|
-
var
|
|
11917
|
-
Lt.response && (
|
|
11931
|
+
function zr(Lt, en, fn, Fn, On) {
|
|
11932
|
+
var jn = "NONE", bn = null;
|
|
11933
|
+
Lt.response && (jn = On.getErrorResponse(Lt.response, fn, Fn), bn = { serverResponse: Lt.response || null, responseCode: Lt.status || null, responseText: Lt.statusText || null }), Xn(en, new x.A(W.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE, W.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE + fn + ' update, XHR complete. status is "' + Lt.statusText + '" (' + Lt.status + "), readyState is " + Lt.readyState + ". Response is " + jn, bn));
|
|
11918
11934
|
}
|
|
11919
|
-
function
|
|
11935
|
+
function Xr(Lt, en) {
|
|
11920
11936
|
return Lt ? Lt.reduce((function(fn, Fn) {
|
|
11921
11937
|
return fn.then((function() {
|
|
11922
11938
|
return Fn(en);
|
|
11923
11939
|
}));
|
|
11924
11940
|
}), Promise.resolve()) : Promise.resolve();
|
|
11925
11941
|
}
|
|
11926
|
-
function
|
|
11942
|
+
function Qr(Lt, en) {
|
|
11927
11943
|
if (!Ft.get().streaming.protection.ignoreEmeEncryptedEvent) {
|
|
11928
11944
|
if (rt.debug("DRM: onNeedKey"), Lt.key.initDataType !== "cenc") return void rt.warn("DRM: Only 'cenc' initData is supported! Ignoring initData of type: " + Lt.key.initDataType);
|
|
11929
11945
|
if (Je.length === 0 && (rt.warn("DRM: onNeedKey called before initializeForMedia, wait until initialized"), (en = en === void 0 ? 1 : en + 1) < 5)) return void St.push(setTimeout((function() {
|
|
11930
|
-
|
|
11946
|
+
Qr(Lt, en);
|
|
11931
11947
|
}), 500));
|
|
11932
11948
|
var fn = Lt.key.initData;
|
|
11933
11949
|
if (ArrayBuffer.isView(fn) && (fn = fn.buffer), xt) {
|
|
@@ -11937,8 +11953,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11937
11953
|
rt.debug("DRM: initData:", String.fromCharCode.apply(null, new Uint8Array(fn)));
|
|
11938
11954
|
var On = _t.getSupportedKeySystemsFromSegmentPssh(fn, bt, Et);
|
|
11939
11955
|
if (On.length === 0) return void rt.debug("DRM: Received needkey event with initData, but we don't support any of the key systems!");
|
|
11940
|
-
(function(
|
|
11941
|
-
we.push(
|
|
11956
|
+
(function(jn) {
|
|
11957
|
+
we.push(jn), _n(jn, !1);
|
|
11942
11958
|
})(On);
|
|
11943
11959
|
}
|
|
11944
11960
|
}
|
|
@@ -11955,13 +11971,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11955
11971
|
fn.length > 0 && (Lt.length === 0 && (Lt = fn), we.push(fn));
|
|
11956
11972
|
})), Lt && Lt.length > 0 && _n(Lt, !0);
|
|
11957
11973
|
}
|
|
11958
|
-
}, createKeySession: In, loadKeySession:
|
|
11974
|
+
}, createKeySession: In, loadKeySession: Kn, removeKeySession: function(Lt) {
|
|
11959
11975
|
un(), Wt.removeKeySession(Lt);
|
|
11960
11976
|
}, closeKeySession: function(Lt) {
|
|
11961
11977
|
un(), Wt.closeKeySession(Lt);
|
|
11962
11978
|
}, setServerCertificate: function(Lt) {
|
|
11963
11979
|
un(), Wt.setServerCertificate(Lt);
|
|
11964
|
-
}, setMediaElement:
|
|
11980
|
+
}, setMediaElement: zn, setSessionType: function(Lt) {
|
|
11965
11981
|
Et = Lt;
|
|
11966
11982
|
}, setRobustnessLevel: function(Lt) {
|
|
11967
11983
|
Bt = Lt;
|
|
@@ -11974,12 +11990,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11974
11990
|
}, setKeySystems: function(Lt) {
|
|
11975
11991
|
_t && _t.setKeySystems(Lt);
|
|
11976
11992
|
}, stop: function() {
|
|
11977
|
-
|
|
11993
|
+
yi(), Wt && Wt.stop();
|
|
11978
11994
|
}, reset: function() {
|
|
11979
|
-
Ht.off(an.INTERNAL_KEY_MESSAGE, tr, et), Ht.off(an.INTERNAL_KEY_STATUS_CHANGED,
|
|
11995
|
+
Ht.off(an.INTERNAL_KEY_MESSAGE, tr, et), Ht.off(an.INTERNAL_KEY_STATUS_CHANGED, yr, et), un(), yi(), zn(null), xt = null, Xt = !1, Wt && (Wt.reset(), Wt = null), St.forEach((function(Lt) {
|
|
11980
11996
|
return clearTimeout(Lt);
|
|
11981
11997
|
})), St = [], Je = [], we = [];
|
|
11982
|
-
} }, rt = pn.getLogger(et), we = [], Je = [], Et = "temporary", Bt = "", $t = null, kt = null, Ht.on(an.INTERNAL_KEY_MESSAGE, tr, et), Ht.on(an.INTERNAL_KEY_STATUS_CHANGED,
|
|
11998
|
+
} }, rt = pn.getLogger(et), we = [], Je = [], Et = "temporary", Bt = "", $t = null, kt = null, Ht.on(an.INTERNAL_KEY_MESSAGE, tr, et), Ht.on(an.INTERNAL_KEY_STATUS_CHANGED, yr, et), et;
|
|
11983
11999
|
}
|
|
11984
12000
|
me.__dashjs_factory_name = "ProtectionController";
|
|
11985
12001
|
var le = be.A.getClassFactory(me);
|
|
@@ -12320,7 +12336,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12320
12336
|
}
|
|
12321
12337
|
yn.__dashjs_factory_name = "ClearKey";
|
|
12322
12338
|
var xn = dashjs.FactoryMaker.getSingletonFactory(yn);
|
|
12323
|
-
function
|
|
12339
|
+
function Hn() {
|
|
12324
12340
|
var ot, et, rt, we, Je, bt, Et, Bt, xt = this.context;
|
|
12325
12341
|
function Xt(_t, Wt) {
|
|
12326
12342
|
return Wt && _t in Wt ? Wt[_t] : null;
|
|
@@ -12387,8 +12403,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12387
12403
|
_t && (_t.debug && (et = _t.debug, rt = et.getLogger(ot)), _t.BASE64 && (Je = _t.BASE64), _t.settings && (bt = _t.settings));
|
|
12388
12404
|
} }, ot;
|
|
12389
12405
|
}
|
|
12390
|
-
|
|
12391
|
-
var An = dashjs.FactoryMaker.getSingletonFactory(
|
|
12406
|
+
Hn.__dashjs_factory_name = "ProtectionKeyController";
|
|
12407
|
+
var An = dashjs.FactoryMaker.getSingletonFactory(Hn);
|
|
12392
12408
|
function Un(ot) {
|
|
12393
12409
|
return Un = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(et) {
|
|
12394
12410
|
return typeof et;
|
|
@@ -12397,36 +12413,36 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12397
12413
|
}, Un(ot);
|
|
12398
12414
|
}
|
|
12399
12415
|
function Sn(ot, et, rt) {
|
|
12400
|
-
return et =
|
|
12416
|
+
return et = Vn(et), (function(we, Je) {
|
|
12401
12417
|
if (Je && (Un(Je) == "object" || typeof Je == "function")) return Je;
|
|
12402
12418
|
if (Je !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
12403
12419
|
return (function(bt) {
|
|
12404
12420
|
if (bt === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
12405
12421
|
return bt;
|
|
12406
12422
|
})(we);
|
|
12407
|
-
})(ot,
|
|
12423
|
+
})(ot, Gn() ? Reflect.construct(et, [], Vn(ot).constructor) : et.apply(ot, rt));
|
|
12408
12424
|
}
|
|
12409
|
-
function
|
|
12425
|
+
function Gn() {
|
|
12410
12426
|
try {
|
|
12411
12427
|
var ot = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {
|
|
12412
12428
|
})));
|
|
12413
12429
|
} catch {
|
|
12414
12430
|
}
|
|
12415
|
-
return (
|
|
12431
|
+
return (Gn = function() {
|
|
12416
12432
|
return !!ot;
|
|
12417
12433
|
})();
|
|
12418
12434
|
}
|
|
12419
|
-
function
|
|
12420
|
-
return
|
|
12435
|
+
function Vn(ot) {
|
|
12436
|
+
return Vn = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(et) {
|
|
12421
12437
|
return et.__proto__ || Object.getPrototypeOf(et);
|
|
12422
|
-
},
|
|
12438
|
+
}, Vn(ot);
|
|
12423
12439
|
}
|
|
12424
|
-
function
|
|
12425
|
-
return
|
|
12440
|
+
function Wn(ot, et) {
|
|
12441
|
+
return Wn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(rt, we) {
|
|
12426
12442
|
return rt.__proto__ = we, rt;
|
|
12427
|
-
},
|
|
12443
|
+
}, Wn(ot, et);
|
|
12428
12444
|
}
|
|
12429
|
-
var
|
|
12445
|
+
var hr = new ((function(ot) {
|
|
12430
12446
|
function et() {
|
|
12431
12447
|
var we;
|
|
12432
12448
|
return (function(Je, bt) {
|
|
@@ -12435,35 +12451,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12435
12451
|
}
|
|
12436
12452
|
return (function(we, Je) {
|
|
12437
12453
|
if (typeof Je != "function" && Je !== null) throw new TypeError("Super expression must either be null or a function");
|
|
12438
|
-
we.prototype = Object.create(Je && Je.prototype, { constructor: { value: we, writable: !0, configurable: !0 } }), Object.defineProperty(we, "prototype", { writable: !1 }), Je &&
|
|
12454
|
+
we.prototype = Object.create(Je && Je.prototype, { constructor: { value: we, writable: !0, configurable: !0 } }), Object.defineProperty(we, "prototype", { writable: !1 }), Je && Wn(we, Je);
|
|
12439
12455
|
})(et, ot), rt = et, Object.defineProperty(rt, "prototype", { writable: !1 }), rt;
|
|
12440
12456
|
var rt;
|
|
12441
12457
|
})(M(9656).A))();
|
|
12442
|
-
function
|
|
12458
|
+
function Or(ot, et, rt) {
|
|
12443
12459
|
return Object.defineProperty(ot, "prototype", { writable: !1 }), ot;
|
|
12444
12460
|
}
|
|
12445
|
-
var
|
|
12461
|
+
var gr = Or((function ot(et, rt) {
|
|
12446
12462
|
(function(we, Je) {
|
|
12447
12463
|
if (!(we instanceof Je)) throw new TypeError("Cannot call a class as a function");
|
|
12448
12464
|
})(this, ot), this.initData = et, this.initDataType = rt;
|
|
12449
12465
|
}));
|
|
12450
|
-
function
|
|
12466
|
+
function ur(ot, et, rt) {
|
|
12451
12467
|
return Object.defineProperty(ot, "prototype", { writable: !1 }), ot;
|
|
12452
12468
|
}
|
|
12453
|
-
var
|
|
12469
|
+
var mr = ur((function ot(et, rt, we, Je) {
|
|
12454
12470
|
(function(bt, Et) {
|
|
12455
12471
|
if (!(bt instanceof Et)) throw new TypeError("Cannot call a class as a function");
|
|
12456
12472
|
})(this, ot), this.sessionToken = et, this.message = rt, this.defaultURL = we, this.messageType = Je || "license-request";
|
|
12457
12473
|
}));
|
|
12458
|
-
function
|
|
12474
|
+
function Yr(ot, et, rt) {
|
|
12459
12475
|
return Object.defineProperty(ot, "prototype", { writable: !1 }), ot;
|
|
12460
12476
|
}
|
|
12461
|
-
var
|
|
12477
|
+
var Hr = Yr((function ot(et, rt) {
|
|
12462
12478
|
(function(we, Je) {
|
|
12463
12479
|
if (!(we instanceof Je)) throw new TypeError("Cannot call a class as a function");
|
|
12464
12480
|
})(this, ot), this.keySystem = et, this.ksConfiguration = rt;
|
|
12465
|
-
})),
|
|
12466
|
-
function
|
|
12481
|
+
})), vr = {};
|
|
12482
|
+
function Vr(ot) {
|
|
12467
12483
|
ot = ot || {};
|
|
12468
12484
|
var et, rt, we, Je, bt, Et, Bt, xt, Xt = this.context, $t = ot.eventBus, kt = ot.events, _t = ot.debug;
|
|
12469
12485
|
function Wt(St, It, Ft, rn) {
|
|
@@ -12471,19 +12487,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12471
12487
|
var un = "Insecure origins are not allowed";
|
|
12472
12488
|
return $t.trigger(kt.KEY_SYSTEM_ACCESS_COMPLETE, { error: un }), void rn({ error: un });
|
|
12473
12489
|
}
|
|
12474
|
-
var _n = St[It].protData && St[It].protData.systemStringPriority ? St[It].protData.systemStringPriority : null, Tn = St[It].configs,
|
|
12475
|
-
(function(In,
|
|
12476
|
-
return new Promise((function(Ln,
|
|
12477
|
-
Ht(In,
|
|
12490
|
+
var _n = St[It].protData && St[It].protData.systemStringPriority ? St[It].protData.systemStringPriority : null, Tn = St[It].configs, Yn = St[It].ks, Kn = Yn.systemString;
|
|
12491
|
+
(function(In, kn) {
|
|
12492
|
+
return new Promise((function(Ln, zn) {
|
|
12493
|
+
Ht(In, kn, 0, Ln, zn);
|
|
12478
12494
|
}));
|
|
12479
|
-
})(_n || (
|
|
12480
|
-
var
|
|
12495
|
+
})(_n || (vr[Kn] ? vr[Kn] : [Kn]), Tn).then((function(In) {
|
|
12496
|
+
var kn = typeof In.getConfiguration == "function" ? In.getConfiguration() : null, Ln = new Hr(Yn, kn);
|
|
12481
12497
|
Ln.mksa = In, $t.trigger(kt.KEY_SYSTEM_ACCESS_COMPLETE, { data: Ln }), Ft({ data: Ln });
|
|
12482
12498
|
})).catch((function(In) {
|
|
12483
12499
|
if (It + 1 < St.length) Wt(St, It + 1, Ft, rn);
|
|
12484
12500
|
else {
|
|
12485
|
-
var
|
|
12486
|
-
$t.trigger(kt.KEY_SYSTEM_ACCESS_COMPLETE, { error:
|
|
12501
|
+
var kn = "Key system access denied! ";
|
|
12502
|
+
$t.trigger(kt.KEY_SYSTEM_ACCESS_COMPLETE, { error: kn + In.message }), rn({ error: kn + In.message });
|
|
12487
12503
|
}
|
|
12488
12504
|
}));
|
|
12489
12505
|
}
|
|
@@ -12521,7 +12537,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12521
12537
|
break;
|
|
12522
12538
|
case "message":
|
|
12523
12539
|
var un = ArrayBuffer.isView(rn.message) ? rn.message.buffer : rn.message;
|
|
12524
|
-
$t.trigger(kt.INTERNAL_KEY_MESSAGE, { data: new
|
|
12540
|
+
$t.trigger(kt.INTERNAL_KEY_MESSAGE, { data: new mr(this, un, void 0, rn.messageType) });
|
|
12525
12541
|
}
|
|
12526
12542
|
}, getKeyId: function() {
|
|
12527
12543
|
return this.keyId;
|
|
@@ -12620,13 +12636,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12620
12636
|
} }, rt = _t.getLogger(et), we = null, Je = null, bt = null, Et = [], xt = An(Xt).getInstance(), Bt = { handleEvent: function(St) {
|
|
12621
12637
|
if (St.type === "encrypted" && St.initData) {
|
|
12622
12638
|
var It = ArrayBuffer.isView(St.initData) ? St.initData.buffer : St.initData;
|
|
12623
|
-
$t.trigger(kt.NEED_KEY, { key: new
|
|
12639
|
+
$t.trigger(kt.NEED_KEY, { key: new gr(It, St.initDataType) });
|
|
12624
12640
|
}
|
|
12625
12641
|
} }, et;
|
|
12626
12642
|
}
|
|
12627
|
-
|
|
12628
|
-
var
|
|
12629
|
-
function
|
|
12643
|
+
vr[Rt.PLAYREADY_KEYSTEM_STRING] = [Rt.PLAYREADY_KEYSTEM_STRING, Rt.PLAYREADY_RECOMMENDATION_KEYSTEM_STRING], vr[Rt.WIDEVINE_KEYSTEM_STRING] = [Rt.WIDEVINE_KEYSTEM_STRING], vr[Rt.CLEARKEY_KEYSTEM_STRING] = [Rt.CLEARKEY_KEYSTEM_STRING], Vr.__dashjs_factory_name = "ProtectionModel_21Jan2015";
|
|
12644
|
+
var Bi = dashjs.FactoryMaker.getClassFactory(Vr);
|
|
12645
|
+
function Mr(ot) {
|
|
12630
12646
|
ot = ot || {};
|
|
12631
12647
|
var et, rt, we, Je, bt, Et, Bt, xt, Xt, $t = this.context, kt = ot.eventBus, _t = ot.events, Wt = ot.debug, Ht = ot.api;
|
|
12632
12648
|
function an() {
|
|
@@ -12659,19 +12675,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12659
12675
|
return Bt;
|
|
12660
12676
|
}, requestKeySystemAccess: function(tn) {
|
|
12661
12677
|
return new Promise((function(St, It) {
|
|
12662
|
-
for (var Ft = !1, rn = 0; rn < tn.length; rn++) for (var un = tn[rn].ks.systemString, _n = tn[rn].configs, Tn = null,
|
|
12663
|
-
var In = _n[
|
|
12678
|
+
for (var Ft = !1, rn = 0; rn < tn.length; rn++) for (var un = tn[rn].ks.systemString, _n = tn[rn].configs, Tn = null, Yn = null, Kn = 0; Kn < _n.length; Kn++) {
|
|
12679
|
+
var In = _n[Kn].audioCapabilities, kn = _n[Kn].videoCapabilities;
|
|
12664
12680
|
if (In && In.length !== 0) {
|
|
12665
12681
|
Tn = [];
|
|
12666
12682
|
for (var Ln = 0; Ln < In.length; Ln++) window[Ht.MediaKeys].isTypeSupported(un, In[Ln].contentType) && Tn.push(In[Ln]);
|
|
12667
12683
|
}
|
|
12668
|
-
if (
|
|
12669
|
-
|
|
12670
|
-
for (var
|
|
12684
|
+
if (kn && kn.length !== 0) {
|
|
12685
|
+
Yn = [];
|
|
12686
|
+
for (var zn = 0; zn < kn.length; zn++) window[Ht.MediaKeys].isTypeSupported(un, kn[zn].contentType) && Yn.push(kn[zn]);
|
|
12671
12687
|
}
|
|
12672
|
-
if (!(!Tn && !
|
|
12688
|
+
if (!(!Tn && !Yn || Tn && Tn.length === 0 || Yn && Yn.length === 0)) {
|
|
12673
12689
|
Ft = !0;
|
|
12674
|
-
var
|
|
12690
|
+
var br = new g(Tn, Yn), yr = Xt.getKeySystemBySystemString(un), tr = new Hr(yr, br);
|
|
12675
12691
|
kt.trigger(_t.KEY_SYSTEM_ACCESS_COMPLETE, { data: tr }), St({ data: tr });
|
|
12676
12692
|
break;
|
|
12677
12693
|
}
|
|
@@ -12710,8 +12726,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12710
12726
|
kt.trigger(_t.KEY_ERROR, { error: new x.A(W.MEDIA_KEYERR_CODE, "KeyError", this) });
|
|
12711
12727
|
break;
|
|
12712
12728
|
case Ht.message:
|
|
12713
|
-
var
|
|
12714
|
-
kt.trigger(_t.INTERNAL_KEY_MESSAGE, { data: new
|
|
12729
|
+
var Yn = ArrayBuffer.isView(Tn.message) ? Tn.message.buffer : Tn.message;
|
|
12730
|
+
kt.trigger(_t.INTERNAL_KEY_MESSAGE, { data: new mr(this, Yn, Tn.destinationURL) });
|
|
12715
12731
|
break;
|
|
12716
12732
|
case Ht.ready:
|
|
12717
12733
|
rt.debug("DRM: Key added."), kt.trigger(_t.KEY_ADDED);
|
|
@@ -12731,13 +12747,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12731
12747
|
}, stop: an, reset: an }, rt = Wt.getLogger(et), we = null, Je = null, bt = null, Et = null, Bt = [], Xt = An($t).getInstance(), xt = { handleEvent: function(tn) {
|
|
12732
12748
|
if (tn.type === Ht.needkey && tn.initData) {
|
|
12733
12749
|
var St = ArrayBuffer.isView(tn.initData) ? tn.initData.buffer : tn.initData;
|
|
12734
|
-
kt.trigger(_t.NEED_KEY, { key: new
|
|
12750
|
+
kt.trigger(_t.NEED_KEY, { key: new gr(St, "cenc") });
|
|
12735
12751
|
}
|
|
12736
12752
|
} }, et;
|
|
12737
12753
|
}
|
|
12738
|
-
|
|
12739
|
-
var
|
|
12740
|
-
function
|
|
12754
|
+
Mr.__dashjs_factory_name = "ProtectionModel_3Feb2014";
|
|
12755
|
+
var Pr = dashjs.FactoryMaker.getClassFactory(Mr);
|
|
12756
|
+
function di(ot) {
|
|
12741
12757
|
ot = ot || {};
|
|
12742
12758
|
var et, rt, we, Je, bt, Et, Bt, xt, Xt, $t = this.context, kt = ot.eventBus, _t = ot.events, Wt = ot.debug, Ht = ot.api, an = ot.errHandler;
|
|
12743
12759
|
function pn() {
|
|
@@ -12772,15 +12788,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12772
12788
|
return new Promise((function(Ft, rn) {
|
|
12773
12789
|
var un = we;
|
|
12774
12790
|
un || (un = document.createElement("video"));
|
|
12775
|
-
for (var _n = !1, Tn = 0; Tn < It.length; Tn++) for (var
|
|
12776
|
-
var Ln =
|
|
12791
|
+
for (var _n = !1, Tn = 0; Tn < It.length; Tn++) for (var Yn = It[Tn].ks.systemString, Kn = It[Tn].configs, In = null, kn = 0; kn < Kn.length; kn++) {
|
|
12792
|
+
var Ln = Kn[kn].videoCapabilities;
|
|
12777
12793
|
if (Ln && Ln.length !== 0) {
|
|
12778
12794
|
In = [];
|
|
12779
|
-
for (var
|
|
12795
|
+
for (var zn = 0; zn < Ln.length; zn++) un.canPlayType(Ln[zn].contentType, Yn) !== "" && In.push(Ln[zn]);
|
|
12780
12796
|
}
|
|
12781
12797
|
if (In && (!In || In.length !== 0)) {
|
|
12782
12798
|
_n = !0;
|
|
12783
|
-
var
|
|
12799
|
+
var br = new g(null, In), yr = bt.getKeySystemBySystemString(Yn), tr = new Hr(yr, br);
|
|
12784
12800
|
kt.trigger(_t.KEY_SYSTEM_ACCESS_COMPLETE, { data: tr }), Ft({ data: tr });
|
|
12785
12801
|
break;
|
|
12786
12802
|
}
|
|
@@ -12829,7 +12845,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12829
12845
|
switch (It.type) {
|
|
12830
12846
|
case Ht.needkey:
|
|
12831
12847
|
var rn = ArrayBuffer.isView(It.initData) ? It.initData.buffer : It.initData;
|
|
12832
|
-
kt.trigger(_t.NEED_KEY, { key: new
|
|
12848
|
+
kt.trigger(_t.NEED_KEY, { key: new gr(rn, "cenc") });
|
|
12833
12849
|
break;
|
|
12834
12850
|
case Ht.keyerror:
|
|
12835
12851
|
if ((Ft = tn(Bt, It.sessionId)) || (Ft = tn(Et, It.sessionId)), Ft) {
|
|
@@ -12862,14 +12878,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12862
12878
|
case Ht.keymessage:
|
|
12863
12879
|
if ((xt = It.sessionId !== null && It.sessionId !== void 0) ? !(Ft = tn(Bt, It.sessionId)) && Et.length > 0 && (Ft = Et.shift(), Bt.push(Ft), Ft.sessionId = It.sessionId, kt.trigger(_t.KEY_SESSION_CREATED, { data: Ft })) : Et.length > 0 && (Ft = Et.shift(), Bt.push(Ft), Et.length !== 0 && an.error(new x.A(W.MEDIA_KEY_MESSAGE_ERROR_CODE, W.MEDIA_KEY_MESSAGE_ERROR_MESSAGE))), Ft) {
|
|
12864
12880
|
var Tn = ArrayBuffer.isView(It.message) ? It.message.buffer : It.message;
|
|
12865
|
-
Ft.keyMessage = Tn, kt.trigger(_t.INTERNAL_KEY_MESSAGE, { data: new
|
|
12881
|
+
Ft.keyMessage = Tn, kt.trigger(_t.INTERNAL_KEY_MESSAGE, { data: new mr(Ft, Tn, It.defaultURL) });
|
|
12866
12882
|
} else rt.warn("No session token found for key message");
|
|
12867
12883
|
}
|
|
12868
12884
|
} }, et;
|
|
12869
12885
|
}
|
|
12870
|
-
|
|
12871
|
-
var
|
|
12872
|
-
function
|
|
12886
|
+
di.__dashjs_factory_name = "ProtectionModel_01b";
|
|
12887
|
+
var pi = dashjs.FactoryMaker.getClassFactory(di), hi = [{ generateKeyRequest: "generateKeyRequest", addKey: "addKey", cancelKeyRequest: "cancelKeyRequest", needkey: "needkey", keyerror: "keyerror", keyadded: "keyadded", keymessage: "keymessage" }, { generateKeyRequest: "webkitGenerateKeyRequest", addKey: "webkitAddKey", cancelKeyRequest: "webkitCancelKeyRequest", needkey: "webkitneedkey", keyerror: "webkitkeyerror", keyadded: "webkitkeyadded", keymessage: "webkitkeymessage" }], gi = [{ setMediaKeys: "setMediaKeys", MediaKeys: "MediaKeys", release: "close", needkey: "needkey", error: "keyerror", message: "keymessage", ready: "keyadded", close: "keyclose" }, { setMediaKeys: "msSetMediaKeys", MediaKeys: "MSMediaKeys", release: "close", needkey: "msneedkey", error: "mskeyerror", message: "mskeymessage", ready: "mskeyadded", close: "mskeyclose" }];
|
|
12888
|
+
function Kr() {
|
|
12873
12889
|
var ot, et = this.context;
|
|
12874
12890
|
function rt(we, Je) {
|
|
12875
12891
|
for (var bt = 0; bt < Je.length; bt++) {
|
|
@@ -12883,15 +12899,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12883
12899
|
bt.setConfig({ debug: we.debug, BASE64: we.BASE64, settings: we.settings }), bt.initialize();
|
|
12884
12900
|
var Et = (function(Bt) {
|
|
12885
12901
|
var xt = Bt.debug, Xt = xt.getLogger(ot), $t = Bt.eventBus, kt = Bt.errHandler, _t = Bt.videoModel ? Bt.videoModel.getElement() : null;
|
|
12886
|
-
return _t && _t.onencrypted === void 0 || _t && _t.mediaKeys === void 0 ? rt(_t,
|
|
12902
|
+
return _t && _t.onencrypted === void 0 || _t && _t.mediaKeys === void 0 ? rt(_t, gi) ? (Xt.info("EME detected on this user agent! (ProtectionModel_3Feb2014)"), Pr(et).create({ debug: xt, eventBus: $t, events: Bt.events, api: rt(_t, gi) })) : rt(_t, hi) ? (Xt.info("EME detected on this user agent! (ProtectionModel_01b)"), pi(et).create({ debug: xt, eventBus: $t, errHandler: kt, events: Bt.events, api: rt(_t, hi) })) : (Xt.warn("No supported version of EME detected on this user agent! - Attempts to play encrypted content will fail!"), null) : (Xt.info("EME detected on this user agent! (ProtectionModel_21Jan2015)"), Bi(et).create({ debug: xt, eventBus: $t, events: Bt.events }));
|
|
12887
12903
|
})(we);
|
|
12888
12904
|
return !Je && Et && (Je = le(et).create({ protectionModel: Et, protectionKeyController: bt, eventBus: we.eventBus, debug: we.debug, events: we.events, BASE64: we.BASE64, constants: we.constants, cmcdModel: we.cmcdModel, customParametersModel: we.customParametersModel, settings: we.settings }), we.capabilities.setEncryptedMediaSupported(!0)), Je;
|
|
12889
12905
|
} };
|
|
12890
12906
|
}
|
|
12891
|
-
|
|
12892
|
-
var
|
|
12893
|
-
|
|
12894
|
-
var
|
|
12907
|
+
Kr.__dashjs_factory_name = "Protection";
|
|
12908
|
+
var Lr = dashjs.FactoryMaker.getClassFactory(Kr);
|
|
12909
|
+
Lr.events = hr, Lr.errors = W, dashjs.FactoryMaker.updateClassFactory(Kr.__dashjs_factory_name, Lr);
|
|
12910
|
+
var Tr = Lr;
|
|
12895
12911
|
}, 5066: function(vt, Le, M) {
|
|
12896
12912
|
var ce = M(5742), I = { DEFAULT: 0.5, STRONG: 1, WEAK: 0 };
|
|
12897
12913
|
function u(_, y, i) {
|
|
@@ -13247,10 +13263,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13247
13263
|
var Q = (function(Mt) {
|
|
13248
13264
|
var zt = Mt.getMediaType(), Qt = d[zt];
|
|
13249
13265
|
return Qt || (Qt = (function(nn) {
|
|
13250
|
-
var yn = {}, xn = nn.getMediaInfo(),
|
|
13266
|
+
var yn = {}, xn = nn.getMediaInfo(), Hn = xn.bitrateList.map((function(An) {
|
|
13251
13267
|
return An.bandwidth / 1e3;
|
|
13252
13268
|
}));
|
|
13253
|
-
return yn.state = 1, yn.bitrates =
|
|
13269
|
+
return yn.state = 1, yn.bitrates = Hn, yn.lastQuality = 0, (function(An) {
|
|
13254
13270
|
An && An.type && (T[An.type] = {}, T[An.type].w = [], T[An.type].prev_w = [], T[An.type].Q = 0, T[An.type].segment_request_start_s = 0, T[An.type].segment_download_finish_s = 0, T[An.type].B_target = 1.5);
|
|
13255
13271
|
})(xn), O(yn), yn;
|
|
13256
13272
|
})(Mt), d[zt] = Qt), Qt;
|
|
@@ -13276,14 +13292,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13276
13292
|
for (var Ve = Q.lastSegmentDurationS, Xe = 1, nt = 0; nt < Oe; ++nt) Ie[nt] = Ie[nt] / 1e3, E * Ie[nt] > _e && (Xe = -1), D.w[nt] = D.prev_w[nt] + Xe * (Ve / (2 * Ne)) * ((D.Q + Se) * (E * Ie[nt] / _e));
|
|
13277
13293
|
D.w = (function(Mt) {
|
|
13278
13294
|
for (var zt = Mt.length, Qt = !1, nn = [], yn = 0; yn < zt; ++yn) nn[yn] = Mt[yn];
|
|
13279
|
-
for (var xn = Mt.sort((function(
|
|
13280
|
-
return
|
|
13281
|
-
})),
|
|
13295
|
+
for (var xn = Mt.sort((function(Vn, Wn) {
|
|
13296
|
+
return Wn - Vn;
|
|
13297
|
+
})), Hn = 0, An = 0, Un = [], Sn = 0; Sn < zt - 1; ++Sn) if ((An = ((Hn += xn[Sn]) - 1) / (Sn + 1)) >= xn[Sn + 1]) {
|
|
13282
13298
|
Qt = !0;
|
|
13283
13299
|
break;
|
|
13284
13300
|
}
|
|
13285
|
-
Qt || (An = (
|
|
13286
|
-
for (var
|
|
13301
|
+
Qt || (An = (Hn + xn[zt - 1] - 1) / zt);
|
|
13302
|
+
for (var Gn = 0; Gn < zt; ++Gn) Un[Gn] = Math.max(nn[Gn] - An, 0);
|
|
13287
13303
|
return Un;
|
|
13288
13304
|
})(D.w);
|
|
13289
13305
|
for (var Tt = 0; Tt < Oe; ++Tt) De[Tt] = D.w[Tt] - D.prev_w[Tt], D.prev_w[Tt] = D.w[Tt];
|
|
@@ -13385,12 +13401,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13385
13401
|
y.push(Re);
|
|
13386
13402
|
}
|
|
13387
13403
|
m = (function(Ye) {
|
|
13388
|
-
var Ve = [], Xe = (function(
|
|
13389
|
-
for (var
|
|
13390
|
-
var
|
|
13391
|
-
|
|
13404
|
+
var Ve = [], Xe = (function(gr) {
|
|
13405
|
+
for (var ur = [], mr = 0; mr < gr; mr++) {
|
|
13406
|
+
var Yr = [Math.random() * W(), Math.random(), Math.random(), Math.random()];
|
|
13407
|
+
ur.push(Yr);
|
|
13392
13408
|
}
|
|
13393
|
-
return
|
|
13409
|
+
return ur;
|
|
13394
13410
|
})(Math.pow(Ye.length, 2));
|
|
13395
13411
|
Ve.push(Xe[0]);
|
|
13396
13412
|
for (var nt = [1, 1, 1, 1], Tt = 1; Tt < Ye.length; Tt++) {
|
|
@@ -13403,19 +13419,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13403
13419
|
}
|
|
13404
13420
|
Ve.push(mt);
|
|
13405
13421
|
}
|
|
13406
|
-
for (var xn = null,
|
|
13422
|
+
for (var xn = null, Hn = null, An = 0; An < Ve.length; An++) {
|
|
13407
13423
|
for (var Un = 0, Sn = 0; Sn < Ve.length; Sn++) An !== Sn && (Un += x(Ve[An], Ve[Sn], nt));
|
|
13408
|
-
(xn === null || Un > xn) && (xn = Un,
|
|
13424
|
+
(xn === null || Un > xn) && (xn = Un, Hn = An);
|
|
13409
13425
|
}
|
|
13410
|
-
var
|
|
13411
|
-
for (
|
|
13412
|
-
for (var
|
|
13413
|
-
var
|
|
13414
|
-
(
|
|
13426
|
+
var Gn = [];
|
|
13427
|
+
for (Gn.push(Ve[Hn]), Ve.splice(Hn, 1); Ve.length > 0; ) {
|
|
13428
|
+
for (var Vn = null, Wn = null, hr = 0; hr < Ve.length; hr++) {
|
|
13429
|
+
var Or = x(Gn[0], Ve[hr], nt);
|
|
13430
|
+
(Vn === null || Or < Vn) && (Vn = Or, Wn = hr);
|
|
13415
13431
|
}
|
|
13416
|
-
|
|
13432
|
+
Gn.push(Ve[Wn]), Ve.splice(Wn, 1);
|
|
13417
13433
|
}
|
|
13418
|
-
return
|
|
13434
|
+
return Gn;
|
|
13419
13435
|
})(y);
|
|
13420
13436
|
}
|
|
13421
13437
|
var _e;
|
|
@@ -16209,8 +16225,8 @@ Actual: ` + c.attribValue);
|
|
|
16209
16225
|
xn && (yn.contents.push(new W(xn)), delete yn.styleAttrs[n.byName.backgroundImage.qname]), D[0].contents.push(yn), D.unshift(yn);
|
|
16210
16226
|
} else if (nt.local === "image") {
|
|
16211
16227
|
D[0] instanceof be || qe(c, "Parent of <image> element is not <div> at " + this.line + "," + this.column + ")");
|
|
16212
|
-
var
|
|
16213
|
-
|
|
16228
|
+
var Hn = new W();
|
|
16229
|
+
Hn.initFromNode(Re, D[0], nt, Be[0], c), D[0].contents.push(Hn), D.unshift(Hn);
|
|
16214
16230
|
} else if (nt.local === "p") {
|
|
16215
16231
|
D[0] instanceof be || qe(c, "Parent of <p> element is not <div> at " + this.line + "," + this.column + ")");
|
|
16216
16232
|
var An = new Ue();
|
|
@@ -16225,16 +16241,16 @@ Actual: ` + c.attribValue);
|
|
|
16225
16241
|
Sn.initFromNode(Re, D[0], nt, Be[0], c), D[0].contents.push(Sn), D.unshift(Sn);
|
|
16226
16242
|
} else if (nt.local === "set") {
|
|
16227
16243
|
D[0] instanceof me || D[0] instanceof Ue || D[0] instanceof be || D[0] instanceof re || D[0] instanceof Se || D[0] instanceof je || qe(c, "Parent of <set> element is not a content element or a region at " + this.line + "," + this.column + ")");
|
|
16228
|
-
var
|
|
16229
|
-
|
|
16244
|
+
var Gn = new Ne();
|
|
16245
|
+
Gn.initFromNode(Re, D[0], nt, c), D[0].sets.push(Gn), D.unshift(Gn);
|
|
16230
16246
|
} else D.unshift(new h(nt));
|
|
16231
16247
|
else D.unshift(new h(nt));
|
|
16232
16248
|
if (D[0] instanceof h) {
|
|
16233
16249
|
if (nt.uri === u.ns_tt && nt.local === "metadata") Ae++;
|
|
16234
16250
|
else if (Ae > 0 && E && "onOpenTag" in E) {
|
|
16235
|
-
var
|
|
16236
|
-
for (var
|
|
16237
|
-
E.onOpenTag(nt.uri, nt.local,
|
|
16251
|
+
var Vn = [];
|
|
16252
|
+
for (var Wn in nt.attributes) Vn[nt.attributes[Wn].uri + " " + nt.attributes[Wn].local] = { uri: nt.attributes[Wn].uri, local: nt.attributes[Wn].local, value: nt.attributes[Wn].value };
|
|
16253
|
+
E.onOpenTag(nt.uri, nt.local, Vn);
|
|
16238
16254
|
}
|
|
16239
16255
|
}
|
|
16240
16256
|
}, Q.write(A).close(), delete Re.head.styling.styles;
|
|
@@ -18281,38 +18297,38 @@ Actual: ` + c.attribValue);
|
|
|
18281
18297
|
};
|
|
18282
18298
|
}, 3779: function() {
|
|
18283
18299
|
}, 7199: function() {
|
|
18284
|
-
} },
|
|
18285
|
-
function
|
|
18286
|
-
var Le =
|
|
18300
|
+
} }, ar = {};
|
|
18301
|
+
function Bn(vt) {
|
|
18302
|
+
var Le = ar[vt];
|
|
18287
18303
|
if (Le !== void 0) return Le.exports;
|
|
18288
|
-
var M =
|
|
18289
|
-
return
|
|
18304
|
+
var M = ar[vt] = { exports: {} };
|
|
18305
|
+
return Cr[vt].call(M.exports, M, M.exports, Bn), M.exports;
|
|
18290
18306
|
}
|
|
18291
|
-
|
|
18307
|
+
Bn.amdO = {}, Bn.n = function(vt) {
|
|
18292
18308
|
var Le = vt && vt.__esModule ? function() {
|
|
18293
18309
|
return vt.default;
|
|
18294
18310
|
} : function() {
|
|
18295
18311
|
return vt;
|
|
18296
18312
|
};
|
|
18297
|
-
return
|
|
18298
|
-
},
|
|
18299
|
-
for (var M in Le)
|
|
18300
|
-
},
|
|
18313
|
+
return Bn.d(Le, { a: Le }), Le;
|
|
18314
|
+
}, Bn.d = function(vt, Le) {
|
|
18315
|
+
for (var M in Le) Bn.o(Le, M) && !Bn.o(vt, M) && Object.defineProperty(vt, M, { enumerable: !0, get: Le[M] });
|
|
18316
|
+
}, Bn.g = (function() {
|
|
18301
18317
|
if (typeof globalThis == "object") return globalThis;
|
|
18302
18318
|
try {
|
|
18303
18319
|
return this || new Function("return this")();
|
|
18304
18320
|
} catch {
|
|
18305
18321
|
if (typeof window == "object") return window;
|
|
18306
18322
|
}
|
|
18307
|
-
})(),
|
|
18323
|
+
})(), Bn.o = function(vt, Le) {
|
|
18308
18324
|
return Object.prototype.hasOwnProperty.call(vt, Le);
|
|
18309
18325
|
};
|
|
18310
|
-
var
|
|
18326
|
+
var Dr = {};
|
|
18311
18327
|
return (function() {
|
|
18312
|
-
|
|
18328
|
+
Bn.d(Dr, { default: function() {
|
|
18313
18329
|
return y;
|
|
18314
|
-
} }),
|
|
18315
|
-
var vt, Le =
|
|
18330
|
+
} }), Bn(1229);
|
|
18331
|
+
var vt, Le = Bn(6035), M = Bn(1648), ce = Bn(8496), I = Bn(4716), u = /* @__PURE__ */ (function() {
|
|
18316
18332
|
var i, h = "application/dash+xml";
|
|
18317
18333
|
function g(m, d, T) {
|
|
18318
18334
|
if (!m || !/^VIDEO$/i.test(m.nodeName)) return null;
|
|
@@ -18346,19 +18362,19 @@ Actual: ` + c.attribValue);
|
|
|
18346
18362
|
}), 500) : window.addEventListener("load", (function i() {
|
|
18347
18363
|
window.removeEventListener("load", i), u.createAll();
|
|
18348
18364
|
})));
|
|
18349
|
-
var n = u, _ =
|
|
18365
|
+
var n = u, _ = Bn(4413);
|
|
18350
18366
|
dashjs.Protection = ce.default, dashjs.MetricsReporting = M.default, dashjs.MediaPlayerFactory = n, dashjs.Debug = _.A, dashjs.supportsMediaSource = Le.a;
|
|
18351
18367
|
var y = dashjs;
|
|
18352
|
-
})(),
|
|
18368
|
+
})(), Dr.default;
|
|
18353
18369
|
})();
|
|
18354
18370
|
}));
|
|
18355
|
-
})(
|
|
18371
|
+
})(va)), va.exports;
|
|
18356
18372
|
}
|
|
18357
|
-
var
|
|
18358
|
-
const
|
|
18373
|
+
var Qo = ol();
|
|
18374
|
+
const sl = /* @__PURE__ */ il(Qo), ll = /* @__PURE__ */ al({
|
|
18359
18375
|
__proto__: null,
|
|
18360
|
-
default:
|
|
18361
|
-
},
|
|
18376
|
+
default: sl
|
|
18377
|
+
}, [Qo]);
|
|
18362
18378
|
export {
|
|
18363
|
-
|
|
18379
|
+
ll as d
|
|
18364
18380
|
};
|