@das-fed/ui 7.1.0-dev.7 → 7.1.0-dev.8
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/package.json +5 -5
- package/packages/business-components/ai-panel/{index-DMJXZM7n.js → index-8yffh0Id.js} +1056 -1067
- package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-MqhMkLo9.js → index-IzGl26KU.js} +9 -9
- package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-_q72oKSF.js → index-OwRrV6K8.js} +62 -63
- package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js +11894 -11996
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/echarts/index.js +2049 -2056
- package/packages/business-components/echarts/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +46 -46
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +99 -99
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +77 -77
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +213 -215
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1096 -1104
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +240 -243
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +64 -65
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +6 -12
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/calendar/index.js +99 -99
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.js +2 -2
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +30 -30
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/date-picker/index.js +212 -212
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/index.js +1 -3
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +75 -77
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +24 -25
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +397 -398
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +45 -47
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form-item/index.js +67 -67
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/hls-player/index.js +7 -14
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +143 -147
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +293 -297
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +52 -52
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-number/index.js +26 -26
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +248 -251
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +415 -421
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/index.js +6 -6
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/popover/index.js +12 -12
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +34 -34
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +4583 -4613
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +135 -135
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +24 -24
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/select/index.js +60 -60
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/index.js +5 -9
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +14 -16
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +51 -53
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.js +33 -33
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +128 -129
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +178 -179
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/time-line/index.js +1 -1
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +1 -1
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-table/index.js +2 -2
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +1093 -1117
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-DMJXZM7n.js.gz +0 -0
- package/packages/business-components/ai-panel/index-MqhMkLo9.js.gz +0 -0
- package/packages/business-components/ai-panel/index-_q72oKSF.js.gz +0 -0
|
@@ -47,24 +47,24 @@ var Tt = { exports: {} };
|
|
|
47
47
|
}
|
|
48
48
|
return b.e = function(v, f) {
|
|
49
49
|
v && !b.FORCE_GLOBAL_TAG || (v = b.GLOBAL_TAG);
|
|
50
|
-
var
|
|
51
|
-
b.ENABLE_CALLBACK && b.emitter.emit("log", "error",
|
|
50
|
+
var L = "[" + v + "] > " + f;
|
|
51
|
+
b.ENABLE_CALLBACK && b.emitter.emit("log", "error", L), b.ENABLE_ERROR;
|
|
52
52
|
}, b.i = function(v, f) {
|
|
53
53
|
v && !b.FORCE_GLOBAL_TAG || (v = b.GLOBAL_TAG);
|
|
54
|
-
var
|
|
55
|
-
b.ENABLE_CALLBACK && b.emitter.emit("log", "info",
|
|
54
|
+
var L = "[" + v + "] > " + f;
|
|
55
|
+
b.ENABLE_CALLBACK && b.emitter.emit("log", "info", L), b.ENABLE_INFO;
|
|
56
56
|
}, b.w = function(v, f) {
|
|
57
57
|
v && !b.FORCE_GLOBAL_TAG || (v = b.GLOBAL_TAG);
|
|
58
|
-
var
|
|
59
|
-
b.ENABLE_CALLBACK && b.emitter.emit("log", "warn",
|
|
58
|
+
var L = "[" + v + "] > " + f;
|
|
59
|
+
b.ENABLE_CALLBACK && b.emitter.emit("log", "warn", L), b.ENABLE_WARN;
|
|
60
60
|
}, b.d = function(v, f) {
|
|
61
61
|
v && !b.FORCE_GLOBAL_TAG || (v = b.GLOBAL_TAG);
|
|
62
|
-
var
|
|
63
|
-
b.ENABLE_CALLBACK && b.emitter.emit("log", "debug",
|
|
62
|
+
var L = "[" + v + "] > " + f;
|
|
63
|
+
b.ENABLE_CALLBACK && b.emitter.emit("log", "debug", L), b.ENABLE_DEBUG;
|
|
64
64
|
}, b.v = function(v, f) {
|
|
65
65
|
v && !b.FORCE_GLOBAL_TAG || (v = b.GLOBAL_TAG);
|
|
66
|
-
var
|
|
67
|
-
b.ENABLE_CALLBACK && b.emitter.emit("log", "verbose",
|
|
66
|
+
var L = "[" + v + "] > " + f;
|
|
67
|
+
b.ENABLE_CALLBACK && b.emitter.emit("log", "verbose", L), b.ENABLE_VERBOSE;
|
|
68
68
|
}, b;
|
|
69
69
|
}();
|
|
70
70
|
m.GLOBAL_TAG = "mpegts.js", m.FORCE_GLOBAL_TAG = !1, m.ENABLE_ERROR = !0, m.ENABLE_INFO = !0, m.ENABLE_WARN = !0, m.ENABLE_DEBUG = !0, m.ENABLE_VERBOSE = !0, m.ENABLE_CALLBACK = !1, m.emitter = new B.a(), Z.a = m;
|
|
@@ -112,7 +112,7 @@ var Tt = { exports: {} };
|
|
|
112
112
|
return this._onComplete;
|
|
113
113
|
}, set: function(f) {
|
|
114
114
|
this._onComplete = f;
|
|
115
|
-
}, enumerable: !1, configurable: !0 }), v.prototype.open = function(f,
|
|
115
|
+
}, enumerable: !1, configurable: !0 }), v.prototype.open = function(f, L) {
|
|
116
116
|
throw new U.c("Unimplemented abstract function!");
|
|
117
117
|
}, v.prototype.abort = function() {
|
|
118
118
|
throw new U.c("Unimplemented abstract function!");
|
|
@@ -128,47 +128,47 @@ var Tt = { exports: {} };
|
|
|
128
128
|
}), O.d(Z, "c", function() {
|
|
129
129
|
return f;
|
|
130
130
|
});
|
|
131
|
-
var U, B = (U = function(
|
|
131
|
+
var U, B = (U = function(L, M) {
|
|
132
132
|
return (U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, j) {
|
|
133
133
|
C.__proto__ = j;
|
|
134
134
|
} || function(C, j) {
|
|
135
135
|
for (var H in j) j.hasOwnProperty(H) && (C[H] = j[H]);
|
|
136
|
-
})(
|
|
137
|
-
}, function(
|
|
136
|
+
})(L, M);
|
|
137
|
+
}, function(L, M) {
|
|
138
138
|
function C() {
|
|
139
|
-
this.constructor =
|
|
139
|
+
this.constructor = L;
|
|
140
140
|
}
|
|
141
|
-
U(
|
|
141
|
+
U(L, M), L.prototype = M === null ? Object.create(M) : (C.prototype = M.prototype, new C());
|
|
142
142
|
}), m = function() {
|
|
143
|
-
function
|
|
143
|
+
function L(M) {
|
|
144
144
|
this._message = M;
|
|
145
145
|
}
|
|
146
|
-
return Object.defineProperty(
|
|
146
|
+
return Object.defineProperty(L.prototype, "name", { get: function() {
|
|
147
147
|
return "RuntimeException";
|
|
148
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
148
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "message", { get: function() {
|
|
149
149
|
return this._message;
|
|
150
|
-
}, enumerable: !1, configurable: !0 }),
|
|
150
|
+
}, enumerable: !1, configurable: !0 }), L.prototype.toString = function() {
|
|
151
151
|
return this.name + ": " + this.message;
|
|
152
|
-
},
|
|
153
|
-
}(), b = function(
|
|
152
|
+
}, L;
|
|
153
|
+
}(), b = function(L) {
|
|
154
154
|
function M(C) {
|
|
155
|
-
return
|
|
155
|
+
return L.call(this, C) || this;
|
|
156
156
|
}
|
|
157
|
-
return B(M,
|
|
157
|
+
return B(M, L), Object.defineProperty(M.prototype, "name", { get: function() {
|
|
158
158
|
return "IllegalStateException";
|
|
159
159
|
}, enumerable: !1, configurable: !0 }), M;
|
|
160
|
-
}(m), v = function(
|
|
160
|
+
}(m), v = function(L) {
|
|
161
161
|
function M(C) {
|
|
162
|
-
return
|
|
162
|
+
return L.call(this, C) || this;
|
|
163
163
|
}
|
|
164
|
-
return B(M,
|
|
164
|
+
return B(M, L), Object.defineProperty(M.prototype, "name", { get: function() {
|
|
165
165
|
return "InvalidArgumentException";
|
|
166
166
|
}, enumerable: !1, configurable: !0 }), M;
|
|
167
|
-
}(m), f = function(
|
|
167
|
+
}(m), f = function(L) {
|
|
168
168
|
function M(C) {
|
|
169
|
-
return
|
|
169
|
+
return L.call(this, C) || this;
|
|
170
170
|
}
|
|
171
|
-
return B(M,
|
|
171
|
+
return B(M, L), Object.defineProperty(M.prototype, "name", { get: function() {
|
|
172
172
|
return "NotImplementedException";
|
|
173
173
|
}, enumerable: !1, configurable: !0 }), M;
|
|
174
174
|
}(m);
|
|
@@ -178,8 +178,8 @@ var Tt = { exports: {} };
|
|
|
178
178
|
var B = self.navigator.userAgent.toLowerCase(), m = /(edge)\/([\w.]+)/.exec(B) || /(opr)[\/]([\w.]+)/.exec(B) || /(chrome)[ \/]([\w.]+)/.exec(B) || /(iemobile)[\/]([\w.]+)/.exec(B) || /(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(B) || /(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(B) || /(webkit)[ \/]([\w.]+)/.exec(B) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(B) || /(msie) ([\w.]+)/.exec(B) || B.indexOf("trident") >= 0 && /(rv)(?::| )([\w.]+)/.exec(B) || B.indexOf("compatible") < 0 && /(firefox)[ \/]([\w.]+)/.exec(B) || [], b = /(ipad)/.exec(B) || /(ipod)/.exec(B) || /(windows phone)/.exec(B) || /(iphone)/.exec(B) || /(kindle)/.exec(B) || /(android)/.exec(B) || /(windows)/.exec(B) || /(mac)/.exec(B) || /(linux)/.exec(B) || /(cros)/.exec(B) || [], v = { browser: m[5] || m[3] || m[1] || "", version: m[2] || m[4] || "0", majorVersion: m[4] || m[2] || "0", platform: b[0] || "" }, f = {};
|
|
179
179
|
if (v.browser) {
|
|
180
180
|
f[v.browser] = !0;
|
|
181
|
-
var
|
|
182
|
-
f.version = { major: parseInt(v.majorVersion, 10), string: v.version },
|
|
181
|
+
var L = v.majorVersion.split(".");
|
|
182
|
+
f.version = { major: parseInt(v.majorVersion, 10), string: v.version }, L.length > 1 && (f.version.minor = parseInt(L[1], 10)), L.length > 2 && (f.version.build = parseInt(L[2], 10));
|
|
183
183
|
}
|
|
184
184
|
v.platform && (f[v.platform] = !0), (f.chrome || f.opr || f.safari) && (f.webkit = !0), (f.rv || f.iemobile) && (f.rv && delete f.rv, v.browser = "msie", f.msie = !0), f.edge && (delete f.edge, v.browser = "msedge", f.msedge = !0), f.opr && (v.browser = "opera", f.opera = !0), f.safari && f.android && (v.browser = "android", f.android = !0);
|
|
185
185
|
for (var M in f.name = v.browser, f.platform = v.platform, U) U.hasOwnProperty(M) && delete U[M];
|
|
@@ -216,7 +216,7 @@ var Tt = { exports: {} };
|
|
|
216
216
|
});
|
|
217
217
|
}, v.EventEmitter = v, v.prototype._events = void 0, v.prototype._eventsCount = 0, v.prototype._maxListeners = void 0;
|
|
218
218
|
var f = 10;
|
|
219
|
-
function
|
|
219
|
+
function L(y) {
|
|
220
220
|
if (typeof y != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof y);
|
|
221
221
|
}
|
|
222
222
|
function M(y) {
|
|
@@ -224,11 +224,11 @@ var Tt = { exports: {} };
|
|
|
224
224
|
}
|
|
225
225
|
function C(y, G, T, l) {
|
|
226
226
|
var u, _, h, P;
|
|
227
|
-
if (
|
|
227
|
+
if (L(T), (_ = y._events) === void 0 ? (_ = y._events = /* @__PURE__ */ Object.create(null), y._eventsCount = 0) : (_.newListener !== void 0 && (y.emit("newListener", G, T.listener ? T.listener : T), _ = y._events), h = _[G]), h === void 0) h = _[G] = T, ++y._eventsCount;
|
|
228
228
|
else if (typeof h == "function" ? h = _[G] = l ? [T, h] : [h, T] : l ? h.unshift(T) : h.push(T), (u = M(y)) > 0 && h.length > u && !h.warned) {
|
|
229
229
|
h.warned = !0;
|
|
230
230
|
var D = new Error("Possible EventEmitter memory leak detected. " + h.length + " " + String(G) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
231
|
-
D.name = "MaxListenersExceededWarning", D.emitter = y, D.type = G, D.count = h.length, P = D
|
|
231
|
+
D.name = "MaxListenersExceededWarning", D.emitter = y, D.type = G, D.count = h.length, P = D;
|
|
232
232
|
}
|
|
233
233
|
return y;
|
|
234
234
|
}
|
|
@@ -306,12 +306,12 @@ var Tt = { exports: {} };
|
|
|
306
306
|
}, v.prototype.on = v.prototype.addListener, v.prototype.prependListener = function(y, G) {
|
|
307
307
|
return C(this, y, G, !0);
|
|
308
308
|
}, v.prototype.once = function(y, G) {
|
|
309
|
-
return
|
|
309
|
+
return L(G), this.on(y, H(this, y, G)), this;
|
|
310
310
|
}, v.prototype.prependOnceListener = function(y, G) {
|
|
311
|
-
return
|
|
311
|
+
return L(G), this.prependListener(y, H(this, y, G)), this;
|
|
312
312
|
}, v.prototype.removeListener = function(y, G) {
|
|
313
313
|
var T, l, u, _, h;
|
|
314
|
-
if (
|
|
314
|
+
if (L(G), (l = this._events) === void 0) return this;
|
|
315
315
|
if ((T = l[y]) === void 0) return this;
|
|
316
316
|
if (T === G || T.listener === G) --this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete l[y], l.removeListener && this.emit("removeListener", y, T.listener || G));
|
|
317
317
|
else if (typeof T != "function") {
|
|
@@ -357,8 +357,8 @@ var Tt = { exports: {} };
|
|
|
357
357
|
}), O.d(Z, "c", function() {
|
|
358
358
|
return b;
|
|
359
359
|
});
|
|
360
|
-
var U = function(v, f,
|
|
361
|
-
this.dts = v, this.pts = f, this.duration =
|
|
360
|
+
var U = function(v, f, L, M, C) {
|
|
361
|
+
this.dts = v, this.pts = f, this.duration = L, this.originalDts = M, this.isSyncPoint = C, this.fileposition = null;
|
|
362
362
|
}, B = function() {
|
|
363
363
|
function v() {
|
|
364
364
|
this.beginDts = 0, this.endDts = 0, this.beginPts = 0, this.endPts = 0, this.originalBeginDts = 0, this.originalEndDts = 0, this.syncPoints = [], this.firstSample = null, this.lastSample = null;
|
|
@@ -373,17 +373,17 @@ var Tt = { exports: {} };
|
|
|
373
373
|
return v.prototype.clear = function() {
|
|
374
374
|
this._list = [];
|
|
375
375
|
}, v.prototype.appendArray = function(f) {
|
|
376
|
-
var
|
|
377
|
-
f.length !== 0 && (
|
|
376
|
+
var L = this._list;
|
|
377
|
+
f.length !== 0 && (L.length > 0 && f[0].originalDts < L[L.length - 1].originalDts && this.clear(), Array.prototype.push.apply(L, f));
|
|
378
378
|
}, v.prototype.getLastSyncPointBeforeDts = function(f) {
|
|
379
379
|
if (this._list.length == 0) return null;
|
|
380
|
-
var
|
|
381
|
-
for (f <
|
|
382
|
-
if ((j = H + Math.floor((le - H) / 2)) === C || f >=
|
|
380
|
+
var L = this._list, M = 0, C = L.length - 1, j = 0, H = 0, le = C;
|
|
381
|
+
for (f < L[0].dts && (M = 0, H = le + 1); H <= le; ) {
|
|
382
|
+
if ((j = H + Math.floor((le - H) / 2)) === C || f >= L[j].dts && f < L[j + 1].dts) {
|
|
383
383
|
M = j;
|
|
384
384
|
break;
|
|
385
385
|
}
|
|
386
|
-
|
|
386
|
+
L[j].dts < f ? H = j + 1 : le = j - 1;
|
|
387
387
|
}
|
|
388
388
|
return this._list[M];
|
|
389
389
|
}, v;
|
|
@@ -400,31 +400,31 @@ var Tt = { exports: {} };
|
|
|
400
400
|
}, v.prototype.clear = function() {
|
|
401
401
|
this._list = [], this._lastAppendLocation = -1;
|
|
402
402
|
}, v.prototype._searchNearestSegmentBefore = function(f) {
|
|
403
|
-
var
|
|
404
|
-
if (
|
|
405
|
-
var M =
|
|
406
|
-
if (f <
|
|
403
|
+
var L = this._list;
|
|
404
|
+
if (L.length === 0) return -2;
|
|
405
|
+
var M = L.length - 1, C = 0, j = 0, H = M, le = 0;
|
|
406
|
+
if (f < L[0].originalBeginDts) return le = -1;
|
|
407
407
|
for (; j <= H; ) {
|
|
408
|
-
if ((C = j + Math.floor((H - j) / 2)) === M || f >
|
|
408
|
+
if ((C = j + Math.floor((H - j) / 2)) === M || f > L[C].lastSample.originalDts && f < L[C + 1].originalBeginDts) {
|
|
409
409
|
le = C;
|
|
410
410
|
break;
|
|
411
411
|
}
|
|
412
|
-
|
|
412
|
+
L[C].originalBeginDts < f ? j = C + 1 : H = C - 1;
|
|
413
413
|
}
|
|
414
414
|
return le;
|
|
415
415
|
}, v.prototype._searchNearestSegmentAfter = function(f) {
|
|
416
416
|
return this._searchNearestSegmentBefore(f) + 1;
|
|
417
417
|
}, v.prototype.append = function(f) {
|
|
418
|
-
var
|
|
419
|
-
C !== -1 && C <
|
|
418
|
+
var L = this._list, M = f, C = this._lastAppendLocation, j = 0;
|
|
419
|
+
C !== -1 && C < L.length && M.originalBeginDts >= L[C].lastSample.originalDts && (C === L.length - 1 || C < L.length - 1 && M.originalBeginDts < L[C + 1].originalBeginDts) ? j = C + 1 : L.length > 0 && (j = this._searchNearestSegmentBefore(M.originalBeginDts) + 1), this._lastAppendLocation = j, this._list.splice(j, 0, M);
|
|
420
420
|
}, v.prototype.getLastSegmentBefore = function(f) {
|
|
421
|
-
var
|
|
422
|
-
return
|
|
421
|
+
var L = this._searchNearestSegmentBefore(f);
|
|
422
|
+
return L >= 0 ? this._list[L] : null;
|
|
423
423
|
}, v.prototype.getLastSampleBefore = function(f) {
|
|
424
|
-
var
|
|
425
|
-
return
|
|
424
|
+
var L = this.getLastSegmentBefore(f);
|
|
425
|
+
return L != null ? L.lastSample : null;
|
|
426
426
|
}, v.prototype.getLastSyncPointBefore = function(f) {
|
|
427
|
-
for (var
|
|
427
|
+
for (var L = this._searchNearestSegmentBefore(f), M = this._list[L].syncPoints; M.length === 0 && L > 0; ) L--, M = this._list[L].syncPoints;
|
|
428
428
|
return M.length > 0 ? M[M.length - 1] : null;
|
|
429
429
|
}, v;
|
|
430
430
|
}();
|
|
@@ -443,13 +443,13 @@ var Tt = { exports: {} };
|
|
|
443
443
|
var b = this.keyframesIndex, v = this._search(b.times, m);
|
|
444
444
|
return { index: v, milliseconds: b.times[v], fileposition: b.filepositions[v] };
|
|
445
445
|
}, B.prototype._search = function(m, b) {
|
|
446
|
-
var v = 0, f = m.length - 1,
|
|
446
|
+
var v = 0, f = m.length - 1, L = 0, M = 0, C = f;
|
|
447
447
|
for (b < m[0] && (v = 0, M = C + 1); M <= C; ) {
|
|
448
|
-
if ((
|
|
449
|
-
v =
|
|
448
|
+
if ((L = M + Math.floor((C - M) / 2)) === f || b >= m[L] && b < m[L + 1]) {
|
|
449
|
+
v = L;
|
|
450
450
|
break;
|
|
451
451
|
}
|
|
452
|
-
m[
|
|
452
|
+
m[L] < b ? M = L + 1 : C = L - 1;
|
|
453
453
|
}
|
|
454
454
|
return v;
|
|
455
455
|
}, B;
|
|
@@ -498,8 +498,8 @@ var Tt = { exports: {} };
|
|
|
498
498
|
}, v._notifyChange = function() {
|
|
499
499
|
var f = v.emitter;
|
|
500
500
|
if (f.listenerCount("change") > 0) {
|
|
501
|
-
var
|
|
502
|
-
f.emit("change",
|
|
501
|
+
var L = v.getConfig();
|
|
502
|
+
f.emit("change", L);
|
|
503
503
|
}
|
|
504
504
|
}, v.registerListener = function(f) {
|
|
505
505
|
v.emitter.addListener("change", f);
|
|
@@ -522,7 +522,7 @@ var Tt = { exports: {} };
|
|
|
522
522
|
}
|
|
523
523
|
return !1;
|
|
524
524
|
}
|
|
525
|
-
var
|
|
525
|
+
var L, M = function(r) {
|
|
526
526
|
for (var t = [], i = r, e = 0, a = r.length; e < a; ) if (i[e] < 128) t.push(String.fromCharCode(i[e])), ++e;
|
|
527
527
|
else {
|
|
528
528
|
if (!(i[e] < 192)) {
|
|
@@ -547,7 +547,7 @@ var Tt = { exports: {} };
|
|
|
547
547
|
t.push("�"), ++e;
|
|
548
548
|
}
|
|
549
549
|
return t.join("");
|
|
550
|
-
}, C = O(3), j = (
|
|
550
|
+
}, C = O(3), j = (L = new ArrayBuffer(2), new DataView(L).setInt16(0, 256, !0), new Int16Array(L)[0] === 256), H = function() {
|
|
551
551
|
function r() {
|
|
552
552
|
}
|
|
553
553
|
return r.parseScriptData = function(t, i, e) {
|
|
@@ -1285,7 +1285,7 @@ var Tt = { exports: {} };
|
|
|
1285
1285
|
(function(r) {
|
|
1286
1286
|
r[r.kUnspecified = 0] = "kUnspecified", r[r.kSliceNonIDR = 1] = "kSliceNonIDR", r[r.kSliceDPA = 2] = "kSliceDPA", r[r.kSliceDPB = 3] = "kSliceDPB", r[r.kSliceDPC = 4] = "kSliceDPC", r[r.kSliceIDR = 5] = "kSliceIDR", r[r.kSliceSEI = 6] = "kSliceSEI", r[r.kSliceSPS = 7] = "kSliceSPS", r[r.kSlicePPS = 8] = "kSlicePPS", r[r.kSliceAUD = 9] = "kSliceAUD", r[r.kEndOfSequence = 10] = "kEndOfSequence", r[r.kEndOfStream = 11] = "kEndOfStream", r[r.kFiller = 12] = "kFiller", r[r.kSPSExt = 13] = "kSPSExt", r[r.kReserved0 = 14] = "kReserved0";
|
|
1287
1287
|
})(D || (D = {}));
|
|
1288
|
-
var
|
|
1288
|
+
var k, d, c = function() {
|
|
1289
1289
|
}, R = function(r) {
|
|
1290
1290
|
var t = r.data.byteLength;
|
|
1291
1291
|
this.type = r.type, this.data = new Uint8Array(4 + t), new DataView(this.data.buffer).setUint32(0, t), this.data.set(r.data, 4);
|
|
@@ -1329,7 +1329,7 @@ var Tt = { exports: {} };
|
|
|
1329
1329
|
}();
|
|
1330
1330
|
(function(r) {
|
|
1331
1331
|
r[r.kNull = 0] = "kNull", r[r.kAACMain = 1] = "kAACMain", r[r.kAAC_LC = 2] = "kAAC_LC", r[r.kAAC_SSR = 3] = "kAAC_SSR", r[r.kAAC_LTP = 4] = "kAAC_LTP", r[r.kAAC_SBR = 5] = "kAAC_SBR", r[r.kAAC_Scalable = 6] = "kAAC_Scalable", r[r.kLayer1 = 32] = "kLayer1", r[r.kLayer2 = 33] = "kLayer2", r[r.kLayer3 = 34] = "kLayer3";
|
|
1332
|
-
})(
|
|
1332
|
+
})(k || (k = {})), function(r) {
|
|
1333
1333
|
r[r.k96000Hz = 0] = "k96000Hz", r[r.k88200Hz = 1] = "k88200Hz", r[r.k64000Hz = 2] = "k64000Hz", r[r.k48000Hz = 3] = "k48000Hz", r[r.k44100Hz = 4] = "k44100Hz", r[r.k32000Hz = 5] = "k32000Hz", r[r.k24000Hz = 6] = "k24000Hz", r[r.k22050Hz = 7] = "k22050Hz", r[r.k16000Hz = 8] = "k16000Hz", r[r.k12000Hz = 9] = "k12000Hz", r[r.k11025Hz = 10] = "k11025Hz", r[r.k8000Hz = 11] = "k8000Hz", r[r.k7350Hz = 12] = "k7350Hz";
|
|
1334
1334
|
}(d || (d = {}));
|
|
1335
1335
|
var me, Se, De = [96e3, 88200, 64e3, 48e3, 44100, 32e3, 24e3, 22050, 16e3, 12e3, 11025, 8e3, 7350], Te = (me = function(r, t) {
|
|
@@ -1443,14 +1443,12 @@ var Tt = { exports: {} };
|
|
|
1443
1443
|
n.readByte();
|
|
1444
1444
|
var I = n.readBool();
|
|
1445
1445
|
if (I) if (p) this.getLATMValue(n);
|
|
1446
|
-
else
|
|
1446
|
+
else
|
|
1447
1447
|
for (var z = 0; ; ) {
|
|
1448
1448
|
z <<= 8;
|
|
1449
1449
|
var N = n.readBool();
|
|
1450
1450
|
if (z += n.readByte(), !N) break;
|
|
1451
1451
|
}
|
|
1452
|
-
console.log(z);
|
|
1453
|
-
}
|
|
1454
1452
|
n.readBool() && n.readByte(), (o = new F()).audio_object_type = E, o.sampling_freq_index = A, o.sampling_frequency = De[o.sampling_freq_index], o.channel_config = S, o.other_data_present = I;
|
|
1455
1453
|
}
|
|
1456
1454
|
for (var J = 0; ; ) {
|
|
@@ -1995,7 +1993,7 @@ var Tt = { exports: {} };
|
|
|
1995
1993
|
for (var n, o = new Ft(i), p = null, g = s; (p = o.readNextAC3Frame()) != null; ) {
|
|
1996
1994
|
a = 1536 / p.sampling_frequency * 1e3;
|
|
1997
1995
|
var E = { codec: "ac-3", data: p };
|
|
1998
|
-
this.audio_init_segment_dispatched_ == 0 ? (this.audio_metadata_ = { codec: "ac-3", sampling_frequency: p.sampling_frequency, bit_stream_identification: p.bit_stream_identification, bit_stream_mode: p.bit_stream_mode, low_frequency_effects_channel_on: p.low_frequency_effects_channel_on, channel_mode: p.channel_mode },
|
|
1996
|
+
this.audio_init_segment_dispatched_ == 0 ? (this.audio_metadata_ = { codec: "ac-3", sampling_frequency: p.sampling_frequency, bit_stream_identification: p.bit_stream_identification, bit_stream_mode: p.bit_stream_mode, low_frequency_effects_channel_on: p.low_frequency_effects_channel_on, channel_mode: p.channel_mode }, this.dispatchAudioInitSegment(E)) : this.detectAudioMetadataChange(E) && (this.dispatchAudioMediaSegment(), this.dispatchAudioInitSegment(E)), n = g;
|
|
1999
1997
|
var A = Math.floor(g), S = { unit: p.data, length: p.data.byteLength, pts: A, dts: A };
|
|
2000
1998
|
this.audio_track_.samples.push(S), this.audio_track_.length += p.data.byteLength, g += a;
|
|
2001
1999
|
}
|
|
@@ -2621,7 +2619,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2621
2619
|
var l = (this._now() - this._firstCheckpoint) / 1e3;
|
|
2622
2620
|
return this._totalBytes / l / 1024;
|
|
2623
2621
|
}, enumerable: !1, configurable: !0 }), T;
|
|
2624
|
-
}(), b = O(2), v = O(4), f = O(3),
|
|
2622
|
+
}(), b = O(2), v = O(4), f = O(3), L = (U = function(T, l) {
|
|
2625
2623
|
return (U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, _) {
|
|
2626
2624
|
u.__proto__ = _;
|
|
2627
2625
|
} || function(u, _) {
|
|
@@ -2637,7 +2635,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2637
2635
|
var h = T.call(this, "fetch-stream-loader") || this;
|
|
2638
2636
|
return h.TAG = "FetchStreamLoader", h._seekHandler = u, h._config = _, h._needStash = !0, h._requestAbort = !1, h._abortController = null, h._contentLength = null, h._receivedLength = 0, h;
|
|
2639
2637
|
}
|
|
2640
|
-
return
|
|
2638
|
+
return L(l, T), l.isSupported = function() {
|
|
2641
2639
|
try {
|
|
2642
2640
|
var u = v.a.msedge && v.a.version.minor >= 15048, _ = !v.a.msedge || u;
|
|
2643
2641
|
return self.fetch && self.ReadableStream && _;
|
|
@@ -2658,22 +2656,22 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2658
2656
|
}
|
|
2659
2657
|
var ve = { method: "GET", headers: V, mode: "cors", cache: "default", referrerPolicy: "no-referrer-when-downgrade" };
|
|
2660
2658
|
if (typeof this._config.headers == "object") for (var pe in this._config.headers) V.append(pe, this._config.headers[pe]);
|
|
2661
|
-
u.cors === !1 && (ve.mode = "same-origin"), u.withCredentials && (ve.credentials = "include"), u.referrerPolicy && (ve.referrerPolicy = u.referrerPolicy), self.AbortController && (this._abortController = new self.AbortController(), ve.signal = this._abortController.signal), this._status = b.c.kConnecting, self.fetch(D.url, ve).then(function(
|
|
2662
|
-
if (h._requestAbort) return h._status = b.c.kIdle, void
|
|
2663
|
-
if (
|
|
2664
|
-
if (
|
|
2665
|
-
var d = h._seekHandler.removeURLParameters(
|
|
2659
|
+
u.cors === !1 && (ve.mode = "same-origin"), u.withCredentials && (ve.credentials = "include"), u.referrerPolicy && (ve.referrerPolicy = u.referrerPolicy), self.AbortController && (this._abortController = new self.AbortController(), ve.signal = this._abortController.signal), this._status = b.c.kConnecting, self.fetch(D.url, ve).then(function(k) {
|
|
2660
|
+
if (h._requestAbort) return h._status = b.c.kIdle, void k.body.cancel();
|
|
2661
|
+
if (k.ok && k.status >= 200 && k.status <= 299) {
|
|
2662
|
+
if (k.url !== D.url && h._onURLRedirect) {
|
|
2663
|
+
var d = h._seekHandler.removeURLParameters(k.url);
|
|
2666
2664
|
h._onURLRedirect(d);
|
|
2667
2665
|
}
|
|
2668
|
-
var c =
|
|
2669
|
-
return c != null && (h._contentLength = parseInt(c), h._contentLength !== 0 && h._onContentLengthKnown && h._onContentLengthKnown(h._contentLength)), h._pump.call(h,
|
|
2666
|
+
var c = k.headers.get("Content-Length");
|
|
2667
|
+
return c != null && (h._contentLength = parseInt(c), h._contentLength !== 0 && h._onContentLengthKnown && h._onContentLengthKnown(h._contentLength)), h._pump.call(h, k.body.getReader());
|
|
2670
2668
|
}
|
|
2671
|
-
if (h._status = b.c.kError, !h._onError) throw new f.d("FetchStreamLoader: Http code invalid, " +
|
|
2672
|
-
h._onError(b.b.HTTP_STATUS_CODE_INVALID, { code:
|
|
2673
|
-
}).catch(function(
|
|
2669
|
+
if (h._status = b.c.kError, !h._onError) throw new f.d("FetchStreamLoader: Http code invalid, " + k.status + " " + k.statusText);
|
|
2670
|
+
h._onError(b.b.HTTP_STATUS_CODE_INVALID, { code: k.status, msg: k.statusText });
|
|
2671
|
+
}).catch(function(k) {
|
|
2674
2672
|
if (!h._abortController || !h._abortController.signal.aborted) {
|
|
2675
|
-
if (h._status = b.c.kError, !h._onError) throw
|
|
2676
|
-
h._onError(b.b.EXCEPTION, { code: -1, msg:
|
|
2673
|
+
if (h._status = b.c.kError, !h._onError) throw k;
|
|
2674
|
+
h._onError(b.b.EXCEPTION, { code: -1, msg: k.message });
|
|
2677
2675
|
}
|
|
2678
2676
|
});
|
|
2679
2677
|
}, l.prototype.abort = function() {
|
|
@@ -3192,7 +3190,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3192
3190
|
if (m == null) throw new TypeError("Cannot convert undefined or null to object");
|
|
3193
3191
|
for (var b = Object(m), v = 1; v < arguments.length; v++) {
|
|
3194
3192
|
var f = arguments[v];
|
|
3195
|
-
if (f != null) for (var
|
|
3193
|
+
if (f != null) for (var L in f) f.hasOwnProperty(L) && (b[L] = f[L]);
|
|
3196
3194
|
}
|
|
3197
3195
|
return b;
|
|
3198
3196
|
}, typeof self.Promise != "function" && O(15).polyfill();
|
|
@@ -3202,53 +3200,53 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3202
3200
|
}, function(fe, Z, O) {
|
|
3203
3201
|
function U(v) {
|
|
3204
3202
|
var f = {};
|
|
3205
|
-
function
|
|
3203
|
+
function L(C) {
|
|
3206
3204
|
if (f[C]) return f[C].exports;
|
|
3207
3205
|
var j = f[C] = { i: C, l: !1, exports: {} };
|
|
3208
|
-
return v[C].call(j.exports, j, j.exports,
|
|
3206
|
+
return v[C].call(j.exports, j, j.exports, L), j.l = !0, j.exports;
|
|
3209
3207
|
}
|
|
3210
|
-
|
|
3208
|
+
L.m = v, L.c = f, L.i = function(C) {
|
|
3211
3209
|
return C;
|
|
3212
|
-
},
|
|
3213
|
-
|
|
3214
|
-
},
|
|
3210
|
+
}, L.d = function(C, j, H) {
|
|
3211
|
+
L.o(C, j) || Object.defineProperty(C, j, { configurable: !1, enumerable: !0, get: H });
|
|
3212
|
+
}, L.r = function(C) {
|
|
3215
3213
|
Object.defineProperty(C, "__esModule", { value: !0 });
|
|
3216
|
-
},
|
|
3214
|
+
}, L.n = function(C) {
|
|
3217
3215
|
var j = C && C.__esModule ? function() {
|
|
3218
3216
|
return C.default;
|
|
3219
3217
|
} : function() {
|
|
3220
3218
|
return C;
|
|
3221
3219
|
};
|
|
3222
|
-
return
|
|
3223
|
-
},
|
|
3220
|
+
return L.d(j, "a", j), j;
|
|
3221
|
+
}, L.o = function(C, j) {
|
|
3224
3222
|
return Object.prototype.hasOwnProperty.call(C, j);
|
|
3225
|
-
},
|
|
3226
|
-
throw
|
|
3223
|
+
}, L.p = "/", L.oe = function(C) {
|
|
3224
|
+
throw C;
|
|
3227
3225
|
};
|
|
3228
|
-
var M =
|
|
3226
|
+
var M = L(L.s = ENTRY_MODULE);
|
|
3229
3227
|
return M.default || M;
|
|
3230
3228
|
}
|
|
3231
3229
|
function B(v) {
|
|
3232
3230
|
return (v + "").replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
3233
3231
|
}
|
|
3234
|
-
function m(v, f,
|
|
3232
|
+
function m(v, f, L) {
|
|
3235
3233
|
var M = {};
|
|
3236
|
-
M[
|
|
3234
|
+
M[L] = [];
|
|
3237
3235
|
var C = f.toString(), j = C.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);
|
|
3238
3236
|
if (!j) return M;
|
|
3239
|
-
for (var H, le = j[1], ne = new RegExp("(\\\\n|\\W)" + B(le) + "\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)", "g"); H = ne.exec(C); ) H[3] !== "dll-reference" && M[
|
|
3240
|
-
for (ne = new RegExp("\\(" + B(le) + '\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)', "g"); H = ne.exec(C); ) v[H[2]] || (M[
|
|
3237
|
+
for (var H, le = j[1], ne = new RegExp("(\\\\n|\\W)" + B(le) + "\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)", "g"); H = ne.exec(C); ) H[3] !== "dll-reference" && M[L].push(H[3]);
|
|
3238
|
+
for (ne = new RegExp("\\(" + B(le) + '\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)', "g"); H = ne.exec(C); ) v[H[2]] || (M[L].push(H[1]), v[H[2]] = O(H[1]).m), M[H[2]] = M[H[2]] || [], M[H[2]].push(H[4]);
|
|
3241
3239
|
for (var X, ie = Object.keys(M), y = 0; y < ie.length; y++) for (var G = 0; G < M[ie[y]].length; G++) X = M[ie[y]][G], isNaN(1 * X) || (M[ie[y]][G] = 1 * M[ie[y]][G]);
|
|
3242
3240
|
return M;
|
|
3243
3241
|
}
|
|
3244
3242
|
function b(v) {
|
|
3245
|
-
return Object.keys(v).reduce(function(f,
|
|
3246
|
-
return f || v[
|
|
3243
|
+
return Object.keys(v).reduce(function(f, L) {
|
|
3244
|
+
return f || v[L].length > 0;
|
|
3247
3245
|
}, !1);
|
|
3248
3246
|
}
|
|
3249
3247
|
fe.exports = function(v, f) {
|
|
3250
3248
|
f = f || {};
|
|
3251
|
-
var
|
|
3249
|
+
var L = { main: O.m }, M = f.all ? { main: Object.keys(L.main) } : function(ne, X) {
|
|
3252
3250
|
for (var ie = { main: [X] }, y = { main: [] }, G = { main: {} }; b(ie); ) for (var T = Object.keys(ie), l = 0; l < T.length; l++) {
|
|
3253
3251
|
var u = T[l], _ = ie[u].pop();
|
|
3254
3252
|
if (G[u] = G[u] || {}, !G[u][_] && ne[u][_]) {
|
|
@@ -3257,17 +3255,17 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3257
3255
|
}
|
|
3258
3256
|
}
|
|
3259
3257
|
return y;
|
|
3260
|
-
}(
|
|
3258
|
+
}(L, v), C = "";
|
|
3261
3259
|
Object.keys(M).filter(function(ne) {
|
|
3262
3260
|
return ne !== "main";
|
|
3263
3261
|
}).forEach(function(ne) {
|
|
3264
3262
|
for (var X = 0; M[ne][X]; ) X++;
|
|
3265
|
-
M[ne].push(X),
|
|
3266
|
-
return JSON.stringify(ie) + ": " +
|
|
3263
|
+
M[ne].push(X), L[ne][X] = "(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })", C = C + "var " + ne + " = (" + U.toString().replace("ENTRY_MODULE", JSON.stringify(X)) + ")({" + M[ne].map(function(ie) {
|
|
3264
|
+
return JSON.stringify(ie) + ": " + L[ne][ie].toString();
|
|
3267
3265
|
}).join(",") + `});
|
|
3268
3266
|
`;
|
|
3269
3267
|
}), C = C + "new ((" + U.toString().replace("ENTRY_MODULE", JSON.stringify(v)) + ")({" + M.main.map(function(ne) {
|
|
3270
|
-
return JSON.stringify(ne) + ": " +
|
|
3268
|
+
return JSON.stringify(ne) + ": " + L.main[ne].toString();
|
|
3271
3269
|
}).join(",") + "}))(self);";
|
|
3272
3270
|
var j = new window.Blob([C], { type: "text/javascript" });
|
|
3273
3271
|
if (f.bare) return j;
|
|
@@ -3292,7 +3290,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3292
3290
|
}
|
|
3293
3291
|
var v = Array.isArray ? Array.isArray : function(x) {
|
|
3294
3292
|
return Object.prototype.toString.call(x) === "[object Array]";
|
|
3295
|
-
}, f = 0,
|
|
3293
|
+
}, f = 0, L = void 0, M = void 0, C = function(x, F) {
|
|
3296
3294
|
y[f] = x, y[f + 1] = F, (f += 2) === 2 && (M ? M(G) : h());
|
|
3297
3295
|
}, j = typeof window < "u" ? window : void 0, H = j || {}, le = H.MutationObserver || H.WebKitMutationObserver, ne = typeof self > "u" && U !== void 0 && {}.toString.call(U) === "[object process]", X = typeof Uint8ClampedArray < "u" && typeof importScripts < "u" && typeof MessageChannel < "u";
|
|
3298
3296
|
function ie() {
|
|
@@ -3333,8 +3331,8 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3333
3331
|
}) : h = j === void 0 ? function() {
|
|
3334
3332
|
try {
|
|
3335
3333
|
var x = Function("return this")().require("vertx");
|
|
3336
|
-
return (
|
|
3337
|
-
|
|
3334
|
+
return (L = x.runOnLoop || x.runOnContext) !== void 0 ? function() {
|
|
3335
|
+
L(G);
|
|
3338
3336
|
} : ie();
|
|
3339
3337
|
} catch {
|
|
3340
3338
|
return ie();
|
|
@@ -3381,14 +3379,14 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3381
3379
|
}
|
|
3382
3380
|
var re, ae;
|
|
3383
3381
|
}
|
|
3384
|
-
function
|
|
3382
|
+
function k(x) {
|
|
3385
3383
|
x._onerror && x._onerror(x._result), Y(x);
|
|
3386
3384
|
}
|
|
3387
3385
|
function d(x, F) {
|
|
3388
3386
|
x._state === void 0 && (x._result = F, x._state = 1, x._subscribers.length !== 0 && C(Y, x));
|
|
3389
3387
|
}
|
|
3390
3388
|
function c(x, F) {
|
|
3391
|
-
x._state === void 0 && (x._state = 2, x._result = F, C(
|
|
3389
|
+
x._state === void 0 && (x._state = 2, x._result = F, C(k, x));
|
|
3392
3390
|
}
|
|
3393
3391
|
function R(x, F, $, re) {
|
|
3394
3392
|
var ae = x._subscribers, ce = ae.length;
|
|
@@ -3556,17 +3554,17 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3556
3554
|
U = b;
|
|
3557
3555
|
}
|
|
3558
3556
|
})();
|
|
3559
|
-
var f,
|
|
3557
|
+
var f, L = [], M = !1, C = -1;
|
|
3560
3558
|
function j() {
|
|
3561
|
-
M && f && (M = !1, f.length ?
|
|
3559
|
+
M && f && (M = !1, f.length ? L = f.concat(L) : C = -1, L.length && H());
|
|
3562
3560
|
}
|
|
3563
3561
|
function H() {
|
|
3564
3562
|
if (!M) {
|
|
3565
3563
|
var X = v(j);
|
|
3566
3564
|
M = !0;
|
|
3567
|
-
for (var ie =
|
|
3568
|
-
for (f =
|
|
3569
|
-
C = -1, ie =
|
|
3565
|
+
for (var ie = L.length; ie; ) {
|
|
3566
|
+
for (f = L, L = []; ++C < ie; ) f && f[C].run();
|
|
3567
|
+
C = -1, ie = L.length;
|
|
3570
3568
|
}
|
|
3571
3569
|
f = null, M = !1, function(y) {
|
|
3572
3570
|
if (U === clearTimeout) return clearTimeout(y);
|
|
@@ -3591,7 +3589,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3591
3589
|
B.nextTick = function(X) {
|
|
3592
3590
|
var ie = new Array(arguments.length - 1);
|
|
3593
3591
|
if (arguments.length > 1) for (var y = 1; y < arguments.length; y++) ie[y - 1] = arguments[y];
|
|
3594
|
-
|
|
3592
|
+
L.push(new le(X, ie)), L.length !== 1 || M || v(H);
|
|
3595
3593
|
}, le.prototype.run = function() {
|
|
3596
3594
|
this.fun.apply(null, this.array);
|
|
3597
3595
|
}, B.title = "browser", B.browser = !0, B.env = {}, B.argv = [], B.version = "", B.versions = {}, B.on = ne, B.addListener = ne, B.once = ne, B.off = ne, B.removeListener = ne, B.removeAllListeners = ne, B.emit = ne, B.prependListener = ne, B.prependOnceListener = ne, B.listeners = function(X) {
|
|
@@ -3620,7 +3618,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3620
3618
|
O.r(Z);
|
|
3621
3619
|
var U = O(9), B = O(12), m = O(10), b = O(1);
|
|
3622
3620
|
Z.default = function(v) {
|
|
3623
|
-
var f = null,
|
|
3621
|
+
var f = null, L = (function(D, V) {
|
|
3624
3622
|
v.postMessage({ msg: "logcat_callback", data: { type: D, logcat: V } });
|
|
3625
3623
|
}).bind(this);
|
|
3626
3624
|
function M(D, V) {
|
|
@@ -3709,7 +3707,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3709
3707
|
break;
|
|
3710
3708
|
case "logging_config":
|
|
3711
3709
|
var V = D.data.param;
|
|
3712
|
-
U.a.applyConfig(V), V.enableCallback === !0 ? U.a.addLogListener(
|
|
3710
|
+
U.a.applyConfig(V), V.enableCallback === !0 ? U.a.addLogListener(L) : U.a.removeLogListener(L);
|
|
3713
3711
|
}
|
|
3714
3712
|
});
|
|
3715
3713
|
};
|
|
@@ -3720,28 +3718,28 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3720
3718
|
return Object.assign({}, m);
|
|
3721
3719
|
}
|
|
3722
3720
|
var v = function() {
|
|
3723
|
-
function
|
|
3721
|
+
function k() {
|
|
3724
3722
|
}
|
|
3725
|
-
return
|
|
3723
|
+
return k.supportMSEH264Playback = function() {
|
|
3726
3724
|
return window.MediaSource && window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"');
|
|
3727
|
-
},
|
|
3725
|
+
}, k.supportMSEH265Playback = function() {
|
|
3728
3726
|
return window.MediaSource && window.MediaSource.isTypeSupported('video/mp4; codecs="hvc1.1.6.L93.B0"');
|
|
3729
|
-
},
|
|
3727
|
+
}, k.supportNetworkStreamIO = function() {
|
|
3730
3728
|
var d = new B.a({}, b()), c = d.loaderType;
|
|
3731
3729
|
return d.destroy(), c == "fetch-stream-loader" || c == "xhr-moz-chunked-loader";
|
|
3732
|
-
},
|
|
3730
|
+
}, k.getNetworkLoaderTypeName = function() {
|
|
3733
3731
|
var d = new B.a({}, b()), c = d.loaderType;
|
|
3734
3732
|
return d.destroy(), c;
|
|
3735
|
-
},
|
|
3736
|
-
|
|
3737
|
-
var c =
|
|
3733
|
+
}, k.supportNativeMediaPlayback = function(d) {
|
|
3734
|
+
k.videoElement == null && (k.videoElement = window.document.createElement("video"));
|
|
3735
|
+
var c = k.videoElement.canPlayType(d);
|
|
3738
3736
|
return c === "probably" || c == "maybe";
|
|
3739
|
-
},
|
|
3737
|
+
}, k.getFeatureList = function() {
|
|
3740
3738
|
var d = { msePlayback: !1, mseLivePlayback: !1, mseH265Playback: !1, networkStreamIO: !1, networkLoaderName: "", nativeMP4H264Playback: !1, nativeMP4H265Playback: !1, nativeWebmVP8Playback: !1, nativeWebmVP9Playback: !1 };
|
|
3741
|
-
return d.msePlayback =
|
|
3742
|
-
},
|
|
3743
|
-
}(), f = O(2),
|
|
3744
|
-
function
|
|
3739
|
+
return d.msePlayback = k.supportMSEH264Playback(), d.networkStreamIO = k.supportNetworkStreamIO(), d.networkLoaderName = k.getNetworkLoaderTypeName(), d.mseLivePlayback = d.msePlayback && d.networkStreamIO, d.mseH265Playback = k.supportMSEH265Playback(), d.nativeMP4H264Playback = k.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'), d.nativeMP4H265Playback = k.supportNativeMediaPlayback('video/mp4; codecs="hvc1.1.6.L93.B0"'), d.nativeWebmVP8Playback = k.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'), d.nativeWebmVP9Playback = k.supportNativeMediaPlayback('video/webm; codecs="vp9"'), d;
|
|
3740
|
+
}, k;
|
|
3741
|
+
}(), f = O(2), L = O(6), M = O.n(L), C = O(0), j = O(4), H = { ERROR: "error", LOADING_COMPLETE: "loading_complete", RECOVERED_EARLY_EOF: "recovered_early_eof", MEDIA_INFO: "media_info", METADATA_ARRIVED: "metadata_arrived", SCRIPTDATA_ARRIVED: "scriptdata_arrived", TIMED_ID3_METADATA_ARRIVED: "timed_id3_metadata_arrived", SMPTE2038_METADATA_ARRIVED: "smpte2038_metadata_arrived", SCTE35_METADATA_ARRIVED: "scte35_metadata_arrived", PES_PRIVATE_DATA_DESCRIPTOR: "pes_private_data_descriptor", PES_PRIVATE_DATA_ARRIVED: "pes_private_data_arrived", STATISTICS_INFO: "statistics_info" }, le = O(13), ne = O.n(le), X = O(9), ie = O(10), y = O(1), G = O(8), T = function() {
|
|
3742
|
+
function k(d, c) {
|
|
3745
3743
|
if (this.TAG = "Transmuxer", this._emitter = new M.a(), c.enableWorker && typeof Worker < "u") try {
|
|
3746
3744
|
this._worker = ne()(18), this._workerDestroying = !1, this._worker.addEventListener("message", this._onWorkerMessage.bind(this)), this._worker.postMessage({ cmd: "init", param: [d, c] }), this.e = { onLoggingConfigChanged: this._onLoggingConfigChanged.bind(this) }, X.a.registerListener(this.e.onLoggingConfigChanged), this._worker.postMessage({ cmd: "logging_config", param: X.a.getConfig() });
|
|
3747
3745
|
} catch {
|
|
@@ -3753,107 +3751,107 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3753
3751
|
R.on(y.a.IO_ERROR, this._onIOError.bind(this)), R.on(y.a.DEMUX_ERROR, this._onDemuxError.bind(this)), R.on(y.a.INIT_SEGMENT, this._onInitSegment.bind(this)), R.on(y.a.MEDIA_SEGMENT, this._onMediaSegment.bind(this)), R.on(y.a.LOADING_COMPLETE, this._onLoadingComplete.bind(this)), R.on(y.a.RECOVERED_EARLY_EOF, this._onRecoveredEarlyEof.bind(this)), R.on(y.a.MEDIA_INFO, this._onMediaInfo.bind(this)), R.on(y.a.METADATA_ARRIVED, this._onMetaDataArrived.bind(this)), R.on(y.a.SCRIPTDATA_ARRIVED, this._onScriptDataArrived.bind(this)), R.on(y.a.TIMED_ID3_METADATA_ARRIVED, this._onTimedID3MetadataArrived.bind(this)), R.on(y.a.SMPTE2038_METADATA_ARRIVED, this._onSMPTE2038MetadataArrived.bind(this)), R.on(y.a.SCTE35_METADATA_ARRIVED, this._onSCTE35MetadataArrived.bind(this)), R.on(y.a.PES_PRIVATE_DATA_DESCRIPTOR, this._onPESPrivateDataDescriptor.bind(this)), R.on(y.a.PES_PRIVATE_DATA_ARRIVED, this._onPESPrivateDataArrived.bind(this)), R.on(y.a.STATISTICS_INFO, this._onStatisticsInfo.bind(this)), R.on(y.a.RECOMMEND_SEEKPOINT, this._onRecommendSeekpoint.bind(this));
|
|
3754
3752
|
}
|
|
3755
3753
|
}
|
|
3756
|
-
return
|
|
3754
|
+
return k.prototype.destroy = function() {
|
|
3757
3755
|
this._worker ? this._workerDestroying || (this._workerDestroying = !0, this._worker.postMessage({ cmd: "destroy" }), X.a.removeListener(this.e.onLoggingConfigChanged), this.e = null) : (this._controller.destroy(), this._controller = null), this._emitter.removeAllListeners(), this._emitter = null;
|
|
3758
|
-
},
|
|
3756
|
+
}, k.prototype.on = function(d, c) {
|
|
3759
3757
|
this._emitter.addListener(d, c);
|
|
3760
|
-
},
|
|
3758
|
+
}, k.prototype.off = function(d, c) {
|
|
3761
3759
|
this._emitter.removeListener(d, c);
|
|
3762
|
-
},
|
|
3760
|
+
}, k.prototype.hasWorker = function() {
|
|
3763
3761
|
return this._worker != null;
|
|
3764
|
-
},
|
|
3762
|
+
}, k.prototype.open = function() {
|
|
3765
3763
|
this._worker ? this._worker.postMessage({ cmd: "start" }) : this._controller.start();
|
|
3766
|
-
},
|
|
3764
|
+
}, k.prototype.close = function() {
|
|
3767
3765
|
this._worker ? this._worker.postMessage({ cmd: "stop" }) : this._controller.stop();
|
|
3768
|
-
},
|
|
3766
|
+
}, k.prototype.seek = function(d) {
|
|
3769
3767
|
this._worker ? this._worker.postMessage({ cmd: "seek", param: d }) : this._controller.seek(d);
|
|
3770
|
-
},
|
|
3768
|
+
}, k.prototype.pause = function() {
|
|
3771
3769
|
this._worker ? this._worker.postMessage({ cmd: "pause" }) : this._controller.pause();
|
|
3772
|
-
},
|
|
3770
|
+
}, k.prototype.resume = function() {
|
|
3773
3771
|
this._worker ? this._worker.postMessage({ cmd: "resume" }) : this._controller.resume();
|
|
3774
|
-
},
|
|
3772
|
+
}, k.prototype._onInitSegment = function(d, c) {
|
|
3775
3773
|
var R = this;
|
|
3776
3774
|
Promise.resolve().then(function() {
|
|
3777
3775
|
R._emitter.emit(y.a.INIT_SEGMENT, d, c);
|
|
3778
3776
|
});
|
|
3779
|
-
},
|
|
3777
|
+
}, k.prototype._onMediaSegment = function(d, c) {
|
|
3780
3778
|
var R = this;
|
|
3781
3779
|
Promise.resolve().then(function() {
|
|
3782
3780
|
R._emitter.emit(y.a.MEDIA_SEGMENT, d, c);
|
|
3783
3781
|
});
|
|
3784
|
-
},
|
|
3782
|
+
}, k.prototype._onLoadingComplete = function() {
|
|
3785
3783
|
var d = this;
|
|
3786
3784
|
Promise.resolve().then(function() {
|
|
3787
3785
|
d._emitter.emit(y.a.LOADING_COMPLETE);
|
|
3788
3786
|
});
|
|
3789
|
-
},
|
|
3787
|
+
}, k.prototype._onRecoveredEarlyEof = function() {
|
|
3790
3788
|
var d = this;
|
|
3791
3789
|
Promise.resolve().then(function() {
|
|
3792
3790
|
d._emitter.emit(y.a.RECOVERED_EARLY_EOF);
|
|
3793
3791
|
});
|
|
3794
|
-
},
|
|
3792
|
+
}, k.prototype._onMediaInfo = function(d) {
|
|
3795
3793
|
var c = this;
|
|
3796
3794
|
Promise.resolve().then(function() {
|
|
3797
3795
|
c._emitter.emit(y.a.MEDIA_INFO, d);
|
|
3798
3796
|
});
|
|
3799
|
-
},
|
|
3797
|
+
}, k.prototype._onMetaDataArrived = function(d) {
|
|
3800
3798
|
var c = this;
|
|
3801
3799
|
Promise.resolve().then(function() {
|
|
3802
3800
|
c._emitter.emit(y.a.METADATA_ARRIVED, d);
|
|
3803
3801
|
});
|
|
3804
|
-
},
|
|
3802
|
+
}, k.prototype._onScriptDataArrived = function(d) {
|
|
3805
3803
|
var c = this;
|
|
3806
3804
|
Promise.resolve().then(function() {
|
|
3807
3805
|
c._emitter.emit(y.a.SCRIPTDATA_ARRIVED, d);
|
|
3808
3806
|
});
|
|
3809
|
-
},
|
|
3807
|
+
}, k.prototype._onTimedID3MetadataArrived = function(d) {
|
|
3810
3808
|
var c = this;
|
|
3811
3809
|
Promise.resolve().then(function() {
|
|
3812
3810
|
c._emitter.emit(y.a.TIMED_ID3_METADATA_ARRIVED, d);
|
|
3813
3811
|
});
|
|
3814
|
-
},
|
|
3812
|
+
}, k.prototype._onSMPTE2038MetadataArrived = function(d) {
|
|
3815
3813
|
var c = this;
|
|
3816
3814
|
Promise.resolve().then(function() {
|
|
3817
3815
|
c._emitter.emit(y.a.SMPTE2038_METADATA_ARRIVED, d);
|
|
3818
3816
|
});
|
|
3819
|
-
},
|
|
3817
|
+
}, k.prototype._onSCTE35MetadataArrived = function(d) {
|
|
3820
3818
|
var c = this;
|
|
3821
3819
|
Promise.resolve().then(function() {
|
|
3822
3820
|
c._emitter.emit(y.a.SCTE35_METADATA_ARRIVED, d);
|
|
3823
3821
|
});
|
|
3824
|
-
},
|
|
3822
|
+
}, k.prototype._onPESPrivateDataDescriptor = function(d) {
|
|
3825
3823
|
var c = this;
|
|
3826
3824
|
Promise.resolve().then(function() {
|
|
3827
3825
|
c._emitter.emit(y.a.PES_PRIVATE_DATA_DESCRIPTOR, d);
|
|
3828
3826
|
});
|
|
3829
|
-
},
|
|
3827
|
+
}, k.prototype._onPESPrivateDataArrived = function(d) {
|
|
3830
3828
|
var c = this;
|
|
3831
3829
|
Promise.resolve().then(function() {
|
|
3832
3830
|
c._emitter.emit(y.a.PES_PRIVATE_DATA_ARRIVED, d);
|
|
3833
3831
|
});
|
|
3834
|
-
},
|
|
3832
|
+
}, k.prototype._onStatisticsInfo = function(d) {
|
|
3835
3833
|
var c = this;
|
|
3836
3834
|
Promise.resolve().then(function() {
|
|
3837
3835
|
c._emitter.emit(y.a.STATISTICS_INFO, d);
|
|
3838
3836
|
});
|
|
3839
|
-
},
|
|
3837
|
+
}, k.prototype._onIOError = function(d, c) {
|
|
3840
3838
|
var R = this;
|
|
3841
3839
|
Promise.resolve().then(function() {
|
|
3842
3840
|
R._emitter.emit(y.a.IO_ERROR, d, c);
|
|
3843
3841
|
});
|
|
3844
|
-
},
|
|
3842
|
+
}, k.prototype._onDemuxError = function(d, c) {
|
|
3845
3843
|
var R = this;
|
|
3846
3844
|
Promise.resolve().then(function() {
|
|
3847
3845
|
R._emitter.emit(y.a.DEMUX_ERROR, d, c);
|
|
3848
3846
|
});
|
|
3849
|
-
},
|
|
3847
|
+
}, k.prototype._onRecommendSeekpoint = function(d) {
|
|
3850
3848
|
var c = this;
|
|
3851
3849
|
Promise.resolve().then(function() {
|
|
3852
3850
|
c._emitter.emit(y.a.RECOMMEND_SEEKPOINT, d);
|
|
3853
3851
|
});
|
|
3854
|
-
},
|
|
3852
|
+
}, k.prototype._onLoggingConfigChanged = function(d) {
|
|
3855
3853
|
this._worker && this._worker.postMessage({ cmd: "logging_config", param: d });
|
|
3856
|
-
},
|
|
3854
|
+
}, k.prototype._onWorkerMessage = function(d) {
|
|
3857
3855
|
var c = d.data, R = c.data;
|
|
3858
3856
|
if (c.msg === "destroyed" || this._workerDestroying) return this._workerDestroying = !1, this._worker.terminate(), void (this._worker = null);
|
|
3859
3857
|
switch (c.msg) {
|
|
@@ -3888,22 +3886,22 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3888
3886
|
case "logcat_callback":
|
|
3889
3887
|
C.a.emitter.emit("log", R.type, R.logcat);
|
|
3890
3888
|
}
|
|
3891
|
-
},
|
|
3889
|
+
}, k;
|
|
3892
3890
|
}(), l = { ERROR: "error", SOURCE_OPEN: "source_open", UPDATE_END: "update_end", BUFFER_FULL: "buffer_full" }, u = O(7), _ = O(3), h = function() {
|
|
3893
|
-
function
|
|
3891
|
+
function k(d) {
|
|
3894
3892
|
this.TAG = "MSEController", this._config = d, this._emitter = new M.a(), this._config.isLive && this._config.autoCleanupSourceBuffer == null && (this._config.autoCleanupSourceBuffer = !0), this.e = { onSourceOpen: this._onSourceOpen.bind(this), onSourceEnded: this._onSourceEnded.bind(this), onSourceClose: this._onSourceClose.bind(this), onSourceBufferError: this._onSourceBufferError.bind(this), onSourceBufferUpdateEnd: this._onSourceBufferUpdateEnd.bind(this) }, this._mediaSource = null, this._mediaSourceObjectURL = null, this._mediaElement = null, this._isBufferFull = !1, this._hasPendingEos = !1, this._requireSetMediaDuration = !1, this._pendingMediaDuration = 0, this._pendingSourceBufferInit = [], this._mimeTypes = { video: null, audio: null }, this._sourceBuffers = { video: null, audio: null }, this._lastInitSegments = { video: null, audio: null }, this._pendingSegments = { video: [], audio: [] }, this._pendingRemoveRanges = { video: [], audio: [] }, this._idrList = new u.a();
|
|
3895
3893
|
}
|
|
3896
|
-
return
|
|
3894
|
+
return k.prototype.destroy = function() {
|
|
3897
3895
|
(this._mediaElement || this._mediaSource) && this.detachMediaElement(), this.e = null, this._emitter.removeAllListeners(), this._emitter = null;
|
|
3898
|
-
},
|
|
3896
|
+
}, k.prototype.on = function(d, c) {
|
|
3899
3897
|
this._emitter.addListener(d, c);
|
|
3900
|
-
},
|
|
3898
|
+
}, k.prototype.off = function(d, c) {
|
|
3901
3899
|
this._emitter.removeListener(d, c);
|
|
3902
|
-
},
|
|
3900
|
+
}, k.prototype.attachMediaElement = function(d) {
|
|
3903
3901
|
if (this._mediaSource) throw new _.a("MediaSource has been attached to an HTMLMediaElement!");
|
|
3904
3902
|
var c = this._mediaSource = new window.MediaSource();
|
|
3905
3903
|
c.addEventListener("sourceopen", this.e.onSourceOpen), c.addEventListener("sourceended", this.e.onSourceEnded), c.addEventListener("sourceclose", this.e.onSourceClose), this._mediaElement = d, this._mediaSourceObjectURL = window.URL.createObjectURL(this._mediaSource), d.src = this._mediaSourceObjectURL;
|
|
3906
|
-
},
|
|
3904
|
+
}, k.prototype.detachMediaElement = function() {
|
|
3907
3905
|
if (this._mediaSource) {
|
|
3908
3906
|
var d = this._mediaSource;
|
|
3909
3907
|
for (var c in this._sourceBuffers) {
|
|
@@ -3930,7 +3928,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3930
3928
|
d.removeEventListener("sourceopen", this.e.onSourceOpen), d.removeEventListener("sourceended", this.e.onSourceEnded), d.removeEventListener("sourceclose", this.e.onSourceClose), this._pendingSourceBufferInit = [], this._isBufferFull = !1, this._idrList.clear(), this._mediaSource = null;
|
|
3931
3929
|
}
|
|
3932
3930
|
this._mediaElement && (this._mediaElement.src = "", this._mediaElement.removeAttribute("src"), this._mediaElement = null), this._mediaSourceObjectURL && (window.URL.revokeObjectURL(this._mediaSourceObjectURL), this._mediaSourceObjectURL = null);
|
|
3933
|
-
},
|
|
3931
|
+
}, k.prototype.appendInitSegment = function(d, c) {
|
|
3934
3932
|
if (!this._mediaSource || this._mediaSource.readyState !== "open") return this._pendingSourceBufferInit.push(d), void this._pendingSegments[d.type].push(d);
|
|
3935
3933
|
var R = d, Y = "" + R.container;
|
|
3936
3934
|
R.codec && R.codec.length > 0 && (Y += ";codecs=" + R.codec);
|
|
@@ -3949,12 +3947,12 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3949
3947
|
this._mimeTypes[R.type] = Y;
|
|
3950
3948
|
}
|
|
3951
3949
|
c || this._pendingSegments[R.type].push(R), oe || this._sourceBuffers[R.type] && !this._sourceBuffers[R.type].updating && this._doAppendSegments(), j.a.safari && R.container === "audio/mpeg" && R.mediaDuration > 0 && (this._requireSetMediaDuration = !0, this._pendingMediaDuration = R.mediaDuration / 1e3, this._updateMediaSourceDuration());
|
|
3952
|
-
},
|
|
3950
|
+
}, k.prototype.appendMediaSegment = function(d) {
|
|
3953
3951
|
var c = d;
|
|
3954
3952
|
this._pendingSegments[c.type].push(c), this._config.autoCleanupSourceBuffer && this._needCleanupSourceBuffer() && this._doCleanupSourceBuffer();
|
|
3955
3953
|
var R = this._sourceBuffers[c.type];
|
|
3956
3954
|
!R || R.updating || this._hasPendingRemoveRanges() || this._doAppendSegments();
|
|
3957
|
-
},
|
|
3955
|
+
}, k.prototype.seek = function(d) {
|
|
3958
3956
|
for (var c in this._sourceBuffers) if (this._sourceBuffers[c]) {
|
|
3959
3957
|
var R = this._sourceBuffers[c];
|
|
3960
3958
|
if (this._mediaSource.readyState === "open") try {
|
|
@@ -3975,12 +3973,12 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3975
3973
|
}
|
|
3976
3974
|
}
|
|
3977
3975
|
}
|
|
3978
|
-
},
|
|
3976
|
+
}, k.prototype.endOfStream = function() {
|
|
3979
3977
|
var d = this._mediaSource, c = this._sourceBuffers;
|
|
3980
3978
|
d && d.readyState === "open" ? c.video && c.video.updating || c.audio && c.audio.updating ? this._hasPendingEos = !0 : (this._hasPendingEos = !1, d.endOfStream()) : d && d.readyState === "closed" && this._hasPendingSegments() && (this._hasPendingEos = !0);
|
|
3981
|
-
},
|
|
3979
|
+
}, k.prototype.getNearestKeyframe = function(d) {
|
|
3982
3980
|
return this._idrList.getLastSyncPointBeforeDts(d);
|
|
3983
|
-
},
|
|
3981
|
+
}, k.prototype._needCleanupSourceBuffer = function() {
|
|
3984
3982
|
if (!this._config.autoCleanupSourceBuffer) return !1;
|
|
3985
3983
|
var d = this._mediaElement.currentTime;
|
|
3986
3984
|
for (var c in this._sourceBuffers) {
|
|
@@ -3991,7 +3989,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3991
3989
|
}
|
|
3992
3990
|
}
|
|
3993
3991
|
return !1;
|
|
3994
|
-
},
|
|
3992
|
+
}, k.prototype._doCleanupSourceBuffer = function() {
|
|
3995
3993
|
var d = this._mediaElement.currentTime;
|
|
3996
3994
|
for (var c in this._sourceBuffers) {
|
|
3997
3995
|
var R = this._sourceBuffers[c];
|
|
@@ -4009,18 +4007,18 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4009
4007
|
oe && !R.updating && this._doRemoveRanges();
|
|
4010
4008
|
}
|
|
4011
4009
|
}
|
|
4012
|
-
},
|
|
4010
|
+
}, k.prototype._updateMediaSourceDuration = function() {
|
|
4013
4011
|
var d = this._sourceBuffers;
|
|
4014
4012
|
if (this._mediaElement.readyState !== 0 && this._mediaSource.readyState === "open" && !(d.video && d.video.updating || d.audio && d.audio.updating)) {
|
|
4015
4013
|
var c = this._mediaSource.duration, R = this._pendingMediaDuration;
|
|
4016
4014
|
R > 0 && (isNaN(c) || R > c) && (C.a.v(this.TAG, "Update MediaSource duration from " + c + " to " + R), this._mediaSource.duration = R), this._requireSetMediaDuration = !1, this._pendingMediaDuration = 0;
|
|
4017
4015
|
}
|
|
4018
|
-
},
|
|
4016
|
+
}, k.prototype._doRemoveRanges = function() {
|
|
4019
4017
|
for (var d in this._pendingRemoveRanges) if (this._sourceBuffers[d] && !this._sourceBuffers[d].updating) for (var c = this._sourceBuffers[d], R = this._pendingRemoveRanges[d]; R.length && !c.updating; ) {
|
|
4020
4018
|
var Y = R.shift();
|
|
4021
4019
|
c.remove(Y.start, Y.end);
|
|
4022
4020
|
}
|
|
4023
|
-
},
|
|
4021
|
+
}, k.prototype._doAppendSegments = function() {
|
|
4024
4022
|
var d = this._pendingSegments;
|
|
4025
4023
|
for (var c in d) if (this._sourceBuffers[c] && !this._sourceBuffers[c].updating && d[c].length > 0) {
|
|
4026
4024
|
var R = d[c].shift();
|
|
@@ -4035,29 +4033,29 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4035
4033
|
this._pendingSegments[c].unshift(R), me.code === 22 ? (this._isBufferFull || this._emitter.emit(l.BUFFER_FULL), this._isBufferFull = !0) : (C.a.e(this.TAG, me.message), this._emitter.emit(l.ERROR, { code: me.code, msg: me.message }));
|
|
4036
4034
|
}
|
|
4037
4035
|
}
|
|
4038
|
-
},
|
|
4036
|
+
}, k.prototype._onSourceOpen = function() {
|
|
4039
4037
|
if (C.a.v(this.TAG, "MediaSource onSourceOpen"), this._mediaSource.removeEventListener("sourceopen", this.e.onSourceOpen), this._pendingSourceBufferInit.length > 0) for (var d = this._pendingSourceBufferInit; d.length; ) {
|
|
4040
4038
|
var c = d.shift();
|
|
4041
4039
|
this.appendInitSegment(c, !0);
|
|
4042
4040
|
}
|
|
4043
4041
|
this._hasPendingSegments() && this._doAppendSegments(), this._emitter.emit(l.SOURCE_OPEN);
|
|
4044
|
-
},
|
|
4042
|
+
}, k.prototype._onSourceEnded = function() {
|
|
4045
4043
|
C.a.v(this.TAG, "MediaSource onSourceEnded");
|
|
4046
|
-
},
|
|
4044
|
+
}, k.prototype._onSourceClose = function() {
|
|
4047
4045
|
C.a.v(this.TAG, "MediaSource onSourceClose"), this._mediaSource && this.e != null && (this._mediaSource.removeEventListener("sourceopen", this.e.onSourceOpen), this._mediaSource.removeEventListener("sourceended", this.e.onSourceEnded), this._mediaSource.removeEventListener("sourceclose", this.e.onSourceClose));
|
|
4048
|
-
},
|
|
4046
|
+
}, k.prototype._hasPendingSegments = function() {
|
|
4049
4047
|
var d = this._pendingSegments;
|
|
4050
4048
|
return d.video.length > 0 || d.audio.length > 0;
|
|
4051
|
-
},
|
|
4049
|
+
}, k.prototype._hasPendingRemoveRanges = function() {
|
|
4052
4050
|
var d = this._pendingRemoveRanges;
|
|
4053
4051
|
return d.video.length > 0 || d.audio.length > 0;
|
|
4054
|
-
},
|
|
4052
|
+
}, k.prototype._onSourceBufferUpdateEnd = function() {
|
|
4055
4053
|
this._requireSetMediaDuration ? this._updateMediaSourceDuration() : this._hasPendingRemoveRanges() ? this._doRemoveRanges() : this._hasPendingSegments() ? this._doAppendSegments() : this._hasPendingEos && this.endOfStream(), this._emitter.emit(l.UPDATE_END);
|
|
4056
|
-
},
|
|
4054
|
+
}, k.prototype._onSourceBufferError = function(d) {
|
|
4057
4055
|
C.a.e(this.TAG, "SourceBuffer Error: " + d);
|
|
4058
|
-
},
|
|
4056
|
+
}, k;
|
|
4059
4057
|
}(), P = O(5), D = { NETWORK_ERROR: "NetworkError", MEDIA_ERROR: "MediaError", OTHER_ERROR: "OtherError" }, V = { NETWORK_EXCEPTION: f.b.EXCEPTION, NETWORK_STATUS_CODE_INVALID: f.b.HTTP_STATUS_CODE_INVALID, NETWORK_TIMEOUT: f.b.CONNECTING_TIMEOUT, NETWORK_UNRECOVERABLE_EARLY_EOF: f.b.UNRECOVERABLE_EARLY_EOF, MEDIA_MSE_ERROR: "MediaMSEError", MEDIA_FORMAT_ERROR: P.a.FORMAT_ERROR, MEDIA_FORMAT_UNSUPPORTED: P.a.FORMAT_UNSUPPORTED, MEDIA_CODEC_UNSUPPORTED: P.a.CODEC_UNSUPPORTED }, ee = function() {
|
|
4060
|
-
function
|
|
4058
|
+
function k(d, c) {
|
|
4061
4059
|
this.TAG = "MSEPlayer", this._type = "MSEPlayer", this._emitter = new M.a(), this._config = b(), typeof c == "object" && Object.assign(this._config, c);
|
|
4062
4060
|
var R = d.type.toLowerCase();
|
|
4063
4061
|
if (R !== "mse" && R !== "mpegts" && R !== "m2ts" && R !== "flv") throw new _.b("MSEPlayer requires an mpegts/m2ts/flv MediaDataSource input!");
|
|
@@ -4065,18 +4063,18 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4065
4063
|
var Y = j.a.chrome && (j.a.version.major < 50 || j.a.version.major === 50 && j.a.version.build < 2661);
|
|
4066
4064
|
this._alwaysSeekKeyframe = !!(Y || j.a.msedge || j.a.msie), this._alwaysSeekKeyframe && (this._config.accurateSeek = !1);
|
|
4067
4065
|
}
|
|
4068
|
-
return
|
|
4066
|
+
return k.prototype.destroy = function() {
|
|
4069
4067
|
this._progressChecker != null && (window.clearInterval(this._progressChecker), this._progressChecker = null), this._transmuxer && this.unload(), this._mediaElement && this.detachMediaElement(), this.e = null, this._mediaDataSource = null, this._emitter.removeAllListeners(), this._emitter = null;
|
|
4070
|
-
},
|
|
4068
|
+
}, k.prototype.on = function(d, c) {
|
|
4071
4069
|
var R = this;
|
|
4072
4070
|
d === H.MEDIA_INFO ? this._mediaInfo != null && Promise.resolve().then(function() {
|
|
4073
4071
|
R._emitter.emit(H.MEDIA_INFO, R.mediaInfo);
|
|
4074
4072
|
}) : d === H.STATISTICS_INFO && this._statisticsInfo != null && Promise.resolve().then(function() {
|
|
4075
4073
|
R._emitter.emit(H.STATISTICS_INFO, R.statisticsInfo);
|
|
4076
4074
|
}), this._emitter.addListener(d, c);
|
|
4077
|
-
},
|
|
4075
|
+
}, k.prototype.off = function(d, c) {
|
|
4078
4076
|
this._emitter.removeListener(d, c);
|
|
4079
|
-
},
|
|
4077
|
+
}, k.prototype.attachMediaElement = function(d) {
|
|
4080
4078
|
var c = this;
|
|
4081
4079
|
if (this._mediaElement = d, d.addEventListener("loadedmetadata", this.e.onvLoadedMetadata), d.addEventListener("seeking", this.e.onvSeeking), d.addEventListener("canplay", this.e.onvCanPlay), d.addEventListener("stalled", this.e.onvStalled), d.addEventListener("progress", this.e.onvProgress), this._msectl = new h(this._config), this._msectl.on(l.UPDATE_END, this._onmseUpdateEnd.bind(this)), this._msectl.on(l.BUFFER_FULL, this._onmseBufferFull.bind(this)), this._msectl.on(l.SOURCE_OPEN, function() {
|
|
4082
4080
|
c._mseSourceOpened = !0, c._hasPendingLoad && (c._hasPendingLoad = !1, c.load());
|
|
@@ -4086,9 +4084,9 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4086
4084
|
d.currentTime = this._pendingSeekTime, this._pendingSeekTime = null;
|
|
4087
4085
|
} catch {
|
|
4088
4086
|
}
|
|
4089
|
-
},
|
|
4087
|
+
}, k.prototype.detachMediaElement = function() {
|
|
4090
4088
|
this._mediaElement && (this._msectl.detachMediaElement(), this._mediaElement.removeEventListener("loadedmetadata", this.e.onvLoadedMetadata), this._mediaElement.removeEventListener("seeking", this.e.onvSeeking), this._mediaElement.removeEventListener("canplay", this.e.onvCanPlay), this._mediaElement.removeEventListener("stalled", this.e.onvStalled), this._mediaElement.removeEventListener("progress", this.e.onvProgress), this._mediaElement = null), this._msectl && (this._msectl.destroy(), this._msectl = null);
|
|
4091
|
-
},
|
|
4089
|
+
}, k.prototype.load = function() {
|
|
4092
4090
|
var d = this;
|
|
4093
4091
|
if (!this._mediaElement) throw new _.a("HTMLMediaElement must be attached before load()!");
|
|
4094
4092
|
if (this._transmuxer) throw new _.a("MSEPlayer.load() has been called, please call unload() first!");
|
|
@@ -4128,35 +4126,35 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4128
4126
|
}), this._transmuxer.on(y.a.RECOMMEND_SEEKPOINT, function(c) {
|
|
4129
4127
|
d._mediaElement && !d._config.accurateSeek && (d._requestSetTime = !0, d._mediaElement.currentTime = c / 1e3);
|
|
4130
4128
|
}), this._transmuxer.open()));
|
|
4131
|
-
},
|
|
4129
|
+
}, k.prototype.unload = function() {
|
|
4132
4130
|
this._mediaElement && this._mediaElement.pause(), this._msectl && this._msectl.seek(0), this._transmuxer && (this._transmuxer.close(), this._transmuxer.destroy(), this._transmuxer = null);
|
|
4133
|
-
},
|
|
4131
|
+
}, k.prototype.play = function() {
|
|
4134
4132
|
return this._mediaElement.play();
|
|
4135
|
-
},
|
|
4133
|
+
}, k.prototype.pause = function() {
|
|
4136
4134
|
this._mediaElement.pause();
|
|
4137
|
-
}, Object.defineProperty(
|
|
4135
|
+
}, Object.defineProperty(k.prototype, "type", { get: function() {
|
|
4138
4136
|
return this._type;
|
|
4139
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4137
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "buffered", { get: function() {
|
|
4140
4138
|
return this._mediaElement.buffered;
|
|
4141
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4139
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "duration", { get: function() {
|
|
4142
4140
|
return this._mediaElement.duration;
|
|
4143
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4141
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "volume", { get: function() {
|
|
4144
4142
|
return this._mediaElement.volume;
|
|
4145
4143
|
}, set: function(d) {
|
|
4146
4144
|
this._mediaElement.volume = d;
|
|
4147
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4145
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "muted", { get: function() {
|
|
4148
4146
|
return this._mediaElement.muted;
|
|
4149
4147
|
}, set: function(d) {
|
|
4150
4148
|
this._mediaElement.muted = d;
|
|
4151
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4149
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "currentTime", { get: function() {
|
|
4152
4150
|
return this._mediaElement ? this._mediaElement.currentTime : 0;
|
|
4153
4151
|
}, set: function(d) {
|
|
4154
4152
|
this._mediaElement ? this._internalSeek(d) : this._pendingSeekTime = d;
|
|
4155
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4153
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "mediaInfo", { get: function() {
|
|
4156
4154
|
return Object.assign({}, this._mediaInfo);
|
|
4157
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4155
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "statisticsInfo", { get: function() {
|
|
4158
4156
|
return this._statisticsInfo == null && (this._statisticsInfo = {}), this._statisticsInfo = this._fillStatisticsInfo(this._statisticsInfo), Object.assign({}, this._statisticsInfo);
|
|
4159
|
-
}, enumerable: !1, configurable: !0 }),
|
|
4157
|
+
}, enumerable: !1, configurable: !0 }), k.prototype._fillStatisticsInfo = function(d) {
|
|
4160
4158
|
if (d.playerType = this._type, !(this._mediaElement instanceof HTMLVideoElement)) return d;
|
|
4161
4159
|
var c = !0, R = 0, Y = 0;
|
|
4162
4160
|
if (this._mediaElement.getVideoPlaybackQuality) {
|
|
@@ -4164,7 +4162,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4164
4162
|
R = oe.totalVideoFrames, Y = oe.droppedVideoFrames;
|
|
4165
4163
|
} else this._mediaElement.webkitDecodedFrameCount != null ? (R = this._mediaElement.webkitDecodedFrameCount, Y = this._mediaElement.webkitDroppedFrameCount) : c = !1;
|
|
4166
4164
|
return c && (d.decodedFrames = R, d.droppedFrames = Y), d;
|
|
4167
|
-
},
|
|
4165
|
+
}, k.prototype._onmseUpdateEnd = function() {
|
|
4168
4166
|
var d = this._mediaElement.buffered, c = this._mediaElement.currentTime;
|
|
4169
4167
|
if (this._config.isLive && this._config.liveBufferLatencyChasing && d.length > 0 && !this._mediaElement.paused) {
|
|
4170
4168
|
var R = d.end(d.length - 1);
|
|
@@ -4183,11 +4181,11 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4183
4181
|
}
|
|
4184
4182
|
oe >= c + this._config.lazyLoadMaxDuration && this._progressChecker == null && (C.a.v(this.TAG, "Maximum buffering duration exceeded, suspend transmuxing task"), this._suspendTransmuxer());
|
|
4185
4183
|
}
|
|
4186
|
-
},
|
|
4184
|
+
}, k.prototype._onmseBufferFull = function() {
|
|
4187
4185
|
C.a.v(this.TAG, "MSE SourceBuffer is full, suspend transmuxing task"), this._progressChecker == null && this._suspendTransmuxer();
|
|
4188
|
-
},
|
|
4186
|
+
}, k.prototype._suspendTransmuxer = function() {
|
|
4189
4187
|
this._transmuxer && (this._transmuxer.pause(), this._progressChecker == null && (this._progressChecker = window.setInterval(this._checkProgressAndResume.bind(this), 1e3)));
|
|
4190
|
-
},
|
|
4188
|
+
}, k.prototype._checkProgressAndResume = function() {
|
|
4191
4189
|
for (var d = this._mediaElement.currentTime, c = this._mediaElement.buffered, R = !1, Y = 0; Y < c.length; Y++) {
|
|
4192
4190
|
var oe = c.start(Y), me = c.end(Y);
|
|
4193
4191
|
if (d >= oe && d < me) {
|
|
@@ -4196,13 +4194,13 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4196
4194
|
}
|
|
4197
4195
|
}
|
|
4198
4196
|
R && (window.clearInterval(this._progressChecker), this._progressChecker = null, R && (C.a.v(this.TAG, "Continue loading from paused position"), this._transmuxer.resume()));
|
|
4199
|
-
},
|
|
4197
|
+
}, k.prototype._isTimepointBuffered = function(d) {
|
|
4200
4198
|
for (var c = this._mediaElement.buffered, R = 0; R < c.length; R++) {
|
|
4201
4199
|
var Y = c.start(R), oe = c.end(R);
|
|
4202
4200
|
if (d >= Y && d < oe) return !0;
|
|
4203
4201
|
}
|
|
4204
4202
|
return !1;
|
|
4205
|
-
},
|
|
4203
|
+
}, k.prototype._internalSeek = function(d) {
|
|
4206
4204
|
var c = this._isTimepointBuffered(d), R = !1, Y = 0;
|
|
4207
4205
|
if (d < 1 && this._mediaElement.buffered.length > 0) {
|
|
4208
4206
|
var oe = this._mediaElement.buffered.start(0);
|
|
@@ -4216,20 +4214,20 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4216
4214
|
} else this._requestSetTime = !0, this._mediaElement.currentTime = d;
|
|
4217
4215
|
this._progressChecker != null && this._checkProgressAndResume();
|
|
4218
4216
|
} else this._progressChecker != null && (window.clearInterval(this._progressChecker), this._progressChecker = null), this._msectl.seek(d), this._transmuxer.seek(Math.floor(1e3 * d)), this._config.accurateSeek && (this._requestSetTime = !0, this._mediaElement.currentTime = d);
|
|
4219
|
-
},
|
|
4217
|
+
}, k.prototype._checkAndApplyUnbufferedSeekpoint = function() {
|
|
4220
4218
|
if (this._seekpointRecord) if (this._seekpointRecord.recordTime <= this._now() - 100) {
|
|
4221
4219
|
var d = this._mediaElement.currentTime;
|
|
4222
4220
|
this._seekpointRecord = null, this._isTimepointBuffered(d) || (this._progressChecker != null && (window.clearTimeout(this._progressChecker), this._progressChecker = null), this._msectl.seek(d), this._transmuxer.seek(Math.floor(1e3 * d)), this._config.accurateSeek && (this._requestSetTime = !0, this._mediaElement.currentTime = d));
|
|
4223
4221
|
} else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this), 50);
|
|
4224
|
-
},
|
|
4222
|
+
}, k.prototype._checkAndResumeStuckPlayback = function(d) {
|
|
4225
4223
|
var c = this._mediaElement;
|
|
4226
4224
|
if (d || !this._receivedCanPlay || c.readyState < 2) {
|
|
4227
4225
|
var R = c.buffered;
|
|
4228
4226
|
R.length > 0 && c.currentTime < R.start(0) && (C.a.w(this.TAG, "Playback seems stuck at " + c.currentTime + ", seek to " + R.start(0)), this._requestSetTime = !0, this._mediaElement.currentTime = R.start(0), this._mediaElement.removeEventListener("progress", this.e.onvProgress));
|
|
4229
4227
|
} else this._mediaElement.removeEventListener("progress", this.e.onvProgress);
|
|
4230
|
-
},
|
|
4228
|
+
}, k.prototype._onvLoadedMetadata = function(d) {
|
|
4231
4229
|
this._pendingSeekTime != null && (this._mediaElement.currentTime = this._pendingSeekTime, this._pendingSeekTime = null);
|
|
4232
|
-
},
|
|
4230
|
+
}, k.prototype._onvSeeking = function(d) {
|
|
4233
4231
|
var c = this._mediaElement.currentTime, R = this._mediaElement.buffered;
|
|
4234
4232
|
if (this._requestSetTime) this._requestSetTime = !1;
|
|
4235
4233
|
else {
|
|
@@ -4245,70 +4243,70 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4245
4243
|
this._progressChecker != null && this._checkProgressAndResume();
|
|
4246
4244
|
} else this._seekpointRecord = { seekPoint: c, recordTime: this._now() }, window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this), 50);
|
|
4247
4245
|
}
|
|
4248
|
-
},
|
|
4246
|
+
}, k.prototype._onvCanPlay = function(d) {
|
|
4249
4247
|
this._receivedCanPlay = !0, this._mediaElement.removeEventListener("canplay", this.e.onvCanPlay);
|
|
4250
|
-
},
|
|
4248
|
+
}, k.prototype._onvStalled = function(d) {
|
|
4251
4249
|
this._checkAndResumeStuckPlayback(!0);
|
|
4252
|
-
},
|
|
4250
|
+
}, k.prototype._onvProgress = function(d) {
|
|
4253
4251
|
this._checkAndResumeStuckPlayback();
|
|
4254
|
-
},
|
|
4252
|
+
}, k;
|
|
4255
4253
|
}(), pe = function() {
|
|
4256
|
-
function
|
|
4254
|
+
function k(d, c) {
|
|
4257
4255
|
this.TAG = "NativePlayer", this._type = "NativePlayer", this._emitter = new M.a(), this._config = b(), typeof c == "object" && Object.assign(this._config, c);
|
|
4258
4256
|
var R = d.type.toLowerCase();
|
|
4259
4257
|
if (R === "mse" || R === "mpegts" || R === "m2ts" || R === "flv") throw new _.b("NativePlayer does't support mse/mpegts/m2ts/flv MediaDataSource input!");
|
|
4260
4258
|
if (d.hasOwnProperty("segments")) throw new _.b("NativePlayer(" + d.type + ") doesn't support multipart playback!");
|
|
4261
4259
|
this.e = { onvLoadedMetadata: this._onvLoadedMetadata.bind(this) }, this._pendingSeekTime = null, this._statisticsReporter = null, this._mediaDataSource = d, this._mediaElement = null;
|
|
4262
4260
|
}
|
|
4263
|
-
return
|
|
4261
|
+
return k.prototype.destroy = function() {
|
|
4264
4262
|
this._mediaElement && (this.unload(), this.detachMediaElement()), this.e = null, this._mediaDataSource = null, this._emitter.removeAllListeners(), this._emitter = null;
|
|
4265
|
-
},
|
|
4263
|
+
}, k.prototype.on = function(d, c) {
|
|
4266
4264
|
var R = this;
|
|
4267
4265
|
d === H.MEDIA_INFO ? this._mediaElement != null && this._mediaElement.readyState !== 0 && Promise.resolve().then(function() {
|
|
4268
4266
|
R._emitter.emit(H.MEDIA_INFO, R.mediaInfo);
|
|
4269
4267
|
}) : d === H.STATISTICS_INFO && this._mediaElement != null && this._mediaElement.readyState !== 0 && Promise.resolve().then(function() {
|
|
4270
4268
|
R._emitter.emit(H.STATISTICS_INFO, R.statisticsInfo);
|
|
4271
4269
|
}), this._emitter.addListener(d, c);
|
|
4272
|
-
},
|
|
4270
|
+
}, k.prototype.off = function(d, c) {
|
|
4273
4271
|
this._emitter.removeListener(d, c);
|
|
4274
|
-
},
|
|
4272
|
+
}, k.prototype.attachMediaElement = function(d) {
|
|
4275
4273
|
if (this._mediaElement = d, d.addEventListener("loadedmetadata", this.e.onvLoadedMetadata), this._pendingSeekTime != null) try {
|
|
4276
4274
|
d.currentTime = this._pendingSeekTime, this._pendingSeekTime = null;
|
|
4277
4275
|
} catch {
|
|
4278
4276
|
}
|
|
4279
|
-
},
|
|
4277
|
+
}, k.prototype.detachMediaElement = function() {
|
|
4280
4278
|
this._mediaElement && (this._mediaElement.src = "", this._mediaElement.removeAttribute("src"), this._mediaElement.removeEventListener("loadedmetadata", this.e.onvLoadedMetadata), this._mediaElement = null), this._statisticsReporter != null && (window.clearInterval(this._statisticsReporter), this._statisticsReporter = null);
|
|
4281
|
-
},
|
|
4279
|
+
}, k.prototype.load = function() {
|
|
4282
4280
|
if (!this._mediaElement) throw new _.a("HTMLMediaElement must be attached before load()!");
|
|
4283
4281
|
this._mediaElement.src = this._mediaDataSource.url, this._mediaElement.readyState > 0 && (this._mediaElement.currentTime = 0), this._mediaElement.preload = "auto", this._mediaElement.load(), this._statisticsReporter = window.setInterval(this._reportStatisticsInfo.bind(this), this._config.statisticsInfoReportInterval);
|
|
4284
|
-
},
|
|
4282
|
+
}, k.prototype.unload = function() {
|
|
4285
4283
|
this._mediaElement && (this._mediaElement.src = "", this._mediaElement.removeAttribute("src")), this._statisticsReporter != null && (window.clearInterval(this._statisticsReporter), this._statisticsReporter = null);
|
|
4286
|
-
},
|
|
4284
|
+
}, k.prototype.play = function() {
|
|
4287
4285
|
return this._mediaElement.play();
|
|
4288
|
-
},
|
|
4286
|
+
}, k.prototype.pause = function() {
|
|
4289
4287
|
this._mediaElement.pause();
|
|
4290
|
-
}, Object.defineProperty(
|
|
4288
|
+
}, Object.defineProperty(k.prototype, "type", { get: function() {
|
|
4291
4289
|
return this._type;
|
|
4292
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4290
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "buffered", { get: function() {
|
|
4293
4291
|
return this._mediaElement.buffered;
|
|
4294
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4292
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "duration", { get: function() {
|
|
4295
4293
|
return this._mediaElement.duration;
|
|
4296
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4294
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "volume", { get: function() {
|
|
4297
4295
|
return this._mediaElement.volume;
|
|
4298
4296
|
}, set: function(d) {
|
|
4299
4297
|
this._mediaElement.volume = d;
|
|
4300
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4298
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "muted", { get: function() {
|
|
4301
4299
|
return this._mediaElement.muted;
|
|
4302
4300
|
}, set: function(d) {
|
|
4303
4301
|
this._mediaElement.muted = d;
|
|
4304
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4302
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "currentTime", { get: function() {
|
|
4305
4303
|
return this._mediaElement ? this._mediaElement.currentTime : 0;
|
|
4306
4304
|
}, set: function(d) {
|
|
4307
4305
|
this._mediaElement ? this._mediaElement.currentTime = d : this._pendingSeekTime = d;
|
|
4308
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4306
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "mediaInfo", { get: function() {
|
|
4309
4307
|
var d = { mimeType: (this._mediaElement instanceof HTMLAudioElement ? "audio/" : "video/") + this._mediaDataSource.type };
|
|
4310
4308
|
return this._mediaElement && (d.duration = Math.floor(1e3 * this._mediaElement.duration), this._mediaElement instanceof HTMLVideoElement && (d.width = this._mediaElement.videoWidth, d.height = this._mediaElement.videoHeight)), d;
|
|
4311
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4309
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "statisticsInfo", { get: function() {
|
|
4312
4310
|
var d = { playerType: this._type, url: this._mediaDataSource.url };
|
|
4313
4311
|
if (!(this._mediaElement instanceof HTMLVideoElement)) return d;
|
|
4314
4312
|
var c = !0, R = 0, Y = 0;
|
|
@@ -4317,15 +4315,15 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4317
4315
|
R = oe.totalVideoFrames, Y = oe.droppedVideoFrames;
|
|
4318
4316
|
} else this._mediaElement.webkitDecodedFrameCount != null ? (R = this._mediaElement.webkitDecodedFrameCount, Y = this._mediaElement.webkitDroppedFrameCount) : c = !1;
|
|
4319
4317
|
return c && (d.decodedFrames = R, d.droppedFrames = Y), d;
|
|
4320
|
-
}, enumerable: !1, configurable: !0 }),
|
|
4318
|
+
}, enumerable: !1, configurable: !0 }), k.prototype._onvLoadedMetadata = function(d) {
|
|
4321
4319
|
this._pendingSeekTime != null && (this._mediaElement.currentTime = this._pendingSeekTime, this._pendingSeekTime = null), this._emitter.emit(H.MEDIA_INFO, this.mediaInfo);
|
|
4322
|
-
},
|
|
4320
|
+
}, k.prototype._reportStatisticsInfo = function() {
|
|
4323
4321
|
this._emitter.emit(H.STATISTICS_INFO, this.statisticsInfo);
|
|
4324
|
-
},
|
|
4322
|
+
}, k;
|
|
4325
4323
|
}();
|
|
4326
4324
|
U.a.install();
|
|
4327
|
-
var ve = { createPlayer: function(
|
|
4328
|
-
var c =
|
|
4325
|
+
var ve = { createPlayer: function(k, d) {
|
|
4326
|
+
var c = k;
|
|
4329
4327
|
if (c == null || typeof c != "object") throw new _.b("MediaDataSource must be an javascript object!");
|
|
4330
4328
|
if (!c.hasOwnProperty("type")) throw new _.b("MediaDataSource must has type field to indicate video file type!");
|
|
4331
4329
|
switch (c.type) {
|
|
@@ -4376,9 +4374,8 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
|
|
|
4376
4374
|
loading: b = !1,
|
|
4377
4375
|
error: v = !1,
|
|
4378
4376
|
errorText: f = At("das-ui-live-player-videoLoadFailedRetry")
|
|
4379
|
-
} = Zt(Z),
|
|
4380
|
-
|
|
4381
|
-
console.log("Video error:", P.error), setTimeout(() => {
|
|
4377
|
+
} = Zt(Z), L = (h) => {
|
|
4378
|
+
h.target, setTimeout(() => {
|
|
4382
4379
|
C();
|
|
4383
4380
|
}, 1e3);
|
|
4384
4381
|
}, M = He(Z.errorTime || 10), C = () => {
|
|
@@ -4395,11 +4392,11 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
|
|
|
4395
4392
|
};
|
|
4396
4393
|
U = Rt.createPlayer(h, le.value), U.attachMediaElement(X.value), U.load(), U.play(), U.on(Rt.Events.ERROR, y), O("loaded", U);
|
|
4397
4394
|
}, y = (h, P) => {
|
|
4398
|
-
|
|
4395
|
+
G();
|
|
4399
4396
|
}, G = () => {
|
|
4400
4397
|
ne.value !== 0 && (ne.value = ne.value - 1, T(), ie());
|
|
4401
4398
|
}, T = () => {
|
|
4402
|
-
U && (
|
|
4399
|
+
U && (U.pause(), U.unload(), U.detachMediaElement(), U.destroy(), U = null);
|
|
4403
4400
|
};
|
|
4404
4401
|
$t(() => {
|
|
4405
4402
|
ie();
|
|
@@ -4440,7 +4437,7 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
|
|
|
4440
4437
|
class: "video",
|
|
4441
4438
|
style: ti({ "object-fit": Xe(B) }),
|
|
4442
4439
|
muted: "",
|
|
4443
|
-
onError:
|
|
4440
|
+
onError: L
|
|
4444
4441
|
},
|
|
4445
4442
|
null,
|
|
4446
4443
|
36
|