@das-fed/ui 7.0.7-hot.21 → 7.0.7-hot.22
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-8yffh0Id.js → index-DMJXZM7n.js} +1067 -1056
- package/packages/business-components/ai-panel/index-DMJXZM7n.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-IzGl26KU.js → index-MqhMkLo9.js} +9 -9
- package/packages/business-components/ai-panel/index-MqhMkLo9.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-OwRrV6K8.js → index-_q72oKSF.js} +63 -62
- package/packages/business-components/ai-panel/index-_q72oKSF.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js +14908 -14808
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/echarts/index.js +2056 -2049
- 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 +215 -213
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1104 -1096
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +243 -240
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +65 -64
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +12 -6
- 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/dimple-layout/index.js +77 -75
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +25 -24
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +398 -397
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +47 -45
- 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 +14 -7
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +147 -143
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +297 -293
- 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 +251 -248
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +421 -415
- 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 +4613 -4583
- 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 +9 -5
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +16 -14
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +53 -51
- 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 +129 -128
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +179 -178
- 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 +1117 -1093
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
- package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
- package/packages/business-components/ai-panel/index-OwRrV6K8.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 k = "[" + v + "] > " + f;
|
|
51
|
+
b.ENABLE_CALLBACK && b.emitter.emit("log", "error", k), b.ENABLE_ERROR && (console.error ? console.error(k) : console.warn ? console.warn(k) : console.log(k));
|
|
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 k = "[" + v + "] > " + f;
|
|
55
|
+
b.ENABLE_CALLBACK && b.emitter.emit("log", "info", k), b.ENABLE_INFO && (console.info ? console.info(k) : console.log(k));
|
|
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 k = "[" + v + "] > " + f;
|
|
59
|
+
b.ENABLE_CALLBACK && b.emitter.emit("log", "warn", k), b.ENABLE_WARN && (console.warn ? console.warn(k) : console.log(k));
|
|
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 k = "[" + v + "] > " + f;
|
|
63
|
+
b.ENABLE_CALLBACK && b.emitter.emit("log", "debug", k), b.ENABLE_DEBUG && (console.debug ? console.debug(k) : console.log(k));
|
|
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 k = "[" + v + "] > " + f;
|
|
67
|
+
b.ENABLE_CALLBACK && b.emitter.emit("log", "verbose", k), b.ENABLE_VERBOSE && console.log(k);
|
|
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, k) {
|
|
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(k, 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
|
+
})(k, M);
|
|
137
|
+
}, function(k, M) {
|
|
138
138
|
function C() {
|
|
139
|
-
this.constructor =
|
|
139
|
+
this.constructor = k;
|
|
140
140
|
}
|
|
141
|
-
U(
|
|
141
|
+
U(k, M), k.prototype = M === null ? Object.create(M) : (C.prototype = M.prototype, new C());
|
|
142
142
|
}), m = function() {
|
|
143
|
-
function
|
|
143
|
+
function k(M) {
|
|
144
144
|
this._message = M;
|
|
145
145
|
}
|
|
146
|
-
return Object.defineProperty(
|
|
146
|
+
return Object.defineProperty(k.prototype, "name", { get: function() {
|
|
147
147
|
return "RuntimeException";
|
|
148
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
148
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(k.prototype, "message", { get: function() {
|
|
149
149
|
return this._message;
|
|
150
|
-
}, enumerable: !1, configurable: !0 }),
|
|
150
|
+
}, enumerable: !1, configurable: !0 }), k.prototype.toString = function() {
|
|
151
151
|
return this.name + ": " + this.message;
|
|
152
|
-
},
|
|
153
|
-
}(), b = function(
|
|
152
|
+
}, k;
|
|
153
|
+
}(), b = function(k) {
|
|
154
154
|
function M(C) {
|
|
155
|
-
return
|
|
155
|
+
return k.call(this, C) || this;
|
|
156
156
|
}
|
|
157
|
-
return B(M,
|
|
157
|
+
return B(M, k), 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(k) {
|
|
161
161
|
function M(C) {
|
|
162
|
-
return
|
|
162
|
+
return k.call(this, C) || this;
|
|
163
163
|
}
|
|
164
|
-
return B(M,
|
|
164
|
+
return B(M, k), 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(k) {
|
|
168
168
|
function M(C) {
|
|
169
|
-
return
|
|
169
|
+
return k.call(this, C) || this;
|
|
170
170
|
}
|
|
171
|
-
return B(M,
|
|
171
|
+
return B(M, k), 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 k = v.majorVersion.split(".");
|
|
182
|
+
f.version = { major: parseInt(v.majorVersion, 10), string: v.version }, k.length > 1 && (f.version.minor = parseInt(k[1], 10)), k.length > 2 && (f.version.build = parseInt(k[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 k(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 (k(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, console && console.warn && console.warn(P);
|
|
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 k(G), this.on(y, H(this, y, G)), this;
|
|
310
310
|
}, v.prototype.prependOnceListener = function(y, G) {
|
|
311
|
-
return
|
|
311
|
+
return k(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 (k(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, k, M, C) {
|
|
361
|
+
this.dts = v, this.pts = f, this.duration = k, 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 k = this._list;
|
|
377
|
+
f.length !== 0 && (k.length > 0 && f[0].originalDts < k[k.length - 1].originalDts && this.clear(), Array.prototype.push.apply(k, 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 k = this._list, M = 0, C = k.length - 1, j = 0, H = 0, le = C;
|
|
381
|
+
for (f < k[0].dts && (M = 0, H = le + 1); H <= le; ) {
|
|
382
|
+
if ((j = H + Math.floor((le - H) / 2)) === C || f >= k[j].dts && f < k[j + 1].dts) {
|
|
383
383
|
M = j;
|
|
384
384
|
break;
|
|
385
385
|
}
|
|
386
|
-
|
|
386
|
+
k[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 k = this._list;
|
|
404
|
+
if (k.length === 0) return -2;
|
|
405
|
+
var M = k.length - 1, C = 0, j = 0, H = M, le = 0;
|
|
406
|
+
if (f < k[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 > k[C].lastSample.originalDts && f < k[C + 1].originalBeginDts) {
|
|
409
409
|
le = C;
|
|
410
410
|
break;
|
|
411
411
|
}
|
|
412
|
-
|
|
412
|
+
k[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 k = this._list, M = f, C = this._lastAppendLocation, j = 0;
|
|
419
|
+
C !== -1 && C < k.length && M.originalBeginDts >= k[C].lastSample.originalDts && (C === k.length - 1 || C < k.length - 1 && M.originalBeginDts < k[C + 1].originalBeginDts) ? j = C + 1 : k.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 k = this._searchNearestSegmentBefore(f);
|
|
422
|
+
return k >= 0 ? this._list[k] : null;
|
|
423
423
|
}, v.prototype.getLastSampleBefore = function(f) {
|
|
424
|
-
var
|
|
425
|
-
return
|
|
424
|
+
var k = this.getLastSegmentBefore(f);
|
|
425
|
+
return k != null ? k.lastSample : null;
|
|
426
426
|
}, v.prototype.getLastSyncPointBefore = function(f) {
|
|
427
|
-
for (var
|
|
427
|
+
for (var k = this._searchNearestSegmentBefore(f), M = this._list[k].syncPoints; M.length === 0 && k > 0; ) k--, M = this._list[k].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, k = 0, M = 0, C = f;
|
|
447
447
|
for (b < m[0] && (v = 0, M = C + 1); M <= C; ) {
|
|
448
|
-
if ((
|
|
449
|
-
v =
|
|
448
|
+
if ((k = M + Math.floor((C - M) / 2)) === f || b >= m[k] && b < m[k + 1]) {
|
|
449
|
+
v = k;
|
|
450
450
|
break;
|
|
451
451
|
}
|
|
452
|
-
m[
|
|
452
|
+
m[k] < b ? M = k + 1 : C = k - 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 k = v.getConfig();
|
|
502
|
+
f.emit("change", k);
|
|
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 k, 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 = (k = new ArrayBuffer(2), new DataView(k).setInt16(0, 256, !0), new Int16Array(k)[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 L, 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
|
+
})(L || (L = {})), 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,12 +1443,14 @@ 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
|
+
}
|
|
1452
1454
|
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;
|
|
1453
1455
|
}
|
|
1454
1456
|
for (var J = 0; ; ) {
|
|
@@ -1993,7 +1995,7 @@ var Tt = { exports: {} };
|
|
|
1993
1995
|
for (var n, o = new Ft(i), p = null, g = s; (p = o.readNextAC3Frame()) != null; ) {
|
|
1994
1996
|
a = 1536 / p.sampling_frequency * 1e3;
|
|
1995
1997
|
var E = { codec: "ac-3", data: p };
|
|
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;
|
|
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 }, console.log(JSON.stringify(this.audio_metadata_)), this.dispatchAudioInitSegment(E)) : this.detectAudioMetadataChange(E) && (this.dispatchAudioMediaSegment(), this.dispatchAudioInitSegment(E)), n = g;
|
|
1997
1999
|
var A = Math.floor(g), S = { unit: p.data, length: p.data.byteLength, pts: A, dts: A };
|
|
1998
2000
|
this.audio_track_.samples.push(S), this.audio_track_.length += p.data.byteLength, g += a;
|
|
1999
2001
|
}
|
|
@@ -2619,7 +2621,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2619
2621
|
var l = (this._now() - this._firstCheckpoint) / 1e3;
|
|
2620
2622
|
return this._totalBytes / l / 1024;
|
|
2621
2623
|
}, enumerable: !1, configurable: !0 }), T;
|
|
2622
|
-
}(), b = O(2), v = O(4), f = O(3),
|
|
2624
|
+
}(), b = O(2), v = O(4), f = O(3), k = (U = function(T, l) {
|
|
2623
2625
|
return (U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, _) {
|
|
2624
2626
|
u.__proto__ = _;
|
|
2625
2627
|
} || function(u, _) {
|
|
@@ -2635,7 +2637,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2635
2637
|
var h = T.call(this, "fetch-stream-loader") || this;
|
|
2636
2638
|
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;
|
|
2637
2639
|
}
|
|
2638
|
-
return
|
|
2640
|
+
return k(l, T), l.isSupported = function() {
|
|
2639
2641
|
try {
|
|
2640
2642
|
var u = v.a.msedge && v.a.version.minor >= 15048, _ = !v.a.msedge || u;
|
|
2641
2643
|
return self.fetch && self.ReadableStream && _;
|
|
@@ -2656,22 +2658,22 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2656
2658
|
}
|
|
2657
2659
|
var ve = { method: "GET", headers: V, mode: "cors", cache: "default", referrerPolicy: "no-referrer-when-downgrade" };
|
|
2658
2660
|
if (typeof this._config.headers == "object") for (var pe in this._config.headers) V.append(pe, this._config.headers[pe]);
|
|
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(
|
|
2660
|
-
if (h._requestAbort) return h._status = b.c.kIdle, void
|
|
2661
|
-
if (
|
|
2662
|
-
if (
|
|
2663
|
-
var d = h._seekHandler.removeURLParameters(
|
|
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(L) {
|
|
2662
|
+
if (h._requestAbort) return h._status = b.c.kIdle, void L.body.cancel();
|
|
2663
|
+
if (L.ok && L.status >= 200 && L.status <= 299) {
|
|
2664
|
+
if (L.url !== D.url && h._onURLRedirect) {
|
|
2665
|
+
var d = h._seekHandler.removeURLParameters(L.url);
|
|
2664
2666
|
h._onURLRedirect(d);
|
|
2665
2667
|
}
|
|
2666
|
-
var c =
|
|
2667
|
-
return c != null && (h._contentLength = parseInt(c), h._contentLength !== 0 && h._onContentLengthKnown && h._onContentLengthKnown(h._contentLength)), h._pump.call(h,
|
|
2668
|
+
var c = L.headers.get("Content-Length");
|
|
2669
|
+
return c != null && (h._contentLength = parseInt(c), h._contentLength !== 0 && h._onContentLengthKnown && h._onContentLengthKnown(h._contentLength)), h._pump.call(h, L.body.getReader());
|
|
2668
2670
|
}
|
|
2669
|
-
if (h._status = b.c.kError, !h._onError) throw new f.d("FetchStreamLoader: Http code invalid, " +
|
|
2670
|
-
h._onError(b.b.HTTP_STATUS_CODE_INVALID, { code:
|
|
2671
|
-
}).catch(function(
|
|
2671
|
+
if (h._status = b.c.kError, !h._onError) throw new f.d("FetchStreamLoader: Http code invalid, " + L.status + " " + L.statusText);
|
|
2672
|
+
h._onError(b.b.HTTP_STATUS_CODE_INVALID, { code: L.status, msg: L.statusText });
|
|
2673
|
+
}).catch(function(L) {
|
|
2672
2674
|
if (!h._abortController || !h._abortController.signal.aborted) {
|
|
2673
|
-
if (h._status = b.c.kError, !h._onError) throw
|
|
2674
|
-
h._onError(b.b.EXCEPTION, { code: -1, msg:
|
|
2675
|
+
if (h._status = b.c.kError, !h._onError) throw L;
|
|
2676
|
+
h._onError(b.b.EXCEPTION, { code: -1, msg: L.message });
|
|
2675
2677
|
}
|
|
2676
2678
|
});
|
|
2677
2679
|
}, l.prototype.abort = function() {
|
|
@@ -3190,7 +3192,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3190
3192
|
if (m == null) throw new TypeError("Cannot convert undefined or null to object");
|
|
3191
3193
|
for (var b = Object(m), v = 1; v < arguments.length; v++) {
|
|
3192
3194
|
var f = arguments[v];
|
|
3193
|
-
if (f != null) for (var
|
|
3195
|
+
if (f != null) for (var k in f) f.hasOwnProperty(k) && (b[k] = f[k]);
|
|
3194
3196
|
}
|
|
3195
3197
|
return b;
|
|
3196
3198
|
}, typeof self.Promise != "function" && O(15).polyfill();
|
|
@@ -3200,53 +3202,53 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3200
3202
|
}, function(fe, Z, O) {
|
|
3201
3203
|
function U(v) {
|
|
3202
3204
|
var f = {};
|
|
3203
|
-
function
|
|
3205
|
+
function k(C) {
|
|
3204
3206
|
if (f[C]) return f[C].exports;
|
|
3205
3207
|
var j = f[C] = { i: C, l: !1, exports: {} };
|
|
3206
|
-
return v[C].call(j.exports, j, j.exports,
|
|
3208
|
+
return v[C].call(j.exports, j, j.exports, k), j.l = !0, j.exports;
|
|
3207
3209
|
}
|
|
3208
|
-
|
|
3210
|
+
k.m = v, k.c = f, k.i = function(C) {
|
|
3209
3211
|
return C;
|
|
3210
|
-
},
|
|
3211
|
-
|
|
3212
|
-
},
|
|
3212
|
+
}, k.d = function(C, j, H) {
|
|
3213
|
+
k.o(C, j) || Object.defineProperty(C, j, { configurable: !1, enumerable: !0, get: H });
|
|
3214
|
+
}, k.r = function(C) {
|
|
3213
3215
|
Object.defineProperty(C, "__esModule", { value: !0 });
|
|
3214
|
-
},
|
|
3216
|
+
}, k.n = function(C) {
|
|
3215
3217
|
var j = C && C.__esModule ? function() {
|
|
3216
3218
|
return C.default;
|
|
3217
3219
|
} : function() {
|
|
3218
3220
|
return C;
|
|
3219
3221
|
};
|
|
3220
|
-
return
|
|
3221
|
-
},
|
|
3222
|
+
return k.d(j, "a", j), j;
|
|
3223
|
+
}, k.o = function(C, j) {
|
|
3222
3224
|
return Object.prototype.hasOwnProperty.call(C, j);
|
|
3223
|
-
},
|
|
3224
|
-
throw C;
|
|
3225
|
+
}, k.p = "/", k.oe = function(C) {
|
|
3226
|
+
throw console.error(C), C;
|
|
3225
3227
|
};
|
|
3226
|
-
var M =
|
|
3228
|
+
var M = k(k.s = ENTRY_MODULE);
|
|
3227
3229
|
return M.default || M;
|
|
3228
3230
|
}
|
|
3229
3231
|
function B(v) {
|
|
3230
3232
|
return (v + "").replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
3231
3233
|
}
|
|
3232
|
-
function m(v, f,
|
|
3234
|
+
function m(v, f, k) {
|
|
3233
3235
|
var M = {};
|
|
3234
|
-
M[
|
|
3236
|
+
M[k] = [];
|
|
3235
3237
|
var C = f.toString(), j = C.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);
|
|
3236
3238
|
if (!j) return 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[
|
|
3238
|
-
for (ne = new RegExp("\\(" + B(le) + '\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)', "g"); H = ne.exec(C); ) v[H[2]] || (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[k].push(H[3]);
|
|
3240
|
+
for (ne = new RegExp("\\(" + B(le) + '\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)', "g"); H = ne.exec(C); ) v[H[2]] || (M[k].push(H[1]), v[H[2]] = O(H[1]).m), M[H[2]] = M[H[2]] || [], M[H[2]].push(H[4]);
|
|
3239
3241
|
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]);
|
|
3240
3242
|
return M;
|
|
3241
3243
|
}
|
|
3242
3244
|
function b(v) {
|
|
3243
|
-
return Object.keys(v).reduce(function(f,
|
|
3244
|
-
return f || v[
|
|
3245
|
+
return Object.keys(v).reduce(function(f, k) {
|
|
3246
|
+
return f || v[k].length > 0;
|
|
3245
3247
|
}, !1);
|
|
3246
3248
|
}
|
|
3247
3249
|
fe.exports = function(v, f) {
|
|
3248
3250
|
f = f || {};
|
|
3249
|
-
var
|
|
3251
|
+
var k = { main: O.m }, M = f.all ? { main: Object.keys(k.main) } : function(ne, X) {
|
|
3250
3252
|
for (var ie = { main: [X] }, y = { main: [] }, G = { main: {} }; b(ie); ) for (var T = Object.keys(ie), l = 0; l < T.length; l++) {
|
|
3251
3253
|
var u = T[l], _ = ie[u].pop();
|
|
3252
3254
|
if (G[u] = G[u] || {}, !G[u][_] && ne[u][_]) {
|
|
@@ -3255,17 +3257,17 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3255
3257
|
}
|
|
3256
3258
|
}
|
|
3257
3259
|
return y;
|
|
3258
|
-
}(
|
|
3260
|
+
}(k, v), C = "";
|
|
3259
3261
|
Object.keys(M).filter(function(ne) {
|
|
3260
3262
|
return ne !== "main";
|
|
3261
3263
|
}).forEach(function(ne) {
|
|
3262
3264
|
for (var X = 0; M[ne][X]; ) X++;
|
|
3263
|
-
M[ne].push(X),
|
|
3264
|
-
return JSON.stringify(ie) + ": " +
|
|
3265
|
+
M[ne].push(X), k[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) {
|
|
3266
|
+
return JSON.stringify(ie) + ": " + k[ne][ie].toString();
|
|
3265
3267
|
}).join(",") + `});
|
|
3266
3268
|
`;
|
|
3267
3269
|
}), C = C + "new ((" + U.toString().replace("ENTRY_MODULE", JSON.stringify(v)) + ")({" + M.main.map(function(ne) {
|
|
3268
|
-
return JSON.stringify(ne) + ": " +
|
|
3270
|
+
return JSON.stringify(ne) + ": " + k.main[ne].toString();
|
|
3269
3271
|
}).join(",") + "}))(self);";
|
|
3270
3272
|
var j = new window.Blob([C], { type: "text/javascript" });
|
|
3271
3273
|
if (f.bare) return j;
|
|
@@ -3290,7 +3292,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3290
3292
|
}
|
|
3291
3293
|
var v = Array.isArray ? Array.isArray : function(x) {
|
|
3292
3294
|
return Object.prototype.toString.call(x) === "[object Array]";
|
|
3293
|
-
}, f = 0,
|
|
3295
|
+
}, f = 0, k = void 0, M = void 0, C = function(x, F) {
|
|
3294
3296
|
y[f] = x, y[f + 1] = F, (f += 2) === 2 && (M ? M(G) : h());
|
|
3295
3297
|
}, 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";
|
|
3296
3298
|
function ie() {
|
|
@@ -3331,8 +3333,8 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3331
3333
|
}) : h = j === void 0 ? function() {
|
|
3332
3334
|
try {
|
|
3333
3335
|
var x = Function("return this")().require("vertx");
|
|
3334
|
-
return (
|
|
3335
|
-
|
|
3336
|
+
return (k = x.runOnLoop || x.runOnContext) !== void 0 ? function() {
|
|
3337
|
+
k(G);
|
|
3336
3338
|
} : ie();
|
|
3337
3339
|
} catch {
|
|
3338
3340
|
return ie();
|
|
@@ -3379,14 +3381,14 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3379
3381
|
}
|
|
3380
3382
|
var re, ae;
|
|
3381
3383
|
}
|
|
3382
|
-
function
|
|
3384
|
+
function L(x) {
|
|
3383
3385
|
x._onerror && x._onerror(x._result), Y(x);
|
|
3384
3386
|
}
|
|
3385
3387
|
function d(x, F) {
|
|
3386
3388
|
x._state === void 0 && (x._result = F, x._state = 1, x._subscribers.length !== 0 && C(Y, x));
|
|
3387
3389
|
}
|
|
3388
3390
|
function c(x, F) {
|
|
3389
|
-
x._state === void 0 && (x._state = 2, x._result = F, C(
|
|
3391
|
+
x._state === void 0 && (x._state = 2, x._result = F, C(L, x));
|
|
3390
3392
|
}
|
|
3391
3393
|
function R(x, F, $, re) {
|
|
3392
3394
|
var ae = x._subscribers, ce = ae.length;
|
|
@@ -3554,17 +3556,17 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3554
3556
|
U = b;
|
|
3555
3557
|
}
|
|
3556
3558
|
})();
|
|
3557
|
-
var f,
|
|
3559
|
+
var f, k = [], M = !1, C = -1;
|
|
3558
3560
|
function j() {
|
|
3559
|
-
M && f && (M = !1, f.length ?
|
|
3561
|
+
M && f && (M = !1, f.length ? k = f.concat(k) : C = -1, k.length && H());
|
|
3560
3562
|
}
|
|
3561
3563
|
function H() {
|
|
3562
3564
|
if (!M) {
|
|
3563
3565
|
var X = v(j);
|
|
3564
3566
|
M = !0;
|
|
3565
|
-
for (var ie =
|
|
3566
|
-
for (f =
|
|
3567
|
-
C = -1, ie =
|
|
3567
|
+
for (var ie = k.length; ie; ) {
|
|
3568
|
+
for (f = k, k = []; ++C < ie; ) f && f[C].run();
|
|
3569
|
+
C = -1, ie = k.length;
|
|
3568
3570
|
}
|
|
3569
3571
|
f = null, M = !1, function(y) {
|
|
3570
3572
|
if (U === clearTimeout) return clearTimeout(y);
|
|
@@ -3589,7 +3591,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3589
3591
|
B.nextTick = function(X) {
|
|
3590
3592
|
var ie = new Array(arguments.length - 1);
|
|
3591
3593
|
if (arguments.length > 1) for (var y = 1; y < arguments.length; y++) ie[y - 1] = arguments[y];
|
|
3592
|
-
|
|
3594
|
+
k.push(new le(X, ie)), k.length !== 1 || M || v(H);
|
|
3593
3595
|
}, le.prototype.run = function() {
|
|
3594
3596
|
this.fun.apply(null, this.array);
|
|
3595
3597
|
}, 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) {
|
|
@@ -3618,7 +3620,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3618
3620
|
O.r(Z);
|
|
3619
3621
|
var U = O(9), B = O(12), m = O(10), b = O(1);
|
|
3620
3622
|
Z.default = function(v) {
|
|
3621
|
-
var f = null,
|
|
3623
|
+
var f = null, k = (function(D, V) {
|
|
3622
3624
|
v.postMessage({ msg: "logcat_callback", data: { type: D, logcat: V } });
|
|
3623
3625
|
}).bind(this);
|
|
3624
3626
|
function M(D, V) {
|
|
@@ -3707,7 +3709,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3707
3709
|
break;
|
|
3708
3710
|
case "logging_config":
|
|
3709
3711
|
var V = D.data.param;
|
|
3710
|
-
U.a.applyConfig(V), V.enableCallback === !0 ? U.a.addLogListener(
|
|
3712
|
+
U.a.applyConfig(V), V.enableCallback === !0 ? U.a.addLogListener(k) : U.a.removeLogListener(k);
|
|
3711
3713
|
}
|
|
3712
3714
|
});
|
|
3713
3715
|
};
|
|
@@ -3718,28 +3720,28 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3718
3720
|
return Object.assign({}, m);
|
|
3719
3721
|
}
|
|
3720
3722
|
var v = function() {
|
|
3721
|
-
function
|
|
3723
|
+
function L() {
|
|
3722
3724
|
}
|
|
3723
|
-
return
|
|
3725
|
+
return L.supportMSEH264Playback = function() {
|
|
3724
3726
|
return window.MediaSource && window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"');
|
|
3725
|
-
},
|
|
3727
|
+
}, L.supportMSEH265Playback = function() {
|
|
3726
3728
|
return window.MediaSource && window.MediaSource.isTypeSupported('video/mp4; codecs="hvc1.1.6.L93.B0"');
|
|
3727
|
-
},
|
|
3729
|
+
}, L.supportNetworkStreamIO = function() {
|
|
3728
3730
|
var d = new B.a({}, b()), c = d.loaderType;
|
|
3729
3731
|
return d.destroy(), c == "fetch-stream-loader" || c == "xhr-moz-chunked-loader";
|
|
3730
|
-
},
|
|
3732
|
+
}, L.getNetworkLoaderTypeName = function() {
|
|
3731
3733
|
var d = new B.a({}, b()), c = d.loaderType;
|
|
3732
3734
|
return d.destroy(), c;
|
|
3733
|
-
},
|
|
3734
|
-
|
|
3735
|
-
var c =
|
|
3735
|
+
}, L.supportNativeMediaPlayback = function(d) {
|
|
3736
|
+
L.videoElement == null && (L.videoElement = window.document.createElement("video"));
|
|
3737
|
+
var c = L.videoElement.canPlayType(d);
|
|
3736
3738
|
return c === "probably" || c == "maybe";
|
|
3737
|
-
},
|
|
3739
|
+
}, L.getFeatureList = function() {
|
|
3738
3740
|
var d = { msePlayback: !1, mseLivePlayback: !1, mseH265Playback: !1, networkStreamIO: !1, networkLoaderName: "", nativeMP4H264Playback: !1, nativeMP4H265Playback: !1, nativeWebmVP8Playback: !1, nativeWebmVP9Playback: !1 };
|
|
3739
|
-
return d.msePlayback =
|
|
3740
|
-
},
|
|
3741
|
-
}(), f = O(2),
|
|
3742
|
-
function
|
|
3741
|
+
return d.msePlayback = L.supportMSEH264Playback(), d.networkStreamIO = L.supportNetworkStreamIO(), d.networkLoaderName = L.getNetworkLoaderTypeName(), d.mseLivePlayback = d.msePlayback && d.networkStreamIO, d.mseH265Playback = L.supportMSEH265Playback(), d.nativeMP4H264Playback = L.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'), d.nativeMP4H265Playback = L.supportNativeMediaPlayback('video/mp4; codecs="hvc1.1.6.L93.B0"'), d.nativeWebmVP8Playback = L.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'), d.nativeWebmVP9Playback = L.supportNativeMediaPlayback('video/webm; codecs="vp9"'), d;
|
|
3742
|
+
}, L;
|
|
3743
|
+
}(), f = O(2), k = O(6), M = O.n(k), 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() {
|
|
3744
|
+
function L(d, c) {
|
|
3743
3745
|
if (this.TAG = "Transmuxer", this._emitter = new M.a(), c.enableWorker && typeof Worker < "u") try {
|
|
3744
3746
|
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() });
|
|
3745
3747
|
} catch {
|
|
@@ -3751,107 +3753,107 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3751
3753
|
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));
|
|
3752
3754
|
}
|
|
3753
3755
|
}
|
|
3754
|
-
return
|
|
3756
|
+
return L.prototype.destroy = function() {
|
|
3755
3757
|
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;
|
|
3756
|
-
},
|
|
3758
|
+
}, L.prototype.on = function(d, c) {
|
|
3757
3759
|
this._emitter.addListener(d, c);
|
|
3758
|
-
},
|
|
3760
|
+
}, L.prototype.off = function(d, c) {
|
|
3759
3761
|
this._emitter.removeListener(d, c);
|
|
3760
|
-
},
|
|
3762
|
+
}, L.prototype.hasWorker = function() {
|
|
3761
3763
|
return this._worker != null;
|
|
3762
|
-
},
|
|
3764
|
+
}, L.prototype.open = function() {
|
|
3763
3765
|
this._worker ? this._worker.postMessage({ cmd: "start" }) : this._controller.start();
|
|
3764
|
-
},
|
|
3766
|
+
}, L.prototype.close = function() {
|
|
3765
3767
|
this._worker ? this._worker.postMessage({ cmd: "stop" }) : this._controller.stop();
|
|
3766
|
-
},
|
|
3768
|
+
}, L.prototype.seek = function(d) {
|
|
3767
3769
|
this._worker ? this._worker.postMessage({ cmd: "seek", param: d }) : this._controller.seek(d);
|
|
3768
|
-
},
|
|
3770
|
+
}, L.prototype.pause = function() {
|
|
3769
3771
|
this._worker ? this._worker.postMessage({ cmd: "pause" }) : this._controller.pause();
|
|
3770
|
-
},
|
|
3772
|
+
}, L.prototype.resume = function() {
|
|
3771
3773
|
this._worker ? this._worker.postMessage({ cmd: "resume" }) : this._controller.resume();
|
|
3772
|
-
},
|
|
3774
|
+
}, L.prototype._onInitSegment = function(d, c) {
|
|
3773
3775
|
var R = this;
|
|
3774
3776
|
Promise.resolve().then(function() {
|
|
3775
3777
|
R._emitter.emit(y.a.INIT_SEGMENT, d, c);
|
|
3776
3778
|
});
|
|
3777
|
-
},
|
|
3779
|
+
}, L.prototype._onMediaSegment = function(d, c) {
|
|
3778
3780
|
var R = this;
|
|
3779
3781
|
Promise.resolve().then(function() {
|
|
3780
3782
|
R._emitter.emit(y.a.MEDIA_SEGMENT, d, c);
|
|
3781
3783
|
});
|
|
3782
|
-
},
|
|
3784
|
+
}, L.prototype._onLoadingComplete = function() {
|
|
3783
3785
|
var d = this;
|
|
3784
3786
|
Promise.resolve().then(function() {
|
|
3785
3787
|
d._emitter.emit(y.a.LOADING_COMPLETE);
|
|
3786
3788
|
});
|
|
3787
|
-
},
|
|
3789
|
+
}, L.prototype._onRecoveredEarlyEof = function() {
|
|
3788
3790
|
var d = this;
|
|
3789
3791
|
Promise.resolve().then(function() {
|
|
3790
3792
|
d._emitter.emit(y.a.RECOVERED_EARLY_EOF);
|
|
3791
3793
|
});
|
|
3792
|
-
},
|
|
3794
|
+
}, L.prototype._onMediaInfo = function(d) {
|
|
3793
3795
|
var c = this;
|
|
3794
3796
|
Promise.resolve().then(function() {
|
|
3795
3797
|
c._emitter.emit(y.a.MEDIA_INFO, d);
|
|
3796
3798
|
});
|
|
3797
|
-
},
|
|
3799
|
+
}, L.prototype._onMetaDataArrived = function(d) {
|
|
3798
3800
|
var c = this;
|
|
3799
3801
|
Promise.resolve().then(function() {
|
|
3800
3802
|
c._emitter.emit(y.a.METADATA_ARRIVED, d);
|
|
3801
3803
|
});
|
|
3802
|
-
},
|
|
3804
|
+
}, L.prototype._onScriptDataArrived = function(d) {
|
|
3803
3805
|
var c = this;
|
|
3804
3806
|
Promise.resolve().then(function() {
|
|
3805
3807
|
c._emitter.emit(y.a.SCRIPTDATA_ARRIVED, d);
|
|
3806
3808
|
});
|
|
3807
|
-
},
|
|
3809
|
+
}, L.prototype._onTimedID3MetadataArrived = function(d) {
|
|
3808
3810
|
var c = this;
|
|
3809
3811
|
Promise.resolve().then(function() {
|
|
3810
3812
|
c._emitter.emit(y.a.TIMED_ID3_METADATA_ARRIVED, d);
|
|
3811
3813
|
});
|
|
3812
|
-
},
|
|
3814
|
+
}, L.prototype._onSMPTE2038MetadataArrived = function(d) {
|
|
3813
3815
|
var c = this;
|
|
3814
3816
|
Promise.resolve().then(function() {
|
|
3815
3817
|
c._emitter.emit(y.a.SMPTE2038_METADATA_ARRIVED, d);
|
|
3816
3818
|
});
|
|
3817
|
-
},
|
|
3819
|
+
}, L.prototype._onSCTE35MetadataArrived = function(d) {
|
|
3818
3820
|
var c = this;
|
|
3819
3821
|
Promise.resolve().then(function() {
|
|
3820
3822
|
c._emitter.emit(y.a.SCTE35_METADATA_ARRIVED, d);
|
|
3821
3823
|
});
|
|
3822
|
-
},
|
|
3824
|
+
}, L.prototype._onPESPrivateDataDescriptor = function(d) {
|
|
3823
3825
|
var c = this;
|
|
3824
3826
|
Promise.resolve().then(function() {
|
|
3825
3827
|
c._emitter.emit(y.a.PES_PRIVATE_DATA_DESCRIPTOR, d);
|
|
3826
3828
|
});
|
|
3827
|
-
},
|
|
3829
|
+
}, L.prototype._onPESPrivateDataArrived = function(d) {
|
|
3828
3830
|
var c = this;
|
|
3829
3831
|
Promise.resolve().then(function() {
|
|
3830
3832
|
c._emitter.emit(y.a.PES_PRIVATE_DATA_ARRIVED, d);
|
|
3831
3833
|
});
|
|
3832
|
-
},
|
|
3834
|
+
}, L.prototype._onStatisticsInfo = function(d) {
|
|
3833
3835
|
var c = this;
|
|
3834
3836
|
Promise.resolve().then(function() {
|
|
3835
3837
|
c._emitter.emit(y.a.STATISTICS_INFO, d);
|
|
3836
3838
|
});
|
|
3837
|
-
},
|
|
3839
|
+
}, L.prototype._onIOError = function(d, c) {
|
|
3838
3840
|
var R = this;
|
|
3839
3841
|
Promise.resolve().then(function() {
|
|
3840
3842
|
R._emitter.emit(y.a.IO_ERROR, d, c);
|
|
3841
3843
|
});
|
|
3842
|
-
},
|
|
3844
|
+
}, L.prototype._onDemuxError = function(d, c) {
|
|
3843
3845
|
var R = this;
|
|
3844
3846
|
Promise.resolve().then(function() {
|
|
3845
3847
|
R._emitter.emit(y.a.DEMUX_ERROR, d, c);
|
|
3846
3848
|
});
|
|
3847
|
-
},
|
|
3849
|
+
}, L.prototype._onRecommendSeekpoint = function(d) {
|
|
3848
3850
|
var c = this;
|
|
3849
3851
|
Promise.resolve().then(function() {
|
|
3850
3852
|
c._emitter.emit(y.a.RECOMMEND_SEEKPOINT, d);
|
|
3851
3853
|
});
|
|
3852
|
-
},
|
|
3854
|
+
}, L.prototype._onLoggingConfigChanged = function(d) {
|
|
3853
3855
|
this._worker && this._worker.postMessage({ cmd: "logging_config", param: d });
|
|
3854
|
-
},
|
|
3856
|
+
}, L.prototype._onWorkerMessage = function(d) {
|
|
3855
3857
|
var c = d.data, R = c.data;
|
|
3856
3858
|
if (c.msg === "destroyed" || this._workerDestroying) return this._workerDestroying = !1, this._worker.terminate(), void (this._worker = null);
|
|
3857
3859
|
switch (c.msg) {
|
|
@@ -3886,22 +3888,22 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3886
3888
|
case "logcat_callback":
|
|
3887
3889
|
C.a.emitter.emit("log", R.type, R.logcat);
|
|
3888
3890
|
}
|
|
3889
|
-
},
|
|
3891
|
+
}, L;
|
|
3890
3892
|
}(), l = { ERROR: "error", SOURCE_OPEN: "source_open", UPDATE_END: "update_end", BUFFER_FULL: "buffer_full" }, u = O(7), _ = O(3), h = function() {
|
|
3891
|
-
function
|
|
3893
|
+
function L(d) {
|
|
3892
3894
|
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();
|
|
3893
3895
|
}
|
|
3894
|
-
return
|
|
3896
|
+
return L.prototype.destroy = function() {
|
|
3895
3897
|
(this._mediaElement || this._mediaSource) && this.detachMediaElement(), this.e = null, this._emitter.removeAllListeners(), this._emitter = null;
|
|
3896
|
-
},
|
|
3898
|
+
}, L.prototype.on = function(d, c) {
|
|
3897
3899
|
this._emitter.addListener(d, c);
|
|
3898
|
-
},
|
|
3900
|
+
}, L.prototype.off = function(d, c) {
|
|
3899
3901
|
this._emitter.removeListener(d, c);
|
|
3900
|
-
},
|
|
3902
|
+
}, L.prototype.attachMediaElement = function(d) {
|
|
3901
3903
|
if (this._mediaSource) throw new _.a("MediaSource has been attached to an HTMLMediaElement!");
|
|
3902
3904
|
var c = this._mediaSource = new window.MediaSource();
|
|
3903
3905
|
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;
|
|
3904
|
-
},
|
|
3906
|
+
}, L.prototype.detachMediaElement = function() {
|
|
3905
3907
|
if (this._mediaSource) {
|
|
3906
3908
|
var d = this._mediaSource;
|
|
3907
3909
|
for (var c in this._sourceBuffers) {
|
|
@@ -3928,7 +3930,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3928
3930
|
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;
|
|
3929
3931
|
}
|
|
3930
3932
|
this._mediaElement && (this._mediaElement.src = "", this._mediaElement.removeAttribute("src"), this._mediaElement = null), this._mediaSourceObjectURL && (window.URL.revokeObjectURL(this._mediaSourceObjectURL), this._mediaSourceObjectURL = null);
|
|
3931
|
-
},
|
|
3933
|
+
}, L.prototype.appendInitSegment = function(d, c) {
|
|
3932
3934
|
if (!this._mediaSource || this._mediaSource.readyState !== "open") return this._pendingSourceBufferInit.push(d), void this._pendingSegments[d.type].push(d);
|
|
3933
3935
|
var R = d, Y = "" + R.container;
|
|
3934
3936
|
R.codec && R.codec.length > 0 && (Y += ";codecs=" + R.codec);
|
|
@@ -3947,12 +3949,12 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3947
3949
|
this._mimeTypes[R.type] = Y;
|
|
3948
3950
|
}
|
|
3949
3951
|
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());
|
|
3950
|
-
},
|
|
3952
|
+
}, L.prototype.appendMediaSegment = function(d) {
|
|
3951
3953
|
var c = d;
|
|
3952
3954
|
this._pendingSegments[c.type].push(c), this._config.autoCleanupSourceBuffer && this._needCleanupSourceBuffer() && this._doCleanupSourceBuffer();
|
|
3953
3955
|
var R = this._sourceBuffers[c.type];
|
|
3954
3956
|
!R || R.updating || this._hasPendingRemoveRanges() || this._doAppendSegments();
|
|
3955
|
-
},
|
|
3957
|
+
}, L.prototype.seek = function(d) {
|
|
3956
3958
|
for (var c in this._sourceBuffers) if (this._sourceBuffers[c]) {
|
|
3957
3959
|
var R = this._sourceBuffers[c];
|
|
3958
3960
|
if (this._mediaSource.readyState === "open") try {
|
|
@@ -3973,12 +3975,12 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3973
3975
|
}
|
|
3974
3976
|
}
|
|
3975
3977
|
}
|
|
3976
|
-
},
|
|
3978
|
+
}, L.prototype.endOfStream = function() {
|
|
3977
3979
|
var d = this._mediaSource, c = this._sourceBuffers;
|
|
3978
3980
|
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);
|
|
3979
|
-
},
|
|
3981
|
+
}, L.prototype.getNearestKeyframe = function(d) {
|
|
3980
3982
|
return this._idrList.getLastSyncPointBeforeDts(d);
|
|
3981
|
-
},
|
|
3983
|
+
}, L.prototype._needCleanupSourceBuffer = function() {
|
|
3982
3984
|
if (!this._config.autoCleanupSourceBuffer) return !1;
|
|
3983
3985
|
var d = this._mediaElement.currentTime;
|
|
3984
3986
|
for (var c in this._sourceBuffers) {
|
|
@@ -3989,7 +3991,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3989
3991
|
}
|
|
3990
3992
|
}
|
|
3991
3993
|
return !1;
|
|
3992
|
-
},
|
|
3994
|
+
}, L.prototype._doCleanupSourceBuffer = function() {
|
|
3993
3995
|
var d = this._mediaElement.currentTime;
|
|
3994
3996
|
for (var c in this._sourceBuffers) {
|
|
3995
3997
|
var R = this._sourceBuffers[c];
|
|
@@ -4007,18 +4009,18 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4007
4009
|
oe && !R.updating && this._doRemoveRanges();
|
|
4008
4010
|
}
|
|
4009
4011
|
}
|
|
4010
|
-
},
|
|
4012
|
+
}, L.prototype._updateMediaSourceDuration = function() {
|
|
4011
4013
|
var d = this._sourceBuffers;
|
|
4012
4014
|
if (this._mediaElement.readyState !== 0 && this._mediaSource.readyState === "open" && !(d.video && d.video.updating || d.audio && d.audio.updating)) {
|
|
4013
4015
|
var c = this._mediaSource.duration, R = this._pendingMediaDuration;
|
|
4014
4016
|
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;
|
|
4015
4017
|
}
|
|
4016
|
-
},
|
|
4018
|
+
}, L.prototype._doRemoveRanges = function() {
|
|
4017
4019
|
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; ) {
|
|
4018
4020
|
var Y = R.shift();
|
|
4019
4021
|
c.remove(Y.start, Y.end);
|
|
4020
4022
|
}
|
|
4021
|
-
},
|
|
4023
|
+
}, L.prototype._doAppendSegments = function() {
|
|
4022
4024
|
var d = this._pendingSegments;
|
|
4023
4025
|
for (var c in d) if (this._sourceBuffers[c] && !this._sourceBuffers[c].updating && d[c].length > 0) {
|
|
4024
4026
|
var R = d[c].shift();
|
|
@@ -4033,29 +4035,29 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4033
4035
|
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 }));
|
|
4034
4036
|
}
|
|
4035
4037
|
}
|
|
4036
|
-
},
|
|
4038
|
+
}, L.prototype._onSourceOpen = function() {
|
|
4037
4039
|
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; ) {
|
|
4038
4040
|
var c = d.shift();
|
|
4039
4041
|
this.appendInitSegment(c, !0);
|
|
4040
4042
|
}
|
|
4041
4043
|
this._hasPendingSegments() && this._doAppendSegments(), this._emitter.emit(l.SOURCE_OPEN);
|
|
4042
|
-
},
|
|
4044
|
+
}, L.prototype._onSourceEnded = function() {
|
|
4043
4045
|
C.a.v(this.TAG, "MediaSource onSourceEnded");
|
|
4044
|
-
},
|
|
4046
|
+
}, L.prototype._onSourceClose = function() {
|
|
4045
4047
|
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));
|
|
4046
|
-
},
|
|
4048
|
+
}, L.prototype._hasPendingSegments = function() {
|
|
4047
4049
|
var d = this._pendingSegments;
|
|
4048
4050
|
return d.video.length > 0 || d.audio.length > 0;
|
|
4049
|
-
},
|
|
4051
|
+
}, L.prototype._hasPendingRemoveRanges = function() {
|
|
4050
4052
|
var d = this._pendingRemoveRanges;
|
|
4051
4053
|
return d.video.length > 0 || d.audio.length > 0;
|
|
4052
|
-
},
|
|
4054
|
+
}, L.prototype._onSourceBufferUpdateEnd = function() {
|
|
4053
4055
|
this._requireSetMediaDuration ? this._updateMediaSourceDuration() : this._hasPendingRemoveRanges() ? this._doRemoveRanges() : this._hasPendingSegments() ? this._doAppendSegments() : this._hasPendingEos && this.endOfStream(), this._emitter.emit(l.UPDATE_END);
|
|
4054
|
-
},
|
|
4056
|
+
}, L.prototype._onSourceBufferError = function(d) {
|
|
4055
4057
|
C.a.e(this.TAG, "SourceBuffer Error: " + d);
|
|
4056
|
-
},
|
|
4058
|
+
}, L;
|
|
4057
4059
|
}(), 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() {
|
|
4058
|
-
function
|
|
4060
|
+
function L(d, c) {
|
|
4059
4061
|
this.TAG = "MSEPlayer", this._type = "MSEPlayer", this._emitter = new M.a(), this._config = b(), typeof c == "object" && Object.assign(this._config, c);
|
|
4060
4062
|
var R = d.type.toLowerCase();
|
|
4061
4063
|
if (R !== "mse" && R !== "mpegts" && R !== "m2ts" && R !== "flv") throw new _.b("MSEPlayer requires an mpegts/m2ts/flv MediaDataSource input!");
|
|
@@ -4063,18 +4065,18 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4063
4065
|
var Y = j.a.chrome && (j.a.version.major < 50 || j.a.version.major === 50 && j.a.version.build < 2661);
|
|
4064
4066
|
this._alwaysSeekKeyframe = !!(Y || j.a.msedge || j.a.msie), this._alwaysSeekKeyframe && (this._config.accurateSeek = !1);
|
|
4065
4067
|
}
|
|
4066
|
-
return
|
|
4068
|
+
return L.prototype.destroy = function() {
|
|
4067
4069
|
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;
|
|
4068
|
-
},
|
|
4070
|
+
}, L.prototype.on = function(d, c) {
|
|
4069
4071
|
var R = this;
|
|
4070
4072
|
d === H.MEDIA_INFO ? this._mediaInfo != null && Promise.resolve().then(function() {
|
|
4071
4073
|
R._emitter.emit(H.MEDIA_INFO, R.mediaInfo);
|
|
4072
4074
|
}) : d === H.STATISTICS_INFO && this._statisticsInfo != null && Promise.resolve().then(function() {
|
|
4073
4075
|
R._emitter.emit(H.STATISTICS_INFO, R.statisticsInfo);
|
|
4074
4076
|
}), this._emitter.addListener(d, c);
|
|
4075
|
-
},
|
|
4077
|
+
}, L.prototype.off = function(d, c) {
|
|
4076
4078
|
this._emitter.removeListener(d, c);
|
|
4077
|
-
},
|
|
4079
|
+
}, L.prototype.attachMediaElement = function(d) {
|
|
4078
4080
|
var c = this;
|
|
4079
4081
|
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() {
|
|
4080
4082
|
c._mseSourceOpened = !0, c._hasPendingLoad && (c._hasPendingLoad = !1, c.load());
|
|
@@ -4084,9 +4086,9 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4084
4086
|
d.currentTime = this._pendingSeekTime, this._pendingSeekTime = null;
|
|
4085
4087
|
} catch {
|
|
4086
4088
|
}
|
|
4087
|
-
},
|
|
4089
|
+
}, L.prototype.detachMediaElement = function() {
|
|
4088
4090
|
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);
|
|
4089
|
-
},
|
|
4091
|
+
}, L.prototype.load = function() {
|
|
4090
4092
|
var d = this;
|
|
4091
4093
|
if (!this._mediaElement) throw new _.a("HTMLMediaElement must be attached before load()!");
|
|
4092
4094
|
if (this._transmuxer) throw new _.a("MSEPlayer.load() has been called, please call unload() first!");
|
|
@@ -4126,35 +4128,35 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4126
4128
|
}), this._transmuxer.on(y.a.RECOMMEND_SEEKPOINT, function(c) {
|
|
4127
4129
|
d._mediaElement && !d._config.accurateSeek && (d._requestSetTime = !0, d._mediaElement.currentTime = c / 1e3);
|
|
4128
4130
|
}), this._transmuxer.open()));
|
|
4129
|
-
},
|
|
4131
|
+
}, L.prototype.unload = function() {
|
|
4130
4132
|
this._mediaElement && this._mediaElement.pause(), this._msectl && this._msectl.seek(0), this._transmuxer && (this._transmuxer.close(), this._transmuxer.destroy(), this._transmuxer = null);
|
|
4131
|
-
},
|
|
4133
|
+
}, L.prototype.play = function() {
|
|
4132
4134
|
return this._mediaElement.play();
|
|
4133
|
-
},
|
|
4135
|
+
}, L.prototype.pause = function() {
|
|
4134
4136
|
this._mediaElement.pause();
|
|
4135
|
-
}, Object.defineProperty(
|
|
4137
|
+
}, Object.defineProperty(L.prototype, "type", { get: function() {
|
|
4136
4138
|
return this._type;
|
|
4137
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4139
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "buffered", { get: function() {
|
|
4138
4140
|
return this._mediaElement.buffered;
|
|
4139
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4141
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "duration", { get: function() {
|
|
4140
4142
|
return this._mediaElement.duration;
|
|
4141
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4143
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "volume", { get: function() {
|
|
4142
4144
|
return this._mediaElement.volume;
|
|
4143
4145
|
}, set: function(d) {
|
|
4144
4146
|
this._mediaElement.volume = d;
|
|
4145
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4147
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "muted", { get: function() {
|
|
4146
4148
|
return this._mediaElement.muted;
|
|
4147
4149
|
}, set: function(d) {
|
|
4148
4150
|
this._mediaElement.muted = d;
|
|
4149
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4151
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "currentTime", { get: function() {
|
|
4150
4152
|
return this._mediaElement ? this._mediaElement.currentTime : 0;
|
|
4151
4153
|
}, set: function(d) {
|
|
4152
4154
|
this._mediaElement ? this._internalSeek(d) : this._pendingSeekTime = d;
|
|
4153
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4155
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "mediaInfo", { get: function() {
|
|
4154
4156
|
return Object.assign({}, this._mediaInfo);
|
|
4155
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4157
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "statisticsInfo", { get: function() {
|
|
4156
4158
|
return this._statisticsInfo == null && (this._statisticsInfo = {}), this._statisticsInfo = this._fillStatisticsInfo(this._statisticsInfo), Object.assign({}, this._statisticsInfo);
|
|
4157
|
-
}, enumerable: !1, configurable: !0 }),
|
|
4159
|
+
}, enumerable: !1, configurable: !0 }), L.prototype._fillStatisticsInfo = function(d) {
|
|
4158
4160
|
if (d.playerType = this._type, !(this._mediaElement instanceof HTMLVideoElement)) return d;
|
|
4159
4161
|
var c = !0, R = 0, Y = 0;
|
|
4160
4162
|
if (this._mediaElement.getVideoPlaybackQuality) {
|
|
@@ -4162,7 +4164,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4162
4164
|
R = oe.totalVideoFrames, Y = oe.droppedVideoFrames;
|
|
4163
4165
|
} else this._mediaElement.webkitDecodedFrameCount != null ? (R = this._mediaElement.webkitDecodedFrameCount, Y = this._mediaElement.webkitDroppedFrameCount) : c = !1;
|
|
4164
4166
|
return c && (d.decodedFrames = R, d.droppedFrames = Y), d;
|
|
4165
|
-
},
|
|
4167
|
+
}, L.prototype._onmseUpdateEnd = function() {
|
|
4166
4168
|
var d = this._mediaElement.buffered, c = this._mediaElement.currentTime;
|
|
4167
4169
|
if (this._config.isLive && this._config.liveBufferLatencyChasing && d.length > 0 && !this._mediaElement.paused) {
|
|
4168
4170
|
var R = d.end(d.length - 1);
|
|
@@ -4181,11 +4183,11 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4181
4183
|
}
|
|
4182
4184
|
oe >= c + this._config.lazyLoadMaxDuration && this._progressChecker == null && (C.a.v(this.TAG, "Maximum buffering duration exceeded, suspend transmuxing task"), this._suspendTransmuxer());
|
|
4183
4185
|
}
|
|
4184
|
-
},
|
|
4186
|
+
}, L.prototype._onmseBufferFull = function() {
|
|
4185
4187
|
C.a.v(this.TAG, "MSE SourceBuffer is full, suspend transmuxing task"), this._progressChecker == null && this._suspendTransmuxer();
|
|
4186
|
-
},
|
|
4188
|
+
}, L.prototype._suspendTransmuxer = function() {
|
|
4187
4189
|
this._transmuxer && (this._transmuxer.pause(), this._progressChecker == null && (this._progressChecker = window.setInterval(this._checkProgressAndResume.bind(this), 1e3)));
|
|
4188
|
-
},
|
|
4190
|
+
}, L.prototype._checkProgressAndResume = function() {
|
|
4189
4191
|
for (var d = this._mediaElement.currentTime, c = this._mediaElement.buffered, R = !1, Y = 0; Y < c.length; Y++) {
|
|
4190
4192
|
var oe = c.start(Y), me = c.end(Y);
|
|
4191
4193
|
if (d >= oe && d < me) {
|
|
@@ -4194,13 +4196,13 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4194
4196
|
}
|
|
4195
4197
|
}
|
|
4196
4198
|
R && (window.clearInterval(this._progressChecker), this._progressChecker = null, R && (C.a.v(this.TAG, "Continue loading from paused position"), this._transmuxer.resume()));
|
|
4197
|
-
},
|
|
4199
|
+
}, L.prototype._isTimepointBuffered = function(d) {
|
|
4198
4200
|
for (var c = this._mediaElement.buffered, R = 0; R < c.length; R++) {
|
|
4199
4201
|
var Y = c.start(R), oe = c.end(R);
|
|
4200
4202
|
if (d >= Y && d < oe) return !0;
|
|
4201
4203
|
}
|
|
4202
4204
|
return !1;
|
|
4203
|
-
},
|
|
4205
|
+
}, L.prototype._internalSeek = function(d) {
|
|
4204
4206
|
var c = this._isTimepointBuffered(d), R = !1, Y = 0;
|
|
4205
4207
|
if (d < 1 && this._mediaElement.buffered.length > 0) {
|
|
4206
4208
|
var oe = this._mediaElement.buffered.start(0);
|
|
@@ -4214,20 +4216,20 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4214
4216
|
} else this._requestSetTime = !0, this._mediaElement.currentTime = d;
|
|
4215
4217
|
this._progressChecker != null && this._checkProgressAndResume();
|
|
4216
4218
|
} 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);
|
|
4217
|
-
},
|
|
4219
|
+
}, L.prototype._checkAndApplyUnbufferedSeekpoint = function() {
|
|
4218
4220
|
if (this._seekpointRecord) if (this._seekpointRecord.recordTime <= this._now() - 100) {
|
|
4219
4221
|
var d = this._mediaElement.currentTime;
|
|
4220
4222
|
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));
|
|
4221
4223
|
} else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this), 50);
|
|
4222
|
-
},
|
|
4224
|
+
}, L.prototype._checkAndResumeStuckPlayback = function(d) {
|
|
4223
4225
|
var c = this._mediaElement;
|
|
4224
4226
|
if (d || !this._receivedCanPlay || c.readyState < 2) {
|
|
4225
4227
|
var R = c.buffered;
|
|
4226
4228
|
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));
|
|
4227
4229
|
} else this._mediaElement.removeEventListener("progress", this.e.onvProgress);
|
|
4228
|
-
},
|
|
4230
|
+
}, L.prototype._onvLoadedMetadata = function(d) {
|
|
4229
4231
|
this._pendingSeekTime != null && (this._mediaElement.currentTime = this._pendingSeekTime, this._pendingSeekTime = null);
|
|
4230
|
-
},
|
|
4232
|
+
}, L.prototype._onvSeeking = function(d) {
|
|
4231
4233
|
var c = this._mediaElement.currentTime, R = this._mediaElement.buffered;
|
|
4232
4234
|
if (this._requestSetTime) this._requestSetTime = !1;
|
|
4233
4235
|
else {
|
|
@@ -4243,70 +4245,70 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4243
4245
|
this._progressChecker != null && this._checkProgressAndResume();
|
|
4244
4246
|
} else this._seekpointRecord = { seekPoint: c, recordTime: this._now() }, window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this), 50);
|
|
4245
4247
|
}
|
|
4246
|
-
},
|
|
4248
|
+
}, L.prototype._onvCanPlay = function(d) {
|
|
4247
4249
|
this._receivedCanPlay = !0, this._mediaElement.removeEventListener("canplay", this.e.onvCanPlay);
|
|
4248
|
-
},
|
|
4250
|
+
}, L.prototype._onvStalled = function(d) {
|
|
4249
4251
|
this._checkAndResumeStuckPlayback(!0);
|
|
4250
|
-
},
|
|
4252
|
+
}, L.prototype._onvProgress = function(d) {
|
|
4251
4253
|
this._checkAndResumeStuckPlayback();
|
|
4252
|
-
},
|
|
4254
|
+
}, L;
|
|
4253
4255
|
}(), pe = function() {
|
|
4254
|
-
function
|
|
4256
|
+
function L(d, c) {
|
|
4255
4257
|
this.TAG = "NativePlayer", this._type = "NativePlayer", this._emitter = new M.a(), this._config = b(), typeof c == "object" && Object.assign(this._config, c);
|
|
4256
4258
|
var R = d.type.toLowerCase();
|
|
4257
4259
|
if (R === "mse" || R === "mpegts" || R === "m2ts" || R === "flv") throw new _.b("NativePlayer does't support mse/mpegts/m2ts/flv MediaDataSource input!");
|
|
4258
4260
|
if (d.hasOwnProperty("segments")) throw new _.b("NativePlayer(" + d.type + ") doesn't support multipart playback!");
|
|
4259
4261
|
this.e = { onvLoadedMetadata: this._onvLoadedMetadata.bind(this) }, this._pendingSeekTime = null, this._statisticsReporter = null, this._mediaDataSource = d, this._mediaElement = null;
|
|
4260
4262
|
}
|
|
4261
|
-
return
|
|
4263
|
+
return L.prototype.destroy = function() {
|
|
4262
4264
|
this._mediaElement && (this.unload(), this.detachMediaElement()), this.e = null, this._mediaDataSource = null, this._emitter.removeAllListeners(), this._emitter = null;
|
|
4263
|
-
},
|
|
4265
|
+
}, L.prototype.on = function(d, c) {
|
|
4264
4266
|
var R = this;
|
|
4265
4267
|
d === H.MEDIA_INFO ? this._mediaElement != null && this._mediaElement.readyState !== 0 && Promise.resolve().then(function() {
|
|
4266
4268
|
R._emitter.emit(H.MEDIA_INFO, R.mediaInfo);
|
|
4267
4269
|
}) : d === H.STATISTICS_INFO && this._mediaElement != null && this._mediaElement.readyState !== 0 && Promise.resolve().then(function() {
|
|
4268
4270
|
R._emitter.emit(H.STATISTICS_INFO, R.statisticsInfo);
|
|
4269
4271
|
}), this._emitter.addListener(d, c);
|
|
4270
|
-
},
|
|
4272
|
+
}, L.prototype.off = function(d, c) {
|
|
4271
4273
|
this._emitter.removeListener(d, c);
|
|
4272
|
-
},
|
|
4274
|
+
}, L.prototype.attachMediaElement = function(d) {
|
|
4273
4275
|
if (this._mediaElement = d, d.addEventListener("loadedmetadata", this.e.onvLoadedMetadata), this._pendingSeekTime != null) try {
|
|
4274
4276
|
d.currentTime = this._pendingSeekTime, this._pendingSeekTime = null;
|
|
4275
4277
|
} catch {
|
|
4276
4278
|
}
|
|
4277
|
-
},
|
|
4279
|
+
}, L.prototype.detachMediaElement = function() {
|
|
4278
4280
|
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);
|
|
4279
|
-
},
|
|
4281
|
+
}, L.prototype.load = function() {
|
|
4280
4282
|
if (!this._mediaElement) throw new _.a("HTMLMediaElement must be attached before load()!");
|
|
4281
4283
|
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);
|
|
4282
|
-
},
|
|
4284
|
+
}, L.prototype.unload = function() {
|
|
4283
4285
|
this._mediaElement && (this._mediaElement.src = "", this._mediaElement.removeAttribute("src")), this._statisticsReporter != null && (window.clearInterval(this._statisticsReporter), this._statisticsReporter = null);
|
|
4284
|
-
},
|
|
4286
|
+
}, L.prototype.play = function() {
|
|
4285
4287
|
return this._mediaElement.play();
|
|
4286
|
-
},
|
|
4288
|
+
}, L.prototype.pause = function() {
|
|
4287
4289
|
this._mediaElement.pause();
|
|
4288
|
-
}, Object.defineProperty(
|
|
4290
|
+
}, Object.defineProperty(L.prototype, "type", { get: function() {
|
|
4289
4291
|
return this._type;
|
|
4290
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4292
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "buffered", { get: function() {
|
|
4291
4293
|
return this._mediaElement.buffered;
|
|
4292
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4294
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "duration", { get: function() {
|
|
4293
4295
|
return this._mediaElement.duration;
|
|
4294
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4296
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "volume", { get: function() {
|
|
4295
4297
|
return this._mediaElement.volume;
|
|
4296
4298
|
}, set: function(d) {
|
|
4297
4299
|
this._mediaElement.volume = d;
|
|
4298
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4300
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "muted", { get: function() {
|
|
4299
4301
|
return this._mediaElement.muted;
|
|
4300
4302
|
}, set: function(d) {
|
|
4301
4303
|
this._mediaElement.muted = d;
|
|
4302
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4304
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "currentTime", { get: function() {
|
|
4303
4305
|
return this._mediaElement ? this._mediaElement.currentTime : 0;
|
|
4304
4306
|
}, set: function(d) {
|
|
4305
4307
|
this._mediaElement ? this._mediaElement.currentTime = d : this._pendingSeekTime = d;
|
|
4306
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4308
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "mediaInfo", { get: function() {
|
|
4307
4309
|
var d = { mimeType: (this._mediaElement instanceof HTMLAudioElement ? "audio/" : "video/") + this._mediaDataSource.type };
|
|
4308
4310
|
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;
|
|
4309
|
-
}, enumerable: !1, configurable: !0 }), Object.defineProperty(
|
|
4311
|
+
}, enumerable: !1, configurable: !0 }), Object.defineProperty(L.prototype, "statisticsInfo", { get: function() {
|
|
4310
4312
|
var d = { playerType: this._type, url: this._mediaDataSource.url };
|
|
4311
4313
|
if (!(this._mediaElement instanceof HTMLVideoElement)) return d;
|
|
4312
4314
|
var c = !0, R = 0, Y = 0;
|
|
@@ -4315,15 +4317,15 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
4315
4317
|
R = oe.totalVideoFrames, Y = oe.droppedVideoFrames;
|
|
4316
4318
|
} else this._mediaElement.webkitDecodedFrameCount != null ? (R = this._mediaElement.webkitDecodedFrameCount, Y = this._mediaElement.webkitDroppedFrameCount) : c = !1;
|
|
4317
4319
|
return c && (d.decodedFrames = R, d.droppedFrames = Y), d;
|
|
4318
|
-
}, enumerable: !1, configurable: !0 }),
|
|
4320
|
+
}, enumerable: !1, configurable: !0 }), L.prototype._onvLoadedMetadata = function(d) {
|
|
4319
4321
|
this._pendingSeekTime != null && (this._mediaElement.currentTime = this._pendingSeekTime, this._pendingSeekTime = null), this._emitter.emit(H.MEDIA_INFO, this.mediaInfo);
|
|
4320
|
-
},
|
|
4322
|
+
}, L.prototype._reportStatisticsInfo = function() {
|
|
4321
4323
|
this._emitter.emit(H.STATISTICS_INFO, this.statisticsInfo);
|
|
4322
|
-
},
|
|
4324
|
+
}, L;
|
|
4323
4325
|
}();
|
|
4324
4326
|
U.a.install();
|
|
4325
|
-
var ve = { createPlayer: function(
|
|
4326
|
-
var c =
|
|
4327
|
+
var ve = { createPlayer: function(L, d) {
|
|
4328
|
+
var c = L;
|
|
4327
4329
|
if (c == null || typeof c != "object") throw new _.b("MediaDataSource must be an javascript object!");
|
|
4328
4330
|
if (!c.hasOwnProperty("type")) throw new _.b("MediaDataSource must has type field to indicate video file type!");
|
|
4329
4331
|
switch (c.type) {
|
|
@@ -4374,8 +4376,9 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
|
|
|
4374
4376
|
loading: b = !1,
|
|
4375
4377
|
error: v = !1,
|
|
4376
4378
|
errorText: f = At("das-ui-live-player-videoLoadFailedRetry")
|
|
4377
|
-
} = Zt(Z),
|
|
4378
|
-
h.target
|
|
4379
|
+
} = Zt(Z), k = (h) => {
|
|
4380
|
+
const P = h.target;
|
|
4381
|
+
console.log("Video error:", P.error), setTimeout(() => {
|
|
4379
4382
|
C();
|
|
4380
4383
|
}, 1e3);
|
|
4381
4384
|
}, M = He(Z.errorTime || 10), C = () => {
|
|
@@ -4392,11 +4395,11 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
|
|
|
4392
4395
|
};
|
|
4393
4396
|
U = Rt.createPlayer(h, le.value), U.attachMediaElement(X.value), U.load(), U.play(), U.on(Rt.Events.ERROR, y), O("loaded", U);
|
|
4394
4397
|
}, y = (h, P) => {
|
|
4395
|
-
G();
|
|
4398
|
+
console.error("mpegts error:", h, P), G();
|
|
4396
4399
|
}, G = () => {
|
|
4397
4400
|
ne.value !== 0 && (ne.value = ne.value - 1, T(), ie());
|
|
4398
4401
|
}, T = () => {
|
|
4399
|
-
U && (U.pause(), U.unload(), U.detachMediaElement(), U.destroy(), U = null);
|
|
4402
|
+
U && (console.log("destroy", U), U.pause(), U.unload(), U.detachMediaElement(), U.destroy(), U = null);
|
|
4400
4403
|
};
|
|
4401
4404
|
$t(() => {
|
|
4402
4405
|
ie();
|
|
@@ -4437,7 +4440,7 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
|
|
|
4437
4440
|
class: "video",
|
|
4438
4441
|
style: ti({ "object-fit": Xe(B) }),
|
|
4439
4442
|
muted: "",
|
|
4440
|
-
onError:
|
|
4443
|
+
onError: k
|
|
4441
4444
|
},
|
|
4442
4445
|
null,
|
|
4443
4446
|
36
|