@volcengine/veplayer-plugin 2.12.0-rc.0 → 2.12.0-rc.2
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/index.development.js +537 -246
- package/esm/index.production.js +3 -3
- package/esm/veplayer.plugin.abr.development.js +3 -1
- package/esm/veplayer.plugin.abr.production.js +1 -1
- package/esm/veplayer.plugin.ad.development.js +18 -4
- package/esm/veplayer.plugin.ad.production.js +2 -2
- package/esm/veplayer.plugin.drm.development.js +3 -1
- package/esm/veplayer.plugin.drm.production.js +1 -1
- package/esm/veplayer.plugin.flv.development.js +5 -3
- package/esm/veplayer.plugin.flv.production.js +1 -1
- package/esm/veplayer.plugin.hls.development.js +64 -14
- package/esm/veplayer.plugin.hls.production.js +1 -1
- package/esm/veplayer.plugin.hlsjs.development.js +3 -1
- package/esm/veplayer.plugin.hlsjs.production.js +1 -1
- package/esm/veplayer.plugin.mp4.development.js +9 -3
- package/esm/veplayer.plugin.mp4.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +293 -151
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/esm/veplayer.plugin.shaka.development.js +8 -2
- package/esm/veplayer.plugin.shaka.production.js +2 -2
- package/esm/veplayer.strategy.base.development.js +163 -78
- package/esm/veplayer.strategy.base.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.plugin.abr.development.js +3 -1
- package/umd/veplayer.plugin.abr.production.js +1 -1
- package/umd/veplayer.plugin.ad.development.js +18 -4
- package/umd/veplayer.plugin.ad.production.js +1 -1
- package/umd/veplayer.plugin.drm.development.js +3 -1
- package/umd/veplayer.plugin.drm.production.js +1 -1
- package/umd/veplayer.plugin.flv.development.js +5 -3
- package/umd/veplayer.plugin.flv.production.js +1 -1
- package/umd/veplayer.plugin.hls.development.js +64 -14
- package/umd/veplayer.plugin.hls.production.js +1 -1
- package/umd/veplayer.plugin.hlsjs.development.js +3 -1
- package/umd/veplayer.plugin.hlsjs.production.js +1 -1
- package/umd/veplayer.plugin.mp4.development.js +9 -3
- package/umd/veplayer.plugin.mp4.production.js +1 -1
- package/umd/veplayer.plugin.rtm.development.js +293 -151
- package/umd/veplayer.plugin.rtm.production.js +1 -1
- package/umd/veplayer.plugin.shaka.development.js +8 -2
- package/umd/veplayer.plugin.shaka.production.js +1 -1
- package/umd/veplayer.strategy.base.development.js +163 -78
- package/umd/veplayer.strategy.base.production.js +1 -1
|
@@ -901,7 +901,7 @@
|
|
|
901
901
|
}
|
|
902
902
|
if (this.__hooks && this.__hooks[hookName]) {
|
|
903
903
|
try {
|
|
904
|
-
var preRet = runHooks(this, hookName, handler);
|
|
904
|
+
var preRet = runHooks.apply(void 0, [this, hookName, handler].concat(Array.prototype.slice.call(arguments)));
|
|
905
905
|
if (preRet) {
|
|
906
906
|
if (preRet.then) {
|
|
907
907
|
preRet.then(function(isContinue) {
|
|
@@ -1015,6 +1015,8 @@
|
|
|
1015
1015
|
});
|
|
1016
1016
|
} else if (ret !== false) {
|
|
1017
1017
|
return runHooksRecursive2.apply(void 0, [obj2, hookName2, handler2].concat(args2));
|
|
1018
|
+
} else if (ret === false) {
|
|
1019
|
+
return false;
|
|
1018
1020
|
}
|
|
1019
1021
|
};
|
|
1020
1022
|
return runHooksRecursive.apply(void 0, [obj, hookName, handler].concat(args));
|
|
@@ -7852,7 +7854,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
7852
7854
|
_classCallCheck(this, e), _defineProperty(this, "logger", void 0), _defineProperty(this, "level", void 0), _defineProperty(this, "customLogger", void 0), this.level = null == r ? void 0 : r.level, this.customLogger = null == r ? void 0 : r.logger, this.logger = function(e2, r2) {
|
|
7853
7855
|
var o, a, i2, s;
|
|
7854
7856
|
try {
|
|
7855
|
-
s = "0.0.0-feat-
|
|
7857
|
+
s = "0.0.0-feat-ott-20251117064959";
|
|
7856
7858
|
} catch (e3) {
|
|
7857
7859
|
s = "--";
|
|
7858
7860
|
}
|
|
@@ -9162,9 +9164,12 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
9162
9164
|
} }]), e;
|
|
9163
9165
|
}(), FeatureCenter = function() {
|
|
9164
9166
|
function e(t2) {
|
|
9165
|
-
|
|
9167
|
+
var r2 = this;
|
|
9168
|
+
_classCallCheck(this, e), _defineProperty(this, "featureList", void 0), _defineProperty(this, "videoType", void 0), this.videoType = t2.type || VideoType.VOD, this.featureList = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({ deviceId: null == t2 ? void 0 : t2.deviceId, userId: null == t2 ? void 0 : t2.userId, playerVersion: null == t2 ? void 0 : t2.playerVersion }, this.initSync()), this.getGPUInfo()), this.getLocalDeviceMarkInfo()), this.getH265FeatureList()), this.getOSVersionAsync().then(function(e2) {
|
|
9169
|
+
r2.updateFeatureList({ osVersion: e2 });
|
|
9170
|
+
});
|
|
9166
9171
|
}
|
|
9167
|
-
var t;
|
|
9172
|
+
var t, r;
|
|
9168
9173
|
return _createClass(e, [{ key: "initSync", value: function() {
|
|
9169
9174
|
return _objectSpread2({}, this.getBrowserInfo());
|
|
9170
9175
|
} }, { key: "updateFeatureList", value: function(e2) {
|
|
@@ -9178,13 +9183,13 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
9178
9183
|
if (!e2)
|
|
9179
9184
|
return t2;
|
|
9180
9185
|
try {
|
|
9181
|
-
var
|
|
9182
|
-
return { cpuScore:
|
|
9186
|
+
var r2 = JSON.parse(e2);
|
|
9187
|
+
return { cpuScore: r2.cpuScore, netScore: r2.netScore, renderScore: r2.renderScore };
|
|
9183
9188
|
} catch (e3) {
|
|
9184
9189
|
}
|
|
9185
9190
|
return t2;
|
|
9186
|
-
} }, { key: "getDeviceMarkInfoAsync", value: (
|
|
9187
|
-
var t2,
|
|
9191
|
+
} }, { key: "getDeviceMarkInfoAsync", value: (r = _asyncToGenerator(_regeneratorRuntime().mark(function e2() {
|
|
9192
|
+
var t2, r2, n, o, a, i2;
|
|
9188
9193
|
return _regeneratorRuntime().wrap(function(e3) {
|
|
9189
9194
|
for (; ; )
|
|
9190
9195
|
switch (e3.prev = e3.next) {
|
|
@@ -9197,21 +9202,76 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
9197
9202
|
}
|
|
9198
9203
|
e3.t0 = {};
|
|
9199
9204
|
case 6:
|
|
9200
|
-
return
|
|
9205
|
+
return r2 = e3.t0, n = r2.cpu, o = r2.net, a = r2.render, i2 = { cpuScore: (null == n ? void 0 : n.score) || -1, netScore: (null == o ? void 0 : o.score) || -1, renderScore: (null == a ? void 0 : a.score) || -1 }, setLocalStorage(this.videoType === VideoType.LIVE ? FEATURE_STORAGE_KEY.DEVICE_INFO_LIVE : FEATURE_STORAGE_KEY.DEVICE_INFO, _JSON$stringify(i2)), this.updateFeatureList(i2), e3.abrupt("return", i2);
|
|
9201
9206
|
case 14:
|
|
9202
9207
|
case "end":
|
|
9203
9208
|
return e3.stop();
|
|
9204
9209
|
}
|
|
9205
9210
|
}, e2, this);
|
|
9206
9211
|
})), function() {
|
|
9207
|
-
return
|
|
9212
|
+
return r.apply(this, arguments);
|
|
9208
9213
|
}) }, { key: "getBrowserInfo", value: function() {
|
|
9209
9214
|
var e2 = Bowser.getParser(navigator.userAgent);
|
|
9210
|
-
return { browserVersion: e2.getBrowserVersion(), browserName: e2.getBrowserName(), cpuCore: navigator.hardwareConcurrency, osName: e2.getOSName(), osVersion: e2.getOSVersion(), platformType:
|
|
9215
|
+
return { browserVersion: e2.getBrowserVersion(), browserName: e2.getBrowserName(), cpuCore: navigator.hardwareConcurrency, osName: e2.getOSName(), osVersion: e2.getOSVersion(), platformType: this.getPlatformType(), engineName: e2.getEngineName() };
|
|
9216
|
+
} }, { key: "getPlatformType", value: function() {
|
|
9217
|
+
var e2 = Bowser.getParser(navigator.userAgent), t2 = e2.getOSName();
|
|
9218
|
+
return "WebOS" === t2 || "Tizen" === t2 ? "tv" : e2.getPlatformType();
|
|
9219
|
+
} }, { key: "getOSVersionAsync", value: (t = _asyncToGenerator(_regeneratorRuntime().mark(function e2() {
|
|
9220
|
+
var t2, r2;
|
|
9221
|
+
return _regeneratorRuntime().wrap(function(e3) {
|
|
9222
|
+
for (; ; )
|
|
9223
|
+
switch (e3.prev = e3.next) {
|
|
9224
|
+
case 0:
|
|
9225
|
+
if (t2 = Bowser.getParser(navigator.userAgent), !(r2 = t2.getOSVersion())) {
|
|
9226
|
+
e3.next = 4;
|
|
9227
|
+
break;
|
|
9228
|
+
}
|
|
9229
|
+
return e3.abrupt("return", r2);
|
|
9230
|
+
case 4:
|
|
9231
|
+
if ("tv" != this.getPlatformType()) {
|
|
9232
|
+
e3.next = 8;
|
|
9233
|
+
break;
|
|
9234
|
+
}
|
|
9235
|
+
return e3.next = 7, this.getSmartTvInfoAsync();
|
|
9236
|
+
case 7:
|
|
9237
|
+
return e3.abrupt("return", e3.sent.osVersion);
|
|
9238
|
+
case 8:
|
|
9239
|
+
return e3.abrupt("return", "unknown");
|
|
9240
|
+
case 9:
|
|
9241
|
+
case "end":
|
|
9242
|
+
return e3.stop();
|
|
9243
|
+
}
|
|
9244
|
+
}, e2, this);
|
|
9245
|
+
})), function() {
|
|
9246
|
+
return t.apply(this, arguments);
|
|
9247
|
+
}) }, { key: "getSmartTvInfoAsync", value: function() {
|
|
9248
|
+
return new _Promise(function(e2) {
|
|
9249
|
+
var t2 = navigator.userAgent.toLowerCase();
|
|
9250
|
+
if ((_includesInstanceProperty(t2).call(t2, "webos") || _includesInstanceProperty(t2).call(t2, "web0s")) && window.webOS.deviceInfo(function(t3) {
|
|
9251
|
+
var r3 = (null == t3 ? void 0 : t3.sdkVersion) || "unknown";
|
|
9252
|
+
e2({ osVersion: r3 });
|
|
9253
|
+
}), _includesInstanceProperty(t2).call(t2, "tizen")) {
|
|
9254
|
+
var r2 = "unknown";
|
|
9255
|
+
try {
|
|
9256
|
+
var n;
|
|
9257
|
+
if ("undefined" != typeof window && null !== (n = window) && void 0 !== n && null !== (n = n.webapis) && void 0 !== n && n.systeminfo) {
|
|
9258
|
+
var o = window.webapis.systeminfo.getVersion();
|
|
9259
|
+
o && (r2 = o);
|
|
9260
|
+
}
|
|
9261
|
+
if ("unknown" === r2) {
|
|
9262
|
+
var a, i2 = null === (a = window) || void 0 === a || null === (a = a.tizen) || void 0 === a || null === (a = a.systeminfo) || void 0 === a ? void 0 : a.getCapability("http://tizen.org/feature/platform.version");
|
|
9263
|
+
i2 && (r2 = i2);
|
|
9264
|
+
}
|
|
9265
|
+
} catch (e3) {
|
|
9266
|
+
r2 = "unknown", console.warn("Failed to get Tizen version", e3);
|
|
9267
|
+
}
|
|
9268
|
+
e2({ osVersion: r2 });
|
|
9269
|
+
}
|
|
9270
|
+
});
|
|
9211
9271
|
} }, { key: "getGPUInfo", value: function() {
|
|
9212
9272
|
try {
|
|
9213
|
-
var e2 = Gpu$1.parseVendor(), t2 = Gpu$1.getGPUVendor(),
|
|
9214
|
-
return { gpuScore: (null == e2 ? void 0 : e2.score) || -1, isCloseGPU:
|
|
9273
|
+
var e2 = Gpu$1.parseVendor(), t2 = Gpu$1.getGPUVendor(), r2 = _includesInstanceProperty(t2).call(t2, "SwiftShader");
|
|
9274
|
+
return { gpuScore: (null == e2 ? void 0 : e2.score) || -1, isCloseGPU: r2 };
|
|
9215
9275
|
} catch (e3) {
|
|
9216
9276
|
return { gpuScore: -1, isCloseGPU: false };
|
|
9217
9277
|
}
|
|
@@ -9765,9 +9825,9 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
9765
9825
|
} catch (e3) {
|
|
9766
9826
|
}
|
|
9767
9827
|
}(), O = _ && _.isTypedArray;
|
|
9768
|
-
var P, I, E, T = Array.prototype, A = Function.prototype,
|
|
9828
|
+
var P, I, E, T = Array.prototype, A = Function.prototype, w = Object.prototype, C = g["__core-js_shared__"], R = A.toString, j = w.hasOwnProperty, N = (P = /[^.]+$/.exec(C && _keysInstanceProperty(C) && _keysInstanceProperty(C).IE_PROTO || "")) ? "Symbol(src)_1." + P : "", M = w.toString, D = R.call(Object), k = RegExp("^" + R.call(j).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), L = m ? g.Buffer : void 0, x = g.Symbol, U = g.Uint8Array, F = L ? L.allocUnsafe : void 0, B = (I = _Object$getPrototypeOf, E = Object, function(e2) {
|
|
9769
9829
|
return I(E(e2));
|
|
9770
|
-
}), V = _Object$create,
|
|
9830
|
+
}), V = _Object$create, G = w.propertyIsEnumerable, K = _spliceInstanceProperty(T), H = x ? x.toStringTag : void 0, W2 = function() {
|
|
9771
9831
|
try {
|
|
9772
9832
|
var e2 = be(Object, "defineProperty");
|
|
9773
9833
|
return e2({}, "", {}), e2;
|
|
@@ -9777,7 +9837,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
9777
9837
|
function e2() {
|
|
9778
9838
|
}
|
|
9779
9839
|
return function(t2) {
|
|
9780
|
-
if (!
|
|
9840
|
+
if (!Ce(t2))
|
|
9781
9841
|
return {};
|
|
9782
9842
|
if (V)
|
|
9783
9843
|
return V(t2);
|
|
@@ -9859,7 +9919,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
9859
9919
|
this.__data__ = [], this.size = 0;
|
|
9860
9920
|
}, ee.prototype.delete = function(e2) {
|
|
9861
9921
|
var t2 = this.__data__, r2 = ie(t2, e2);
|
|
9862
|
-
return !(r2 < 0) && (r2 == t2.length - 1 ? t2.pop() :
|
|
9922
|
+
return !(r2 < 0) && (r2 == t2.length - 1 ? t2.pop() : K.call(t2, r2, 1), --this.size, true);
|
|
9863
9923
|
}, ee.prototype.get = function(e2) {
|
|
9864
9924
|
var t2 = this.__data__, r2 = ie(t2, e2);
|
|
9865
9925
|
return r2 < 0 ? void 0 : t2[r2][1];
|
|
@@ -9926,7 +9986,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
9926
9986
|
return Re(e2) && ue(e2) == o;
|
|
9927
9987
|
}
|
|
9928
9988
|
function pe(e2) {
|
|
9929
|
-
return !(!
|
|
9989
|
+
return !(!Ce(e2) || function(e3) {
|
|
9930
9990
|
return !!N && N in e3;
|
|
9931
9991
|
}(e2)) && (Ae(e2) ? k : p).test(function(e3) {
|
|
9932
9992
|
if (null != e3) {
|
|
@@ -9943,7 +10003,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
9943
10003
|
}(e2));
|
|
9944
10004
|
}
|
|
9945
10005
|
function fe(e2) {
|
|
9946
|
-
if (!
|
|
10006
|
+
if (!Ce(e2))
|
|
9947
10007
|
return function(e3) {
|
|
9948
10008
|
var t3 = [];
|
|
9949
10009
|
if (null != e3)
|
|
@@ -9958,7 +10018,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
9958
10018
|
}
|
|
9959
10019
|
function ye(e2, t2, r2, n2, o2) {
|
|
9960
10020
|
e2 !== t2 && ce(t2, function(a2, i3) {
|
|
9961
|
-
if (o2 || (o2 = new re()),
|
|
10021
|
+
if (o2 || (o2 = new re()), Ce(a2))
|
|
9962
10022
|
!function(e3, t3, r3, n3, o3, a3, i4) {
|
|
9963
10023
|
var s3 = Se(e3, r3), l2 = Se(t3, r3), u2 = i4.get(l2);
|
|
9964
10024
|
if (u2)
|
|
@@ -9996,7 +10056,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
9996
10056
|
}
|
|
9997
10057
|
return r4;
|
|
9998
10058
|
}(e4, Ne(e4));
|
|
9999
|
-
}(s3) :
|
|
10059
|
+
}(s3) : Ce(s3) && !Ae(s3) || ($3 = function(e4) {
|
|
10000
10060
|
return "function" != typeof e4.constructor || me(e4) ? {} : X(B(e4));
|
|
10001
10061
|
}(l2))) : p2 = false;
|
|
10002
10062
|
}
|
|
@@ -10057,7 +10117,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
10057
10117
|
}
|
|
10058
10118
|
function me(e2) {
|
|
10059
10119
|
var t2 = e2 && e2.constructor;
|
|
10060
|
-
return e2 === ("function" == typeof t2 && t2.prototype ||
|
|
10120
|
+
return e2 === ("function" == typeof t2 && t2.prototype || w);
|
|
10061
10121
|
}
|
|
10062
10122
|
function Se(e2, t2) {
|
|
10063
10123
|
if (("constructor" !== t2 || "function" != typeof e2[t2]) && "__proto__" != t2)
|
|
@@ -10081,24 +10141,24 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
10081
10141
|
var Pe = $e(function() {
|
|
10082
10142
|
return arguments;
|
|
10083
10143
|
}()) ? $e : function(e2) {
|
|
10084
|
-
return Re(e2) && j.call(e2, "callee") && !
|
|
10144
|
+
return Re(e2) && j.call(e2, "callee") && !G.call(e2, "callee");
|
|
10085
10145
|
}, Ie = _Array$isArray;
|
|
10086
10146
|
function Ee(e2) {
|
|
10087
|
-
return null != e2 &&
|
|
10147
|
+
return null != e2 && we(e2.length) && !Ae(e2);
|
|
10088
10148
|
}
|
|
10089
10149
|
var Te = Y || function() {
|
|
10090
10150
|
return false;
|
|
10091
10151
|
};
|
|
10092
10152
|
function Ae(e2) {
|
|
10093
|
-
if (!
|
|
10153
|
+
if (!Ce(e2))
|
|
10094
10154
|
return false;
|
|
10095
10155
|
var t2 = ue(e2);
|
|
10096
10156
|
return t2 == i2 || t2 == s || t2 == a || t2 == u;
|
|
10097
10157
|
}
|
|
10098
|
-
function
|
|
10158
|
+
function we(e2) {
|
|
10099
10159
|
return "number" == typeof e2 && e2 > -1 && e2 % 1 == 0 && e2 <= n;
|
|
10100
10160
|
}
|
|
10101
|
-
function
|
|
10161
|
+
function Ce(e2) {
|
|
10102
10162
|
var t2 = _typeof(e2);
|
|
10103
10163
|
return null != e2 && ("object" == t2 || "function" == t2);
|
|
10104
10164
|
}
|
|
@@ -10110,7 +10170,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
10110
10170
|
return e2(t2);
|
|
10111
10171
|
};
|
|
10112
10172
|
}(O) : function(e2) {
|
|
10113
|
-
return Re(e2) &&
|
|
10173
|
+
return Re(e2) && we(e2.length) && !!y[ue(e2)];
|
|
10114
10174
|
};
|
|
10115
10175
|
function Ne(e2) {
|
|
10116
10176
|
return Ee(e2) ? ne(e2, true) : fe(e2);
|
|
@@ -10120,7 +10180,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
10120
10180
|
}, de(function(e2, t2) {
|
|
10121
10181
|
var r2 = -1, n2 = t2.length, o2 = n2 > 1 ? t2[n2 - 1] : void 0, a2 = n2 > 2 ? t2[2] : void 0;
|
|
10122
10182
|
for (o2 = Me.length > 3 && "function" == typeof o2 ? (n2--, o2) : void 0, a2 && function(e3, t3, r3) {
|
|
10123
|
-
if (!
|
|
10183
|
+
if (!Ce(r3))
|
|
10124
10184
|
return false;
|
|
10125
10185
|
var n3 = _typeof(t3);
|
|
10126
10186
|
return !!("number" == n3 ? Ee(r3) && ve(t3, r3.length) : "string" == n3 && t3 in r3) && Oe(r3[t3], e3);
|
|
@@ -11130,41 +11190,41 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
11130
11190
|
for (var g = []; ; )
|
|
11131
11191
|
try {
|
|
11132
11192
|
switch (i2[t2++]) {
|
|
11133
|
-
case
|
|
11193
|
+
case 71:
|
|
11134
11194
|
y2[++f2] = null;
|
|
11135
11195
|
break;
|
|
11136
|
-
case
|
|
11196
|
+
case 48:
|
|
11137
11197
|
l2 = ((l2 = ((l2 = i2[t2++]) << 8) + i2[t2++]) << 8) + i2[t2++], y2[++f2] = (l2 << 8) + i2[t2++];
|
|
11138
11198
|
break;
|
|
11139
|
-
case
|
|
11199
|
+
case 32:
|
|
11140
11200
|
l2 = (i2[t2] << 8) + i2[t2 + 1], t2 += 2, y2[++f2] = s[l2];
|
|
11141
11201
|
break;
|
|
11142
|
-
case
|
|
11202
|
+
case 73:
|
|
11143
11203
|
y2[++f2] = void 0;
|
|
11144
11204
|
break;
|
|
11145
|
-
case
|
|
11205
|
+
case 8:
|
|
11146
11206
|
l2 = (i2[t2] << 8) + i2[t2 + 1], t2 += 2, f2 = f2 - l2 + 1, c2 = y2.slice(f2, f2 + l2), y2[f2] = c2;
|
|
11147
11207
|
break;
|
|
11148
|
-
case
|
|
11208
|
+
case 35:
|
|
11149
11209
|
for (c2 = i2[t2++], u2 = i2[t2++], $3 = h; c2 > 0; --c2)
|
|
11150
11210
|
$3 = $3.p;
|
|
11151
11211
|
y2[++f2] = $3[u2];
|
|
11152
11212
|
break;
|
|
11153
|
-
case
|
|
11213
|
+
case 50:
|
|
11154
11214
|
l2 = (i2[t2] << 8) + i2[t2 + 1], t2 += 2, c2 = s[l2], y2[f2] = y2[f2][c2];
|
|
11155
11215
|
break;
|
|
11156
|
-
case
|
|
11216
|
+
case 42:
|
|
11157
11217
|
for (c2 = i2[t2++], u2 = i2[t2++], $3 = h; c2 > 0; --c2)
|
|
11158
11218
|
$3 = $3.p;
|
|
11159
11219
|
$3[u2] = y2[f2--];
|
|
11160
11220
|
break;
|
|
11161
|
-
case
|
|
11221
|
+
case 2:
|
|
11162
11222
|
l2 = i2[t2++], c2 = y2[f2--], (u2 = function e3() {
|
|
11163
11223
|
var t3 = e3._v;
|
|
11164
11224
|
return (0, e3._u)(t3[0], arguments, t3[1], t3[2], this);
|
|
11165
11225
|
})._v = [c2, l2, h], u2._u = e2, y2[++f2] = u2;
|
|
11166
11226
|
break;
|
|
11167
|
-
case
|
|
11227
|
+
case 13:
|
|
11168
11228
|
for (c2 = y2[f2--], u2 = null; $3 = g.pop(); )
|
|
11169
11229
|
if (2 === $3[0] || 3 === $3[0]) {
|
|
11170
11230
|
u2 = $3;
|
|
@@ -11178,12 +11238,12 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
11178
11238
|
t2 = d2[1], a2 = d2[2], h = d2[3], g = d2[4], y2[++f2] = c2, d2 = d2[0];
|
|
11179
11239
|
}
|
|
11180
11240
|
break;
|
|
11181
|
-
case
|
|
11241
|
+
case 43:
|
|
11182
11242
|
f2 -= l2 = i2[t2++], u2 = y2.slice(f2 + 1, f2 + l2 + 1), c2 = y2[f2--], $3 = y2[f2--], c2._u === e2 ? (c2 = c2._v, d2 = [d2, t2, a2, h, g], t2 = c2[0], null == $3 && ($3 = function() {
|
|
11183
11243
|
return this;
|
|
11184
11244
|
}()), a2 = $3, (h = [u2].concat(u2)).length = Math.min(c2[1], l2) + 1, h.p = c2[2], g = []) : (p2 = c2.apply($3, u2), y2[++f2] = p2);
|
|
11185
11245
|
break;
|
|
11186
|
-
case
|
|
11246
|
+
case 9:
|
|
11187
11247
|
c2 = y2[f2], y2[++f2] = c2;
|
|
11188
11248
|
break;
|
|
11189
11249
|
default:
|
|
@@ -11208,7 +11268,7 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
11208
11268
|
}
|
|
11209
11269
|
}(l, [], 0, t, r);
|
|
11210
11270
|
}
|
|
11211
|
-
_$jsvmprt("
|
|
11271
|
+
_$jsvmprt("504B0101c6625bb800000028b95862c70000003447230200230001230002230003230004080004093200002000012b012000022b02093200032b000d300000000002042a0101490d00040450555354011c200b0d50564a584f575249035b5352400b484b0b4c0a0b504d0d54025403504a5e084e55694e4853545d", { get 0() {
|
|
11212
11272
|
return HmacSHA1;
|
|
11213
11273
|
}, get 1() {
|
|
11214
11274
|
return generateSignature;
|
|
@@ -11216,70 +11276,92 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
11216
11276
|
generateSignature = e;
|
|
11217
11277
|
} }, void 0);
|
|
11218
11278
|
var _ADAPTER, VodSettingsLoader = function() {
|
|
11219
|
-
function e(
|
|
11220
|
-
var
|
|
11221
|
-
_classCallCheck(this, e), _defineProperty(this, "appId", void 0), _defineProperty(this, "ctx", void 0), _defineProperty(this, "host", void 0), _defineProperty(this, "needSignature", true), _defineProperty(this, "region", void 0), _defineProperty(this, "scene", void 0), _defineProperty(this, "ext", void 0), this.scene = (
|
|
11279
|
+
function e(t2, r2, n) {
|
|
11280
|
+
var o, a, i2, s;
|
|
11281
|
+
_classCallCheck(this, e), _defineProperty(this, "appId", void 0), _defineProperty(this, "ctx", void 0), _defineProperty(this, "host", void 0), _defineProperty(this, "needSignature", true), _defineProperty(this, "region", void 0), _defineProperty(this, "fetchOptions", void 0), _defineProperty(this, "scene", void 0), _defineProperty(this, "ext", void 0), this.scene = (o = {}, _defineProperty(o, VideoType.LIVE, 1), _defineProperty(o, VideoType.VOD, 0), o)[r2.videoType], this.ext = _objectSpread2({ userId: null !== (a = r2.featureCenter.getFeatureList().userId) && void 0 !== a ? a : "", playerVerson: null !== (i2 = r2.featureCenter.getFeatureList().playerVersion) && void 0 !== i2 ? i2 : "" }, this.getConfigType(r2.strategies)), this.appId = t2, this.ctx = r2, this.region = null !== (s = n.region) && void 0 !== s ? s : Regions.CN, this.fetchOptions = n.fetchOptions, this.host = this.getHostByRegion();
|
|
11222
11282
|
}
|
|
11283
|
+
var t, r;
|
|
11223
11284
|
return _createClass(e, [{ key: "getConfigType", value: function(e2) {
|
|
11224
|
-
var
|
|
11285
|
+
var t2;
|
|
11225
11286
|
if (!e2)
|
|
11226
11287
|
return {};
|
|
11227
|
-
var
|
|
11228
|
-
return _forEachInstanceProperty(
|
|
11229
|
-
var n = e2[
|
|
11230
|
-
n && (
|
|
11231
|
-
}),
|
|
11288
|
+
var r2 = {};
|
|
11289
|
+
return _forEachInstanceProperty(t2 = _Object$keys(e2)).call(t2, function(t3) {
|
|
11290
|
+
var n = e2[t3];
|
|
11291
|
+
n && (r2["".concat(t3, "_id")] = "object" === _typeof(n) && n.configId ? n.configId : "default");
|
|
11292
|
+
}), r2;
|
|
11232
11293
|
} }, { key: "getCacheKey", value: function() {
|
|
11233
11294
|
return _JSON$stringify([this.appId, this.ctx.cacheKey, this.ctx.featureCenter.getH265FeatureList().isHevcSupported, this.ctx.featureCenter.getBrowserInfo(), this.ctx.featureCenter.getFeatureList().deviceId]);
|
|
11234
11295
|
} }, { key: "fetch", value: function(e2) {
|
|
11235
|
-
function
|
|
11296
|
+
function t2() {
|
|
11236
11297
|
return e2.apply(this, arguments);
|
|
11237
11298
|
}
|
|
11238
|
-
return
|
|
11299
|
+
return t2.toString = function() {
|
|
11239
11300
|
return e2.toString();
|
|
11240
|
-
},
|
|
11301
|
+
}, t2;
|
|
11241
11302
|
}(_asyncToGenerator(_regeneratorRuntime().mark(function e2() {
|
|
11242
|
-
var
|
|
11303
|
+
var t2, r2, n, o, a, i2, s, l;
|
|
11243
11304
|
return _regeneratorRuntime().wrap(function(e3) {
|
|
11244
11305
|
for (; ; )
|
|
11245
11306
|
switch (e3.prev = e3.next) {
|
|
11246
11307
|
case 0:
|
|
11247
|
-
return e3.
|
|
11248
|
-
case
|
|
11249
|
-
|
|
11250
|
-
|
|
11308
|
+
return e3.next = 2, this.generateUrl();
|
|
11309
|
+
case 2:
|
|
11310
|
+
return t2 = e3.sent, e3.prev = 3, e3.next = 6, fetch(t2, _objectSpread2({ mode: "cors" }, this.fetchOptions));
|
|
11311
|
+
case 6:
|
|
11312
|
+
if ((r2 = e3.sent).ok) {
|
|
11313
|
+
e3.next = 9;
|
|
11251
11314
|
break;
|
|
11252
11315
|
}
|
|
11253
11316
|
throw new Error("Network response was not OK");
|
|
11254
|
-
case
|
|
11255
|
-
return e3.next =
|
|
11256
|
-
case
|
|
11257
|
-
return
|
|
11258
|
-
case 17:
|
|
11259
|
-
throw e3.prev = 17, e3.t0 = e3.catch(0), e3.t0;
|
|
11317
|
+
case 9:
|
|
11318
|
+
return e3.next = 11, r2.json();
|
|
11319
|
+
case 11:
|
|
11320
|
+
return n = e3.sent, o = n.data, a = o.custom_settings.web, i2 = o.general_settings, s = i2.use_local_cache, l = i2.local_cache_expire, e3.abrupt("return", _objectSpread2(_objectSpread2({}, a), {}, { use_local_cache: s, local_cache_expired_at: l > 0 ? _Date$now() + 1e3 * l : void 0, cache_key: this.getCacheKey() }));
|
|
11260
11321
|
case 20:
|
|
11322
|
+
throw e3.prev = 20, e3.t0 = e3.catch(3), e3.t0;
|
|
11323
|
+
case 23:
|
|
11261
11324
|
case "end":
|
|
11262
11325
|
return e3.stop();
|
|
11263
11326
|
}
|
|
11264
|
-
}, e2, this, [[
|
|
11327
|
+
}, e2, this, [[3, 20]]);
|
|
11265
11328
|
}))) }, { key: "getHostByRegion", value: function() {
|
|
11266
11329
|
var e2;
|
|
11267
11330
|
return (null === (e2 = { cn: { settingsHost: "vod-settings.volcvod.com" } }[this.region]) || void 0 === e2 ? void 0 : e2.settingsHost) || "vod-settings.volcvod.com";
|
|
11268
|
-
} }, { key: "generateSearchParams", value: function(
|
|
11269
|
-
|
|
11270
|
-
|
|
11271
|
-
|
|
11272
|
-
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11331
|
+
} }, { key: "generateSearchParams", value: (r = _asyncToGenerator(_regeneratorRuntime().mark(function e2(t2) {
|
|
11332
|
+
var r2, n, o;
|
|
11333
|
+
return _regeneratorRuntime().wrap(function(e3) {
|
|
11334
|
+
for (; ; )
|
|
11335
|
+
switch (e3.prev = e3.next) {
|
|
11336
|
+
case 0:
|
|
11337
|
+
return e3.next = 2, this.ctx.featureCenter.getOSVersionAsync();
|
|
11338
|
+
case 2:
|
|
11339
|
+
return r2 = e3.sent, t2.searchParams.set("module", "web"), t2.searchParams.set("aid", String(this.appId)), t2.searchParams.set("region", this.region), t2.searchParams.set("web_support_hardware_decode_bytevc1", String(this.ctx.featureCenter.getH265FeatureList().isHevcSupported)), t2.searchParams.set("web_os", this.ctx.featureCenter.getBrowserInfo().osName), t2.searchParams.set("web_os_version", r2), t2.searchParams.set("web_platform", this.ctx.featureCenter.getBrowserInfo().platformType), t2.searchParams.set("web_browser", this.ctx.featureCenter.getBrowserInfo().browserName), t2.searchParams.set("web_browser_version", this.ctx.featureCenter.getBrowserInfo().browserVersion), t2.searchParams.set("web_cpu_core", String(this.ctx.featureCenter.getBrowserInfo().cpuCore)), t2.searchParams.set("web_scene", String(this.scene)), t2.searchParams.set("web_ext", _JSON$stringify(this.ext)), t2.searchParams.set("device_id", this.ctx.featureCenter.getFeatureList().deviceId), this.needSignature && (n = _Date$now(), t2.searchParams.set("timestamp", String(n)), o = generateSignature(this.appId, this.ctx.featureCenter.getFeatureList().deviceId, this.ctx.featureCenter.getBrowserInfo().browserName, n), t2.searchParams.set("signature", o)), e3.abrupt("return", t2);
|
|
11340
|
+
case 18:
|
|
11341
|
+
case "end":
|
|
11342
|
+
return e3.stop();
|
|
11343
|
+
}
|
|
11344
|
+
}, e2, this);
|
|
11345
|
+
})), function(e2) {
|
|
11346
|
+
return r.apply(this, arguments);
|
|
11347
|
+
}) }, { key: "generateUrl", value: (t = _asyncToGenerator(_regeneratorRuntime().mark(function e2() {
|
|
11348
|
+
return _regeneratorRuntime().wrap(function(e3) {
|
|
11349
|
+
for (; ; )
|
|
11350
|
+
switch (e3.prev = e3.next) {
|
|
11351
|
+
case 0:
|
|
11352
|
+
return e3.abrupt("return", this.generateSearchParams(new _URL("https://".concat(this.host, "/vod/settings/v1"))));
|
|
11353
|
+
case 1:
|
|
11354
|
+
case "end":
|
|
11355
|
+
return e3.stop();
|
|
11356
|
+
}
|
|
11357
|
+
}, e2, this);
|
|
11358
|
+
})), function() {
|
|
11359
|
+
return t.apply(this, arguments);
|
|
11360
|
+
}) }]), e;
|
|
11279
11361
|
}(), logger = new Logger("VeStrategy"), ADAPTER = (_defineProperty(_ADAPTER = {}, VideoType.VOD, BaseAdapter), _defineProperty(_ADAPTER, VideoType.LIVE, LiveAdapter), _ADAPTER), StrategyController = function() {
|
|
11280
11362
|
function e(t2) {
|
|
11281
11363
|
_classCallCheck(this, e), _defineProperty(this, "ctx", void 0), _defineProperty(this, "configPreparePromise", void 0), _defineProperty(this, "isStrategyStarted", false);
|
|
11282
|
-
var r2 = new FeatureCenter(t2), n2 = new DataCenter(t2, new VodSettingsLoader(t2.appId, { featureCenter: r2, cacheKey: t2.cacheKey, strategies: t2.strategies, videoType: t2.type || VideoType.VOD }));
|
|
11364
|
+
var r2 = new FeatureCenter(t2), n2 = new DataCenter(t2, new VodSettingsLoader(t2.appId, { featureCenter: r2, cacheKey: t2.cacheKey, strategies: t2.strategies, videoType: t2.type || VideoType.VOD }, { fetchOptions: t2.fetchOptions }));
|
|
11283
11365
|
logger.update(t2.log), this.ctx = { dataCenter: n2, featureCenter: r2, playerManager: new PlayerManager(), tracker: new Tracker({ trackInfo: t2.tracker, type: t2.type || VideoType.VOD, lineAppId: t2.appId, lineUserId: t2.deviceId, appId: t2.type === VideoType.VOD ? 577780 : 579013, channel: t2.region, cxt: { dataCenter: n2, featureCenter: r2 } }) }, this.prepare(true);
|
|
11284
11366
|
}
|
|
11285
11367
|
var t, r, n, o, a;
|
|
@@ -11444,6 +11526,9 @@ Radeong 0.4 on AMD TAHITI (DRM 2.43.0, LLVM 3.9.0)|-1
|
|
|
11444
11526
|
} }, { key: "getServiceConfig", value: function() {
|
|
11445
11527
|
var t2, r2, n2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : VideoType.VOD;
|
|
11446
11528
|
return VideoType.VOD === n2 ? (null === (t2 = e._vodInst) || void 0 === t2 || null === (t2 = t2.ctx) || void 0 === t2 || null === (t2 = t2.dataCenter) || void 0 === t2 ? void 0 : t2.getServiceStrategyConfig()) || {} : VideoType.LIVE === n2 && (null === (r2 = e._liveInst) || void 0 === r2 || null === (r2 = r2.ctx) || void 0 === r2 || null === (r2 = r2.dataCenter) || void 0 === r2 ? void 0 : r2.getServiceStrategyConfig()) || {};
|
|
11529
|
+
} }, { key: "getFeatureList", value: function() {
|
|
11530
|
+
var t2, r2, n2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : VideoType.VOD;
|
|
11531
|
+
return VideoType.VOD === n2 ? null === (t2 = e._vodInst) || void 0 === t2 || null === (t2 = t2.ctx) || void 0 === t2 || null === (t2 = t2.featureCenter) || void 0 === t2 ? void 0 : t2.getFeatureList() : VideoType.LIVE === n2 ? null === (r2 = e._liveInst) || void 0 === r2 || null === (r2 = r2.ctx) || void 0 === r2 || null === (r2 = r2.featureCenter) || void 0 === r2 ? void 0 : r2.getFeatureList() : void 0;
|
|
11447
11532
|
} }, { key: "apply", value: function(t2, r2, n2) {
|
|
11448
11533
|
var o2, a2;
|
|
11449
11534
|
if (!t2 || !r2)
|