@das-fed/ui 7.1.0-dev.1 → 7.1.0-dev.10
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/esm-map.json +3 -2
- 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/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/area-phone-select/index.d.ts +23 -23
- package/packages/business-components/area-phone-select/src/Index.vue.d.ts +2 -2
- package/packages/business-components/area-phone-select/src/area-popover/index.vue.d.ts +2 -2
- package/packages/business-components/device-panel/i18n/index.d.ts +40 -0
- package/packages/business-components/device-panel/index.js +20949 -19425
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-knowledge.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/Index.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/apis.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/components/use-info/Info.vue.d.ts +44 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/components/use-info/downloadFile.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/components/use-info/info.d.ts +24 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/utils/get-file-details.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-knowledge.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/Index.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/apis.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/components/use-info/Info.vue.d.ts +44 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/components/use-info/downloadFile.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/components/use-info/info.d.ts +24 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/utils/get-file-details.d.ts +2 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.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/index.d.ts +1 -0
- package/packages/business-components/index.js +1 -0
- package/packages/business-components/payment/index.d.ts +9 -11
- package/packages/business-components/payment/index.js +122 -129
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/payment/style.css +1 -1
- package/packages/business-components/payment/type.d.ts +2 -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 +675 -655
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/utils/common-methods.d.ts +6 -0
- package/packages/business-components/process-search-form/index.js +73 -73
- 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/update-confirm-dialog/i18n/index.d.ts +23 -0
- package/packages/business-components/update-confirm-dialog/index.d.ts +61 -0
- package/packages/business-components/update-confirm-dialog/index.js +105 -0
- package/packages/business-components/update-confirm-dialog/index.js.gz +0 -0
- package/packages/business-components/update-confirm-dialog/src/App.vue.d.ts +11 -0
- package/packages/business-components/update-confirm-dialog/src/type.d.ts +4 -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.d.ts +10 -0
- package/packages/business-components/video-dialog/index.js +357 -337
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/src/api.d.ts +1 -0
- package/packages/business-components/video-dialog/src/component/Player/index.vue.d.ts +2 -0
- package/packages/business-components/video-dialog/src/hooks/use-video/PlayerProvider.d.ts +6 -0
- package/packages/business-components/video-dialog/src/index.vue.d.ts +2 -0
- package/packages/business-components/video-dialog/src/type.d.ts +7 -1
- package/packages/business-components/video-dialog/style.css +1 -1
- package/packages/business-components/video-dialog/style.css.gz +0 -0
- package/packages/components/autocomplete/index.d.ts +15 -15
- package/packages/components/autocomplete/index.js +12 -6
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/autocomplete/src/index.vue.d.ts +2 -2
- 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.d.ts +15 -15
- package/packages/components/checkbox/index.js +30 -30
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/checkbox/src/Index.vue.d.ts +2 -2
- package/packages/components/color-picker/index.d.ts +8 -8
- package/packages/components/color-picker/src/Index.vue.d.ts +2 -2
- package/packages/components/custom-search-item/index.d.ts +15 -15
- package/packages/components/custom-search-item/src/Index.vue.d.ts +2 -2
- package/packages/components/date-picker/index.js +212 -212
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/index.d.ts +6 -3
- package/packages/components/dialog/index.js +281 -184
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/src/Index.vue.d.ts +2 -1
- package/packages/components/dialog/src/directives/dialogResize.d.ts +2 -0
- package/packages/components/dialog/src/type.d.ts +2 -0
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.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 +496 -485
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/hls-player/src/type.d.ts +3 -0
- package/packages/components/hls-player/style.css +1 -1
- package/packages/components/hls-player/style.css.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.d.ts +5 -5
- package/packages/components/input/index.js +52 -52
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/src/index.vue.d.ts +2 -2
- package/packages/components/input-dialog-select/index.d.ts +2 -2
- package/packages/components/input-dialog-select/src/Index.vue.d.ts +2 -2
- package/packages/components/input-number/index.d.ts +8 -8
- package/packages/components/input-number/index.js +26 -26
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/input-number/src/App.vue.d.ts +2 -2
- package/packages/components/live-player/index.d.ts +2 -0
- package/packages/components/live-player/index.js +988 -977
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/live-player/src/type.d.ts +3 -0
- package/packages/components/live-player/style.css +1 -1
- 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/index.d.ts +15 -15
- package/packages/components/radio/src/Index.vue.d.ts +2 -2
- 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.d.ts +8 -8
- package/packages/components/rich-editor/index.js +4613 -4583
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/rich-editor/src/Index.vue.d.ts +2 -2
- package/packages/components/scrollbar/index.d.ts +9 -3
- package/packages/components/scrollbar/index.js +394 -390
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/scrollbar/src/scrollbar.vue.d.ts +3 -1
- package/packages/components/scrollbar/style.css +1 -1
- package/packages/components/scrollbar/style.css.gz +0 -0
- package/packages/components/search/index.d.ts +2 -2
- package/packages/components/search/index.js +24 -24
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search/src/Index.vue.d.ts +2 -2
- package/packages/components/search-form/index.js +175 -174
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.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.d.ts +2 -2
- 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-month/src/Index.vue.d.ts +2 -2
- package/packages/components/special-range-picker-year/index.d.ts +2 -2
- 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/special-range-picker-year/src/Index.vue.d.ts +2 -2
- 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-select/src/App.vue.d.ts +2 -2
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/live-player/style.css';
|
|
2
|
-
import { defineComponent as Yt, useCssVars as Jt, ref as
|
|
2
|
+
import { defineComponent as Yt, useCssVars as Jt, ref as He, toRefs as Zt, computed as ot, onMounted as $t, onBeforeUnmount as Qt, withDirectives as ei, createElementBlock as dt, openBlock as ut, unref as Xe, normalizeStyle as ti, renderSlot as ii, createTextVNode as ri, toDisplayString as ai } from "vue";
|
|
3
3
|
import { withInstall as ni } from "@das-fed/utils/with-install/index";
|
|
4
4
|
import { ElLoadingDirective as si } from "element-plus/es";
|
|
5
5
|
import "element-plus/es/components/base/style/css";
|
|
@@ -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,49 +128,49 @@ var Tt = { exports: {} };
|
|
|
128
128
|
}), O.d(Z, "c", function() {
|
|
129
129
|
return f;
|
|
130
130
|
});
|
|
131
|
-
var U, B = (U = function(
|
|
132
|
-
return (U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C,
|
|
133
|
-
C.__proto__ =
|
|
134
|
-
} || function(C,
|
|
135
|
-
for (var H in
|
|
136
|
-
})(
|
|
137
|
-
}, function(
|
|
131
|
+
var U, B = (U = function(k, M) {
|
|
132
|
+
return (U = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(C, j) {
|
|
133
|
+
C.__proto__ = j;
|
|
134
|
+
} || function(C, j) {
|
|
135
|
+
for (var H in j) j.hasOwnProperty(H) && (C[H] = j[H]);
|
|
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
|
|
144
|
-
this._message =
|
|
143
|
+
function k(M) {
|
|
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(
|
|
154
|
-
function
|
|
155
|
-
return
|
|
152
|
+
}, k;
|
|
153
|
+
}(), b = function(k) {
|
|
154
|
+
function M(C) {
|
|
155
|
+
return k.call(this, C) || this;
|
|
156
156
|
}
|
|
157
|
-
return B(
|
|
157
|
+
return B(M, k), Object.defineProperty(M.prototype, "name", { get: function() {
|
|
158
158
|
return "IllegalStateException";
|
|
159
|
-
}, enumerable: !1, configurable: !0 }),
|
|
160
|
-
}(m), v = function(
|
|
161
|
-
function
|
|
162
|
-
return
|
|
159
|
+
}, enumerable: !1, configurable: !0 }), M;
|
|
160
|
+
}(m), v = function(k) {
|
|
161
|
+
function M(C) {
|
|
162
|
+
return k.call(this, C) || this;
|
|
163
163
|
}
|
|
164
|
-
return B(
|
|
164
|
+
return B(M, k), Object.defineProperty(M.prototype, "name", { get: function() {
|
|
165
165
|
return "InvalidArgumentException";
|
|
166
|
-
}, enumerable: !1, configurable: !0 }),
|
|
167
|
-
}(m), f = function(
|
|
168
|
-
function
|
|
169
|
-
return
|
|
166
|
+
}, enumerable: !1, configurable: !0 }), M;
|
|
167
|
+
}(m), f = function(k) {
|
|
168
|
+
function M(C) {
|
|
169
|
+
return k.call(this, C) || this;
|
|
170
170
|
}
|
|
171
|
-
return B(
|
|
171
|
+
return B(M, k), Object.defineProperty(M.prototype, "name", { get: function() {
|
|
172
172
|
return "NotImplementedException";
|
|
173
|
-
}, enumerable: !1, configurable: !0 }),
|
|
173
|
+
}, enumerable: !1, configurable: !0 }), M;
|
|
174
174
|
}(m);
|
|
175
175
|
}, function(fe, Z, O) {
|
|
176
176
|
var U = {};
|
|
@@ -178,11 +178,11 @@ 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
|
-
for (var
|
|
185
|
+
for (var M in f.name = v.browser, f.platform = v.platform, U) U.hasOwnProperty(M) && delete U[M];
|
|
186
186
|
Object.assign(U, f);
|
|
187
187
|
})(), Z.a = U;
|
|
188
188
|
}, function(fe, Z, O) {
|
|
@@ -204,51 +204,51 @@ var Tt = { exports: {} };
|
|
|
204
204
|
}
|
|
205
205
|
fe.exports = v, fe.exports.once = function(y, G) {
|
|
206
206
|
return new Promise(function(T, l) {
|
|
207
|
-
function u(
|
|
208
|
-
y.removeListener(G, _), l(
|
|
207
|
+
function u(h) {
|
|
208
|
+
y.removeListener(G, _), l(h);
|
|
209
209
|
}
|
|
210
210
|
function _() {
|
|
211
211
|
typeof y.removeListener == "function" && y.removeListener("error", u), T([].slice.call(arguments));
|
|
212
212
|
}
|
|
213
|
-
|
|
214
|
-
typeof
|
|
213
|
+
ie(y, G, _, { once: !0 }), G !== "error" && function(h, P, D) {
|
|
214
|
+
typeof h.on == "function" && ie(h, "error", P, D);
|
|
215
215
|
}(y, u, { once: !0 });
|
|
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
|
-
function
|
|
222
|
+
function M(y) {
|
|
223
223
|
return y._maxListeners === void 0 ? v.defaultMaxListeners : y._maxListeners;
|
|
224
224
|
}
|
|
225
225
|
function C(y, G, T, l) {
|
|
226
|
-
var u, _,
|
|
227
|
-
if (
|
|
228
|
-
else if (typeof
|
|
229
|
-
|
|
230
|
-
var D = new Error("Possible EventEmitter memory leak detected. " +
|
|
231
|
-
D.name = "MaxListenersExceededWarning", D.emitter = y, D.type = G, D.count =
|
|
226
|
+
var u, _, h, P;
|
|
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
|
+
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
|
+
h.warned = !0;
|
|
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, console && console.warn && console.warn(P);
|
|
232
232
|
}
|
|
233
233
|
return y;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function j() {
|
|
236
236
|
if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
237
237
|
}
|
|
238
238
|
function H(y, G, T) {
|
|
239
|
-
var l = { fired: !1, wrapFn: void 0, target: y, type: G, listener: T }, u =
|
|
239
|
+
var l = { fired: !1, wrapFn: void 0, target: y, type: G, listener: T }, u = j.bind(l);
|
|
240
240
|
return u.listener = T, l.wrapFn = u, u;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function le(y, G, T) {
|
|
243
243
|
var l = y._events;
|
|
244
244
|
if (l === void 0) return [];
|
|
245
245
|
var u = l[G];
|
|
246
246
|
return u === void 0 ? [] : typeof u == "function" ? T ? [u.listener || u] : [u] : T ? function(_) {
|
|
247
|
-
for (var
|
|
248
|
-
return
|
|
249
|
-
}(u) :
|
|
247
|
+
for (var h = new Array(_.length), P = 0; P < h.length; ++P) h[P] = _[P].listener || _[P];
|
|
248
|
+
return h;
|
|
249
|
+
}(u) : X(u, u.length);
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function ne(y) {
|
|
252
252
|
var G = this._events;
|
|
253
253
|
if (G !== void 0) {
|
|
254
254
|
var T = G[y];
|
|
@@ -257,11 +257,11 @@ var Tt = { exports: {} };
|
|
|
257
257
|
}
|
|
258
258
|
return 0;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function X(y, G) {
|
|
261
261
|
for (var T = new Array(G), l = 0; l < G; ++l) T[l] = y[l];
|
|
262
262
|
return T;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function ie(y, G, T, l) {
|
|
265
265
|
if (typeof y.on == "function") l.once ? y.once(G, T) : y.on(G, T);
|
|
266
266
|
else {
|
|
267
267
|
if (typeof y.addEventListener != "function") throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof y);
|
|
@@ -281,7 +281,7 @@ var Tt = { exports: {} };
|
|
|
281
281
|
if (typeof y != "number" || y < 0 || b(y)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + y + ".");
|
|
282
282
|
return this._maxListeners = y, this;
|
|
283
283
|
}, v.prototype.getMaxListeners = function() {
|
|
284
|
-
return
|
|
284
|
+
return M(this);
|
|
285
285
|
}, v.prototype.emit = function(y) {
|
|
286
286
|
for (var G = [], T = 1; T < arguments.length; T++) G.push(arguments[T]);
|
|
287
287
|
var l = y === "error", u = this._events;
|
|
@@ -290,15 +290,15 @@ var Tt = { exports: {} };
|
|
|
290
290
|
if (l) {
|
|
291
291
|
var _;
|
|
292
292
|
if (G.length > 0 && (_ = G[0]), _ instanceof Error) throw _;
|
|
293
|
-
var
|
|
294
|
-
throw
|
|
293
|
+
var h = new Error("Unhandled error." + (_ ? " (" + _.message + ")" : ""));
|
|
294
|
+
throw h.context = _, h;
|
|
295
295
|
}
|
|
296
296
|
var P = u[y];
|
|
297
297
|
if (P === void 0) return !1;
|
|
298
298
|
if (typeof P == "function") m(P, this, G);
|
|
299
299
|
else {
|
|
300
|
-
var D = P.length,
|
|
301
|
-
for (T = 0; T < D; ++T) m(
|
|
300
|
+
var D = P.length, V = X(P, D);
|
|
301
|
+
for (T = 0; T < D; ++T) m(V[T], this, G);
|
|
302
302
|
}
|
|
303
303
|
return !0;
|
|
304
304
|
}, v.prototype.addListener = function(y, G) {
|
|
@@ -306,24 +306,24 @@ 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
|
-
var T, l, u, _,
|
|
314
|
-
if (
|
|
313
|
+
var T, l, u, _, h;
|
|
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") {
|
|
318
318
|
for (u = -1, _ = T.length - 1; _ >= 0; _--) if (T[_] === G || T[_].listener === G) {
|
|
319
|
-
|
|
319
|
+
h = T[_].listener, u = _;
|
|
320
320
|
break;
|
|
321
321
|
}
|
|
322
322
|
if (u < 0) return this;
|
|
323
323
|
u === 0 ? T.shift() : function(P, D) {
|
|
324
324
|
for (; D + 1 < P.length; D++) P[D] = P[D + 1];
|
|
325
325
|
P.pop();
|
|
326
|
-
}(T, u), T.length === 1 && (l[y] = T[0]), l.removeListener !== void 0 && this.emit("removeListener", y,
|
|
326
|
+
}(T, u), T.length === 1 && (l[y] = T[0]), l.removeListener !== void 0 && this.emit("removeListener", y, h || G);
|
|
327
327
|
}
|
|
328
328
|
return this;
|
|
329
329
|
}, v.prototype.off = v.prototype.removeListener, v.prototype.removeAllListeners = function(y) {
|
|
@@ -339,12 +339,12 @@ var Tt = { exports: {} };
|
|
|
339
339
|
else if (G !== void 0) for (l = G.length - 1; l >= 0; l--) this.removeListener(y, G[l]);
|
|
340
340
|
return this;
|
|
341
341
|
}, v.prototype.listeners = function(y) {
|
|
342
|
-
return
|
|
342
|
+
return le(this, y, !0);
|
|
343
343
|
}, v.prototype.rawListeners = function(y) {
|
|
344
|
-
return
|
|
344
|
+
return le(this, y, !1);
|
|
345
345
|
}, v.listenerCount = function(y, G) {
|
|
346
|
-
return typeof y.listenerCount == "function" ? y.listenerCount(G) :
|
|
347
|
-
}, v.prototype.listenerCount =
|
|
346
|
+
return typeof y.listenerCount == "function" ? y.listenerCount(G) : ne.call(y, G);
|
|
347
|
+
}, v.prototype.listenerCount = ne, v.prototype.eventNames = function() {
|
|
348
348
|
return this._eventsCount > 0 ? U(this._events) : [];
|
|
349
349
|
};
|
|
350
350
|
}, function(fe, Z, O) {
|
|
@@ -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,19 +373,19 @@ 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 ((
|
|
383
|
-
|
|
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
|
+
M = j;
|
|
384
384
|
break;
|
|
385
385
|
}
|
|
386
|
-
|
|
386
|
+
k[j].dts < f ? H = j + 1 : le = j - 1;
|
|
387
387
|
}
|
|
388
|
-
return this._list[
|
|
388
|
+
return this._list[M];
|
|
389
389
|
}, v;
|
|
390
390
|
}(), b = function() {
|
|
391
391
|
function v(f) {
|
|
@@ -400,32 +400,32 @@ 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
|
|
406
|
-
if (f <
|
|
407
|
-
for (;
|
|
408
|
-
if ((C =
|
|
409
|
-
|
|
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
|
+
for (; j <= H; ) {
|
|
408
|
+
if ((C = j + Math.floor((H - j) / 2)) === M || f > k[C].lastSample.originalDts && f < k[C + 1].originalBeginDts) {
|
|
409
|
+
le = C;
|
|
410
410
|
break;
|
|
411
411
|
}
|
|
412
|
-
|
|
412
|
+
k[C].originalBeginDts < f ? j = C + 1 : H = C - 1;
|
|
413
413
|
}
|
|
414
|
-
return
|
|
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
|
|
428
|
-
return
|
|
427
|
+
for (var k = this._searchNearestSegmentBefore(f), M = this._list[k].syncPoints; M.length === 0 && k > 0; ) k--, M = this._list[k].syncPoints;
|
|
428
|
+
return M.length > 0 ? M[M.length - 1] : null;
|
|
429
429
|
}, v;
|
|
430
430
|
}();
|
|
431
431
|
}, function(fe, Z, O) {
|
|
@@ -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,
|
|
447
|
-
for (b < m[0] && (v = 0,
|
|
448
|
-
if ((
|
|
449
|
-
v =
|
|
446
|
+
var v = 0, f = m.length - 1, k = 0, M = 0, C = f;
|
|
447
|
+
for (b < m[0] && (v = 0, M = C + 1); M <= C; ) {
|
|
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),
|
|
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) {
|
|
@@ -567,15 +567,15 @@ var Tt = { exports: {} };
|
|
|
567
567
|
return r.parseObject(t, i, e);
|
|
568
568
|
}, r.parseString = function(t, i, e) {
|
|
569
569
|
if (e < 2) throw new C.a("Data not enough when parse String");
|
|
570
|
-
var a = new DataView(t, i, e).getUint16(0, !
|
|
571
|
-
return { data: a > 0 ?
|
|
570
|
+
var a = new DataView(t, i, e).getUint16(0, !j);
|
|
571
|
+
return { data: a > 0 ? M(new Uint8Array(t, i + 2, a)) : "", size: 2 + a };
|
|
572
572
|
}, r.parseLongString = function(t, i, e) {
|
|
573
573
|
if (e < 4) throw new C.a("Data not enough when parse LongString");
|
|
574
|
-
var a = new DataView(t, i, e).getUint32(0, !
|
|
575
|
-
return { data: a > 0 ?
|
|
574
|
+
var a = new DataView(t, i, e).getUint32(0, !j);
|
|
575
|
+
return { data: a > 0 ? M(new Uint8Array(t, i + 4, a)) : "", size: 4 + a };
|
|
576
576
|
}, r.parseDate = function(t, i, e) {
|
|
577
577
|
if (e < 10) throw new C.a("Data size invalid when parse Date");
|
|
578
|
-
var a = new DataView(t, i, e), s = a.getFloat64(0, !
|
|
578
|
+
var a = new DataView(t, i, e), s = a.getFloat64(0, !j), n = a.getInt16(8, !j);
|
|
579
579
|
return { data: new Date(s += 60 * n * 1e3), size: 10 };
|
|
580
580
|
}, r.parseValue = function(t, i, e) {
|
|
581
581
|
if (e < 1) throw new C.a("Data not enough when parse Value");
|
|
@@ -583,7 +583,7 @@ var Tt = { exports: {} };
|
|
|
583
583
|
try {
|
|
584
584
|
switch (o) {
|
|
585
585
|
case 0:
|
|
586
|
-
a = s.getFloat64(1, !
|
|
586
|
+
a = s.getFloat64(1, !j), n += 8;
|
|
587
587
|
break;
|
|
588
588
|
case 1:
|
|
589
589
|
a = !!s.getUint8(1), n += 1;
|
|
@@ -595,27 +595,27 @@ var Tt = { exports: {} };
|
|
|
595
595
|
case 3:
|
|
596
596
|
a = {};
|
|
597
597
|
var E = 0;
|
|
598
|
-
for ((16777215 & s.getUint32(e - 4, !
|
|
598
|
+
for ((16777215 & s.getUint32(e - 4, !j)) == 9 && (E = 3); n < e - 4; ) {
|
|
599
599
|
var A = r.parseObject(t, i + n, e - n - E);
|
|
600
600
|
if (A.objectEnd) break;
|
|
601
601
|
a[A.data.name] = A.data.value, n += A.size;
|
|
602
602
|
}
|
|
603
|
-
n <= e - 3 && (16777215 & s.getUint32(n - 1, !
|
|
603
|
+
n <= e - 3 && (16777215 & s.getUint32(n - 1, !j)) === 9 && (n += 3);
|
|
604
604
|
break;
|
|
605
605
|
case 8:
|
|
606
|
-
for (a = {}, n += 4, E = 0, (16777215 & s.getUint32(e - 4, !
|
|
606
|
+
for (a = {}, n += 4, E = 0, (16777215 & s.getUint32(e - 4, !j)) == 9 && (E = 3); n < e - 8; ) {
|
|
607
607
|
var S = r.parseVariable(t, i + n, e - n - E);
|
|
608
608
|
if (S.objectEnd) break;
|
|
609
609
|
a[S.data.name] = S.data.value, n += S.size;
|
|
610
610
|
}
|
|
611
|
-
n <= e - 3 && (16777215 & s.getUint32(n - 1, !
|
|
611
|
+
n <= e - 3 && (16777215 & s.getUint32(n - 1, !j)) === 9 && (n += 3);
|
|
612
612
|
break;
|
|
613
613
|
case 9:
|
|
614
614
|
a = void 0, n = 1, p = !0;
|
|
615
615
|
break;
|
|
616
616
|
case 10:
|
|
617
617
|
a = [];
|
|
618
|
-
var w = s.getUint32(1, !
|
|
618
|
+
var w = s.getUint32(1, !j);
|
|
619
619
|
n += 4;
|
|
620
620
|
for (var I = 0; I < w; I++) {
|
|
621
621
|
var z = r.parseValue(t, i + n, e - n);
|
|
@@ -638,7 +638,7 @@ var Tt = { exports: {} };
|
|
|
638
638
|
}
|
|
639
639
|
return { data: a, size: n, objectEnd: p };
|
|
640
640
|
}, r;
|
|
641
|
-
}(),
|
|
641
|
+
}(), le = function() {
|
|
642
642
|
function r(t) {
|
|
643
643
|
this.TAG = "ExpGolomb", this._buffer = t, this._buffer_index = 0, this._total_bytes = t.byteLength, this._total_bits = 8 * t.byteLength, this._current_word = 0, this._current_word_bits_left = 0;
|
|
644
644
|
}
|
|
@@ -676,7 +676,7 @@ var Tt = { exports: {} };
|
|
|
676
676
|
var t = this.readUEG();
|
|
677
677
|
return 1 & t ? t + 1 >>> 1 : -1 * (t >>> 1);
|
|
678
678
|
}, r;
|
|
679
|
-
}(),
|
|
679
|
+
}(), ne = function() {
|
|
680
680
|
function r() {
|
|
681
681
|
}
|
|
682
682
|
return r._ebsp2rbsp = function(t) {
|
|
@@ -687,7 +687,7 @@ var Tt = { exports: {} };
|
|
|
687
687
|
var s = i[a].toString(16);
|
|
688
688
|
s.length < 2 && (s = "0" + s), e += s;
|
|
689
689
|
}
|
|
690
|
-
var n = r._ebsp2rbsp(t), o = new
|
|
690
|
+
var n = r._ebsp2rbsp(t), o = new le(n);
|
|
691
691
|
o.readByte();
|
|
692
692
|
var p = o.readByte();
|
|
693
693
|
o.readByte();
|
|
@@ -707,27 +707,27 @@ var Tt = { exports: {} };
|
|
|
707
707
|
o.readBits(1);
|
|
708
708
|
var he = o.readUEG(), K = o.readUEG(), Q = o.readBits(1);
|
|
709
709
|
Q === 0 && o.readBits(1), o.readBits(1);
|
|
710
|
-
var _e = 0, te = 0,
|
|
711
|
-
o.readBool() && (_e = o.readUEG(), te = o.readUEG(),
|
|
712
|
-
var Ae = 1,
|
|
710
|
+
var _e = 0, te = 0, se = 0, be = 0;
|
|
711
|
+
o.readBool() && (_e = o.readUEG(), te = o.readUEG(), se = o.readUEG(), be = o.readUEG());
|
|
712
|
+
var Ae = 1, ue = 1, ye = 0, Re = !0, ke = 0, Ne = 0;
|
|
713
713
|
if (o.readBool()) {
|
|
714
714
|
if (o.readBool()) {
|
|
715
715
|
var Pe = o.readByte();
|
|
716
|
-
Pe > 0 && Pe < 16 ? (Ae = [1, 12, 10, 16, 40, 24, 20, 32, 80, 18, 15, 64, 160, 4, 3, 2][Pe - 1],
|
|
716
|
+
Pe > 0 && Pe < 16 ? (Ae = [1, 12, 10, 16, 40, 24, 20, 32, 80, 18, 15, 64, 160, 4, 3, 2][Pe - 1], ue = [1, 11, 11, 11, 33, 11, 11, 11, 33, 11, 11, 33, 99, 3, 2, 1][Pe - 1]) : Pe === 255 && (Ae = o.readByte() << 8 | o.readByte(), ue = o.readByte() << 8 | o.readByte());
|
|
717
717
|
}
|
|
718
718
|
if (o.readBool() && o.readBool(), o.readBool() && (o.readBits(4), o.readBool() && o.readBits(24)), o.readBool() && (o.readUEG(), o.readUEG()), o.readBool()) {
|
|
719
719
|
var Ge = o.readBits(32), je = o.readBits(32);
|
|
720
720
|
Re = o.readBool(), ye = (ke = je) / (Ne = 2 * Ge);
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
|
-
var
|
|
724
|
-
Ae === 1 &&
|
|
723
|
+
var Ve = 1;
|
|
724
|
+
Ae === 1 && ue === 1 || (Ve = Ae / ue);
|
|
725
725
|
var Ce = 0, ge = 0;
|
|
726
726
|
S === 0 ? (Ce = 1, ge = 2 - Q) : (Ce = S === 3 ? 1 : 2, ge = (S === 1 ? 2 : 1) * (2 - Q));
|
|
727
727
|
var xe = 16 * (he + 1), Ue = 16 * (K + 1) * (2 - Q);
|
|
728
|
-
xe -= (_e + te) * Ce, Ue -= (
|
|
729
|
-
var Je = Math.ceil(xe *
|
|
730
|
-
return o.destroy(), o = null, { codec_mimetype: e, profile_idc: p, level_idc: g, profile_string: E, level_string: A, chroma_format_idc: S, bit_depth: I, bit_depth_luma: I, bit_depth_chroma: z, ref_frames: de, chroma_format: w, chroma_format_string: r.getChromaFormatString(w), frame_rate: { fixed: Re, fps: ye, fps_den: Ne, fps_num: ke }, sar_ratio: { width: Ae, height:
|
|
728
|
+
xe -= (_e + te) * Ce, Ue -= (se + be) * ge;
|
|
729
|
+
var Je = Math.ceil(xe * Ve);
|
|
730
|
+
return o.destroy(), o = null, { codec_mimetype: e, profile_idc: p, level_idc: g, profile_string: E, level_string: A, chroma_format_idc: S, bit_depth: I, bit_depth_luma: I, bit_depth_chroma: z, ref_frames: de, chroma_format: w, chroma_format_string: r.getChromaFormatString(w), frame_rate: { fixed: Re, fps: ye, fps_den: Ne, fps_num: ke }, sar_ratio: { width: Ae, height: ue }, codec_size: { width: xe, height: Ue }, present_size: { width: Je, height: Ue } };
|
|
731
731
|
}, r._skipScalingList = function(t, i) {
|
|
732
732
|
for (var e = 8, a = 8, s = 0; s < i; s++) a !== 0 && (a = (e + t.readSEG() + 256) % 256), e = a === 0 ? e : a;
|
|
733
733
|
}, r.getProfileString = function(t) {
|
|
@@ -763,27 +763,27 @@ var Tt = { exports: {} };
|
|
|
763
763
|
return "Unknown";
|
|
764
764
|
}
|
|
765
765
|
}, r;
|
|
766
|
-
}(),
|
|
766
|
+
}(), X = O(5), ie = function() {
|
|
767
767
|
function r() {
|
|
768
768
|
}
|
|
769
769
|
return r._ebsp2rbsp = function(t) {
|
|
770
770
|
for (var i = t, e = i.byteLength, a = new Uint8Array(e), s = 0, n = 0; n < e; n++) n >= 2 && i[n] === 3 && i[n - 1] === 0 && i[n - 2] === 0 || (a[s] = i[n], s++);
|
|
771
771
|
return new Uint8Array(a.buffer, 0, s);
|
|
772
772
|
}, r.parseVPS = function(t) {
|
|
773
|
-
var i = r._ebsp2rbsp(t), e = new
|
|
773
|
+
var i = r._ebsp2rbsp(t), e = new le(i);
|
|
774
774
|
return e.readByte(), e.readByte(), e.readBits(4), e.readBits(2), e.readBits(6), { num_temporal_layers: e.readBits(3) + 1, temporal_id_nested: e.readBool() };
|
|
775
775
|
}, r.parseSPS = function(t) {
|
|
776
|
-
var i = r._ebsp2rbsp(t), e = new
|
|
776
|
+
var i = r._ebsp2rbsp(t), e = new le(i);
|
|
777
777
|
e.readByte(), e.readByte();
|
|
778
778
|
for (var a = 0, s = 0, n = 0, o = 0, p = (e.readBits(4), e.readBits(3)), g = (e.readBool(), e.readBits(2)), E = e.readBool(), A = e.readBits(5), S = e.readByte(), w = e.readByte(), I = e.readByte(), z = e.readByte(), N = e.readByte(), J = e.readByte(), W = e.readByte(), q = e.readByte(), de = e.readByte(), he = e.readByte(), K = e.readByte(), Q = [], _e = [], te = 0; te < p; te++) Q.push(e.readBool()), _e.push(e.readBool());
|
|
779
779
|
if (p > 0) for (te = p; te < 8; te++) e.readBits(2);
|
|
780
780
|
for (te = 0; te < p; te++) Q[te] && (e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte(), e.readByte()), _e[te] && e.readByte();
|
|
781
781
|
e.readUEG();
|
|
782
|
-
var
|
|
783
|
-
|
|
782
|
+
var se = e.readUEG();
|
|
783
|
+
se == 3 && e.readBits(1);
|
|
784
784
|
var be = e.readUEG(), Ae = e.readUEG();
|
|
785
785
|
e.readBool() && (a += e.readUEG(), s += e.readUEG(), n += e.readUEG(), o += e.readUEG());
|
|
786
|
-
var
|
|
786
|
+
var ue = e.readUEG(), ye = e.readUEG(), Re = e.readUEG();
|
|
787
787
|
for (te = e.readBool() ? 0 : p; te <= p; te++) e.readUEG(), e.readUEG(), e.readUEG();
|
|
788
788
|
if (e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG(), e.readBool() && e.readBool()) for (var ke = 0; ke < 4; ke++) for (var Ne = 0; Ne < (ke === 3 ? 2 : 6); Ne++)
|
|
789
789
|
if (e.readBool()) {
|
|
@@ -793,8 +793,8 @@ var Tt = { exports: {} };
|
|
|
793
793
|
e.readBool(), e.readBool(), e.readBool() && (e.readByte(), e.readUEG(), e.readUEG(), e.readBool());
|
|
794
794
|
var Ge = e.readUEG(), je = 0;
|
|
795
795
|
for (te = 0; te < Ge; te++) {
|
|
796
|
-
var
|
|
797
|
-
if (te !== 0 && (
|
|
796
|
+
var Ve = !1;
|
|
797
|
+
if (te !== 0 && (Ve = e.readBool()), Ve) {
|
|
798
798
|
te === Ge && e.readUEG(), e.readBool(), e.readUEG();
|
|
799
799
|
for (var Ce = 0, ge = 0; ge <= je; ge++) {
|
|
800
800
|
var xe = e.readBool(), Ue = !1;
|
|
@@ -814,11 +814,11 @@ var Tt = { exports: {} };
|
|
|
814
814
|
e.readBits(1);
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
|
-
var pt = 0,
|
|
817
|
+
var pt = 0, qe = 1, Ke = 1, mt = !1, it = 1, rt = 1;
|
|
818
818
|
if (e.readBool(), e.readBool(), e.readBool()) {
|
|
819
819
|
if (e.readBool()) {
|
|
820
|
-
var
|
|
821
|
-
|
|
820
|
+
var We = e.readByte();
|
|
821
|
+
We > 0 && We <= 16 ? (qe = [1, 12, 10, 16, 40, 24, 20, 32, 80, 18, 15, 64, 160, 4, 3, 2][We - 1], Ke = [1, 11, 11, 11, 33, 11, 11, 11, 33, 11, 11, 33, 99, 3, 2, 1][We - 1]) : We === 255 && (qe = e.readBits(16), Ke = e.readBits(16));
|
|
822
822
|
}
|
|
823
823
|
if (e.readBool() && e.readBool(), e.readBool() && (e.readBits(3), e.readBool(), e.readBool() && (e.readByte(), e.readByte(), e.readByte())), e.readBool() && (e.readUEG(), e.readUEG()), e.readBool(), e.readBool(), e.readBool(), e.readBool() && (e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG()), e.readBool() && (it = e.readBits(32), rt = e.readBits(32), e.readBool() && (e.readUEG(), e.readBool()))) {
|
|
824
824
|
var at = !1, nt = !1, Ze = !1;
|
|
@@ -835,10 +835,10 @@ var Tt = { exports: {} };
|
|
|
835
835
|
e.readBool() && (e.readBool(), e.readBool(), e.readBool(), pt = e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG(), e.readUEG());
|
|
836
836
|
}
|
|
837
837
|
e.readBool();
|
|
838
|
-
var Xt = "hvc1." + A + ".1.L" + K + ".B0", bt = be - (a + s) * (
|
|
839
|
-
return
|
|
838
|
+
var Xt = "hvc1." + A + ".1.L" + K + ".B0", bt = be - (a + s) * (se === 1 || se === 2 ? 2 : 1), St = Ae - (n + o) * (se === 1 ? 2 : 1), Et = 1;
|
|
839
|
+
return qe !== 1 && Ke !== 1 && (Et = qe / Ke), e.destroy(), e = null, { codec_mimetype: Xt, level_string: r.getLevelString(K), profile_idc: A, bit_depth: ue + 8, ref_frames: 1, chroma_format: se, chroma_format_string: r.getChromaFormatString(se), general_level_idc: K, general_profile_space: g, general_tier_flag: E, general_profile_idc: A, general_profile_compatibility_flags_1: S, general_profile_compatibility_flags_2: w, general_profile_compatibility_flags_3: I, general_profile_compatibility_flags_4: z, general_constraint_indicator_flags_1: N, general_constraint_indicator_flags_2: J, general_constraint_indicator_flags_3: W, general_constraint_indicator_flags_4: q, general_constraint_indicator_flags_5: de, general_constraint_indicator_flags_6: he, min_spatial_segmentation_idc: pt, constant_frame_rate: 0, chroma_format_idc: se, bit_depth_luma_minus8: ue, bit_depth_chroma_minus8: ye, frame_rate: { fixed: mt, fps: rt / it, fps_den: it, fps_num: rt }, sar_ratio: { width: qe, height: Ke }, codec_size: { width: bt, height: St }, present_size: { width: bt * Et, height: St } };
|
|
840
840
|
}, r.parsePPS = function(t) {
|
|
841
|
-
var i = r._ebsp2rbsp(t), e = new
|
|
841
|
+
var i = r._ebsp2rbsp(t), e = new le(i);
|
|
842
842
|
e.readByte(), e.readByte(), e.readUEG(), e.readUEG(), e.readBool(), e.readBool(), e.readBits(3), e.readBool(), e.readBool(), e.readUEG(), e.readUEG(), e.readSEG(), e.readBool(), e.readBool(), e.readBool() && e.readUEG(), e.readSEG(), e.readSEG(), e.readBool(), e.readBool(), e.readBool(), e.readBool();
|
|
843
843
|
var a = e.readBool(), s = e.readBool(), n = 1;
|
|
844
844
|
return s && a ? n = 0 : s ? n = 3 : a && (n = 2), { parallelismType: n };
|
|
@@ -1051,8 +1051,8 @@ var Tt = { exports: {} };
|
|
|
1051
1051
|
var W = { unit: J, length: J.byteLength, dts: I, pts: I };
|
|
1052
1052
|
A.samples.push(W), A.length += J.length;
|
|
1053
1053
|
}
|
|
1054
|
-
} else this._onError(
|
|
1055
|
-
} else this._onError(
|
|
1054
|
+
} else this._onError(X.a.FORMAT_ERROR, "Flv: Invalid audio sample rate idx: " + p);
|
|
1055
|
+
} else this._onError(X.a.CODEC_UNSUPPORTED, "Flv: Unsupported audio codec idx: " + n);
|
|
1056
1056
|
}
|
|
1057
1057
|
}, r.prototype._parseAACAudioData = function(t, i, e) {
|
|
1058
1058
|
if (!(e <= 1)) {
|
|
@@ -1062,7 +1062,7 @@ var Tt = { exports: {} };
|
|
|
1062
1062
|
m.a.w(this.TAG, "Flv: Invalid AAC packet, missing AACPacketType or/and Data!");
|
|
1063
1063
|
}, r.prototype._parseAACAudioSpecificConfig = function(t, i, e) {
|
|
1064
1064
|
var a, s, n = new Uint8Array(t, i, e), o = null, p = 0, g = null;
|
|
1065
|
-
if (p = a = n[0] >>> 3, (s = (7 & n[0]) << 1 | n[1] >>> 7) < 0 || s >= this._mpegSamplingRates.length) this._onError(
|
|
1065
|
+
if (p = a = n[0] >>> 3, (s = (7 & n[0]) << 1 | n[1] >>> 7) < 0 || s >= this._mpegSamplingRates.length) this._onError(X.a.FORMAT_ERROR, "Flv: AAC invalid sampling frequency index!");
|
|
1066
1066
|
else {
|
|
1067
1067
|
var E = this._mpegSamplingRates[s], A = (120 & n[1]) >>> 3;
|
|
1068
1068
|
if (!(A < 0 || A >= 8)) {
|
|
@@ -1070,7 +1070,7 @@ var Tt = { exports: {} };
|
|
|
1070
1070
|
var S = self.navigator.userAgent.toLowerCase();
|
|
1071
1071
|
return S.indexOf("firefox") !== -1 ? s >= 6 ? (p = 5, o = new Array(4), g = s - 3) : (p = 2, o = new Array(2), g = s) : S.indexOf("android") !== -1 ? (p = 2, o = new Array(2), g = s) : (p = 5, g = s, o = new Array(4), s >= 6 ? g = s - 3 : A === 1 && (p = 2, o = new Array(2), g = s)), o[0] = p << 3, o[0] |= (15 & s) >>> 1, o[1] = (15 & s) << 7, o[1] |= (15 & A) << 3, p === 5 && (o[1] |= (15 & g) >>> 1, o[2] = (1 & g) << 7, o[2] |= 8, o[3] = 0), { config: o, samplingRate: E, channelCount: A, codec: "mp4a.40." + p, originalCodec: "mp4a.40." + a };
|
|
1072
1072
|
}
|
|
1073
|
-
this._onError(
|
|
1073
|
+
this._onError(X.a.FORMAT_ERROR, "Flv: AAC invalid channel configuration");
|
|
1074
1074
|
}
|
|
1075
1075
|
}, r.prototype._parseMP3AudioData = function(t, i, e, a) {
|
|
1076
1076
|
if (!(e < 4)) {
|
|
@@ -1110,13 +1110,13 @@ var Tt = { exports: {} };
|
|
|
1110
1110
|
var n = new Uint8Array(t, i, e)[0], o = (112 & n) >>> 4;
|
|
1111
1111
|
if (128 & n) {
|
|
1112
1112
|
var p = 15 & n, g = String.fromCharCode.apply(String, new Uint8Array(t, i, e).slice(1, 5));
|
|
1113
|
-
if (g !== "hvc1") return void this._onError(
|
|
1113
|
+
if (g !== "hvc1") return void this._onError(X.a.CODEC_UNSUPPORTED, "Flv: Unsupported codec in video frame: " + g);
|
|
1114
1114
|
this._parseEnhancedHEVCVideoPacket(t, i + 5, e - 5, a, s, o, p);
|
|
1115
1115
|
} else {
|
|
1116
1116
|
var E = 15 & n;
|
|
1117
1117
|
if (E === 7) this._parseAVCVideoPacket(t, i + 1, e - 1, a, s, o);
|
|
1118
1118
|
else {
|
|
1119
|
-
if (E !== 12) return void this._onError(
|
|
1119
|
+
if (E !== 12) return void this._onError(X.a.CODEC_UNSUPPORTED, "Flv: Unsupported codec in video frame: " + E);
|
|
1120
1120
|
this._parseHEVCVideoPacket(t, i + 1, e - 1, a, s, o);
|
|
1121
1121
|
}
|
|
1122
1122
|
}
|
|
@@ -1127,7 +1127,7 @@ var Tt = { exports: {} };
|
|
|
1127
1127
|
var o = this._littleEndian, p = new DataView(t, i, e), g = p.getUint8(0), E = (16777215 & p.getUint32(0, !o)) << 8 >> 8;
|
|
1128
1128
|
if (g === 0) this._parseAVCDecoderConfigurationRecord(t, i + 4, e - 4);
|
|
1129
1129
|
else if (g === 1) this._parseAVCVideoData(t, i + 4, e - 4, a, s, n, E);
|
|
1130
|
-
else if (g !== 2) return void this._onError(
|
|
1130
|
+
else if (g !== 2) return void this._onError(X.a.FORMAT_ERROR, "Flv: Invalid video packet type " + g);
|
|
1131
1131
|
}
|
|
1132
1132
|
}, r.prototype._parseHEVCVideoPacket = function(t, i, e, a, s, n) {
|
|
1133
1133
|
if (e < 4) m.a.w(this.TAG, "Flv: Invalid HEVC packet, missing HEVCPacketType or/and CompositionTime");
|
|
@@ -1135,7 +1135,7 @@ var Tt = { exports: {} };
|
|
|
1135
1135
|
var o = this._littleEndian, p = new DataView(t, i, e), g = p.getUint8(0), E = (16777215 & p.getUint32(0, !o)) << 8 >> 8;
|
|
1136
1136
|
if (g === 0) this._parseHEVCDecoderConfigurationRecord(t, i + 4, e - 4);
|
|
1137
1137
|
else if (g === 1) this._parseHEVCVideoData(t, i + 4, e - 4, a, s, n, E);
|
|
1138
|
-
else if (g !== 2) return void this._onError(
|
|
1138
|
+
else if (g !== 2) return void this._onError(X.a.FORMAT_ERROR, "Flv: Invalid video packet type " + g);
|
|
1139
1139
|
}
|
|
1140
1140
|
}, r.prototype._parseEnhancedHEVCVideoPacket = function(t, i, e, a, s, n, o) {
|
|
1141
1141
|
if (e < 4) m.a.w(this.TAG, "Flv: Invalid HEVC packet, missing HEVCPacketType or/and CompositionTime");
|
|
@@ -1146,7 +1146,7 @@ var Tt = { exports: {} };
|
|
|
1146
1146
|
var E = (4294967040 & g.getUint32(0, !p)) >> 8;
|
|
1147
1147
|
this._parseHEVCVideoData(t, i + 3, e - 3, a, s, n, E);
|
|
1148
1148
|
} else if (o === 3) this._parseHEVCVideoData(t, i, e, a, s, n, 0);
|
|
1149
|
-
else if (o !== 2) return void this._onError(
|
|
1149
|
+
else if (o !== 2) return void this._onError(X.a.FORMAT_ERROR, "Flv: Invalid video packet type " + o);
|
|
1150
1150
|
}
|
|
1151
1151
|
}, r.prototype._parseAVCDecoderConfigurationRecord = function(t, i, e) {
|
|
1152
1152
|
if (e < 7) m.a.w(this.TAG, "Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");
|
|
@@ -1169,7 +1169,7 @@ var Tt = { exports: {} };
|
|
|
1169
1169
|
if (S += 2, I !== 0) {
|
|
1170
1170
|
var z = new Uint8Array(t, i + S, I);
|
|
1171
1171
|
S += I;
|
|
1172
|
-
var N =
|
|
1172
|
+
var N = ne.parseSPS(z);
|
|
1173
1173
|
if (w === 0) {
|
|
1174
1174
|
a.codecWidth = N.codec_size.width, a.codecHeight = N.codec_size.height, a.presentWidth = N.present_size.width, a.presentHeight = N.present_size.height, a.profile = N.profile_string, a.level = N.level_string, a.bitDepth = N.bit_depth, a.chromaFormat = N.chroma_format, a.sarRatio = N.sar_ratio, a.frameRate = N.frame_rate, N.frame_rate.fixed !== !1 && N.frame_rate.fps_num !== 0 && N.frame_rate.fps_den !== 0 || (a.frameRate = this._referenceFrameRate);
|
|
1175
1175
|
var J = a.frameRate.fps_den, W = a.frameRate.fps_num;
|
|
@@ -1189,10 +1189,10 @@ var Tt = { exports: {} };
|
|
|
1189
1189
|
for (_e > 1 && m.a.w(this.TAG, "Flv: Strange AVCDecoderConfigurationRecord: PPS Count = " + _e), S++, w = 0; w < _e; w++)
|
|
1190
1190
|
I = o.getUint16(S, !n), S += 2, I !== 0 && (S += I);
|
|
1191
1191
|
a.avcc = new Uint8Array(e), a.avcc.set(new Uint8Array(t, i, e), 0), m.a.v(this.TAG, "Parsed AVCDecoderConfigurationRecord"), this._isInitialMetadataDispatched() ? this._dispatch && (this._audioTrack.length || this._videoTrack.length) && this._onDataAvailable(this._audioTrack, this._videoTrack) : this._videoInitialMetadataDispatched = !0, this._dispatch = !1, this._onTrackMetadata("video", a);
|
|
1192
|
-
} else this._onError(
|
|
1193
|
-
} else this._onError(
|
|
1194
|
-
} else this._onError(
|
|
1195
|
-
else this._onError(
|
|
1192
|
+
} else this._onError(X.a.FORMAT_ERROR, "Flv: Invalid AVCDecoderConfigurationRecord: No PPS");
|
|
1193
|
+
} else this._onError(X.a.FORMAT_ERROR, "Flv: Invalid AVCDecoderConfigurationRecord: No SPS");
|
|
1194
|
+
} else this._onError(X.a.FORMAT_ERROR, "Flv: Strange NaluLengthSizeMinusOne: " + (this._naluLengthSize - 1));
|
|
1195
|
+
else this._onError(X.a.FORMAT_ERROR, "Flv: Invalid AVCDecoderConfigurationRecord");
|
|
1196
1196
|
}
|
|
1197
1197
|
}, r.prototype._parseHEVCDecoderConfigurationRecord = function(t, i, e) {
|
|
1198
1198
|
if (e < 22) m.a.w(this.TAG, "Flv: Invalid HEVCDecoderConfigurationRecord, lack of data!");
|
|
@@ -1214,7 +1214,7 @@ var Tt = { exports: {} };
|
|
|
1214
1214
|
var J = o.getUint16(w + 0, !n);
|
|
1215
1215
|
if (N === 0) if (I === 33) {
|
|
1216
1216
|
w += 2;
|
|
1217
|
-
var W = new Uint8Array(t, i + w, J), q =
|
|
1217
|
+
var W = new Uint8Array(t, i + w, J), q = ie.parseSPS(W);
|
|
1218
1218
|
a.codecWidth = q.codec_size.width, a.codecHeight = q.codec_size.height, a.presentWidth = q.present_size.width, a.presentHeight = q.present_size.height, a.profile = q.profile_string, a.level = q.level_string, a.bitDepth = q.bit_depth, a.chromaFormat = q.chroma_format, a.sarRatio = q.sar_ratio, a.frameRate = q.frame_rate, q.frame_rate.fixed !== !1 && q.frame_rate.fps_num !== 0 && q.frame_rate.fps_den !== 0 || (a.frameRate = this._referenceFrameRate);
|
|
1219
1219
|
var de = a.frameRate.fps_den, he = a.frameRate.fps_num;
|
|
1220
1220
|
a.refSampleDuration = a.timescale * (de / he), a.codec = q.codec_mimetype;
|
|
@@ -1225,8 +1225,8 @@ var Tt = { exports: {} };
|
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
1227
|
a.hvcc = new Uint8Array(e), a.hvcc.set(new Uint8Array(t, i, e), 0), m.a.v(this.TAG, "Parsed HEVCDecoderConfigurationRecord"), this._isInitialMetadataDispatched() ? this._dispatch && (this._audioTrack.length || this._videoTrack.length) && this._onDataAvailable(this._audioTrack, this._videoTrack) : this._videoInitialMetadataDispatched = !0, this._dispatch = !1, this._onTrackMetadata("video", a);
|
|
1228
|
-
} else this._onError(
|
|
1229
|
-
else this._onError(
|
|
1228
|
+
} else this._onError(X.a.FORMAT_ERROR, "Flv: Strange NaluLengthSizeMinusOne: " + (this._naluLengthSize - 1));
|
|
1229
|
+
else this._onError(X.a.FORMAT_ERROR, "Flv: Invalid HEVCDecoderConfigurationRecord");
|
|
1230
1230
|
}
|
|
1231
1231
|
}, r.prototype._parseAVCVideoData = function(t, i, e, a, s, n, o) {
|
|
1232
1232
|
for (var p = this._littleEndian, g = new DataView(t, i, e), E = [], A = 0, S = 0, w = this._naluLengthSize, I = this._timestampBase + a, z = n === 1; S < e; ) {
|
|
@@ -1263,7 +1263,7 @@ var Tt = { exports: {} };
|
|
|
1263
1263
|
z && (he.fileposition = s), de.samples.push(he), de.length += A;
|
|
1264
1264
|
}
|
|
1265
1265
|
}, r;
|
|
1266
|
-
}(),
|
|
1266
|
+
}(), h = function() {
|
|
1267
1267
|
function r() {
|
|
1268
1268
|
}
|
|
1269
1269
|
return r.prototype.destroy = function() {
|
|
@@ -1275,7 +1275,7 @@ var Tt = { exports: {} };
|
|
|
1275
1275
|
(function(r) {
|
|
1276
1276
|
r[r.kMPEG1Audio = 3] = "kMPEG1Audio", r[r.kMPEG2Audio = 4] = "kMPEG2Audio", r[r.kPESPrivateData = 6] = "kPESPrivateData", r[r.kADTSAAC = 15] = "kADTSAAC", r[r.kLOASAAC = 17] = "kLOASAAC", r[r.kAC3 = 129] = "kAC3", r[r.kID3 = 21] = "kID3", r[r.kSCTE35 = 134] = "kSCTE35", r[r.kH264 = 27] = "kH264", r[r.kH265 = 36] = "kH265";
|
|
1277
1277
|
})(u || (u = {}));
|
|
1278
|
-
var D,
|
|
1278
|
+
var D, V = function() {
|
|
1279
1279
|
this.pid_stream_type = {}, this.common_pids = { h264: void 0, h265: void 0, adts_aac: void 0, loas_aac: void 0, opus: void 0, ac3: void 0, mp3: void 0 }, this.pes_private_data_pids = {}, this.timed_id3_pids = {}, this.scte_35_pids = {}, this.smpte2038_pids = {};
|
|
1280
1280
|
}, ee = function() {
|
|
1281
1281
|
}, pe = function() {
|
|
@@ -1285,11 +1285,11 @@ 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);
|
|
1292
|
-
},
|
|
1292
|
+
}, Y = function() {
|
|
1293
1293
|
function r(t) {
|
|
1294
1294
|
this.TAG = "H264AnnexBParser", this.current_startcode_offset_ = 0, this.eof_flag_ = !1, this.data_ = t, this.current_startcode_offset_ = this.findNextStartCodeOffset(0), this.eof_flag_ && m.a.e(this.TAG, "Could not find H264 startcode until payload end!");
|
|
1295
1295
|
}
|
|
@@ -1305,7 +1305,7 @@ var Tt = { exports: {} };
|
|
|
1305
1305
|
var e = this.current_startcode_offset_, a = 31 & t[e += (t[e] << 24 | t[e + 1] << 16 | t[e + 2] << 8 | t[e + 3]) === 1 ? 4 : 3], s = (128 & t[e]) >>> 7, n = this.findNextStartCodeOffset(e);
|
|
1306
1306
|
if (this.current_startcode_offset_ = n, !(a >= D.kReserved0) && s === 0) {
|
|
1307
1307
|
var o = t.subarray(e, n);
|
|
1308
|
-
(i = new
|
|
1308
|
+
(i = new c()).type = a, i.data = o;
|
|
1309
1309
|
}
|
|
1310
1310
|
}
|
|
1311
1311
|
return i;
|
|
@@ -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) {
|
|
@@ -1343,13 +1343,13 @@ var Tt = { exports: {} };
|
|
|
1343
1343
|
this.constructor = r;
|
|
1344
1344
|
}
|
|
1345
1345
|
me(r, t), r.prototype = t === null ? Object.create(t) : (i.prototype = t.prototype, new i());
|
|
1346
|
-
}),
|
|
1347
|
-
},
|
|
1346
|
+
}), x = function() {
|
|
1347
|
+
}, F = function(r) {
|
|
1348
1348
|
function t() {
|
|
1349
1349
|
return r !== null && r.apply(this, arguments) || this;
|
|
1350
1350
|
}
|
|
1351
1351
|
return Te(t, r), t;
|
|
1352
|
-
}(
|
|
1352
|
+
}(x), $ = function() {
|
|
1353
1353
|
function r(t) {
|
|
1354
1354
|
this.TAG = "AACADTSParser", this.data_ = t, this.current_syncword_offset_ = this.findNextSyncwordOffset(0), this.eof_flag_ && m.a.e(this.TAG, "Could not found ADTS syncword until payload end");
|
|
1355
1355
|
}
|
|
@@ -1371,7 +1371,7 @@ var Tt = { exports: {} };
|
|
|
1371
1371
|
var w = this.findNextSyncwordOffset(e + S);
|
|
1372
1372
|
if (this.current_syncword_offset_ = w, (a === 0 || a === 1) && s === 0) {
|
|
1373
1373
|
var I = t.subarray(e, e + S);
|
|
1374
|
-
(i = new
|
|
1374
|
+
(i = new x()).audio_object_type = o + 1, i.sampling_freq_index = p, i.sampling_frequency = De[p], i.channel_config = g, i.data = I;
|
|
1375
1375
|
}
|
|
1376
1376
|
}
|
|
1377
1377
|
return i;
|
|
@@ -1380,7 +1380,7 @@ var Tt = { exports: {} };
|
|
|
1380
1380
|
}, r.prototype.getIncompleteData = function() {
|
|
1381
1381
|
return this.has_last_incomplete_data ? this.data_.subarray(this.current_syncword_offset_) : null;
|
|
1382
1382
|
}, r;
|
|
1383
|
-
}(),
|
|
1383
|
+
}(), re = function() {
|
|
1384
1384
|
function r(t) {
|
|
1385
1385
|
this.TAG = "AACLOASParser", this.data_ = t, this.current_syncword_offset_ = this.findNextSyncwordOffset(0), this.eof_flag_ && m.a.e(this.TAG, "Could not found LOAS syncword until payload end");
|
|
1386
1386
|
}
|
|
@@ -1400,7 +1400,7 @@ var Tt = { exports: {} };
|
|
|
1400
1400
|
this.eof_flag_ = !0, this.has_last_incomplete_data = !0;
|
|
1401
1401
|
break;
|
|
1402
1402
|
}
|
|
1403
|
-
var n = new
|
|
1403
|
+
var n = new le(i.subarray(a + 3, a + 3 + s)), o = null;
|
|
1404
1404
|
if (n.readBool()) {
|
|
1405
1405
|
if (t == null) {
|
|
1406
1406
|
m.a.w(this.TAG, "StreamMuxConfig Missing"), this.current_syncword_offset_ = this.findNextSyncwordOffset(a + 3 + s), n.destroy();
|
|
@@ -1443,20 +1443,22 @@ 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
|
-
|
|
1452
|
+
console.log(z);
|
|
1453
|
+
}
|
|
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; ; ) {
|
|
1455
1457
|
var W = n.readByte();
|
|
1456
1458
|
if (J += W, W !== 255) break;
|
|
1457
1459
|
}
|
|
1458
1460
|
for (var q = new Uint8Array(J), de = 0; de < J; de++) q[de] = n.readByte();
|
|
1459
|
-
(e = new
|
|
1461
|
+
(e = new F()).audio_object_type = o.audio_object_type, e.sampling_freq_index = o.sampling_freq_index, e.sampling_frequency = De[o.sampling_freq_index], e.channel_config = o.channel_config, e.other_data_present = o.other_data_present, e.data = q, this.current_syncword_offset_ = this.findNextSyncwordOffset(a + 3 + s);
|
|
1460
1462
|
}
|
|
1461
1463
|
return e;
|
|
1462
1464
|
}, r.prototype.hasIncompleteData = function() {
|
|
@@ -1464,7 +1466,7 @@ var Tt = { exports: {} };
|
|
|
1464
1466
|
}, r.prototype.getIncompleteData = function() {
|
|
1465
1467
|
return this.has_last_incomplete_data ? this.data_.subarray(this.current_syncword_offset_) : null;
|
|
1466
1468
|
}, r;
|
|
1467
|
-
}(),
|
|
1469
|
+
}(), ae = function(r) {
|
|
1468
1470
|
var t = null, i = r.audio_object_type, e = r.audio_object_type, a = r.sampling_freq_index, s = r.channel_config, n = 0, o = navigator.userAgent.toLowerCase();
|
|
1469
1471
|
o.indexOf("firefox") !== -1 ? a >= 6 ? (e = 5, t = new Array(4), n = a - 3) : (e = 2, t = new Array(2), n = a) : o.indexOf("android") !== -1 ? (e = 2, t = new Array(2), n = a) : (e = 5, n = a, t = new Array(4), a >= 6 ? n = a - 3 : s === 1 && (e = 2, t = new Array(2), n = a)), t[0] = e << 3, t[0] |= (15 & a) >>> 1, t[1] = (15 & a) << 7, t[1] |= (15 & s) << 3, e === 5 && (t[1] |= (15 & n) >>> 1, t[2] = (1 & n) << 7, t[2] |= 8, t[3] = 0), this.config = t, this.sampling_rate = De[a], this.channel_count = s, this.codec_mimetype = "mp4a.40." + e, this.original_codec_mimetype = "mp4a.40." + i;
|
|
1470
1472
|
}, ce = function() {
|
|
@@ -1526,27 +1528,27 @@ var Tt = { exports: {} };
|
|
|
1526
1528
|
for (var a = e.readBits(4), s = [], n = 0; n < a; n++) s.push(Ct(e));
|
|
1527
1529
|
return { descriptor_tag: r, descriptor_length: t, identifier: i, audio_count: a, components: s };
|
|
1528
1530
|
}, It = function(r) {
|
|
1529
|
-
var t = new
|
|
1531
|
+
var t = new le(r), i = t.readBits(8), e = t.readBool(), a = t.readBool();
|
|
1530
1532
|
t.readBits(2);
|
|
1531
1533
|
var s = t.readBits(12), n = t.readBits(8), o = t.readBool(), p = t.readBits(6), g = 4 * t.readBits(31) + t.readBits(2), E = t.readBits(8), A = t.readBits(12), S = t.readBits(12), w = t.readBits(8), I = null;
|
|
1532
|
-
w === Se.kSpliceNull ? I = {} : w === Se.kSpliceSchedule ? I = function(
|
|
1533
|
-
for (var be =
|
|
1534
|
+
w === Se.kSpliceNull ? I = {} : w === Se.kSpliceSchedule ? I = function(se) {
|
|
1535
|
+
for (var be = se.readBits(8), Ae = [], ue = 0; ue < be; ue++) Ae.push(et(se));
|
|
1534
1536
|
return { splice_count: be, events: Ae };
|
|
1535
|
-
}(t) : w === Se.kSpliceInsert ? I = function(
|
|
1536
|
-
var be =
|
|
1537
|
-
|
|
1538
|
-
var
|
|
1539
|
-
if (Ae) return
|
|
1540
|
-
if (
|
|
1541
|
-
|
|
1542
|
-
for (var ye = 0; ye <
|
|
1543
|
-
}
|
|
1544
|
-
return
|
|
1545
|
-
}(t) : w === Se.kTimeSignal ? I = function(
|
|
1546
|
-
return { splice_time: Oe(
|
|
1547
|
-
}(t) : w === Se.kBandwidthReservation ? I = {} : w === Se.kPrivateCommand ? I = function(
|
|
1548
|
-
for (var Ae = String.fromCharCode(be.readBits(8), be.readBits(8), be.readBits(8), be.readBits(8)),
|
|
1549
|
-
return { identifier: Ae, private_data:
|
|
1537
|
+
}(t) : w === Se.kSpliceInsert ? I = function(se) {
|
|
1538
|
+
var be = se.readBits(32), Ae = se.readBool();
|
|
1539
|
+
se.readBits(7);
|
|
1540
|
+
var ue = { splice_event_id: be, splice_event_cancel_indicator: Ae };
|
|
1541
|
+
if (Ae) return ue;
|
|
1542
|
+
if (ue.out_of_network_indicator = se.readBool(), ue.program_splice_flag = se.readBool(), ue.duration_flag = se.readBool(), ue.splice_immediate_flag = se.readBool(), se.readBits(4), ue.program_splice_flag && !ue.splice_immediate_flag && (ue.splice_time = Oe(se)), !ue.program_splice_flag) {
|
|
1543
|
+
ue.component_count = se.readBits(8), ue.components = [];
|
|
1544
|
+
for (var ye = 0; ye < ue.component_count; ye++) ue.components.push($e(ue.splice_immediate_flag, se));
|
|
1545
|
+
}
|
|
1546
|
+
return ue.duration_flag && (ue.break_duration = Be(se)), ue.unique_program_id = se.readBits(16), ue.avail_num = se.readBits(8), ue.avails_expected = se.readBits(8), ue;
|
|
1547
|
+
}(t) : w === Se.kTimeSignal ? I = function(se) {
|
|
1548
|
+
return { splice_time: Oe(se) };
|
|
1549
|
+
}(t) : w === Se.kBandwidthReservation ? I = {} : w === Se.kPrivateCommand ? I = function(se, be) {
|
|
1550
|
+
for (var Ae = String.fromCharCode(be.readBits(8), be.readBits(8), be.readBits(8), be.readBits(8)), ue = new Uint8Array(se - 4), ye = 0; ye < se - 4; ye++) ue[ye] = be.readBits(8);
|
|
1551
|
+
return { identifier: Ae, private_data: ue.buffer };
|
|
1550
1552
|
}(S, t) : t.readBits(8 * S);
|
|
1551
1553
|
for (var z = [], N = t.readBits(16), J = 0; J < N; ) {
|
|
1552
1554
|
var W = t.readBits(8), q = t.readBits(8), de = String.fromCharCode(t.readBits(8), t.readBits(8), t.readBits(8), t.readBits(8));
|
|
@@ -1607,7 +1609,7 @@ var Tt = { exports: {} };
|
|
|
1607
1609
|
}(), Ut = function() {
|
|
1608
1610
|
}, Nt = function() {
|
|
1609
1611
|
}, Gt = function() {
|
|
1610
|
-
},
|
|
1612
|
+
}, Vt = [[64, 64, 80, 80, 96, 96, 112, 112, 128, 128, 160, 160, 192, 192, 224, 224, 256, 256, 320, 320, 384, 384, 448, 448, 512, 512, 640, 640, 768, 768, 896, 896, 1024, 1024, 1152, 1152, 1280, 1280], [69, 70, 87, 88, 104, 105, 121, 122, 139, 140, 174, 175, 208, 209, 243, 244, 278, 279, 348, 349, 417, 418, 487, 488, 557, 558, 696, 697, 835, 836, 975, 976, 1114, 1115, 1253, 1254, 1393, 1394], [96, 96, 120, 120, 144, 144, 168, 168, 192, 192, 240, 240, 288, 288, 336, 336, 384, 384, 480, 480, 576, 576, 672, 672, 768, 768, 960, 960, 1152, 1152, 1344, 1344, 1536, 1536, 1728, 1728, 1920, 1920]], Ft = function() {
|
|
1611
1613
|
function r(t) {
|
|
1612
1614
|
this.TAG = "AC3Parser", this.data_ = t, this.current_syncword_offset_ = this.findNextSyncwordOffset(0), this.eof_flag_ && m.a.e(this.TAG, "Could not found AC3 syncword until payload end");
|
|
1613
1615
|
}
|
|
@@ -1619,7 +1621,7 @@ var Tt = { exports: {} };
|
|
|
1619
1621
|
}
|
|
1620
1622
|
}, r.prototype.readNextAC3Frame = function() {
|
|
1621
1623
|
for (var t = this.data_, i = null; i == null && !this.eof_flag_; ) {
|
|
1622
|
-
var e = this.current_syncword_offset_, a = t[e + 4] >> 6, s = [48e3, 44200, 33e3][a], n = 63 & t[e + 4], o = 2 *
|
|
1624
|
+
var e = this.current_syncword_offset_, a = t[e + 4] >> 6, s = [48e3, 44200, 33e3][a], n = 63 & t[e + 4], o = 2 * Vt[a][n];
|
|
1623
1625
|
if (e + o > this.data_.byteLength) {
|
|
1624
1626
|
this.eof_flag_ = !0, this.has_last_incomplete_data = !0;
|
|
1625
1627
|
break;
|
|
@@ -1654,8 +1656,8 @@ var Tt = { exports: {} };
|
|
|
1654
1656
|
}
|
|
1655
1657
|
r(t, i), t.prototype = i === null ? Object.create(i) : (e.prototype = i.prototype, new e());
|
|
1656
1658
|
};
|
|
1657
|
-
}(),
|
|
1658
|
-
return (
|
|
1659
|
+
}(), Fe = function() {
|
|
1660
|
+
return (Fe = Object.assign || function(r) {
|
|
1659
1661
|
for (var t, i = 1, e = arguments.length; i < e; i++) for (var a in t = arguments[i]) Object.prototype.hasOwnProperty.call(t, a) && (r[a] = t[a]);
|
|
1660
1662
|
return r;
|
|
1661
1663
|
}).apply(this, arguments);
|
|
@@ -1826,7 +1828,7 @@ var Tt = { exports: {} };
|
|
|
1826
1828
|
var e = i[0];
|
|
1827
1829
|
if (e === 2) {
|
|
1828
1830
|
var a = (15 & i[1]) << 8 | i[2], s = i[3] << 8 | i[4], n = (62 & i[5]) >>> 1, o = 1 & i[5], p = i[6], g = (i[7], null);
|
|
1829
|
-
if (o === 1 && p === 0) (g = new
|
|
1831
|
+
if (o === 1 && p === 0) (g = new V()).program_number = s, g.version_number = n, this.program_pmt_map_[s] = g;
|
|
1830
1832
|
else if ((g = this.program_pmt_map_[s]) == null) return;
|
|
1831
1833
|
i[8], i[9];
|
|
1832
1834
|
for (var E = (15 & i[10]) << 8 | i[11], A = 12 + E, S = a - 9 - E - 4, w = A; w < A + S; ) {
|
|
@@ -1851,8 +1853,8 @@ var Tt = { exports: {} };
|
|
|
1851
1853
|
}
|
|
1852
1854
|
q += 2 + he;
|
|
1853
1855
|
}
|
|
1854
|
-
var
|
|
1855
|
-
this.dispatchPESPrivateDataDescriptor(z, I,
|
|
1856
|
+
var se = i.subarray(w + 5, w + 5 + N);
|
|
1857
|
+
this.dispatchPESPrivateDataDescriptor(z, I, se);
|
|
1856
1858
|
}
|
|
1857
1859
|
} else I === u.kID3 ? g.timed_id3_pids[z] = !0 : I === u.kSCTE35 && (g.scte_35_pids[z] = !0);
|
|
1858
1860
|
else g.common_pids.mp3 = z;
|
|
@@ -1873,10 +1875,10 @@ var Tt = { exports: {} };
|
|
|
1873
1875
|
} else e.nearest_pts = this.aac_last_sample_pts_;
|
|
1874
1876
|
this.onSCTE35Metadata && this.onSCTE35Metadata(e);
|
|
1875
1877
|
}, t.prototype.parseH264Payload = function(i, e, a, s, n) {
|
|
1876
|
-
for (var o = new
|
|
1878
|
+
for (var o = new Y(i), p = null, g = [], E = 0, A = !1; (p = o.readNextNaluPayload()) != null; ) {
|
|
1877
1879
|
var S = new R(p);
|
|
1878
1880
|
if (S.type === D.kSliceSPS) {
|
|
1879
|
-
var w =
|
|
1881
|
+
var w = ne.parseSPS(p.data);
|
|
1880
1882
|
this.video_init_segment_dispatched_ ? this.detectVideoMetadataChange(S, w) === !0 && (m.a.v(this.TAG, "H264: Critical h264 metadata has been changed, attempt to re-generate InitSegment"), this.video_metadata_changed_ = !0, this.video_metadata_ = { vps: void 0, sps: S, pps: void 0, details: w }) : (this.video_metadata_.sps = S, this.video_metadata_.details = w);
|
|
1881
1883
|
} else S.type === D.kSlicePPS ? this.video_init_segment_dispatched_ && !this.video_metadata_changed_ || (this.video_metadata_.pps = S, this.video_metadata_.sps && this.video_metadata_.pps && (this.video_metadata_changed_ && this.dispatchVideoMediaSegment(), this.dispatchVideoInitSegment())) : (S.type === D.kSliceIDR || S.type === D.kSliceNonIDR && n === 1) && (A = !0);
|
|
1882
1884
|
this.video_init_segment_dispatched_ && (g.push(S), E += S.data.byteLength);
|
|
@@ -1891,10 +1893,10 @@ var Tt = { exports: {} };
|
|
|
1891
1893
|
var S = new Pt(p);
|
|
1892
1894
|
if (S.type === Ee.kSliceVPS) {
|
|
1893
1895
|
if (!this.video_init_segment_dispatched_) {
|
|
1894
|
-
var w =
|
|
1895
|
-
this.video_metadata_.vps = S, this.video_metadata_.details =
|
|
1896
|
+
var w = ie.parseVPS(p.data);
|
|
1897
|
+
this.video_metadata_.vps = S, this.video_metadata_.details = Fe(Fe({}, this.video_metadata_.details), w);
|
|
1896
1898
|
}
|
|
1897
|
-
} else S.type === Ee.kSliceSPS ? (w =
|
|
1899
|
+
} else S.type === Ee.kSliceSPS ? (w = ie.parseSPS(p.data), this.video_init_segment_dispatched_ ? this.detectVideoMetadataChange(S, w) === !0 && (m.a.v(this.TAG, "H265: Critical h265 metadata has been changed, attempt to re-generate InitSegment"), this.video_metadata_changed_ = !0, this.video_metadata_ = { vps: void 0, sps: S, pps: void 0, details: w }) : (this.video_metadata_.sps = S, this.video_metadata_.details = Fe(Fe({}, this.video_metadata_.details), w))) : S.type === Ee.kSlicePPS ? (!this.video_init_segment_dispatched_ || this.video_metadata_changed_) && (w = ie.parsePPS(p.data), this.video_metadata_.pps = S, this.video_metadata_.details = Fe(Fe({}, this.video_metadata_.details), w), this.video_metadata_.vps && this.video_metadata_.sps && this.video_metadata_.pps && (this.video_metadata_changed_ && this.dispatchVideoMediaSegment(), this.dispatchVideoInitSegment())) : S.type !== Ee.kSliceIDR_W_RADL && S.type !== Ee.kSliceIDR_N_LP && S.type !== Ee.kSliceCRA_NUT || (A = !0);
|
|
1898
1900
|
this.video_init_segment_dispatched_ && (g.push(S), E += S.data.byteLength);
|
|
1899
1901
|
}
|
|
1900
1902
|
var I = Math.floor(e / this.timescale_), z = Math.floor(a / this.timescale_);
|
|
@@ -1974,7 +1976,7 @@ var Tt = { exports: {} };
|
|
|
1974
1976
|
Math.abs(p - o) > 1 && (m.a.w(this.TAG, "AAC: Detected pts overlapped, expected: " + p + "ms, PES pts: " + o + "ms"), o = p);
|
|
1975
1977
|
}
|
|
1976
1978
|
}
|
|
1977
|
-
for (var g, E = new
|
|
1979
|
+
for (var g, E = new re(i), A = null, S = o; (A = E.readNextAACFrame((a = this.loas_previous_frame) !== null && a !== void 0 ? a : void 0)) != null; ) {
|
|
1978
1980
|
this.loas_previous_frame = A, n = 1024 / A.sampling_frequency * 1e3;
|
|
1979
1981
|
var w = { codec: "aac", data: A };
|
|
1980
1982
|
this.audio_init_segment_dispatched_ == 0 ? (this.audio_metadata_ = { codec: "aac", audio_object_type: A.audio_object_type, sampling_freq_index: A.sampling_freq_index, sampling_frequency: A.sampling_frequency, channel_config: A.channel_config }, this.dispatchAudioInitSegment(w)) : this.detectAudioMetadataChange(w) && (this.dispatchAudioMediaSegment(), this.dispatchAudioInitSegment(w)), g = S;
|
|
@@ -1990,10 +1992,10 @@ var Tt = { exports: {} };
|
|
|
1990
1992
|
if (e == null && this.aac_last_sample_pts_ != null) a = 1536 / this.audio_metadata_.sampling_frequency * 1e3, s = this.aac_last_sample_pts_ + a;
|
|
1991
1993
|
else if (e == null) return void m.a.w(this.TAG, "Opus: Unknown pts");
|
|
1992
1994
|
}
|
|
1993
|
-
for (var n, o = new
|
|
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
|
}
|
|
@@ -2071,7 +2073,7 @@ var Tt = { exports: {} };
|
|
|
2071
2073
|
}, t.prototype.dispatchAudioInitSegment = function(i) {
|
|
2072
2074
|
var e = { type: "audio" };
|
|
2073
2075
|
if (e.id = this.audio_track_.id, e.timescale = 1e3, e.duration = this.duration_, this.audio_metadata_.codec === "aac") {
|
|
2074
|
-
var a = i.codec === "aac" ? i.data : null, s = new
|
|
2076
|
+
var a = i.codec === "aac" ? i.data : null, s = new ae(a);
|
|
2075
2077
|
e.audioSampleRate = s.sampling_rate, e.channelCount = s.channel_count, e.codec = s.codec_mimetype, e.originalCodec = s.original_codec_mimetype, e.config = s.config, e.refSampleDuration = 1024 / e.audioSampleRate * e.timescale;
|
|
2076
2078
|
} else if (this.audio_metadata_.codec === "ac-3") {
|
|
2077
2079
|
var n = i.codec === "ac-3" ? i.data : null, o = new jt(n);
|
|
@@ -2116,7 +2118,7 @@ var Tt = { exports: {} };
|
|
|
2116
2118
|
o.dts = g;
|
|
2117
2119
|
}
|
|
2118
2120
|
o.ancillaries = function(E) {
|
|
2119
|
-
for (var A = new
|
|
2121
|
+
for (var A = new le(E), S = 0, w = []; S += 6, A.readBits(6) === 0; ) {
|
|
2120
2122
|
var I = A.readBool();
|
|
2121
2123
|
S += 1;
|
|
2122
2124
|
var z = A.readBits(11);
|
|
@@ -2140,7 +2142,7 @@ var Tt = { exports: {} };
|
|
|
2140
2142
|
return A.destroy(), A = null, w;
|
|
2141
2143
|
}(i), this.onSMPTE2038Metadata && this.onSMPTE2038Metadata(o);
|
|
2142
2144
|
}, t;
|
|
2143
|
-
}(
|
|
2145
|
+
}(h), Ht = function() {
|
|
2144
2146
|
for (var r = 0, t = 0, i = arguments.length; t < i; t++) r += arguments[t].length;
|
|
2145
2147
|
var e = Array(r), a = 0;
|
|
2146
2148
|
for (t = 0; t < i; t++) for (var s = arguments[t], n = 0, o = s.length; n < o; n++, a++) e[a] = s[n];
|
|
@@ -2388,7 +2390,7 @@ var Tt = { exports: {} };
|
|
|
2388
2390
|
} else A = !1;
|
|
2389
2391
|
}
|
|
2390
2392
|
for (var _e = [], te = 0; te < s.length; te++) {
|
|
2391
|
-
var
|
|
2393
|
+
var se = (N = s[te]).unit, be = N.dts - this._dtsBase, Ae = (K = be, !1), ue = null, ye = 0;
|
|
2392
2394
|
if (!(be < -1e-3)) {
|
|
2393
2395
|
if (this._audioMeta.codec !== "mp3") {
|
|
2394
2396
|
var Re = be;
|
|
@@ -2400,22 +2402,22 @@ var Tt = { exports: {} };
|
|
|
2400
2402
|
Ae = !0;
|
|
2401
2403
|
var ke, Ne = Math.floor(n / p);
|
|
2402
2404
|
m.a.w(this.TAG, `Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
2403
|
-
originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.round(n) + " ms, generate: " + Ne + " frames"), K = Math.floor(Re), ye = Math.floor(Re + p) - K, (ke = ht.getSilentFrame(this._audioMeta.originalCodec, this._audioMeta.channelCount)) == null && (m.a.w(this.TAG, "Unable to generate silent frame for " + this._audioMeta.originalCodec + " with " + this._audioMeta.channelCount + " channels, repeat last frame"), ke =
|
|
2405
|
+
originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.round(n) + " ms, generate: " + Ne + " frames"), K = Math.floor(Re), ye = Math.floor(Re + p) - K, (ke = ht.getSilentFrame(this._audioMeta.originalCodec, this._audioMeta.channelCount)) == null && (m.a.w(this.TAG, "Unable to generate silent frame for " + this._audioMeta.originalCodec + " with " + this._audioMeta.channelCount + " channels, repeat last frame"), ke = se), ue = [];
|
|
2404
2406
|
for (var Pe = 0; Pe < Ne; Pe++) {
|
|
2405
2407
|
Re += p;
|
|
2406
|
-
var Ge = Math.floor(Re), je = Math.floor(Re + p) - Ge,
|
|
2407
|
-
|
|
2408
|
+
var Ge = Math.floor(Re), je = Math.floor(Re + p) - Ge, Ve = { dts: Ge, pts: Ge, cts: 0, unit: ke, size: ke.byteLength, duration: je, originalDts: be, flags: { isLeading: 0, dependsOn: 1, isDependedOn: 0, hasRedundancy: 0 } };
|
|
2409
|
+
ue.push(Ve), I += Ve.size;
|
|
2408
2410
|
}
|
|
2409
2411
|
this._audioNextDts = Re + p;
|
|
2410
2412
|
} else K = Math.floor(Re), ye = Math.floor(Re + p) - K, this._audioNextDts = Re + p;
|
|
2411
2413
|
} else
|
|
2412
2414
|
K = be - n, te !== s.length - 1 ? ye = s[te + 1].dts - this._dtsBase - n - K : z != null ? ye = z.dts - this._dtsBase - n - K : ye = _e.length >= 1 ? _e[_e.length - 1].duration : Math.floor(p), this._audioNextDts = K + ye;
|
|
2413
|
-
o === -1 && (o = K), _e.push({ dts: K, pts: K, cts: 0, unit: N.unit, size: N.unit.byteLength, duration: ye, originalDts: be, flags: { isLeading: 0, dependsOn: 1, isDependedOn: 0, hasRedundancy: 0 } }), Ae && _e.push.apply(_e,
|
|
2415
|
+
o === -1 && (o = K), _e.push({ dts: K, pts: K, cts: 0, unit: N.unit, size: N.unit.byteLength, duration: ye, originalDts: be, flags: { isLeading: 0, dependsOn: 1, isDependedOn: 0, hasRedundancy: 0 } }), Ae && _e.push.apply(_e, ue);
|
|
2414
2416
|
}
|
|
2415
2417
|
}
|
|
2416
2418
|
if (_e.length === 0) return a.samples = [], void (a.length = 0);
|
|
2417
2419
|
for (g ? w = new Uint8Array(I) : ((w = new Uint8Array(I))[0] = I >>> 24 & 255, w[1] = I >>> 16 & 255, w[2] = I >>> 8 & 255, w[3] = 255 & I, w.set(ze.types.mdat, 4)), te = 0; te < _e.length; te++)
|
|
2418
|
-
|
|
2420
|
+
se = _e[te].unit, w.set(se, S), S += se.byteLength;
|
|
2419
2421
|
var Ce = _e[_e.length - 1];
|
|
2420
2422
|
e = Ce.dts + Ce.duration;
|
|
2421
2423
|
var ge = new Me.b();
|
|
@@ -2449,16 +2451,16 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2449
2451
|
for (var W = new Me.b(), q = [], de = 0; de < n.length; de++) {
|
|
2450
2452
|
var he = (I = n[de]).dts - this._dtsBase, K = I.isKeyframe, Q = he - o, _e = I.cts, te = Q + _e;
|
|
2451
2453
|
p === -1 && (p = Q, g = te);
|
|
2452
|
-
var
|
|
2453
|
-
if (de !== n.length - 1 ?
|
|
2454
|
-
var be = new Me.d(Q, te,
|
|
2454
|
+
var se = 0;
|
|
2455
|
+
if (de !== n.length - 1 ? se = n[de + 1].dts - this._dtsBase - o - Q : w != null ? se = w.dts - this._dtsBase - o - Q : se = q.length >= 1 ? q[q.length - 1].duration : Math.floor(this._videoMeta.refSampleDuration), K) {
|
|
2456
|
+
var be = new Me.d(Q, te, se, I.dts, !0);
|
|
2455
2457
|
be.fileposition = I.fileposition, W.appendSyncPoint(be);
|
|
2456
2458
|
}
|
|
2457
|
-
q.push({ dts: Q, pts: te, cts: _e, units: I.units, size: I.length, isKeyframe: K, duration:
|
|
2459
|
+
q.push({ dts: Q, pts: te, cts: _e, units: I.units, size: I.length, isKeyframe: K, duration: se, originalDts: he, flags: { isLeading: 0, dependsOn: K ? 2 : 1, isDependedOn: K ? 1 : 0, hasRedundancy: 0, isNonSync: K ? 0 : 1 } });
|
|
2458
2460
|
}
|
|
2459
2461
|
for ((A = new Uint8Array(S))[0] = S >>> 24 & 255, A[1] = S >>> 16 & 255, A[2] = S >>> 8 & 255, A[3] = 255 & S, A.set(ze.types.mdat, 4), de = 0; de < q.length; de++) for (var Ae = q[de].units; Ae.length; ) {
|
|
2460
|
-
var
|
|
2461
|
-
A.set(
|
|
2462
|
+
var ue = Ae.shift().data;
|
|
2463
|
+
A.set(ue, E), E += ue.byteLength;
|
|
2462
2464
|
}
|
|
2463
2465
|
var ye = q[q.length - 1];
|
|
2464
2466
|
if (e = ye.dts + ye.duration, a = ye.pts + ye.duration, this._videoNextDts = e, W.beginDts = p, W.endDts = e, W.beginPts = g, W.endPts = a, W.originalBeginDts = q[0].originalDts, W.originalEndDts = ye.originalDts + ye.duration, W.firstSample = new Me.d(q[0].dts, q[0].pts, q[0].duration, q[0].originalDts, q[0].isKeyframe), W.lastSample = new Me.d(ye.dts, ye.pts, ye.duration, ye.originalDts, ye.isKeyframe), this._isLive || this._videoSegmentInfoList.append(W), s.samples = q, s.sequenceNumber++, this._forceFirstIDR) {
|
|
@@ -2530,7 +2532,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2530
2532
|
var s = null;
|
|
2531
2533
|
(s = _.probe(t)).match && (this._setupFLVDemuxerRemuxer(s), a = this._demuxer.parseChunks(t, i)), s.match || s.needMoreData || (s = lt.probe(t)).match && (this._setupTSDemuxerRemuxer(s), a = this._demuxer.parseChunks(t, i)), s.match || s.needMoreData || (s = null, m.a.e(this.TAG, "Non MPEG-TS/FLV, Unsupported media type!"), Promise.resolve().then(function() {
|
|
2532
2534
|
e._internalAbort();
|
|
2533
|
-
}), this._emitter.emit(Le.a.DEMUX_ERROR,
|
|
2535
|
+
}), this._emitter.emit(Le.a.DEMUX_ERROR, X.a.FORMAT_UNSUPPORTED, "Non MPEG-TS/FLV, Unsupported media type!"));
|
|
2534
2536
|
}
|
|
2535
2537
|
return a;
|
|
2536
2538
|
}, r.prototype._setupFLVDemuxerRemuxer = function(t) {
|
|
@@ -2619,23 +2621,23 @@ 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, _) {
|
|
2626
|
-
for (var
|
|
2628
|
+
for (var h in _) _.hasOwnProperty(h) && (u[h] = _[h]);
|
|
2627
2629
|
})(T, l);
|
|
2628
2630
|
}, function(T, l) {
|
|
2629
2631
|
function u() {
|
|
2630
2632
|
this.constructor = T;
|
|
2631
2633
|
}
|
|
2632
2634
|
U(T, l), T.prototype = l === null ? Object.create(l) : (u.prototype = l.prototype, new u());
|
|
2633
|
-
}),
|
|
2635
|
+
}), M = function(T) {
|
|
2634
2636
|
function l(u, _) {
|
|
2635
|
-
var
|
|
2636
|
-
return
|
|
2637
|
+
var h = T.call(this, "fetch-stream-loader") || this;
|
|
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 && _;
|
|
@@ -2645,33 +2647,33 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2645
2647
|
}, l.prototype.destroy = function() {
|
|
2646
2648
|
this.isWorking() && this.abort(), T.prototype.destroy.call(this);
|
|
2647
2649
|
}, l.prototype.open = function(u, _) {
|
|
2648
|
-
var
|
|
2650
|
+
var h = this;
|
|
2649
2651
|
this._dataSource = u, this._range = _;
|
|
2650
2652
|
var P = u.url;
|
|
2651
2653
|
this._config.reuseRedirectedURL && u.redirectedURL != null && (P = u.redirectedURL);
|
|
2652
|
-
var D = this._seekHandler.getConfig(P, _),
|
|
2654
|
+
var D = this._seekHandler.getConfig(P, _), V = new self.Headers();
|
|
2653
2655
|
if (typeof D.headers == "object") {
|
|
2654
2656
|
var ee = D.headers;
|
|
2655
|
-
for (var pe in ee) ee.hasOwnProperty(pe) &&
|
|
2656
|
-
}
|
|
2657
|
-
var ve = { method: "GET", headers:
|
|
2658
|
-
if (typeof this._config.headers == "object") for (var pe in this._config.headers)
|
|
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 (
|
|
2661
|
-
if (
|
|
2662
|
-
if (
|
|
2663
|
-
var d =
|
|
2664
|
-
|
|
2657
|
+
for (var pe in ee) ee.hasOwnProperty(pe) && V.append(pe, ee[pe]);
|
|
2658
|
+
}
|
|
2659
|
+
var ve = { method: "GET", headers: V, mode: "cors", cache: "default", referrerPolicy: "no-referrer-when-downgrade" };
|
|
2660
|
+
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(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);
|
|
2666
|
+
h._onURLRedirect(d);
|
|
2665
2667
|
}
|
|
2666
|
-
var
|
|
2667
|
-
return
|
|
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 (
|
|
2670
|
-
|
|
2671
|
-
}).catch(function(
|
|
2672
|
-
if (!
|
|
2673
|
-
if (
|
|
2674
|
-
|
|
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) {
|
|
2674
|
+
if (!h._abortController || !h._abortController.signal.aborted) {
|
|
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() {
|
|
@@ -2681,8 +2683,8 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2681
2683
|
}
|
|
2682
2684
|
}, l.prototype._pump = function(u) {
|
|
2683
2685
|
var _ = this;
|
|
2684
|
-
return u.read().then(function(
|
|
2685
|
-
if (
|
|
2686
|
+
return u.read().then(function(h) {
|
|
2687
|
+
if (h.done) if (_._contentLength !== null && _._receivedLength < _._contentLength) {
|
|
2686
2688
|
_._status = b.c.kError;
|
|
2687
2689
|
var P = b.b.EARLY_EOF, D = { code: -1, msg: "Fetch stream meet Early-EOF" };
|
|
2688
2690
|
if (!_._onError) throw new f.d(D.msg);
|
|
@@ -2692,25 +2694,25 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2692
2694
|
if (_._abortController && _._abortController.signal.aborted) return void (_._status = b.c.kComplete);
|
|
2693
2695
|
if (_._requestAbort === !0) return _._status = b.c.kComplete, u.cancel();
|
|
2694
2696
|
_._status = b.c.kBuffering;
|
|
2695
|
-
var
|
|
2696
|
-
_._receivedLength +=
|
|
2697
|
+
var V = h.value.buffer, ee = _._range.from + _._receivedLength;
|
|
2698
|
+
_._receivedLength += V.byteLength, _._onDataArrival && _._onDataArrival(V, ee, _._receivedLength), _._pump(u);
|
|
2697
2699
|
}
|
|
2698
|
-
}).catch(function(
|
|
2700
|
+
}).catch(function(h) {
|
|
2699
2701
|
if (_._abortController && _._abortController.signal.aborted) _._status = b.c.kComplete;
|
|
2700
|
-
else if (
|
|
2702
|
+
else if (h.code !== 11 || !v.a.msedge) {
|
|
2701
2703
|
_._status = b.c.kError;
|
|
2702
2704
|
var P = 0, D = null;
|
|
2703
|
-
if (
|
|
2705
|
+
if (h.code !== 19 && h.message !== "network error" || !(_._contentLength === null || _._contentLength !== null && _._receivedLength < _._contentLength) ? (P = b.b.EXCEPTION, D = { code: h.code, msg: h.message }) : (P = b.b.EARLY_EOF, D = { code: h.code, msg: "Fetch stream meet Early-EOF" }), !_._onError) throw new f.d(D.msg);
|
|
2704
2706
|
_._onError(P, D);
|
|
2705
2707
|
}
|
|
2706
2708
|
});
|
|
2707
2709
|
}, l;
|
|
2708
2710
|
}(b.a), C = /* @__PURE__ */ function() {
|
|
2709
2711
|
var T = function(l, u) {
|
|
2710
|
-
return (T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_,
|
|
2711
|
-
_.__proto__ =
|
|
2712
|
-
} || function(_,
|
|
2713
|
-
for (var P in
|
|
2712
|
+
return (T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, h) {
|
|
2713
|
+
_.__proto__ = h;
|
|
2714
|
+
} || function(_, h) {
|
|
2715
|
+
for (var P in h) h.hasOwnProperty(P) && (_[P] = h[P]);
|
|
2714
2716
|
})(l, u);
|
|
2715
2717
|
};
|
|
2716
2718
|
return function(l, u) {
|
|
@@ -2719,10 +2721,10 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2719
2721
|
}
|
|
2720
2722
|
T(l, u), l.prototype = u === null ? Object.create(u) : (_.prototype = u.prototype, new _());
|
|
2721
2723
|
};
|
|
2722
|
-
}(),
|
|
2724
|
+
}(), j = function(T) {
|
|
2723
2725
|
function l(u, _) {
|
|
2724
|
-
var
|
|
2725
|
-
return
|
|
2726
|
+
var h = T.call(this, "xhr-moz-chunked-loader") || this;
|
|
2727
|
+
return h.TAG = "MozChunkedLoader", h._seekHandler = u, h._config = _, h._needStash = !0, h._xhr = null, h._requestAbort = !1, h._contentLength = null, h._receivedLength = 0, h;
|
|
2726
2728
|
}
|
|
2727
2729
|
return C(l, T), l.isSupported = function() {
|
|
2728
2730
|
try {
|
|
@@ -2735,18 +2737,18 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2735
2737
|
this.isWorking() && this.abort(), this._xhr && (this._xhr.onreadystatechange = null, this._xhr.onprogress = null, this._xhr.onloadend = null, this._xhr.onerror = null, this._xhr = null), T.prototype.destroy.call(this);
|
|
2736
2738
|
}, l.prototype.open = function(u, _) {
|
|
2737
2739
|
this._dataSource = u, this._range = _;
|
|
2738
|
-
var
|
|
2739
|
-
this._config.reuseRedirectedURL && u.redirectedURL != null && (
|
|
2740
|
-
var P = this._seekHandler.getConfig(
|
|
2740
|
+
var h = u.url;
|
|
2741
|
+
this._config.reuseRedirectedURL && u.redirectedURL != null && (h = u.redirectedURL);
|
|
2742
|
+
var P = this._seekHandler.getConfig(h, _);
|
|
2741
2743
|
this._requestURL = P.url;
|
|
2742
2744
|
var D = this._xhr = new XMLHttpRequest();
|
|
2743
2745
|
if (D.open("GET", P.url, !0), D.responseType = "moz-chunked-arraybuffer", D.onreadystatechange = this._onReadyStateChange.bind(this), D.onprogress = this._onProgress.bind(this), D.onloadend = this._onLoadEnd.bind(this), D.onerror = this._onXhrError.bind(this), u.withCredentials && (D.withCredentials = !0), typeof P.headers == "object") {
|
|
2744
|
-
var
|
|
2745
|
-
for (var ee in
|
|
2746
|
+
var V = P.headers;
|
|
2747
|
+
for (var ee in V) V.hasOwnProperty(ee) && D.setRequestHeader(ee, V[ee]);
|
|
2746
2748
|
}
|
|
2747
2749
|
if (typeof this._config.headers == "object") {
|
|
2748
|
-
|
|
2749
|
-
for (var ee in
|
|
2750
|
+
V = this._config.headers;
|
|
2751
|
+
for (var ee in V) V.hasOwnProperty(ee) && D.setRequestHeader(ee, V[ee]);
|
|
2750
2752
|
}
|
|
2751
2753
|
this._status = b.c.kConnecting, D.send();
|
|
2752
2754
|
}, l.prototype.abort = function() {
|
|
@@ -2755,8 +2757,8 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2755
2757
|
var _ = u.target;
|
|
2756
2758
|
if (_.readyState === 2) {
|
|
2757
2759
|
if (_.responseURL != null && _.responseURL !== this._requestURL && this._onURLRedirect) {
|
|
2758
|
-
var
|
|
2759
|
-
this._onURLRedirect(
|
|
2760
|
+
var h = this._seekHandler.removeURLParameters(_.responseURL);
|
|
2761
|
+
this._onURLRedirect(h);
|
|
2760
2762
|
}
|
|
2761
2763
|
if (_.status !== 0 && (_.status < 200 || _.status > 299)) {
|
|
2762
2764
|
if (this._status = b.c.kError, !this._onError) throw new f.d("MozChunkedLoader: Http code invalid, " + _.status + " " + _.statusText);
|
|
@@ -2766,23 +2768,23 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2766
2768
|
}, l.prototype._onProgress = function(u) {
|
|
2767
2769
|
if (this._status !== b.c.kError) {
|
|
2768
2770
|
this._contentLength === null && u.total !== null && u.total !== 0 && (this._contentLength = u.total, this._onContentLengthKnown && this._onContentLengthKnown(this._contentLength));
|
|
2769
|
-
var _ = u.target.response,
|
|
2770
|
-
this._receivedLength += _.byteLength, this._onDataArrival && this._onDataArrival(_,
|
|
2771
|
+
var _ = u.target.response, h = this._range.from + this._receivedLength;
|
|
2772
|
+
this._receivedLength += _.byteLength, this._onDataArrival && this._onDataArrival(_, h, this._receivedLength);
|
|
2771
2773
|
}
|
|
2772
2774
|
}, l.prototype._onLoadEnd = function(u) {
|
|
2773
2775
|
this._requestAbort !== !0 ? this._status !== b.c.kError && (this._status = b.c.kComplete, this._onComplete && this._onComplete(this._range.from, this._range.from + this._receivedLength - 1)) : this._requestAbort = !1;
|
|
2774
2776
|
}, l.prototype._onXhrError = function(u) {
|
|
2775
2777
|
this._status = b.c.kError;
|
|
2776
|
-
var _ = 0,
|
|
2777
|
-
if (this._contentLength && u.loaded < this._contentLength ? (_ = b.b.EARLY_EOF,
|
|
2778
|
-
this._onError(_,
|
|
2778
|
+
var _ = 0, h = null;
|
|
2779
|
+
if (this._contentLength && u.loaded < this._contentLength ? (_ = b.b.EARLY_EOF, h = { code: -1, msg: "Moz-Chunked stream meet Early-Eof" }) : (_ = b.b.EXCEPTION, h = { code: -1, msg: u.constructor.name + " " + u.type }), !this._onError) throw new f.d(h.msg);
|
|
2780
|
+
this._onError(_, h);
|
|
2779
2781
|
}, l;
|
|
2780
2782
|
}(b.a), H = /* @__PURE__ */ function() {
|
|
2781
2783
|
var T = function(l, u) {
|
|
2782
|
-
return (T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_,
|
|
2783
|
-
_.__proto__ =
|
|
2784
|
-
} || function(_,
|
|
2785
|
-
for (var P in
|
|
2784
|
+
return (T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, h) {
|
|
2785
|
+
_.__proto__ = h;
|
|
2786
|
+
} || function(_, h) {
|
|
2787
|
+
for (var P in h) h.hasOwnProperty(P) && (_[P] = h[P]);
|
|
2786
2788
|
})(l, u);
|
|
2787
2789
|
};
|
|
2788
2790
|
return function(l, u) {
|
|
@@ -2791,10 +2793,10 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2791
2793
|
}
|
|
2792
2794
|
T(l, u), l.prototype = u === null ? Object.create(u) : (_.prototype = u.prototype, new _());
|
|
2793
2795
|
};
|
|
2794
|
-
}(),
|
|
2796
|
+
}(), le = function(T) {
|
|
2795
2797
|
function l(u, _) {
|
|
2796
|
-
var
|
|
2797
|
-
return
|
|
2798
|
+
var h = T.call(this, "xhr-range-loader") || this;
|
|
2799
|
+
return h.TAG = "RangeLoader", h._seekHandler = u, h._config = _, h._needStash = !1, h._chunkSizeKBList = [128, 256, 384, 512, 768, 1024, 1536, 2048, 3072, 4096, 5120, 6144, 7168, 8192], h._currentChunkSizeKB = 384, h._currentSpeedNormalized = 0, h._zeroSpeedChunkCount = 0, h._xhr = null, h._speedSampler = new m(), h._requestAbort = !1, h._waitForTotalLength = !1, h._totalLengthReceived = !1, h._currentRequestURL = null, h._currentRedirectedURL = null, h._currentRequestRange = null, h._totalLength = null, h._contentLength = null, h._receivedLength = 0, h._lastTimeLoaded = 0, h;
|
|
2798
2800
|
}
|
|
2799
2801
|
return H(l, T), l.isSupported = function() {
|
|
2800
2802
|
try {
|
|
@@ -2809,25 +2811,25 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2809
2811
|
return this._speedSampler.lastSecondKBps;
|
|
2810
2812
|
}, enumerable: !1, configurable: !0 }), l.prototype.open = function(u, _) {
|
|
2811
2813
|
this._dataSource = u, this._range = _, this._status = b.c.kConnecting;
|
|
2812
|
-
var
|
|
2813
|
-
this._dataSource.filesize != null && this._dataSource.filesize !== 0 && (
|
|
2814
|
+
var h = !1;
|
|
2815
|
+
this._dataSource.filesize != null && this._dataSource.filesize !== 0 && (h = !0, this._totalLength = this._dataSource.filesize), this._totalLengthReceived || h ? this._openSubRange() : (this._waitForTotalLength = !0, this._internalOpen(this._dataSource, { from: 0, to: -1 }));
|
|
2814
2816
|
}, l.prototype._openSubRange = function() {
|
|
2815
|
-
var u = 1024 * this._currentChunkSizeKB, _ = this._range.from + this._receivedLength,
|
|
2816
|
-
this._contentLength != null &&
|
|
2817
|
+
var u = 1024 * this._currentChunkSizeKB, _ = this._range.from + this._receivedLength, h = _ + u;
|
|
2818
|
+
this._contentLength != null && h - this._range.from >= this._contentLength && (h = this._range.from + this._contentLength - 1), this._currentRequestRange = { from: _, to: h }, this._internalOpen(this._dataSource, this._currentRequestRange);
|
|
2817
2819
|
}, l.prototype._internalOpen = function(u, _) {
|
|
2818
2820
|
this._lastTimeLoaded = 0;
|
|
2819
|
-
var
|
|
2820
|
-
this._config.reuseRedirectedURL && (this._currentRedirectedURL != null ?
|
|
2821
|
-
var P = this._seekHandler.getConfig(
|
|
2821
|
+
var h = u.url;
|
|
2822
|
+
this._config.reuseRedirectedURL && (this._currentRedirectedURL != null ? h = this._currentRedirectedURL : u.redirectedURL != null && (h = u.redirectedURL));
|
|
2823
|
+
var P = this._seekHandler.getConfig(h, _);
|
|
2822
2824
|
this._currentRequestURL = P.url;
|
|
2823
2825
|
var D = this._xhr = new XMLHttpRequest();
|
|
2824
2826
|
if (D.open("GET", P.url, !0), D.responseType = "arraybuffer", D.onreadystatechange = this._onReadyStateChange.bind(this), D.onprogress = this._onProgress.bind(this), D.onload = this._onLoad.bind(this), D.onerror = this._onXhrError.bind(this), u.withCredentials && (D.withCredentials = !0), typeof P.headers == "object") {
|
|
2825
|
-
var
|
|
2826
|
-
for (var ee in
|
|
2827
|
+
var V = P.headers;
|
|
2828
|
+
for (var ee in V) V.hasOwnProperty(ee) && D.setRequestHeader(ee, V[ee]);
|
|
2827
2829
|
}
|
|
2828
2830
|
if (typeof this._config.headers == "object") {
|
|
2829
|
-
|
|
2830
|
-
for (var ee in
|
|
2831
|
+
V = this._config.headers;
|
|
2832
|
+
for (var ee in V) V.hasOwnProperty(ee) && D.setRequestHeader(ee, V[ee]);
|
|
2831
2833
|
}
|
|
2832
2834
|
D.send();
|
|
2833
2835
|
}, l.prototype.abort = function() {
|
|
@@ -2838,8 +2840,8 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2838
2840
|
var _ = u.target;
|
|
2839
2841
|
if (_.readyState === 2) {
|
|
2840
2842
|
if (_.responseURL != null) {
|
|
2841
|
-
var
|
|
2842
|
-
_.responseURL !== this._currentRequestURL &&
|
|
2843
|
+
var h = this._seekHandler.removeURLParameters(_.responseURL);
|
|
2844
|
+
_.responseURL !== this._currentRequestURL && h !== this._currentRedirectedURL && (this._currentRedirectedURL = h, this._onURLRedirect && this._onURLRedirect(h));
|
|
2843
2845
|
}
|
|
2844
2846
|
if (_.status >= 200 && _.status <= 299) {
|
|
2845
2847
|
if (this._waitForTotalLength) return;
|
|
@@ -2855,8 +2857,8 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2855
2857
|
var _ = !1;
|
|
2856
2858
|
if (this._waitForTotalLength) {
|
|
2857
2859
|
this._waitForTotalLength = !1, this._totalLengthReceived = !0, _ = !0;
|
|
2858
|
-
var
|
|
2859
|
-
this._internalAbort(),
|
|
2860
|
+
var h = u.total;
|
|
2861
|
+
this._internalAbort(), h != null & h !== 0 && (this._totalLength = h);
|
|
2860
2862
|
}
|
|
2861
2863
|
if (this._range.to === -1 ? this._contentLength = this._totalLength - this._range.from : this._contentLength = this._range.to - this._range.from + 1, _) return void this._openSubRange();
|
|
2862
2864
|
this._onContentLengthKnown && this._onContentLengthKnown(this._contentLength);
|
|
@@ -2865,11 +2867,11 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2865
2867
|
this._lastTimeLoaded = u.loaded, this._speedSampler.addBytes(P);
|
|
2866
2868
|
}
|
|
2867
2869
|
}, l.prototype._normalizeSpeed = function(u) {
|
|
2868
|
-
var _ = this._chunkSizeKBList,
|
|
2870
|
+
var _ = this._chunkSizeKBList, h = _.length - 1, P = 0, D = 0, V = h;
|
|
2869
2871
|
if (u < _[0]) return _[0];
|
|
2870
|
-
for (; D <=
|
|
2871
|
-
if ((P = D + Math.floor((
|
|
2872
|
-
_[P] < u ? D = P + 1 :
|
|
2872
|
+
for (; D <= V; ) {
|
|
2873
|
+
if ((P = D + Math.floor((V - D) / 2)) === h || u >= _[P] && u < _[P + 1]) return _[P];
|
|
2874
|
+
_[P] < u ? D = P + 1 : V = P - 1;
|
|
2873
2875
|
}
|
|
2874
2876
|
}, l.prototype._onLoad = function(u) {
|
|
2875
2877
|
if (this._status !== b.c.kError) if (this._waitForTotalLength) this._waitForTotalLength = !1;
|
|
@@ -2877,26 +2879,26 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2877
2879
|
this._lastTimeLoaded = 0;
|
|
2878
2880
|
var _ = this._speedSampler.lastSecondKBps;
|
|
2879
2881
|
if (_ === 0 && (this._zeroSpeedChunkCount++, this._zeroSpeedChunkCount >= 3 && (_ = this._speedSampler.currentKBps)), _ !== 0) {
|
|
2880
|
-
var
|
|
2881
|
-
this._currentSpeedNormalized !==
|
|
2882
|
+
var h = this._normalizeSpeed(_);
|
|
2883
|
+
this._currentSpeedNormalized !== h && (this._currentSpeedNormalized = h, this._currentChunkSizeKB = h);
|
|
2882
2884
|
}
|
|
2883
2885
|
var P = u.target.response, D = this._range.from + this._receivedLength;
|
|
2884
2886
|
this._receivedLength += P.byteLength;
|
|
2885
|
-
var
|
|
2886
|
-
this._contentLength != null && this._receivedLength < this._contentLength ? this._openSubRange() :
|
|
2887
|
+
var V = !1;
|
|
2888
|
+
this._contentLength != null && this._receivedLength < this._contentLength ? this._openSubRange() : V = !0, this._onDataArrival && this._onDataArrival(P, D, this._receivedLength), V && (this._status = b.c.kComplete, this._onComplete && this._onComplete(this._range.from, this._range.from + this._receivedLength - 1));
|
|
2887
2889
|
}
|
|
2888
2890
|
}, l.prototype._onXhrError = function(u) {
|
|
2889
2891
|
this._status = b.c.kError;
|
|
2890
|
-
var _ = 0,
|
|
2891
|
-
if (this._contentLength && this._receivedLength > 0 && this._receivedLength < this._contentLength ? (_ = b.b.EARLY_EOF,
|
|
2892
|
-
this._onError(_,
|
|
2892
|
+
var _ = 0, h = null;
|
|
2893
|
+
if (this._contentLength && this._receivedLength > 0 && this._receivedLength < this._contentLength ? (_ = b.b.EARLY_EOF, h = { code: -1, msg: "RangeLoader meet Early-Eof" }) : (_ = b.b.EXCEPTION, h = { code: -1, msg: u.constructor.name + " " + u.type }), !this._onError) throw new f.d(h.msg);
|
|
2894
|
+
this._onError(_, h);
|
|
2893
2895
|
}, l;
|
|
2894
|
-
}(b.a),
|
|
2896
|
+
}(b.a), ne = /* @__PURE__ */ function() {
|
|
2895
2897
|
var T = function(l, u) {
|
|
2896
|
-
return (T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_,
|
|
2897
|
-
_.__proto__ =
|
|
2898
|
-
} || function(_,
|
|
2899
|
-
for (var P in
|
|
2898
|
+
return (T = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, h) {
|
|
2899
|
+
_.__proto__ = h;
|
|
2900
|
+
} || function(_, h) {
|
|
2901
|
+
for (var P in h) h.hasOwnProperty(P) && (_[P] = h[P]);
|
|
2900
2902
|
})(l, u);
|
|
2901
2903
|
};
|
|
2902
2904
|
return function(l, u) {
|
|
@@ -2905,12 +2907,12 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2905
2907
|
}
|
|
2906
2908
|
T(l, u), l.prototype = u === null ? Object.create(u) : (_.prototype = u.prototype, new _());
|
|
2907
2909
|
};
|
|
2908
|
-
}(),
|
|
2910
|
+
}(), X = function(T) {
|
|
2909
2911
|
function l() {
|
|
2910
2912
|
var u = T.call(this, "websocket-loader") || this;
|
|
2911
2913
|
return u.TAG = "WebSocketLoader", u._needStash = !0, u._ws = null, u._requestAbort = !1, u._receivedLength = 0, u;
|
|
2912
2914
|
}
|
|
2913
|
-
return
|
|
2915
|
+
return ne(l, T), l.isSupported = function() {
|
|
2914
2916
|
try {
|
|
2915
2917
|
return self.WebSocket !== void 0;
|
|
2916
2918
|
} catch {
|
|
@@ -2924,9 +2926,9 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2924
2926
|
_.binaryType = "arraybuffer", _.onopen = this._onWebSocketOpen.bind(this), _.onclose = this._onWebSocketClose.bind(this), _.onmessage = this._onWebSocketMessage.bind(this), _.onerror = this._onWebSocketError.bind(this), this._status = b.c.kConnecting;
|
|
2925
2927
|
} catch (P) {
|
|
2926
2928
|
this._status = b.c.kError;
|
|
2927
|
-
var
|
|
2928
|
-
if (!this._onError) throw new f.d(
|
|
2929
|
-
this._onError(b.b.EXCEPTION,
|
|
2929
|
+
var h = { code: P.code, msg: P.message };
|
|
2930
|
+
if (!this._onError) throw new f.d(h.msg);
|
|
2931
|
+
this._onError(b.b.EXCEPTION, h);
|
|
2930
2932
|
}
|
|
2931
2933
|
}, l.prototype.abort = function() {
|
|
2932
2934
|
var u = this._ws;
|
|
@@ -2939,10 +2941,10 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2939
2941
|
var _ = this;
|
|
2940
2942
|
if (u.data instanceof ArrayBuffer) this._dispatchArrayBuffer(u.data);
|
|
2941
2943
|
else if (u.data instanceof Blob) {
|
|
2942
|
-
var
|
|
2943
|
-
|
|
2944
|
-
_._dispatchArrayBuffer(
|
|
2945
|
-
},
|
|
2944
|
+
var h = new FileReader();
|
|
2945
|
+
h.onload = function() {
|
|
2946
|
+
_._dispatchArrayBuffer(h.result);
|
|
2947
|
+
}, h.readAsArrayBuffer(u.data);
|
|
2946
2948
|
} else {
|
|
2947
2949
|
this._status = b.c.kError;
|
|
2948
2950
|
var P = { code: -1, msg: "Unsupported WebSocket message type: " + u.data.constructor.name };
|
|
@@ -2950,23 +2952,23 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2950
2952
|
this._onError(b.b.EXCEPTION, P);
|
|
2951
2953
|
}
|
|
2952
2954
|
}, l.prototype._dispatchArrayBuffer = function(u) {
|
|
2953
|
-
var _ = u,
|
|
2954
|
-
this._receivedLength += _.byteLength, this._onDataArrival && this._onDataArrival(_,
|
|
2955
|
+
var _ = u, h = this._receivedLength;
|
|
2956
|
+
this._receivedLength += _.byteLength, this._onDataArrival && this._onDataArrival(_, h, this._receivedLength);
|
|
2955
2957
|
}, l.prototype._onWebSocketError = function(u) {
|
|
2956
2958
|
this._status = b.c.kError;
|
|
2957
2959
|
var _ = { code: u.code, msg: u.message };
|
|
2958
2960
|
if (!this._onError) throw new f.d(_.msg);
|
|
2959
2961
|
this._onError(b.b.EXCEPTION, _);
|
|
2960
2962
|
}, l;
|
|
2961
|
-
}(b.a),
|
|
2963
|
+
}(b.a), ie = function() {
|
|
2962
2964
|
function T(l) {
|
|
2963
2965
|
this._zeroStart = l || !1;
|
|
2964
2966
|
}
|
|
2965
2967
|
return T.prototype.getConfig = function(l, u) {
|
|
2966
2968
|
var _ = {};
|
|
2967
2969
|
if (u.from !== 0 || u.to !== -1) {
|
|
2968
|
-
var
|
|
2969
|
-
|
|
2970
|
+
var h = void 0;
|
|
2971
|
+
h = u.to !== -1 ? "bytes=" + u.from.toString() + "-" + u.to.toString() : "bytes=" + u.from.toString() + "-", _.Range = h;
|
|
2970
2972
|
} else this._zeroStart && (_.Range = "bytes=0-");
|
|
2971
2973
|
return { url: l, headers: _ };
|
|
2972
2974
|
}, T.prototype.removeURLParameters = function(l) {
|
|
@@ -2979,17 +2981,17 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
2979
2981
|
return T.prototype.getConfig = function(l, u) {
|
|
2980
2982
|
var _ = l;
|
|
2981
2983
|
if (u.from !== 0 || u.to !== -1) {
|
|
2982
|
-
var
|
|
2983
|
-
_.indexOf("?") === -1 && (_ += "?",
|
|
2984
|
+
var h = !0;
|
|
2985
|
+
_.indexOf("?") === -1 && (_ += "?", h = !1), h && (_ += "&"), _ += this._startName + "=" + u.from.toString(), u.to !== -1 && (_ += "&" + this._endName + "=" + u.to.toString());
|
|
2984
2986
|
}
|
|
2985
2987
|
return { url: _, headers: {} };
|
|
2986
2988
|
}, T.prototype.removeURLParameters = function(l) {
|
|
2987
|
-
var u = l.split("?")[0], _ = void 0,
|
|
2988
|
-
|
|
2989
|
+
var u = l.split("?")[0], _ = void 0, h = l.indexOf("?");
|
|
2990
|
+
h !== -1 && (_ = l.substring(h + 1));
|
|
2989
2991
|
var P = "";
|
|
2990
|
-
if (_ != null && _.length > 0) for (var D = _.split("&"),
|
|
2991
|
-
var ee = D[
|
|
2992
|
-
ee[0] !== this._startName && ee[0] !== this._endName && (pe && (P += "&"), P += D[
|
|
2992
|
+
if (_ != null && _.length > 0) for (var D = _.split("&"), V = 0; V < D.length; V++) {
|
|
2993
|
+
var ee = D[V].split("="), pe = V > 0;
|
|
2994
|
+
ee[0] !== this._startName && ee[0] !== this._endName && (pe && (P += "&"), P += D[V]);
|
|
2993
2995
|
}
|
|
2994
2996
|
return P.length === 0 ? u : u + "?" + P;
|
|
2995
2997
|
}, T;
|
|
@@ -3040,12 +3042,12 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3040
3042
|
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "currentRedirectedURL", { get: function() {
|
|
3041
3043
|
return this._redirectedURL || this._dataSource.redirectedURL;
|
|
3042
3044
|
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "currentSpeed", { get: function() {
|
|
3043
|
-
return this._loaderClass ===
|
|
3045
|
+
return this._loaderClass === le ? this._loader.currentSpeed : this._speedSampler.lastSecondKBps;
|
|
3044
3046
|
}, enumerable: !1, configurable: !0 }), Object.defineProperty(T.prototype, "loaderType", { get: function() {
|
|
3045
3047
|
return this._loader.type;
|
|
3046
3048
|
}, enumerable: !1, configurable: !0 }), T.prototype._selectSeekHandler = function() {
|
|
3047
3049
|
var l = this._config;
|
|
3048
|
-
if (l.seekType === "range") this._seekHandler = new
|
|
3050
|
+
if (l.seekType === "range") this._seekHandler = new ie(this._config.rangeLoadZeroStart);
|
|
3049
3051
|
else if (l.seekType === "param") {
|
|
3050
3052
|
var u = l.seekParamStart || "bstart", _ = l.seekParamEnd || "bend";
|
|
3051
3053
|
this._seekHandler = new y(u, _);
|
|
@@ -3056,12 +3058,12 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3056
3058
|
}
|
|
3057
3059
|
}, T.prototype._selectLoader = function() {
|
|
3058
3060
|
if (this._config.customLoader != null) this._loaderClass = this._config.customLoader;
|
|
3059
|
-
else if (this._isWebSocketURL) this._loaderClass =
|
|
3060
|
-
else if (
|
|
3061
|
-
else if (
|
|
3061
|
+
else if (this._isWebSocketURL) this._loaderClass = X;
|
|
3062
|
+
else if (M.isSupported()) this._loaderClass = M;
|
|
3063
|
+
else if (j.isSupported()) this._loaderClass = j;
|
|
3062
3064
|
else {
|
|
3063
|
-
if (!
|
|
3064
|
-
this._loaderClass =
|
|
3065
|
+
if (!le.isSupported()) throw new f.d("Your browser doesn't support xhr with arraybuffer responseType!");
|
|
3066
|
+
this._loaderClass = le;
|
|
3065
3067
|
}
|
|
3066
3068
|
}, T.prototype._createLoader = function() {
|
|
3067
3069
|
this._loader = new this._loaderClass(this._seekHandler, this._config), this._loader.needStashBuffer === !1 && (this._enableStash = !1), this._loader.onContentLengthKnown = this._onContentLengthKnown.bind(this), this._loader.onURLRedirect = this._onURLRedirect.bind(this), this._loader.onDataArrival = this._onLoaderChunkArrival.bind(this), this._loader.onComplete = this._onLoaderComplete.bind(this), this._loader.onError = this._onLoaderError.bind(this);
|
|
@@ -3091,17 +3093,17 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3091
3093
|
if ((u += 1048576) !== this._bufferSize) {
|
|
3092
3094
|
var _ = new ArrayBuffer(u);
|
|
3093
3095
|
if (this._stashUsed > 0) {
|
|
3094
|
-
var
|
|
3095
|
-
new Uint8Array(_, 0, u).set(
|
|
3096
|
+
var h = new Uint8Array(this._stashBuffer, 0, this._stashUsed);
|
|
3097
|
+
new Uint8Array(_, 0, u).set(h, 0);
|
|
3096
3098
|
}
|
|
3097
3099
|
this._stashBuffer = _, this._bufferSize = u;
|
|
3098
3100
|
}
|
|
3099
3101
|
}, T.prototype._normalizeSpeed = function(l) {
|
|
3100
|
-
var u = this._speedNormalizeList, _ = u.length - 1,
|
|
3102
|
+
var u = this._speedNormalizeList, _ = u.length - 1, h = 0, P = 0, D = _;
|
|
3101
3103
|
if (l < u[0]) return u[0];
|
|
3102
3104
|
for (; P <= D; ) {
|
|
3103
|
-
if ((
|
|
3104
|
-
u[
|
|
3105
|
+
if ((h = P + Math.floor((D - P) / 2)) === _ || l >= u[h] && l < u[h + 1]) return u[h];
|
|
3106
|
+
u[h] < l ? P = h + 1 : D = h - 1;
|
|
3105
3107
|
}
|
|
3106
3108
|
}, T.prototype._adjustStashSize = function(l) {
|
|
3107
3109
|
var u = 0;
|
|
@@ -3118,9 +3120,9 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3118
3120
|
if (!this._onDataArrival) throw new f.a("IOController: No existing consumer (onDataArrival) callback!");
|
|
3119
3121
|
if (!this._paused) {
|
|
3120
3122
|
this._isEarlyEofReconnecting && (this._isEarlyEofReconnecting = !1, this._onRecoveredEarlyEof && this._onRecoveredEarlyEof()), this._speedSampler.addBytes(l.byteLength);
|
|
3121
|
-
var
|
|
3122
|
-
if (
|
|
3123
|
-
var P = this._normalizeSpeed(
|
|
3123
|
+
var h = this._speedSampler.lastSecondKBps;
|
|
3124
|
+
if (h !== 0) {
|
|
3125
|
+
var P = this._normalizeSpeed(h);
|
|
3124
3126
|
this._speedNormalized !== P && (this._speedNormalized = P, this._adjustStashSize(P));
|
|
3125
3127
|
}
|
|
3126
3128
|
if (this._enableStash) if (this._stashUsed === 0 && this._stashByteStart === 0 && (this._stashByteStart = u), this._stashUsed + l.byteLength <= this._stashSize)
|
|
@@ -3129,10 +3131,10 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3129
3131
|
var D = this._stashBuffer.slice(0, this._stashUsed);
|
|
3130
3132
|
(pe = this._dispatchChunks(D, this._stashByteStart)) < D.byteLength ? pe > 0 && (ve = new Uint8Array(D, pe), ee.set(ve, 0), this._stashUsed = ve.byteLength, this._stashByteStart += pe) : (this._stashUsed = 0, this._stashByteStart += pe), this._stashUsed + l.byteLength > this._bufferSize && (this._expandBuffer(this._stashUsed + l.byteLength), ee = new Uint8Array(this._stashBuffer, 0, this._bufferSize)), ee.set(new Uint8Array(l), this._stashUsed), this._stashUsed += l.byteLength;
|
|
3131
3133
|
} else
|
|
3132
|
-
(pe = this._dispatchChunks(l, u)) < l.byteLength && ((
|
|
3134
|
+
(pe = this._dispatchChunks(l, u)) < l.byteLength && ((V = l.byteLength - pe) > this._bufferSize && (this._expandBuffer(V), ee = new Uint8Array(this._stashBuffer, 0, this._bufferSize)), ee.set(new Uint8Array(l, pe), 0), this._stashUsed += V, this._stashByteStart = u + pe);
|
|
3133
3135
|
else if (this._stashUsed === 0) {
|
|
3134
|
-
var
|
|
3135
|
-
(pe = this._dispatchChunks(l, u)) < l.byteLength && ((
|
|
3136
|
+
var V;
|
|
3137
|
+
(pe = this._dispatchChunks(l, u)) < l.byteLength && ((V = l.byteLength - pe) > this._bufferSize && this._expandBuffer(V), (ee = new Uint8Array(this._stashBuffer, 0, this._bufferSize)).set(new Uint8Array(l, pe), 0), this._stashUsed += V, this._stashByteStart = u + pe);
|
|
3136
3138
|
} else {
|
|
3137
3139
|
var ee, pe;
|
|
3138
3140
|
if (this._stashUsed + l.byteLength > this._bufferSize && this._expandBuffer(this._stashUsed + l.byteLength), (ee = new Uint8Array(this._stashBuffer, 0, this._bufferSize)).set(new Uint8Array(l), this._stashUsed), this._stashUsed += l.byteLength, (pe = this._dispatchChunks(this._stashBuffer.slice(0, this._stashUsed), this._stashByteStart)) < this._stashUsed && pe > 0) {
|
|
@@ -3144,7 +3146,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3144
3146
|
}
|
|
3145
3147
|
}, T.prototype._flushStashBuffer = function(l) {
|
|
3146
3148
|
if (this._stashUsed > 0) {
|
|
3147
|
-
var u = this._stashBuffer.slice(0, this._stashUsed), _ = this._dispatchChunks(u, this._stashByteStart),
|
|
3149
|
+
var u = this._stashBuffer.slice(0, this._stashUsed), _ = this._dispatchChunks(u, this._stashByteStart), h = u.byteLength - _;
|
|
3148
3150
|
if (_ < u.byteLength) {
|
|
3149
3151
|
if (!l) {
|
|
3150
3152
|
if (_ > 0) {
|
|
@@ -3153,9 +3155,9 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3153
3155
|
}
|
|
3154
3156
|
return 0;
|
|
3155
3157
|
}
|
|
3156
|
-
B.a.w(this.TAG,
|
|
3158
|
+
B.a.w(this.TAG, h + " bytes unconsumed data remain when flush buffer, dropped");
|
|
3157
3159
|
}
|
|
3158
|
-
return this._stashUsed = 0, this._stashByteStart = 0,
|
|
3160
|
+
return this._stashUsed = 0, this._stashByteStart = 0, h;
|
|
3159
3161
|
}
|
|
3160
3162
|
return 0;
|
|
3161
3163
|
}, T.prototype._onLoaderComplete = function(l, u) {
|
|
@@ -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,77 +3202,77 @@ 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
|
-
var
|
|
3206
|
-
return v[C].call(
|
|
3207
|
+
var j = f[C] = { i: C, l: !1, 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
|
-
},
|
|
3215
|
-
var
|
|
3216
|
+
}, k.n = function(C) {
|
|
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 Object.prototype.hasOwnProperty.call(C,
|
|
3223
|
-
},
|
|
3224
|
-
throw C;
|
|
3222
|
+
return k.d(j, "a", j), j;
|
|
3223
|
+
}, k.o = function(C, j) {
|
|
3224
|
+
return Object.prototype.hasOwnProperty.call(C, j);
|
|
3225
|
+
}, k.p = "/", k.oe = function(C) {
|
|
3226
|
+
throw console.error(C), C;
|
|
3225
3227
|
};
|
|
3226
|
-
var
|
|
3227
|
-
return
|
|
3228
|
+
var M = k(k.s = ENTRY_MODULE);
|
|
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,
|
|
3233
|
-
var
|
|
3234
|
-
|
|
3235
|
-
var C = f.toString(),
|
|
3236
|
-
if (!
|
|
3237
|
-
for (var H,
|
|
3238
|
-
for (
|
|
3239
|
-
for (var
|
|
3240
|
-
return
|
|
3234
|
+
function m(v, f, k) {
|
|
3235
|
+
var M = {};
|
|
3236
|
+
M[k] = [];
|
|
3237
|
+
var C = f.toString(), j = C.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);
|
|
3238
|
+
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[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]);
|
|
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]);
|
|
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
|
|
3250
|
-
for (var
|
|
3251
|
-
var u = T[l], _ =
|
|
3252
|
-
if (G[u] = G[u] || {}, !G[u][_] &&
|
|
3251
|
+
var k = { main: O.m }, M = f.all ? { main: Object.keys(k.main) } : function(ne, X) {
|
|
3252
|
+
for (var ie = { main: [X] }, y = { main: [] }, G = { main: {} }; b(ie); ) for (var T = Object.keys(ie), l = 0; l < T.length; l++) {
|
|
3253
|
+
var u = T[l], _ = ie[u].pop();
|
|
3254
|
+
if (G[u] = G[u] || {}, !G[u][_] && ne[u][_]) {
|
|
3253
3255
|
G[u][_] = !0, y[u] = y[u] || [], y[u].push(_);
|
|
3254
|
-
for (var
|
|
3256
|
+
for (var h = m(ne, ne[u][_], u), P = Object.keys(h), D = 0; D < P.length; D++) ie[P[D]] = ie[P[D]] || [], ie[P[D]] = ie[P[D]].concat(h[P[D]]);
|
|
3255
3257
|
}
|
|
3256
3258
|
}
|
|
3257
3259
|
return y;
|
|
3258
|
-
}(
|
|
3259
|
-
Object.keys(
|
|
3260
|
-
return
|
|
3261
|
-
}).forEach(function(
|
|
3262
|
-
for (var
|
|
3263
|
-
|
|
3264
|
-
return JSON.stringify(
|
|
3260
|
+
}(k, v), C = "";
|
|
3261
|
+
Object.keys(M).filter(function(ne) {
|
|
3262
|
+
return ne !== "main";
|
|
3263
|
+
}).forEach(function(ne) {
|
|
3264
|
+
for (var X = 0; M[ne][X]; ) X++;
|
|
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
|
-
}), C = C + "new ((" + U.toString().replace("ENTRY_MODULE", JSON.stringify(v)) + ")({" +
|
|
3268
|
-
return JSON.stringify(
|
|
3269
|
+
}), C = C + "new ((" + U.toString().replace("ENTRY_MODULE", JSON.stringify(v)) + ")({" + M.main.map(function(ne) {
|
|
3270
|
+
return JSON.stringify(ne) + ": " + k.main[ne].toString();
|
|
3269
3271
|
}).join(",") + "}))(self);";
|
|
3270
|
-
var
|
|
3271
|
-
if (f.bare) return
|
|
3272
|
-
var H = (window.URL || window.webkitURL || window.mozURL || window.msURL).createObjectURL(
|
|
3273
|
-
return
|
|
3272
|
+
var j = new window.Blob([C], { type: "text/javascript" });
|
|
3273
|
+
if (f.bare) return j;
|
|
3274
|
+
var H = (window.URL || window.webkitURL || window.mozURL || window.msURL).createObjectURL(j), le = new window.Worker(H);
|
|
3275
|
+
return le.objectURL = H, le;
|
|
3274
3276
|
};
|
|
3275
3277
|
}, function(fe, Z, O) {
|
|
3276
3278
|
fe.exports = O(19).default;
|
|
@@ -3285,70 +3287,70 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3285
3287
|
*/
|
|
3286
3288
|
var m;
|
|
3287
3289
|
m = function() {
|
|
3288
|
-
function b(
|
|
3289
|
-
return typeof
|
|
3290
|
-
}
|
|
3291
|
-
var v = Array.isArray ? Array.isArray : function(
|
|
3292
|
-
return Object.prototype.toString.call(
|
|
3293
|
-
}, f = 0,
|
|
3294
|
-
y[f] =
|
|
3295
|
-
},
|
|
3296
|
-
function
|
|
3297
|
-
var
|
|
3290
|
+
function b(x) {
|
|
3291
|
+
return typeof x == "function";
|
|
3292
|
+
}
|
|
3293
|
+
var v = Array.isArray ? Array.isArray : function(x) {
|
|
3294
|
+
return Object.prototype.toString.call(x) === "[object Array]";
|
|
3295
|
+
}, f = 0, k = void 0, M = void 0, C = function(x, F) {
|
|
3296
|
+
y[f] = x, y[f + 1] = F, (f += 2) === 2 && (M ? M(G) : h());
|
|
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";
|
|
3298
|
+
function ie() {
|
|
3299
|
+
var x = setTimeout;
|
|
3298
3300
|
return function() {
|
|
3299
|
-
return
|
|
3301
|
+
return x(G, 1);
|
|
3300
3302
|
};
|
|
3301
3303
|
}
|
|
3302
3304
|
var y = new Array(1e3);
|
|
3303
3305
|
function G() {
|
|
3304
|
-
for (var
|
|
3306
|
+
for (var x = 0; x < f; x += 2) (0, y[x])(y[x + 1]), y[x] = void 0, y[x + 1] = void 0;
|
|
3305
3307
|
f = 0;
|
|
3306
3308
|
}
|
|
3307
|
-
var T, l, u, _,
|
|
3308
|
-
function P(
|
|
3309
|
-
var $ = this,
|
|
3310
|
-
|
|
3311
|
-
var
|
|
3312
|
-
if (
|
|
3313
|
-
var ce = arguments[
|
|
3309
|
+
var T, l, u, _, h = void 0;
|
|
3310
|
+
function P(x, F) {
|
|
3311
|
+
var $ = this, re = new this.constructor(ee);
|
|
3312
|
+
re[V] === void 0 && Se(re);
|
|
3313
|
+
var ae = $._state;
|
|
3314
|
+
if (ae) {
|
|
3315
|
+
var ce = arguments[ae - 1];
|
|
3314
3316
|
C(function() {
|
|
3315
|
-
return oe(
|
|
3317
|
+
return oe(ae, re, ce, $._result);
|
|
3316
3318
|
});
|
|
3317
|
-
} else R($,
|
|
3318
|
-
return
|
|
3319
|
+
} else R($, re, x, F);
|
|
3320
|
+
return re;
|
|
3319
3321
|
}
|
|
3320
|
-
function D(
|
|
3321
|
-
if (
|
|
3322
|
-
var
|
|
3323
|
-
return ve(
|
|
3322
|
+
function D(x) {
|
|
3323
|
+
if (x && typeof x == "object" && x.constructor === this) return x;
|
|
3324
|
+
var F = new this(ee);
|
|
3325
|
+
return ve(F, x), F;
|
|
3324
3326
|
}
|
|
3325
|
-
|
|
3327
|
+
ne ? h = function() {
|
|
3326
3328
|
return U.nextTick(G);
|
|
3327
|
-
} :
|
|
3329
|
+
} : le ? (l = 0, u = new le(G), _ = document.createTextNode(""), u.observe(_, { characterData: !0 }), h = function() {
|
|
3328
3330
|
_.data = l = ++l % 2;
|
|
3329
|
-
}) :
|
|
3331
|
+
}) : X ? ((T = new MessageChannel()).port1.onmessage = G, h = function() {
|
|
3330
3332
|
return T.port2.postMessage(0);
|
|
3331
|
-
}) :
|
|
3333
|
+
}) : h = j === void 0 ? function() {
|
|
3332
3334
|
try {
|
|
3333
|
-
var
|
|
3334
|
-
return (
|
|
3335
|
-
|
|
3336
|
-
} :
|
|
3335
|
+
var x = Function("return this")().require("vertx");
|
|
3336
|
+
return (k = x.runOnLoop || x.runOnContext) !== void 0 ? function() {
|
|
3337
|
+
k(G);
|
|
3338
|
+
} : ie();
|
|
3337
3339
|
} catch {
|
|
3338
|
-
return
|
|
3340
|
+
return ie();
|
|
3339
3341
|
}
|
|
3340
|
-
}() :
|
|
3341
|
-
var
|
|
3342
|
+
}() : ie();
|
|
3343
|
+
var V = Math.random().toString(36).substring(2);
|
|
3342
3344
|
function ee() {
|
|
3343
3345
|
}
|
|
3344
|
-
function pe(
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
return ve(
|
|
3346
|
+
function pe(x, F, $) {
|
|
3347
|
+
F.constructor === x.constructor && $ === P && F.constructor.resolve === D ? function(re, ae) {
|
|
3348
|
+
ae._state === 1 ? d(re, ae._result) : ae._state === 2 ? c(re, ae._result) : R(ae, void 0, function(ce) {
|
|
3349
|
+
return ve(re, ce);
|
|
3348
3350
|
}, function(ce) {
|
|
3349
|
-
return
|
|
3351
|
+
return c(re, ce);
|
|
3350
3352
|
});
|
|
3351
|
-
}(
|
|
3353
|
+
}(x, F) : $ === void 0 ? d(x, F) : b($) ? function(re, ae, ce) {
|
|
3352
3354
|
C(function(we) {
|
|
3353
3355
|
var Ee = !1, Oe = function(Be, $e, Qe, et) {
|
|
3354
3356
|
try {
|
|
@@ -3356,168 +3358,168 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3356
3358
|
} catch (tt) {
|
|
3357
3359
|
return tt;
|
|
3358
3360
|
}
|
|
3359
|
-
}(ce,
|
|
3360
|
-
Ee || (Ee = !0,
|
|
3361
|
+
}(ce, ae, function(Be) {
|
|
3362
|
+
Ee || (Ee = !0, ae !== Be ? ve(we, Be) : d(we, Be));
|
|
3361
3363
|
}, function(Be) {
|
|
3362
|
-
Ee || (Ee = !0,
|
|
3364
|
+
Ee || (Ee = !0, c(we, Be));
|
|
3363
3365
|
}, we._label);
|
|
3364
|
-
!Ee && Oe && (Ee = !0,
|
|
3365
|
-
},
|
|
3366
|
-
}(
|
|
3366
|
+
!Ee && Oe && (Ee = !0, c(we, Oe));
|
|
3367
|
+
}, re);
|
|
3368
|
+
}(x, F, $) : d(x, F);
|
|
3367
3369
|
}
|
|
3368
|
-
function ve(
|
|
3369
|
-
if (
|
|
3370
|
-
else if (
|
|
3370
|
+
function ve(x, F) {
|
|
3371
|
+
if (x === F) c(x, new TypeError("You cannot resolve a promise with itself"));
|
|
3372
|
+
else if (ae = typeof (re = F), re === null || ae !== "object" && ae !== "function") d(x, F);
|
|
3371
3373
|
else {
|
|
3372
3374
|
var $ = void 0;
|
|
3373
3375
|
try {
|
|
3374
|
-
$ =
|
|
3376
|
+
$ = F.then;
|
|
3375
3377
|
} catch (ce) {
|
|
3376
|
-
return void
|
|
3378
|
+
return void c(x, ce);
|
|
3377
3379
|
}
|
|
3378
|
-
pe(
|
|
3380
|
+
pe(x, F, $);
|
|
3379
3381
|
}
|
|
3380
|
-
var
|
|
3382
|
+
var re, ae;
|
|
3381
3383
|
}
|
|
3382
|
-
function
|
|
3383
|
-
|
|
3384
|
+
function L(x) {
|
|
3385
|
+
x._onerror && x._onerror(x._result), Y(x);
|
|
3384
3386
|
}
|
|
3385
|
-
function d(
|
|
3386
|
-
|
|
3387
|
+
function d(x, F) {
|
|
3388
|
+
x._state === void 0 && (x._result = F, x._state = 1, x._subscribers.length !== 0 && C(Y, x));
|
|
3387
3389
|
}
|
|
3388
|
-
function
|
|
3389
|
-
|
|
3390
|
+
function c(x, F) {
|
|
3391
|
+
x._state === void 0 && (x._state = 2, x._result = F, C(L, x));
|
|
3390
3392
|
}
|
|
3391
|
-
function R(
|
|
3392
|
-
var
|
|
3393
|
-
|
|
3393
|
+
function R(x, F, $, re) {
|
|
3394
|
+
var ae = x._subscribers, ce = ae.length;
|
|
3395
|
+
x._onerror = null, ae[ce] = F, ae[ce + 1] = $, ae[ce + 2] = re, ce === 0 && x._state && C(Y, x);
|
|
3394
3396
|
}
|
|
3395
|
-
function
|
|
3396
|
-
var
|
|
3397
|
-
if (
|
|
3398
|
-
for (var
|
|
3399
|
-
|
|
3397
|
+
function Y(x) {
|
|
3398
|
+
var F = x._subscribers, $ = x._state;
|
|
3399
|
+
if (F.length !== 0) {
|
|
3400
|
+
for (var re = void 0, ae = void 0, ce = x._result, we = 0; we < F.length; we += 3) re = F[we], ae = F[we + $], re ? oe($, re, ae, ce) : ae(ce);
|
|
3401
|
+
x._subscribers.length = 0;
|
|
3400
3402
|
}
|
|
3401
3403
|
}
|
|
3402
|
-
function oe(
|
|
3403
|
-
var
|
|
3404
|
-
if (
|
|
3404
|
+
function oe(x, F, $, re) {
|
|
3405
|
+
var ae = b($), ce = void 0, we = void 0, Ee = !0;
|
|
3406
|
+
if (ae) {
|
|
3405
3407
|
try {
|
|
3406
|
-
ce = $(
|
|
3408
|
+
ce = $(re);
|
|
3407
3409
|
} catch (Oe) {
|
|
3408
3410
|
Ee = !1, we = Oe;
|
|
3409
3411
|
}
|
|
3410
|
-
if (
|
|
3411
|
-
} else ce =
|
|
3412
|
-
|
|
3412
|
+
if (F === ce) return void c(F, new TypeError("A promises callback cannot return that same promise."));
|
|
3413
|
+
} else ce = re;
|
|
3414
|
+
F._state !== void 0 || (ae && Ee ? ve(F, ce) : Ee === !1 ? c(F, we) : x === 1 ? d(F, ce) : x === 2 && c(F, ce));
|
|
3413
3415
|
}
|
|
3414
3416
|
var me = 0;
|
|
3415
|
-
function Se(
|
|
3416
|
-
|
|
3417
|
+
function Se(x) {
|
|
3418
|
+
x[V] = me++, x._state = void 0, x._result = void 0, x._subscribers = [];
|
|
3417
3419
|
}
|
|
3418
3420
|
var De = function() {
|
|
3419
|
-
function
|
|
3420
|
-
this._instanceConstructor =
|
|
3421
|
+
function x(F, $) {
|
|
3422
|
+
this._instanceConstructor = F, this.promise = new F(ee), this.promise[V] || Se(this.promise), v($) ? (this.length = $.length, this._remaining = $.length, this._result = new Array(this.length), this.length === 0 ? d(this.promise, this._result) : (this.length = this.length || 0, this._enumerate($), this._remaining === 0 && d(this.promise, this._result))) : c(this.promise, new Error("Array Methods must be provided an Array"));
|
|
3421
3423
|
}
|
|
3422
|
-
return
|
|
3423
|
-
for (var $ = 0; this._state === void 0 && $ <
|
|
3424
|
-
},
|
|
3425
|
-
var
|
|
3426
|
-
if (
|
|
3424
|
+
return x.prototype._enumerate = function(F) {
|
|
3425
|
+
for (var $ = 0; this._state === void 0 && $ < F.length; $++) this._eachEntry(F[$], $);
|
|
3426
|
+
}, x.prototype._eachEntry = function(F, $) {
|
|
3427
|
+
var re = this._instanceConstructor, ae = re.resolve;
|
|
3428
|
+
if (ae === D) {
|
|
3427
3429
|
var ce = void 0, we = void 0, Ee = !1;
|
|
3428
3430
|
try {
|
|
3429
|
-
ce =
|
|
3431
|
+
ce = F.then;
|
|
3430
3432
|
} catch (Be) {
|
|
3431
3433
|
Ee = !0, we = Be;
|
|
3432
3434
|
}
|
|
3433
|
-
if (ce === P &&
|
|
3434
|
-
else if (typeof ce != "function") this._remaining--, this._result[$] =
|
|
3435
|
-
else if (
|
|
3436
|
-
var Oe = new
|
|
3437
|
-
Ee ?
|
|
3438
|
-
} else this._willSettleAt(new
|
|
3439
|
-
return Be(
|
|
3435
|
+
if (ce === P && F._state !== void 0) this._settledAt(F._state, $, F._result);
|
|
3436
|
+
else if (typeof ce != "function") this._remaining--, this._result[$] = F;
|
|
3437
|
+
else if (re === Te) {
|
|
3438
|
+
var Oe = new re(ee);
|
|
3439
|
+
Ee ? c(Oe, we) : pe(Oe, F, ce), this._willSettleAt(Oe, $);
|
|
3440
|
+
} else this._willSettleAt(new re(function(Be) {
|
|
3441
|
+
return Be(F);
|
|
3440
3442
|
}), $);
|
|
3441
|
-
} else this._willSettleAt(
|
|
3442
|
-
},
|
|
3443
|
-
var
|
|
3444
|
-
|
|
3445
|
-
},
|
|
3446
|
-
var
|
|
3447
|
-
R(
|
|
3448
|
-
return
|
|
3449
|
-
}, function(
|
|
3450
|
-
return
|
|
3443
|
+
} else this._willSettleAt(ae(F), $);
|
|
3444
|
+
}, x.prototype._settledAt = function(F, $, re) {
|
|
3445
|
+
var ae = this.promise;
|
|
3446
|
+
ae._state === void 0 && (this._remaining--, F === 2 ? c(ae, re) : this._result[$] = re), this._remaining === 0 && d(ae, this._result);
|
|
3447
|
+
}, x.prototype._willSettleAt = function(F, $) {
|
|
3448
|
+
var re = this;
|
|
3449
|
+
R(F, void 0, function(ae) {
|
|
3450
|
+
return re._settledAt(1, $, ae);
|
|
3451
|
+
}, function(ae) {
|
|
3452
|
+
return re._settledAt(2, $, ae);
|
|
3451
3453
|
});
|
|
3452
|
-
},
|
|
3454
|
+
}, x;
|
|
3453
3455
|
}(), Te = function() {
|
|
3454
|
-
function
|
|
3455
|
-
this[
|
|
3456
|
+
function x(F) {
|
|
3457
|
+
this[V] = me++, this._result = this._state = void 0, this._subscribers = [], ee !== F && (typeof F != "function" && function() {
|
|
3456
3458
|
throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");
|
|
3457
|
-
}(), this instanceof
|
|
3459
|
+
}(), this instanceof x ? function($, re) {
|
|
3458
3460
|
try {
|
|
3459
|
-
|
|
3460
|
-
ve($,
|
|
3461
|
-
}, function(
|
|
3462
|
-
|
|
3461
|
+
re(function(ae) {
|
|
3462
|
+
ve($, ae);
|
|
3463
|
+
}, function(ae) {
|
|
3464
|
+
c($, ae);
|
|
3463
3465
|
});
|
|
3464
|
-
} catch (
|
|
3465
|
-
|
|
3466
|
+
} catch (ae) {
|
|
3467
|
+
c($, ae);
|
|
3466
3468
|
}
|
|
3467
|
-
}(this,
|
|
3469
|
+
}(this, F) : function() {
|
|
3468
3470
|
throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
|
|
3469
3471
|
}());
|
|
3470
3472
|
}
|
|
3471
|
-
return
|
|
3472
|
-
return this.then(null,
|
|
3473
|
-
},
|
|
3473
|
+
return x.prototype.catch = function(F) {
|
|
3474
|
+
return this.then(null, F);
|
|
3475
|
+
}, x.prototype.finally = function(F) {
|
|
3474
3476
|
var $ = this.constructor;
|
|
3475
|
-
return b(
|
|
3476
|
-
return $.resolve(
|
|
3477
|
-
return
|
|
3477
|
+
return b(F) ? this.then(function(re) {
|
|
3478
|
+
return $.resolve(F()).then(function() {
|
|
3479
|
+
return re;
|
|
3478
3480
|
});
|
|
3479
|
-
}, function(
|
|
3480
|
-
return $.resolve(
|
|
3481
|
-
throw
|
|
3481
|
+
}, function(re) {
|
|
3482
|
+
return $.resolve(F()).then(function() {
|
|
3483
|
+
throw re;
|
|
3482
3484
|
});
|
|
3483
|
-
}) : this.then(
|
|
3484
|
-
},
|
|
3485
|
+
}) : this.then(F, F);
|
|
3486
|
+
}, x;
|
|
3485
3487
|
}();
|
|
3486
|
-
return Te.prototype.then = P, Te.all = function(
|
|
3487
|
-
return new De(this,
|
|
3488
|
-
}, Te.race = function(
|
|
3489
|
-
var
|
|
3490
|
-
return v(
|
|
3491
|
-
for (var
|
|
3492
|
-
}) : new
|
|
3493
|
-
return
|
|
3488
|
+
return Te.prototype.then = P, Te.all = function(x) {
|
|
3489
|
+
return new De(this, x).promise;
|
|
3490
|
+
}, Te.race = function(x) {
|
|
3491
|
+
var F = this;
|
|
3492
|
+
return v(x) ? new F(function($, re) {
|
|
3493
|
+
for (var ae = x.length, ce = 0; ce < ae; ce++) F.resolve(x[ce]).then($, re);
|
|
3494
|
+
}) : new F(function($, re) {
|
|
3495
|
+
return re(new TypeError("You must pass an array to race."));
|
|
3494
3496
|
});
|
|
3495
|
-
}, Te.resolve = D, Te.reject = function(
|
|
3496
|
-
var
|
|
3497
|
-
return
|
|
3498
|
-
}, Te._setScheduler = function(
|
|
3499
|
-
|
|
3500
|
-
}, Te._setAsap = function(
|
|
3501
|
-
C =
|
|
3497
|
+
}, Te.resolve = D, Te.reject = function(x) {
|
|
3498
|
+
var F = new this(ee);
|
|
3499
|
+
return c(F, x), F;
|
|
3500
|
+
}, Te._setScheduler = function(x) {
|
|
3501
|
+
M = x;
|
|
3502
|
+
}, Te._setAsap = function(x) {
|
|
3503
|
+
C = x;
|
|
3502
3504
|
}, Te._asap = C, Te.polyfill = function() {
|
|
3503
|
-
var
|
|
3504
|
-
if (B !== void 0)
|
|
3505
|
-
else if (typeof self < "u")
|
|
3505
|
+
var x = void 0;
|
|
3506
|
+
if (B !== void 0) x = B;
|
|
3507
|
+
else if (typeof self < "u") x = self;
|
|
3506
3508
|
else try {
|
|
3507
|
-
|
|
3509
|
+
x = Function("return this")();
|
|
3508
3510
|
} catch {
|
|
3509
3511
|
throw new Error("polyfill failed because global object is unavailable in this environment");
|
|
3510
3512
|
}
|
|
3511
|
-
var
|
|
3512
|
-
if (
|
|
3513
|
+
var F = x.Promise;
|
|
3514
|
+
if (F) {
|
|
3513
3515
|
var $ = null;
|
|
3514
3516
|
try {
|
|
3515
|
-
$ = Object.prototype.toString.call(
|
|
3517
|
+
$ = Object.prototype.toString.call(F.resolve());
|
|
3516
3518
|
} catch {
|
|
3517
3519
|
}
|
|
3518
|
-
if ($ === "[object Promise]" && !
|
|
3520
|
+
if ($ === "[object Promise]" && !F.cast) return;
|
|
3519
3521
|
}
|
|
3520
|
-
|
|
3522
|
+
x.Promise = Te;
|
|
3521
3523
|
}, Te.Promise = Te, Te;
|
|
3522
3524
|
}, fe.exports = m();
|
|
3523
3525
|
}).call(this, O(16), O(17));
|
|
@@ -3529,16 +3531,16 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3529
3531
|
function b() {
|
|
3530
3532
|
throw new Error("clearTimeout has not been defined");
|
|
3531
3533
|
}
|
|
3532
|
-
function v(
|
|
3533
|
-
if (O === setTimeout) return setTimeout(
|
|
3534
|
-
if ((O === m || !O) && setTimeout) return O = setTimeout, setTimeout(
|
|
3534
|
+
function v(X) {
|
|
3535
|
+
if (O === setTimeout) return setTimeout(X, 0);
|
|
3536
|
+
if ((O === m || !O) && setTimeout) return O = setTimeout, setTimeout(X, 0);
|
|
3535
3537
|
try {
|
|
3536
|
-
return O(
|
|
3538
|
+
return O(X, 0);
|
|
3537
3539
|
} catch {
|
|
3538
3540
|
try {
|
|
3539
|
-
return O.call(null,
|
|
3541
|
+
return O.call(null, X, 0);
|
|
3540
3542
|
} catch {
|
|
3541
|
-
return O.call(this,
|
|
3543
|
+
return O.call(this, X, 0);
|
|
3542
3544
|
}
|
|
3543
3545
|
}
|
|
3544
3546
|
}
|
|
@@ -3554,19 +3556,19 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3554
3556
|
U = b;
|
|
3555
3557
|
}
|
|
3556
3558
|
})();
|
|
3557
|
-
var f,
|
|
3558
|
-
function
|
|
3559
|
-
|
|
3559
|
+
var f, k = [], M = !1, C = -1;
|
|
3560
|
+
function j() {
|
|
3561
|
+
M && f && (M = !1, f.length ? k = f.concat(k) : C = -1, k.length && H());
|
|
3560
3562
|
}
|
|
3561
3563
|
function H() {
|
|
3562
|
-
if (!
|
|
3563
|
-
var
|
|
3564
|
-
|
|
3565
|
-
for (var
|
|
3566
|
-
for (f =
|
|
3567
|
-
C = -1,
|
|
3568
|
-
}
|
|
3569
|
-
f = null,
|
|
3564
|
+
if (!M) {
|
|
3565
|
+
var X = v(j);
|
|
3566
|
+
M = !0;
|
|
3567
|
+
for (var ie = k.length; ie; ) {
|
|
3568
|
+
for (f = k, k = []; ++C < ie; ) f && f[C].run();
|
|
3569
|
+
C = -1, ie = k.length;
|
|
3570
|
+
}
|
|
3571
|
+
f = null, M = !1, function(y) {
|
|
3570
3572
|
if (U === clearTimeout) return clearTimeout(y);
|
|
3571
3573
|
if ((U === b || !U) && clearTimeout) return U = clearTimeout, clearTimeout(y);
|
|
3572
3574
|
try {
|
|
@@ -3578,27 +3580,27 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3578
3580
|
return U.call(this, y);
|
|
3579
3581
|
}
|
|
3580
3582
|
}
|
|
3581
|
-
}(
|
|
3583
|
+
}(X);
|
|
3582
3584
|
}
|
|
3583
3585
|
}
|
|
3584
|
-
function
|
|
3585
|
-
this.fun =
|
|
3586
|
+
function le(X, ie) {
|
|
3587
|
+
this.fun = X, this.array = ie;
|
|
3586
3588
|
}
|
|
3587
|
-
function
|
|
3589
|
+
function ne() {
|
|
3588
3590
|
}
|
|
3589
|
-
B.nextTick = function(
|
|
3590
|
-
var
|
|
3591
|
-
if (arguments.length > 1) for (var y = 1; y < arguments.length; y++)
|
|
3592
|
-
|
|
3593
|
-
},
|
|
3591
|
+
B.nextTick = function(X) {
|
|
3592
|
+
var ie = new Array(arguments.length - 1);
|
|
3593
|
+
if (arguments.length > 1) for (var y = 1; y < arguments.length; y++) ie[y - 1] = arguments[y];
|
|
3594
|
+
k.push(new le(X, ie)), k.length !== 1 || M || v(H);
|
|
3595
|
+
}, le.prototype.run = function() {
|
|
3594
3596
|
this.fun.apply(null, this.array);
|
|
3595
|
-
}, B.title = "browser", B.browser = !0, B.env = {}, B.argv = [], B.version = "", B.versions = {}, B.on =
|
|
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) {
|
|
3596
3598
|
return [];
|
|
3597
|
-
}, B.binding = function(
|
|
3599
|
+
}, B.binding = function(X) {
|
|
3598
3600
|
throw new Error("process.binding is not supported");
|
|
3599
3601
|
}, B.cwd = function() {
|
|
3600
3602
|
return "/";
|
|
3601
|
-
}, B.chdir = function(
|
|
3603
|
+
}, B.chdir = function(X) {
|
|
3602
3604
|
throw new Error("process.chdir is not supported");
|
|
3603
3605
|
}, B.umask = function() {
|
|
3604
3606
|
return 0;
|
|
@@ -3618,18 +3620,18 @@ 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,
|
|
3622
|
-
v.postMessage({ msg: "logcat_callback", data: { type: D, logcat:
|
|
3623
|
+
var f = null, k = (function(D, V) {
|
|
3624
|
+
v.postMessage({ msg: "logcat_callback", data: { type: D, logcat: V } });
|
|
3623
3625
|
}).bind(this);
|
|
3624
|
-
function
|
|
3625
|
-
var ee = { msg: b.a.INIT_SEGMENT, data: { type: D, data:
|
|
3626
|
-
v.postMessage(ee, [
|
|
3626
|
+
function M(D, V) {
|
|
3627
|
+
var ee = { msg: b.a.INIT_SEGMENT, data: { type: D, data: V } };
|
|
3628
|
+
v.postMessage(ee, [V.data]);
|
|
3627
3629
|
}
|
|
3628
|
-
function C(D,
|
|
3629
|
-
var ee = { msg: b.a.MEDIA_SEGMENT, data: { type: D, data:
|
|
3630
|
-
v.postMessage(ee, [
|
|
3630
|
+
function C(D, V) {
|
|
3631
|
+
var ee = { msg: b.a.MEDIA_SEGMENT, data: { type: D, data: V } };
|
|
3632
|
+
v.postMessage(ee, [V.data]);
|
|
3631
3633
|
}
|
|
3632
|
-
function
|
|
3634
|
+
function j() {
|
|
3633
3635
|
var D = { msg: b.a.LOADING_COMPLETE };
|
|
3634
3636
|
v.postMessage(D);
|
|
3635
3637
|
}
|
|
@@ -3637,47 +3639,47 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3637
3639
|
var D = { msg: b.a.RECOVERED_EARLY_EOF };
|
|
3638
3640
|
v.postMessage(D);
|
|
3639
3641
|
}
|
|
3640
|
-
function
|
|
3641
|
-
var
|
|
3642
|
-
v.postMessage(
|
|
3642
|
+
function le(D) {
|
|
3643
|
+
var V = { msg: b.a.MEDIA_INFO, data: D };
|
|
3644
|
+
v.postMessage(V);
|
|
3643
3645
|
}
|
|
3644
|
-
function
|
|
3645
|
-
var
|
|
3646
|
-
v.postMessage(
|
|
3646
|
+
function ne(D) {
|
|
3647
|
+
var V = { msg: b.a.METADATA_ARRIVED, data: D };
|
|
3648
|
+
v.postMessage(V);
|
|
3647
3649
|
}
|
|
3648
|
-
function
|
|
3649
|
-
var
|
|
3650
|
-
v.postMessage(
|
|
3650
|
+
function X(D) {
|
|
3651
|
+
var V = { msg: b.a.SCRIPTDATA_ARRIVED, data: D };
|
|
3652
|
+
v.postMessage(V);
|
|
3651
3653
|
}
|
|
3652
|
-
function
|
|
3653
|
-
var
|
|
3654
|
-
v.postMessage(
|
|
3654
|
+
function ie(D) {
|
|
3655
|
+
var V = { msg: b.a.TIMED_ID3_METADATA_ARRIVED, data: D };
|
|
3656
|
+
v.postMessage(V);
|
|
3655
3657
|
}
|
|
3656
3658
|
function y(D) {
|
|
3657
|
-
var
|
|
3658
|
-
v.postMessage(
|
|
3659
|
+
var V = { msg: b.a.SMPTE2038_METADATA_ARRIVED, data: D };
|
|
3660
|
+
v.postMessage(V);
|
|
3659
3661
|
}
|
|
3660
3662
|
function G(D) {
|
|
3661
|
-
var
|
|
3662
|
-
v.postMessage(
|
|
3663
|
+
var V = { msg: b.a.SCTE35_METADATA_ARRIVED, data: D };
|
|
3664
|
+
v.postMessage(V);
|
|
3663
3665
|
}
|
|
3664
3666
|
function T(D) {
|
|
3665
|
-
var
|
|
3666
|
-
v.postMessage(
|
|
3667
|
+
var V = { msg: b.a.PES_PRIVATE_DATA_DESCRIPTOR, data: D };
|
|
3668
|
+
v.postMessage(V);
|
|
3667
3669
|
}
|
|
3668
3670
|
function l(D) {
|
|
3669
|
-
var
|
|
3670
|
-
v.postMessage(
|
|
3671
|
+
var V = { msg: b.a.PES_PRIVATE_DATA_ARRIVED, data: D };
|
|
3672
|
+
v.postMessage(V);
|
|
3671
3673
|
}
|
|
3672
3674
|
function u(D) {
|
|
3673
|
-
var
|
|
3674
|
-
v.postMessage(
|
|
3675
|
+
var V = { msg: b.a.STATISTICS_INFO, data: D };
|
|
3676
|
+
v.postMessage(V);
|
|
3675
3677
|
}
|
|
3676
|
-
function _(D,
|
|
3677
|
-
v.postMessage({ msg: b.a.IO_ERROR, data: { type: D, info:
|
|
3678
|
+
function _(D, V) {
|
|
3679
|
+
v.postMessage({ msg: b.a.IO_ERROR, data: { type: D, info: V } });
|
|
3678
3680
|
}
|
|
3679
|
-
function
|
|
3680
|
-
v.postMessage({ msg: b.a.DEMUX_ERROR, data: { type: D, info:
|
|
3681
|
+
function h(D, V) {
|
|
3682
|
+
v.postMessage({ msg: b.a.DEMUX_ERROR, data: { type: D, info: V } });
|
|
3681
3683
|
}
|
|
3682
3684
|
function P(D) {
|
|
3683
3685
|
v.postMessage({ msg: b.a.RECOMMEND_SEEKPOINT, data: D });
|
|
@@ -3685,7 +3687,7 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3685
3687
|
B.a.install(), v.addEventListener("message", function(D) {
|
|
3686
3688
|
switch (D.data.cmd) {
|
|
3687
3689
|
case "init":
|
|
3688
|
-
(f = new m.a(D.data.param[0], D.data.param[1])).on(b.a.IO_ERROR, _.bind(this)), f.on(b.a.DEMUX_ERROR,
|
|
3690
|
+
(f = new m.a(D.data.param[0], D.data.param[1])).on(b.a.IO_ERROR, _.bind(this)), f.on(b.a.DEMUX_ERROR, h.bind(this)), f.on(b.a.INIT_SEGMENT, M.bind(this)), f.on(b.a.MEDIA_SEGMENT, C.bind(this)), f.on(b.a.LOADING_COMPLETE, j.bind(this)), f.on(b.a.RECOVERED_EARLY_EOF, H.bind(this)), f.on(b.a.MEDIA_INFO, le.bind(this)), f.on(b.a.METADATA_ARRIVED, ne.bind(this)), f.on(b.a.SCRIPTDATA_ARRIVED, X.bind(this)), f.on(b.a.TIMED_ID3_METADATA_ARRIVED, ie.bind(this)), f.on(b.a.SMPTE2038_METADATA_ARRIVED, y.bind(this)), f.on(b.a.SCTE35_METADATA_ARRIVED, G.bind(this)), f.on(b.a.PES_PRIVATE_DATA_DESCRIPTOR, T.bind(this)), f.on(b.a.PES_PRIVATE_DATA_ARRIVED, l.bind(this)), f.on(b.a.STATISTICS_INFO, u.bind(this)), f.on(b.a.RECOMMEND_SEEKPOINT, P.bind(this));
|
|
3689
3691
|
break;
|
|
3690
3692
|
case "destroy":
|
|
3691
3693
|
f && (f.destroy(), f = null), v.postMessage({ msg: "destroyed" });
|
|
@@ -3706,8 +3708,8 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3706
3708
|
f.resume();
|
|
3707
3709
|
break;
|
|
3708
3710
|
case "logging_config":
|
|
3709
|
-
var
|
|
3710
|
-
U.a.applyConfig(
|
|
3711
|
+
var V = D.data.param;
|
|
3712
|
+
U.a.applyConfig(V), V.enableCallback === !0 ? U.a.addLogListener(k) : U.a.removeLogListener(k);
|
|
3711
3713
|
}
|
|
3712
3714
|
});
|
|
3713
3715
|
};
|
|
@@ -3718,153 +3720,153 @@ 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
|
-
},
|
|
3728
|
-
var d = new B.a({}, b()),
|
|
3729
|
-
return d.destroy(),
|
|
3730
|
-
},
|
|
3731
|
-
var d = new B.a({}, b()),
|
|
3732
|
-
return d.destroy(),
|
|
3733
|
-
},
|
|
3734
|
-
|
|
3735
|
-
var
|
|
3736
|
-
return
|
|
3737
|
-
},
|
|
3729
|
+
}, L.supportNetworkStreamIO = function() {
|
|
3730
|
+
var d = new B.a({}, b()), c = d.loaderType;
|
|
3731
|
+
return d.destroy(), c == "fetch-stream-loader" || c == "xhr-moz-chunked-loader";
|
|
3732
|
+
}, L.getNetworkLoaderTypeName = function() {
|
|
3733
|
+
var d = new B.a({}, b()), c = d.loaderType;
|
|
3734
|
+
return d.destroy(), c;
|
|
3735
|
+
}, L.supportNativeMediaPlayback = function(d) {
|
|
3736
|
+
L.videoElement == null && (L.videoElement = window.document.createElement("video"));
|
|
3737
|
+
var c = L.videoElement.canPlayType(d);
|
|
3738
|
+
return c === "probably" || c == "maybe";
|
|
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
|
|
3743
|
-
if (this.TAG = "Transmuxer", this._emitter = new
|
|
3744
|
-
this._worker =
|
|
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) {
|
|
3745
|
+
if (this.TAG = "Transmuxer", this._emitter = new M.a(), c.enableWorker && typeof Worker < "u") try {
|
|
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 {
|
|
3746
|
-
C.a.e(this.TAG, "Error while initialize transmuxing worker, fallback to inline transmuxing"), this._worker = null, this._controller = new
|
|
3748
|
+
C.a.e(this.TAG, "Error while initialize transmuxing worker, fallback to inline transmuxing"), this._worker = null, this._controller = new ie.a(d, c);
|
|
3747
3749
|
}
|
|
3748
|
-
else this._controller = new
|
|
3750
|
+
else this._controller = new ie.a(d, c);
|
|
3749
3751
|
if (this._controller) {
|
|
3750
3752
|
var R = this._controller;
|
|
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
|
|
3755
|
-
this._worker ? this._workerDestroying || (this._workerDestroying = !0, this._worker.postMessage({ cmd: "destroy" }),
|
|
3756
|
-
},
|
|
3757
|
-
this._emitter.addListener(d,
|
|
3758
|
-
},
|
|
3759
|
-
this._emitter.removeListener(d,
|
|
3760
|
-
},
|
|
3756
|
+
return L.prototype.destroy = function() {
|
|
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;
|
|
3758
|
+
}, L.prototype.on = function(d, c) {
|
|
3759
|
+
this._emitter.addListener(d, c);
|
|
3760
|
+
}, L.prototype.off = function(d, c) {
|
|
3761
|
+
this._emitter.removeListener(d, c);
|
|
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
|
-
R._emitter.emit(y.a.INIT_SEGMENT, d,
|
|
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
|
-
R._emitter.emit(y.a.MEDIA_SEGMENT, d,
|
|
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
|
-
},
|
|
3793
|
-
var
|
|
3794
|
+
}, L.prototype._onMediaInfo = function(d) {
|
|
3795
|
+
var c = this;
|
|
3794
3796
|
Promise.resolve().then(function() {
|
|
3795
|
-
|
|
3797
|
+
c._emitter.emit(y.a.MEDIA_INFO, d);
|
|
3796
3798
|
});
|
|
3797
|
-
},
|
|
3798
|
-
var
|
|
3799
|
+
}, L.prototype._onMetaDataArrived = function(d) {
|
|
3800
|
+
var c = this;
|
|
3799
3801
|
Promise.resolve().then(function() {
|
|
3800
|
-
|
|
3802
|
+
c._emitter.emit(y.a.METADATA_ARRIVED, d);
|
|
3801
3803
|
});
|
|
3802
|
-
},
|
|
3803
|
-
var
|
|
3804
|
+
}, L.prototype._onScriptDataArrived = function(d) {
|
|
3805
|
+
var c = this;
|
|
3804
3806
|
Promise.resolve().then(function() {
|
|
3805
|
-
|
|
3807
|
+
c._emitter.emit(y.a.SCRIPTDATA_ARRIVED, d);
|
|
3806
3808
|
});
|
|
3807
|
-
},
|
|
3808
|
-
var
|
|
3809
|
+
}, L.prototype._onTimedID3MetadataArrived = function(d) {
|
|
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
|
-
},
|
|
3813
|
-
var
|
|
3814
|
+
}, L.prototype._onSMPTE2038MetadataArrived = function(d) {
|
|
3815
|
+
var c = this;
|
|
3814
3816
|
Promise.resolve().then(function() {
|
|
3815
|
-
|
|
3817
|
+
c._emitter.emit(y.a.SMPTE2038_METADATA_ARRIVED, d);
|
|
3816
3818
|
});
|
|
3817
|
-
},
|
|
3818
|
-
var
|
|
3819
|
+
}, L.prototype._onSCTE35MetadataArrived = function(d) {
|
|
3820
|
+
var c = this;
|
|
3819
3821
|
Promise.resolve().then(function() {
|
|
3820
|
-
|
|
3822
|
+
c._emitter.emit(y.a.SCTE35_METADATA_ARRIVED, d);
|
|
3821
3823
|
});
|
|
3822
|
-
},
|
|
3823
|
-
var
|
|
3824
|
+
}, L.prototype._onPESPrivateDataDescriptor = function(d) {
|
|
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
|
-
},
|
|
3828
|
-
var
|
|
3829
|
+
}, L.prototype._onPESPrivateDataArrived = function(d) {
|
|
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
|
-
},
|
|
3833
|
-
var
|
|
3834
|
+
}, L.prototype._onStatisticsInfo = function(d) {
|
|
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
|
-
R._emitter.emit(y.a.IO_ERROR, d,
|
|
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
|
-
R._emitter.emit(y.a.DEMUX_ERROR, d,
|
|
3847
|
+
R._emitter.emit(y.a.DEMUX_ERROR, d, c);
|
|
3846
3848
|
});
|
|
3847
|
-
},
|
|
3848
|
-
var
|
|
3849
|
+
}, L.prototype._onRecommendSeekpoint = function(d) {
|
|
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
|
-
},
|
|
3855
|
-
var
|
|
3856
|
-
if (
|
|
3857
|
-
switch (
|
|
3856
|
+
}, L.prototype._onWorkerMessage = function(d) {
|
|
3857
|
+
var c = d.data, R = c.data;
|
|
3858
|
+
if (c.msg === "destroyed" || this._workerDestroying) return this._workerDestroying = !1, this._worker.terminate(), void (this._worker = null);
|
|
3859
|
+
switch (c.msg) {
|
|
3858
3860
|
case y.a.INIT_SEGMENT:
|
|
3859
3861
|
case y.a.MEDIA_SEGMENT:
|
|
3860
|
-
this._emitter.emit(
|
|
3862
|
+
this._emitter.emit(c.msg, R.type, R.data);
|
|
3861
3863
|
break;
|
|
3862
3864
|
case y.a.LOADING_COMPLETE:
|
|
3863
3865
|
case y.a.RECOVERED_EARLY_EOF:
|
|
3864
|
-
this._emitter.emit(
|
|
3866
|
+
this._emitter.emit(c.msg);
|
|
3865
3867
|
break;
|
|
3866
3868
|
case y.a.MEDIA_INFO:
|
|
3867
|
-
Object.setPrototypeOf(R, G.a.prototype), this._emitter.emit(
|
|
3869
|
+
Object.setPrototypeOf(R, G.a.prototype), this._emitter.emit(c.msg, R);
|
|
3868
3870
|
break;
|
|
3869
3871
|
case y.a.METADATA_ARRIVED:
|
|
3870
3872
|
case y.a.SCRIPTDATA_ARRIVED:
|
|
@@ -3874,50 +3876,50 @@ originalDts: ` + be + " ms, curRefDts: " + Re + " ms, dtsCorrection: " + Math.ro
|
|
|
3874
3876
|
case y.a.PES_PRIVATE_DATA_DESCRIPTOR:
|
|
3875
3877
|
case y.a.PES_PRIVATE_DATA_ARRIVED:
|
|
3876
3878
|
case y.a.STATISTICS_INFO:
|
|
3877
|
-
this._emitter.emit(
|
|
3879
|
+
this._emitter.emit(c.msg, R);
|
|
3878
3880
|
break;
|
|
3879
3881
|
case y.a.IO_ERROR:
|
|
3880
3882
|
case y.a.DEMUX_ERROR:
|
|
3881
|
-
this._emitter.emit(
|
|
3883
|
+
this._emitter.emit(c.msg, R.type, R.info);
|
|
3882
3884
|
break;
|
|
3883
3885
|
case y.a.RECOMMEND_SEEKPOINT:
|
|
3884
|
-
this._emitter.emit(
|
|
3886
|
+
this._emitter.emit(c.msg, R);
|
|
3885
3887
|
break;
|
|
3886
3888
|
case "logcat_callback":
|
|
3887
3889
|
C.a.emitter.emit("log", R.type, R.logcat);
|
|
3888
3890
|
}
|
|
3889
|
-
},
|
|
3890
|
-
}(), l = { ERROR: "error", SOURCE_OPEN: "source_open", UPDATE_END: "update_end", BUFFER_FULL: "buffer_full" }, u = O(7), _ = O(3),
|
|
3891
|
-
function
|
|
3892
|
-
this.TAG = "MSEController", this._config = d, this._emitter = new
|
|
3891
|
+
}, L;
|
|
3892
|
+
}(), l = { ERROR: "error", SOURCE_OPEN: "source_open", UPDATE_END: "update_end", BUFFER_FULL: "buffer_full" }, u = O(7), _ = O(3), h = function() {
|
|
3893
|
+
function L(d) {
|
|
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
|
-
},
|
|
3897
|
-
this._emitter.addListener(d,
|
|
3898
|
-
},
|
|
3899
|
-
this._emitter.removeListener(d,
|
|
3900
|
-
},
|
|
3898
|
+
}, L.prototype.on = function(d, c) {
|
|
3899
|
+
this._emitter.addListener(d, c);
|
|
3900
|
+
}, L.prototype.off = function(d, c) {
|
|
3901
|
+
this._emitter.removeListener(d, c);
|
|
3902
|
+
}, L.prototype.attachMediaElement = function(d) {
|
|
3901
3903
|
if (this._mediaSource) throw new _.a("MediaSource has been attached to an HTMLMediaElement!");
|
|
3902
|
-
var
|
|
3903
|
-
|
|
3904
|
-
},
|
|
3904
|
+
var c = this._mediaSource = new window.MediaSource();
|
|
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;
|
|
3906
|
+
}, L.prototype.detachMediaElement = function() {
|
|
3905
3907
|
if (this._mediaSource) {
|
|
3906
3908
|
var d = this._mediaSource;
|
|
3907
|
-
for (var
|
|
3908
|
-
var R = this._pendingSegments[
|
|
3909
|
-
R.splice(0, R.length), this._pendingSegments[
|
|
3910
|
-
var
|
|
3911
|
-
if (
|
|
3909
|
+
for (var c in this._sourceBuffers) {
|
|
3910
|
+
var R = this._pendingSegments[c];
|
|
3911
|
+
R.splice(0, R.length), this._pendingSegments[c] = null, this._pendingRemoveRanges[c] = null, this._lastInitSegments[c] = null;
|
|
3912
|
+
var Y = this._sourceBuffers[c];
|
|
3913
|
+
if (Y) {
|
|
3912
3914
|
if (d.readyState !== "closed") {
|
|
3913
3915
|
try {
|
|
3914
|
-
d.removeSourceBuffer(
|
|
3916
|
+
d.removeSourceBuffer(Y);
|
|
3915
3917
|
} catch (oe) {
|
|
3916
3918
|
C.a.e(this.TAG, oe.message);
|
|
3917
3919
|
}
|
|
3918
|
-
|
|
3920
|
+
Y.removeEventListener("error", this.e.onSourceBufferError), Y.removeEventListener("updateend", this.e.onSourceBufferUpdateEnd);
|
|
3919
3921
|
}
|
|
3920
|
-
this._mimeTypes[
|
|
3922
|
+
this._mimeTypes[c] = null, this._sourceBuffers[c] = null;
|
|
3921
3923
|
}
|
|
3922
3924
|
}
|
|
3923
3925
|
if (d.readyState === "open") try {
|
|
@@ -3928,419 +3930,419 @@ 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
|
-
var R = d,
|
|
3934
|
-
R.codec && R.codec.length > 0 && (
|
|
3935
|
+
var R = d, Y = "" + R.container;
|
|
3936
|
+
R.codec && R.codec.length > 0 && (Y += ";codecs=" + R.codec);
|
|
3935
3937
|
var oe = !1;
|
|
3936
|
-
if (C.a.v(this.TAG, "Received Initialization Segment, mimeType: " +
|
|
3937
|
-
if (this._mimeTypes[R.type]) C.a.v(this.TAG, "Notice: " + R.type + " mimeType changed, origin: " + this._mimeTypes[R.type] + ", target: " +
|
|
3938
|
+
if (C.a.v(this.TAG, "Received Initialization Segment, mimeType: " + Y), this._lastInitSegments[R.type] = R, Y !== this._mimeTypes[R.type]) {
|
|
3939
|
+
if (this._mimeTypes[R.type]) C.a.v(this.TAG, "Notice: " + R.type + " mimeType changed, origin: " + this._mimeTypes[R.type] + ", target: " + Y);
|
|
3938
3940
|
else {
|
|
3939
3941
|
oe = !0;
|
|
3940
3942
|
try {
|
|
3941
|
-
var me = this._sourceBuffers[R.type] = this._mediaSource.addSourceBuffer(
|
|
3943
|
+
var me = this._sourceBuffers[R.type] = this._mediaSource.addSourceBuffer(Y);
|
|
3942
3944
|
me.addEventListener("error", this.e.onSourceBufferError), me.addEventListener("updateend", this.e.onSourceBufferUpdateEnd);
|
|
3943
3945
|
} catch (Se) {
|
|
3944
3946
|
return C.a.e(this.TAG, Se.message), void this._emitter.emit(l.ERROR, { code: Se.code, msg: Se.message });
|
|
3945
3947
|
}
|
|
3946
3948
|
}
|
|
3947
|
-
this._mimeTypes[R.type] =
|
|
3949
|
+
this._mimeTypes[R.type] = Y;
|
|
3948
3950
|
}
|
|
3949
|
-
|
|
3950
|
-
},
|
|
3951
|
-
var
|
|
3952
|
-
this._pendingSegments[
|
|
3953
|
-
var R = this._sourceBuffers[
|
|
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());
|
|
3952
|
+
}, L.prototype.appendMediaSegment = function(d) {
|
|
3953
|
+
var c = d;
|
|
3954
|
+
this._pendingSegments[c.type].push(c), this._config.autoCleanupSourceBuffer && this._needCleanupSourceBuffer() && this._doCleanupSourceBuffer();
|
|
3955
|
+
var R = this._sourceBuffers[c.type];
|
|
3954
3956
|
!R || R.updating || this._hasPendingRemoveRanges() || this._doAppendSegments();
|
|
3955
|
-
},
|
|
3956
|
-
for (var
|
|
3957
|
-
var R = this._sourceBuffers[
|
|
3957
|
+
}, L.prototype.seek = function(d) {
|
|
3958
|
+
for (var c in this._sourceBuffers) if (this._sourceBuffers[c]) {
|
|
3959
|
+
var R = this._sourceBuffers[c];
|
|
3958
3960
|
if (this._mediaSource.readyState === "open") try {
|
|
3959
3961
|
R.abort();
|
|
3960
3962
|
} catch (Te) {
|
|
3961
3963
|
C.a.e(this.TAG, Te.message);
|
|
3962
3964
|
}
|
|
3963
3965
|
this._idrList.clear();
|
|
3964
|
-
var
|
|
3965
|
-
if (
|
|
3966
|
+
var Y = this._pendingSegments[c];
|
|
3967
|
+
if (Y.splice(0, Y.length), this._mediaSource.readyState !== "closed") {
|
|
3966
3968
|
for (var oe = 0; oe < R.buffered.length; oe++) {
|
|
3967
3969
|
var me = R.buffered.start(oe), Se = R.buffered.end(oe);
|
|
3968
|
-
this._pendingRemoveRanges[
|
|
3970
|
+
this._pendingRemoveRanges[c].push({ start: me, end: Se });
|
|
3969
3971
|
}
|
|
3970
|
-
if (R.updating || this._doRemoveRanges(),
|
|
3971
|
-
var De = this._lastInitSegments[
|
|
3972
|
-
De && (this._pendingSegments[
|
|
3972
|
+
if (R.updating || this._doRemoveRanges(), j.a.safari) {
|
|
3973
|
+
var De = this._lastInitSegments[c];
|
|
3974
|
+
De && (this._pendingSegments[c].push(De), R.updating || this._doAppendSegments());
|
|
3973
3975
|
}
|
|
3974
3976
|
}
|
|
3975
3977
|
}
|
|
3976
|
-
},
|
|
3977
|
-
var d = this._mediaSource,
|
|
3978
|
-
d && d.readyState === "open" ?
|
|
3979
|
-
},
|
|
3978
|
+
}, L.prototype.endOfStream = function() {
|
|
3979
|
+
var d = this._mediaSource, c = this._sourceBuffers;
|
|
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);
|
|
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
|
-
for (var
|
|
3985
|
-
var R = this._sourceBuffers[
|
|
3986
|
+
for (var c in this._sourceBuffers) {
|
|
3987
|
+
var R = this._sourceBuffers[c];
|
|
3986
3988
|
if (R) {
|
|
3987
|
-
var
|
|
3988
|
-
if (
|
|
3989
|
+
var Y = R.buffered;
|
|
3990
|
+
if (Y.length >= 1 && d - Y.start(0) >= this._config.autoCleanupMaxBackwardDuration) return !0;
|
|
3989
3991
|
}
|
|
3990
3992
|
}
|
|
3991
3993
|
return !1;
|
|
3992
|
-
},
|
|
3994
|
+
}, L.prototype._doCleanupSourceBuffer = function() {
|
|
3993
3995
|
var d = this._mediaElement.currentTime;
|
|
3994
|
-
for (var
|
|
3995
|
-
var R = this._sourceBuffers[
|
|
3996
|
+
for (var c in this._sourceBuffers) {
|
|
3997
|
+
var R = this._sourceBuffers[c];
|
|
3996
3998
|
if (R) {
|
|
3997
|
-
for (var
|
|
3998
|
-
var Se =
|
|
3999
|
+
for (var Y = R.buffered, oe = !1, me = 0; me < Y.length; me++) {
|
|
4000
|
+
var Se = Y.start(me), De = Y.end(me);
|
|
3999
4001
|
if (Se <= d && d < De + 3) {
|
|
4000
4002
|
if (d - Se >= this._config.autoCleanupMaxBackwardDuration) {
|
|
4001
4003
|
oe = !0;
|
|
4002
4004
|
var Te = d - this._config.autoCleanupMinBackwardDuration;
|
|
4003
|
-
this._pendingRemoveRanges[
|
|
4005
|
+
this._pendingRemoveRanges[c].push({ start: Se, end: Te });
|
|
4004
4006
|
}
|
|
4005
|
-
} else De < d && (oe = !0, this._pendingRemoveRanges[
|
|
4007
|
+
} else De < d && (oe = !0, this._pendingRemoveRanges[c].push({ start: Se, end: De }));
|
|
4006
4008
|
}
|
|
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
|
-
var
|
|
4014
|
-
R > 0 && (isNaN(
|
|
4015
|
+
var c = this._mediaSource.duration, R = this._pendingMediaDuration;
|
|
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
|
-
},
|
|
4017
|
-
for (var d in this._pendingRemoveRanges) if (this._sourceBuffers[d] && !this._sourceBuffers[d].updating) for (var
|
|
4018
|
-
var
|
|
4019
|
-
|
|
4018
|
+
}, L.prototype._doRemoveRanges = function() {
|
|
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; ) {
|
|
4020
|
+
var Y = R.shift();
|
|
4021
|
+
c.remove(Y.start, Y.end);
|
|
4020
4022
|
}
|
|
4021
|
-
},
|
|
4023
|
+
}, L.prototype._doAppendSegments = function() {
|
|
4022
4024
|
var d = this._pendingSegments;
|
|
4023
|
-
for (var
|
|
4024
|
-
var R = d[
|
|
4025
|
+
for (var c in d) if (this._sourceBuffers[c] && !this._sourceBuffers[c].updating && d[c].length > 0) {
|
|
4026
|
+
var R = d[c].shift();
|
|
4025
4027
|
if (R.timestampOffset) {
|
|
4026
|
-
var
|
|
4027
|
-
Math.abs(
|
|
4028
|
+
var Y = this._sourceBuffers[c].timestampOffset, oe = R.timestampOffset / 1e3;
|
|
4029
|
+
Math.abs(Y - oe) > 0.1 && (C.a.v(this.TAG, "Update MPEG audio timestampOffset from " + Y + " to " + oe), this._sourceBuffers[c].timestampOffset = oe), delete R.timestampOffset;
|
|
4028
4030
|
}
|
|
4029
4031
|
if (!R.data || R.data.byteLength === 0) continue;
|
|
4030
4032
|
try {
|
|
4031
|
-
this._sourceBuffers[
|
|
4033
|
+
this._sourceBuffers[c].appendBuffer(R.data), this._isBufferFull = !1, c === "video" && R.hasOwnProperty("info") && this._idrList.appendArray(R.info.syncPoints);
|
|
4032
4034
|
} catch (me) {
|
|
4033
|
-
this._pendingSegments[
|
|
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
|
-
var
|
|
4039
|
-
this.appendInitSegment(
|
|
4040
|
+
var c = d.shift();
|
|
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
|
-
},
|
|
4057
|
-
}(), P = O(5), D = { NETWORK_ERROR: "NetworkError", MEDIA_ERROR: "MediaError", OTHER_ERROR: "OtherError" },
|
|
4058
|
-
function
|
|
4059
|
-
this.TAG = "MSEPlayer", this._type = "MSEPlayer", this._emitter = new
|
|
4058
|
+
}, L;
|
|
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() {
|
|
4060
|
+
function L(d, c) {
|
|
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!");
|
|
4062
4064
|
d.isLive === !0 && (this._config.isLive = !0), this.e = { onvLoadedMetadata: this._onvLoadedMetadata.bind(this), onvSeeking: this._onvSeeking.bind(this), onvCanPlay: this._onvCanPlay.bind(this), onvStalled: this._onvStalled.bind(this), onvProgress: this._onvProgress.bind(this) }, self.performance && self.performance.now ? this._now = self.performance.now.bind(self.performance) : this._now = Date.now, this._pendingSeekTime = null, this._requestSetTime = !1, this._seekpointRecord = null, this._progressChecker = null, this._mediaDataSource = d, this._mediaElement = null, this._msectl = null, this._transmuxer = null, this._mseSourceOpened = !1, this._hasPendingLoad = !1, this._receivedCanPlay = !1, this._mediaInfo = null, this._statisticsInfo = null;
|
|
4063
|
-
var
|
|
4064
|
-
this._alwaysSeekKeyframe = !!(
|
|
4065
|
+
var Y = j.a.chrome && (j.a.version.major < 50 || j.a.version.major === 50 && j.a.version.build < 2661);
|
|
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
|
-
}), this._emitter.addListener(d,
|
|
4075
|
-
},
|
|
4076
|
-
this._emitter.removeListener(d,
|
|
4077
|
-
},
|
|
4078
|
-
var
|
|
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
|
|
4080
|
-
|
|
4076
|
+
}), this._emitter.addListener(d, c);
|
|
4077
|
+
}, L.prototype.off = function(d, c) {
|
|
4078
|
+
this._emitter.removeListener(d, c);
|
|
4079
|
+
}, L.prototype.attachMediaElement = function(d) {
|
|
4080
|
+
var c = this;
|
|
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() {
|
|
4082
|
+
c._mseSourceOpened = !0, c._hasPendingLoad && (c._hasPendingLoad = !1, c.load());
|
|
4081
4083
|
}), this._msectl.on(l.ERROR, function(R) {
|
|
4082
|
-
|
|
4084
|
+
c._emitter.emit(H.ERROR, D.MEDIA_ERROR, V.MEDIA_MSE_ERROR, R);
|
|
4083
4085
|
}), this._msectl.attachMediaElement(d), this._pendingSeekTime != null) try {
|
|
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!");
|
|
4093
|
-
this._hasPendingLoad || (this._config.deferLoadAfterSourceOpen && this._mseSourceOpened === !1 ? this._hasPendingLoad = !0 : (this._mediaElement.readyState > 0 && (this._requestSetTime = !0, this._mediaElement.currentTime = 0), this._transmuxer = new T(this._mediaDataSource, this._config), this._transmuxer.on(y.a.INIT_SEGMENT, function(
|
|
4095
|
+
this._hasPendingLoad || (this._config.deferLoadAfterSourceOpen && this._mseSourceOpened === !1 ? this._hasPendingLoad = !0 : (this._mediaElement.readyState > 0 && (this._requestSetTime = !0, this._mediaElement.currentTime = 0), this._transmuxer = new T(this._mediaDataSource, this._config), this._transmuxer.on(y.a.INIT_SEGMENT, function(c, R) {
|
|
4094
4096
|
d._msectl.appendInitSegment(R);
|
|
4095
|
-
}), this._transmuxer.on(y.a.MEDIA_SEGMENT, function(
|
|
4097
|
+
}), this._transmuxer.on(y.a.MEDIA_SEGMENT, function(c, R) {
|
|
4096
4098
|
if (d._msectl.appendMediaSegment(R), d._config.lazyLoad && !d._config.isLive) {
|
|
4097
|
-
var
|
|
4098
|
-
R.info.endDts >= 1e3 * (
|
|
4099
|
+
var Y = d._mediaElement.currentTime;
|
|
4100
|
+
R.info.endDts >= 1e3 * (Y + d._config.lazyLoadMaxDuration) && d._progressChecker == null && (C.a.v(d.TAG, "Maximum buffering duration exceeded, suspend transmuxing task"), d._suspendTransmuxer());
|
|
4099
4101
|
}
|
|
4100
4102
|
}), this._transmuxer.on(y.a.LOADING_COMPLETE, function() {
|
|
4101
4103
|
d._msectl.endOfStream(), d._emitter.emit(H.LOADING_COMPLETE);
|
|
4102
4104
|
}), this._transmuxer.on(y.a.RECOVERED_EARLY_EOF, function() {
|
|
4103
4105
|
d._emitter.emit(H.RECOVERED_EARLY_EOF);
|
|
4104
|
-
}), this._transmuxer.on(y.a.IO_ERROR, function(
|
|
4105
|
-
d._emitter.emit(H.ERROR, D.NETWORK_ERROR,
|
|
4106
|
-
}), this._transmuxer.on(y.a.DEMUX_ERROR, function(
|
|
4107
|
-
d._emitter.emit(H.ERROR, D.MEDIA_ERROR,
|
|
4108
|
-
}), this._transmuxer.on(y.a.MEDIA_INFO, function(
|
|
4109
|
-
d._mediaInfo =
|
|
4110
|
-
}), this._transmuxer.on(y.a.METADATA_ARRIVED, function(
|
|
4111
|
-
d._emitter.emit(H.METADATA_ARRIVED,
|
|
4112
|
-
}), this._transmuxer.on(y.a.SCRIPTDATA_ARRIVED, function(
|
|
4113
|
-
d._emitter.emit(H.SCRIPTDATA_ARRIVED,
|
|
4114
|
-
}), this._transmuxer.on(y.a.TIMED_ID3_METADATA_ARRIVED, function(
|
|
4115
|
-
d._emitter.emit(H.TIMED_ID3_METADATA_ARRIVED,
|
|
4116
|
-
}), this._transmuxer.on(y.a.SMPTE2038_METADATA_ARRIVED, function(
|
|
4117
|
-
d._emitter.emit(H.SMPTE2038_METADATA_ARRIVED,
|
|
4118
|
-
}), this._transmuxer.on(y.a.SCTE35_METADATA_ARRIVED, function(
|
|
4119
|
-
d._emitter.emit(H.SCTE35_METADATA_ARRIVED,
|
|
4120
|
-
}), this._transmuxer.on(y.a.PES_PRIVATE_DATA_DESCRIPTOR, function(
|
|
4121
|
-
d._emitter.emit(H.PES_PRIVATE_DATA_DESCRIPTOR,
|
|
4122
|
-
}), this._transmuxer.on(y.a.PES_PRIVATE_DATA_ARRIVED, function(
|
|
4123
|
-
d._emitter.emit(H.PES_PRIVATE_DATA_ARRIVED,
|
|
4124
|
-
}), this._transmuxer.on(y.a.STATISTICS_INFO, function(
|
|
4125
|
-
d._statisticsInfo = d._fillStatisticsInfo(
|
|
4126
|
-
}), this._transmuxer.on(y.a.RECOMMEND_SEEKPOINT, function(
|
|
4127
|
-
d._mediaElement && !d._config.accurateSeek && (d._requestSetTime = !0, d._mediaElement.currentTime =
|
|
4106
|
+
}), this._transmuxer.on(y.a.IO_ERROR, function(c, R) {
|
|
4107
|
+
d._emitter.emit(H.ERROR, D.NETWORK_ERROR, c, R);
|
|
4108
|
+
}), this._transmuxer.on(y.a.DEMUX_ERROR, function(c, R) {
|
|
4109
|
+
d._emitter.emit(H.ERROR, D.MEDIA_ERROR, c, { code: -1, msg: R });
|
|
4110
|
+
}), this._transmuxer.on(y.a.MEDIA_INFO, function(c) {
|
|
4111
|
+
d._mediaInfo = c, d._emitter.emit(H.MEDIA_INFO, Object.assign({}, c));
|
|
4112
|
+
}), this._transmuxer.on(y.a.METADATA_ARRIVED, function(c) {
|
|
4113
|
+
d._emitter.emit(H.METADATA_ARRIVED, c);
|
|
4114
|
+
}), this._transmuxer.on(y.a.SCRIPTDATA_ARRIVED, function(c) {
|
|
4115
|
+
d._emitter.emit(H.SCRIPTDATA_ARRIVED, c);
|
|
4116
|
+
}), this._transmuxer.on(y.a.TIMED_ID3_METADATA_ARRIVED, function(c) {
|
|
4117
|
+
d._emitter.emit(H.TIMED_ID3_METADATA_ARRIVED, c);
|
|
4118
|
+
}), this._transmuxer.on(y.a.SMPTE2038_METADATA_ARRIVED, function(c) {
|
|
4119
|
+
d._emitter.emit(H.SMPTE2038_METADATA_ARRIVED, c);
|
|
4120
|
+
}), this._transmuxer.on(y.a.SCTE35_METADATA_ARRIVED, function(c) {
|
|
4121
|
+
d._emitter.emit(H.SCTE35_METADATA_ARRIVED, c);
|
|
4122
|
+
}), this._transmuxer.on(y.a.PES_PRIVATE_DATA_DESCRIPTOR, function(c) {
|
|
4123
|
+
d._emitter.emit(H.PES_PRIVATE_DATA_DESCRIPTOR, c);
|
|
4124
|
+
}), this._transmuxer.on(y.a.PES_PRIVATE_DATA_ARRIVED, function(c) {
|
|
4125
|
+
d._emitter.emit(H.PES_PRIVATE_DATA_ARRIVED, c);
|
|
4126
|
+
}), this._transmuxer.on(y.a.STATISTICS_INFO, function(c) {
|
|
4127
|
+
d._statisticsInfo = d._fillStatisticsInfo(c), d._emitter.emit(H.STATISTICS_INFO, Object.assign({}, d._statisticsInfo));
|
|
4128
|
+
}), this._transmuxer.on(y.a.RECOMMEND_SEEKPOINT, function(c) {
|
|
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
|
-
var
|
|
4161
|
+
var c = !0, R = 0, Y = 0;
|
|
4160
4162
|
if (this._mediaElement.getVideoPlaybackQuality) {
|
|
4161
4163
|
var oe = this._mediaElement.getVideoPlaybackQuality();
|
|
4162
|
-
R = oe.totalVideoFrames,
|
|
4163
|
-
} else this._mediaElement.webkitDecodedFrameCount != null ? (R = this._mediaElement.webkitDecodedFrameCount,
|
|
4164
|
-
return
|
|
4165
|
-
},
|
|
4166
|
-
var d = this._mediaElement.buffered,
|
|
4164
|
+
R = oe.totalVideoFrames, Y = oe.droppedVideoFrames;
|
|
4165
|
+
} else this._mediaElement.webkitDecodedFrameCount != null ? (R = this._mediaElement.webkitDecodedFrameCount, Y = this._mediaElement.webkitDroppedFrameCount) : c = !1;
|
|
4166
|
+
return c && (d.decodedFrames = R, d.droppedFrames = Y), d;
|
|
4167
|
+
}, L.prototype._onmseUpdateEnd = function() {
|
|
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);
|
|
4169
|
-
if (R > this._config.liveBufferLatencyMaxLatency && R -
|
|
4170
|
-
var
|
|
4171
|
-
this.currentTime =
|
|
4171
|
+
if (R > this._config.liveBufferLatencyMaxLatency && R - c > this._config.liveBufferLatencyMaxLatency) {
|
|
4172
|
+
var Y = R - this._config.liveBufferLatencyMinRemain;
|
|
4173
|
+
this.currentTime = Y;
|
|
4172
4174
|
}
|
|
4173
4175
|
}
|
|
4174
4176
|
if (this._config.lazyLoad && !this._config.isLive) {
|
|
4175
4177
|
for (var oe = 0, me = 0; me < d.length; me++) {
|
|
4176
4178
|
var Se = d.start(me), De = d.end(me);
|
|
4177
|
-
if (Se <=
|
|
4179
|
+
if (Se <= c && c < De) {
|
|
4178
4180
|
oe = De;
|
|
4179
4181
|
break;
|
|
4180
4182
|
}
|
|
4181
4183
|
}
|
|
4182
|
-
oe >=
|
|
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
|
-
},
|
|
4189
|
-
for (var d = this._mediaElement.currentTime,
|
|
4190
|
-
var oe =
|
|
4190
|
+
}, L.prototype._checkProgressAndResume = function() {
|
|
4191
|
+
for (var d = this._mediaElement.currentTime, c = this._mediaElement.buffered, R = !1, Y = 0; Y < c.length; Y++) {
|
|
4192
|
+
var oe = c.start(Y), me = c.end(Y);
|
|
4191
4193
|
if (d >= oe && d < me) {
|
|
4192
4194
|
d >= me - this._config.lazyLoadRecoverDuration && (R = !0);
|
|
4193
4195
|
break;
|
|
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
|
-
},
|
|
4198
|
-
for (var
|
|
4199
|
-
var
|
|
4200
|
-
if (d >=
|
|
4199
|
+
}, L.prototype._isTimepointBuffered = function(d) {
|
|
4200
|
+
for (var c = this._mediaElement.buffered, R = 0; R < c.length; R++) {
|
|
4201
|
+
var Y = c.start(R), oe = c.end(R);
|
|
4202
|
+
if (d >= Y && d < oe) return !0;
|
|
4201
4203
|
}
|
|
4202
4204
|
return !1;
|
|
4203
|
-
},
|
|
4204
|
-
var
|
|
4205
|
+
}, L.prototype._internalSeek = function(d) {
|
|
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);
|
|
4207
|
-
(oe < 1 && d < oe ||
|
|
4209
|
+
(oe < 1 && d < oe || j.a.safari) && (R = !0, Y = j.a.safari ? 0.1 : oe);
|
|
4208
4210
|
}
|
|
4209
|
-
if (R) this._requestSetTime = !0, this._mediaElement.currentTime =
|
|
4210
|
-
else if (
|
|
4211
|
+
if (R) this._requestSetTime = !0, this._mediaElement.currentTime = Y;
|
|
4212
|
+
else if (c) {
|
|
4211
4213
|
if (this._alwaysSeekKeyframe) {
|
|
4212
4214
|
var me = this._msectl.getNearestKeyframe(Math.floor(1e3 * d));
|
|
4213
4215
|
this._requestSetTime = !0, this._mediaElement.currentTime = me != null ? me.dts / 1e3 : d;
|
|
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
|
-
},
|
|
4223
|
-
var
|
|
4224
|
-
if (d || !this._receivedCanPlay ||
|
|
4225
|
-
var R =
|
|
4226
|
-
R.length > 0 &&
|
|
4224
|
+
}, L.prototype._checkAndResumeStuckPlayback = function(d) {
|
|
4225
|
+
var c = this._mediaElement;
|
|
4226
|
+
if (d || !this._receivedCanPlay || c.readyState < 2) {
|
|
4227
|
+
var R = c.buffered;
|
|
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
|
-
},
|
|
4231
|
-
var
|
|
4232
|
+
}, L.prototype._onvSeeking = function(d) {
|
|
4233
|
+
var c = this._mediaElement.currentTime, R = this._mediaElement.buffered;
|
|
4232
4234
|
if (this._requestSetTime) this._requestSetTime = !1;
|
|
4233
4235
|
else {
|
|
4234
|
-
if (
|
|
4235
|
-
var
|
|
4236
|
-
if (
|
|
4236
|
+
if (c < 1 && R.length > 0) {
|
|
4237
|
+
var Y = R.start(0);
|
|
4238
|
+
if (Y < 1 && c < Y || j.a.safari) return this._requestSetTime = !0, void (this._mediaElement.currentTime = j.a.safari ? 0.1 : Y);
|
|
4237
4239
|
}
|
|
4238
|
-
if (this._isTimepointBuffered(
|
|
4240
|
+
if (this._isTimepointBuffered(c)) {
|
|
4239
4241
|
if (this._alwaysSeekKeyframe) {
|
|
4240
|
-
var oe = this._msectl.getNearestKeyframe(Math.floor(1e3 *
|
|
4242
|
+
var oe = this._msectl.getNearestKeyframe(Math.floor(1e3 * c));
|
|
4241
4243
|
oe != null && (this._requestSetTime = !0, this._mediaElement.currentTime = oe.dts / 1e3);
|
|
4242
4244
|
}
|
|
4243
4245
|
this._progressChecker != null && this._checkProgressAndResume();
|
|
4244
|
-
} else this._seekpointRecord = { seekPoint:
|
|
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
|
|
4255
|
-
this.TAG = "NativePlayer", this._type = "NativePlayer", this._emitter = new
|
|
4256
|
+
function L(d, c) {
|
|
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
|
-
}), this._emitter.addListener(d,
|
|
4270
|
-
},
|
|
4271
|
-
this._emitter.removeListener(d,
|
|
4272
|
-
},
|
|
4271
|
+
}), this._emitter.addListener(d, c);
|
|
4272
|
+
}, L.prototype.off = function(d, c) {
|
|
4273
|
+
this._emitter.removeListener(d, c);
|
|
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
|
-
var
|
|
4314
|
+
var c = !0, R = 0, Y = 0;
|
|
4313
4315
|
if (this._mediaElement.getVideoPlaybackQuality) {
|
|
4314
4316
|
var oe = this._mediaElement.getVideoPlaybackQuality();
|
|
4315
|
-
R = oe.totalVideoFrames,
|
|
4316
|
-
} else this._mediaElement.webkitDecodedFrameCount != null ? (R = this._mediaElement.webkitDecodedFrameCount,
|
|
4317
|
-
return
|
|
4318
|
-
}, enumerable: !1, configurable: !0 }),
|
|
4317
|
+
R = oe.totalVideoFrames, Y = oe.droppedVideoFrames;
|
|
4318
|
+
} else this._mediaElement.webkitDecodedFrameCount != null ? (R = this._mediaElement.webkitDecodedFrameCount, Y = this._mediaElement.webkitDroppedFrameCount) : c = !1;
|
|
4319
|
+
return c && (d.decodedFrames = R, d.droppedFrames = Y), d;
|
|
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
|
|
4327
|
-
if (
|
|
4328
|
-
if (!
|
|
4329
|
-
switch (
|
|
4327
|
+
var ve = { createPlayer: function(L, d) {
|
|
4328
|
+
var c = L;
|
|
4329
|
+
if (c == null || typeof c != "object") throw new _.b("MediaDataSource must be an javascript object!");
|
|
4330
|
+
if (!c.hasOwnProperty("type")) throw new _.b("MediaDataSource must has type field to indicate video file type!");
|
|
4331
|
+
switch (c.type) {
|
|
4330
4332
|
case "mse":
|
|
4331
4333
|
case "mpegts":
|
|
4332
4334
|
case "m2ts":
|
|
4333
4335
|
case "flv":
|
|
4334
|
-
return new ee(
|
|
4336
|
+
return new ee(c, d);
|
|
4335
4337
|
default:
|
|
4336
|
-
return new pe(
|
|
4338
|
+
return new pe(c, d);
|
|
4337
4339
|
}
|
|
4338
4340
|
}, isSupported: function() {
|
|
4339
4341
|
return v.supportMSEH264Playback();
|
|
4340
4342
|
}, getFeatureList: function() {
|
|
4341
4343
|
return v.getFeatureList();
|
|
4342
4344
|
} };
|
|
4343
|
-
ve.BaseLoader = f.a, ve.LoaderStatus = f.c, ve.LoaderErrors = f.b, ve.Events = H, ve.ErrorTypes = D, ve.ErrorDetails =
|
|
4345
|
+
ve.BaseLoader = f.a, ve.LoaderStatus = f.c, ve.LoaderErrors = f.b, ve.Events = H, ve.ErrorTypes = D, ve.ErrorDetails = V, ve.MSEPlayer = ee, ve.NativePlayer = pe, ve.LoggingControl = X.a, Object.defineProperty(ve, "version", { enumerable: !0, get: function() {
|
|
4344
4346
|
return "1.7.3";
|
|
4345
4347
|
} }), Z.default = ve;
|
|
4346
4348
|
}]);
|
|
@@ -4358,12 +4360,13 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
|
|
|
4358
4360
|
loadingText: {},
|
|
4359
4361
|
error: { type: Boolean },
|
|
4360
4362
|
errorText: {},
|
|
4361
|
-
retryTime: {}
|
|
4363
|
+
retryTime: {},
|
|
4364
|
+
errorTime: {}
|
|
4362
4365
|
},
|
|
4363
4366
|
emits: ["loaded", "errorClick"],
|
|
4364
4367
|
setup(Ie, { expose: Ye, emit: fe }) {
|
|
4365
|
-
Jt((
|
|
4366
|
-
"
|
|
4368
|
+
Jt((h) => ({
|
|
4369
|
+
"0ea53312": u.value
|
|
4367
4370
|
}));
|
|
4368
4371
|
const Z = Ie, O = fe;
|
|
4369
4372
|
let U;
|
|
@@ -4373,50 +4376,57 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
|
|
|
4373
4376
|
loading: b = !1,
|
|
4374
4377
|
error: v = !1,
|
|
4375
4378
|
errorText: f = At("das-ui-live-player-videoLoadFailedRetry")
|
|
4376
|
-
} = Zt(Z),
|
|
4377
|
-
const
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4379
|
+
} = Zt(Z), k = (h) => {
|
|
4380
|
+
const P = h.target;
|
|
4381
|
+
console.log("Video error:", P.error), setTimeout(() => {
|
|
4382
|
+
C();
|
|
4383
|
+
}, 1e3);
|
|
4384
|
+
}, M = He(Z.errorTime || 10), C = () => {
|
|
4385
|
+
M.value !== 0 && (M.value = M.value - 1, T(), ie());
|
|
4386
|
+
}, j = ot(() => Z.src || ""), H = ot(() => {
|
|
4387
|
+
const h = j.value.split(".").pop() || void 0;
|
|
4388
|
+
return Z.type ?? h ?? "flv";
|
|
4389
|
+
}), le = ot(() => Z.config || {}), ne = He(Z.retryTime || 0), X = He(null), ie = async () => {
|
|
4390
|
+
if (!X.value) return;
|
|
4391
|
+
const h = {
|
|
4392
|
+
type: H.value,
|
|
4383
4393
|
isLive: !0,
|
|
4384
|
-
url:
|
|
4394
|
+
url: j.value
|
|
4385
4395
|
};
|
|
4386
|
-
U = Rt.createPlayer(
|
|
4387
|
-
},
|
|
4388
|
-
|
|
4389
|
-
},
|
|
4390
|
-
|
|
4391
|
-
},
|
|
4392
|
-
U && (U.pause(), U.unload(), U.detachMediaElement(), U.destroy(), U = null);
|
|
4396
|
+
U = Rt.createPlayer(h, le.value), U.attachMediaElement(X.value), U.load(), U.play(), U.on(Rt.Events.ERROR, y), O("loaded", U);
|
|
4397
|
+
}, y = (h, P) => {
|
|
4398
|
+
console.error("mpegts error:", h, P), G();
|
|
4399
|
+
}, G = () => {
|
|
4400
|
+
ne.value !== 0 && (ne.value = ne.value - 1, T(), ie());
|
|
4401
|
+
}, T = () => {
|
|
4402
|
+
U && (console.log("destroy", U), U.pause(), U.unload(), U.detachMediaElement(), U.destroy(), U = null);
|
|
4393
4403
|
};
|
|
4394
4404
|
$t(() => {
|
|
4395
|
-
|
|
4405
|
+
ie();
|
|
4396
4406
|
}), Qt(() => {
|
|
4397
|
-
|
|
4407
|
+
T();
|
|
4398
4408
|
}), Ye({
|
|
4399
|
-
video:
|
|
4409
|
+
video: X
|
|
4400
4410
|
});
|
|
4401
|
-
const
|
|
4402
|
-
|
|
4411
|
+
const l = He("el-icon-loading"), u = He("rgba(0, 0, 0, 0.8)"), _ = () => {
|
|
4412
|
+
ie(), O("errorClick");
|
|
4403
4413
|
};
|
|
4404
|
-
return (
|
|
4405
|
-
const
|
|
4414
|
+
return (h, P) => {
|
|
4415
|
+
const D = si;
|
|
4406
4416
|
return ei((ut(), dt("div", {
|
|
4407
4417
|
class: "das-live-player",
|
|
4408
|
-
"element-loading-text":
|
|
4409
|
-
"element-loading-spinner":
|
|
4410
|
-
"element-loading-background":
|
|
4418
|
+
"element-loading-text": Xe(m),
|
|
4419
|
+
"element-loading-spinner": l.value,
|
|
4420
|
+
"element-loading-background": u.value
|
|
4411
4421
|
}, [
|
|
4412
|
-
|
|
4422
|
+
Xe(v) ? (ut(), dt("div", {
|
|
4413
4423
|
key: 1,
|
|
4414
4424
|
class: "error",
|
|
4415
|
-
onClick:
|
|
4425
|
+
onClick: _
|
|
4416
4426
|
}, [
|
|
4417
|
-
ii(
|
|
4427
|
+
ii(h.$slots, "error", {}, () => [
|
|
4418
4428
|
ri(
|
|
4419
|
-
ai(
|
|
4429
|
+
ai(Xe(f)),
|
|
4420
4430
|
1
|
|
4421
4431
|
/* TEXT */
|
|
4422
4432
|
)
|
|
@@ -4426,17 +4436,18 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
|
|
|
4426
4436
|
{
|
|
4427
4437
|
key: 0,
|
|
4428
4438
|
ref_key: "video",
|
|
4429
|
-
ref:
|
|
4439
|
+
ref: X,
|
|
4430
4440
|
class: "video",
|
|
4431
|
-
style: ti({ "object-fit":
|
|
4432
|
-
muted: ""
|
|
4441
|
+
style: ti({ "object-fit": Xe(B) }),
|
|
4442
|
+
muted: "",
|
|
4443
|
+
onError: k
|
|
4433
4444
|
},
|
|
4434
4445
|
null,
|
|
4435
|
-
|
|
4436
|
-
/* STYLE */
|
|
4446
|
+
36
|
|
4447
|
+
/* STYLE, NEED_HYDRATION */
|
|
4437
4448
|
))
|
|
4438
4449
|
], 8, li)), [
|
|
4439
|
-
[
|
|
4450
|
+
[D, Xe(b)]
|
|
4440
4451
|
]);
|
|
4441
4452
|
};
|
|
4442
4453
|
}
|
|
@@ -4445,7 +4456,7 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
|
|
|
4445
4456
|
for (const [Z, O] of Ye)
|
|
4446
4457
|
fe[Z] = O;
|
|
4447
4458
|
return fe;
|
|
4448
|
-
}, ci = /* @__PURE__ */ hi(_i, [["__scopeId", "data-v-
|
|
4459
|
+
}, ci = /* @__PURE__ */ hi(_i, [["__scopeId", "data-v-6002a51c"]]), fi = {
|
|
4449
4460
|
加载中: { "zh-CN": "加载中", en: "Loading", _appCode: "framework" },
|
|
4450
4461
|
"das-ui-live-player-videoLoadFailedRetry": {
|
|
4451
4462
|
"zh-CN": "视频加载失败,请点击重试",
|
|
@@ -4454,7 +4465,7 @@ const Rt = /* @__PURE__ */ di(ui), li = ["element-loading-text", "element-loadin
|
|
|
4454
4465
|
}
|
|
4455
4466
|
};
|
|
4456
4467
|
oi(fi);
|
|
4457
|
-
const Si = ni(ci), Ei = () =>
|
|
4468
|
+
const Si = ni(ci), Ei = () => He(null);
|
|
4458
4469
|
export {
|
|
4459
4470
|
Si as DasLivePlayer,
|
|
4460
4471
|
Ei as getDasLivePlayerRef
|