@volcengine/veplayer 2.6.0-rc.4 → 2.6.0-rc.5
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.d.ts +78 -27
- package/esm/veplayer.biz.live.development.js +741 -118
- package/esm/veplayer.biz.live.production.js +1 -1
- package/esm/veplayer.d.ts +452 -147
- package/esm/veplayer.development.js +914 -254
- package/esm/veplayer.live.d.ts +453 -147
- package/esm/veplayer.live.development.js +913 -253
- package/esm/veplayer.live.production.js +3 -5
- package/esm/veplayer.production.js +3 -5
- package/esm/veplayer.vod.d.ts +78 -27
- package/esm/veplayer.vod.development.js +764 -205
- package/esm/veplayer.vod.production.js +3 -5
- package/package.json +1 -1
- package/umd/index.d.ts +78 -27
- package/umd/veplayer.biz.live.development.js +741 -118
- package/umd/veplayer.biz.live.production.js +1 -1
- package/umd/veplayer.d.ts +452 -147
- package/umd/veplayer.development.js +914 -254
- package/umd/veplayer.live.d.ts +453 -147
- package/umd/veplayer.live.development.js +913 -253
- package/umd/veplayer.live.production.js +1 -1
- package/umd/veplayer.production.js +1 -1
- package/umd/veplayer.vod.d.ts +78 -27
- package/umd/veplayer.vod.development.js +764 -205
- package/umd/veplayer.vod.production.js +1 -1
- package/veplayer.d.ts +452 -147
- package/veplayer.live.d.ts +453 -147
- package/veplayer.vod.d.ts +78 -27
|
@@ -1058,11 +1058,11 @@ var __publicField = (obj, key, value) => {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
return time;
|
|
1060
1060
|
};
|
|
1061
|
-
util.createPositionBar = function(className,
|
|
1061
|
+
util.createPositionBar = function(className, root2) {
|
|
1062
1062
|
var dom = util.createDom("xg-bar", "", {
|
|
1063
1063
|
"data-index": -1
|
|
1064
1064
|
}, className);
|
|
1065
|
-
|
|
1065
|
+
root2.appendChild(dom);
|
|
1066
1066
|
return dom;
|
|
1067
1067
|
};
|
|
1068
1068
|
util.getTransformStyle = function() {
|
|
@@ -1160,7 +1160,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
return offsetTime;
|
|
1162
1162
|
};
|
|
1163
|
-
function isObject(value) {
|
|
1163
|
+
function isObject$1(value) {
|
|
1164
1164
|
var type = _typeof(value);
|
|
1165
1165
|
return value !== null && (type === "object" || type === "function");
|
|
1166
1166
|
}
|
|
@@ -1175,7 +1175,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1175
1175
|
throw new TypeError("Expected a function");
|
|
1176
1176
|
}
|
|
1177
1177
|
wait = +wait || 0;
|
|
1178
|
-
if (isObject(options)) {
|
|
1178
|
+
if (isObject$1(options)) {
|
|
1179
1179
|
leading = !!options.leading;
|
|
1180
1180
|
maxing = "maxWait" in options;
|
|
1181
1181
|
maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : maxWait;
|
|
@@ -1280,7 +1280,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1280
1280
|
if (typeof func !== "function") {
|
|
1281
1281
|
throw new TypeError("Expected a function");
|
|
1282
1282
|
}
|
|
1283
|
-
if (isObject(options)) {
|
|
1283
|
+
if (isObject$1(options)) {
|
|
1284
1284
|
leading = "leading" in options ? !!options.leading : leading;
|
|
1285
1285
|
trailing = "trailing" in options ? !!options.trailing : trailing;
|
|
1286
1286
|
}
|
|
@@ -1456,7 +1456,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
};
|
|
1459
|
-
var version = "3.0.21-rc.
|
|
1459
|
+
var version = "3.0.21-rc.5";
|
|
1460
1460
|
var ERROR_TYPE_MAP = {
|
|
1461
1461
|
1: "media",
|
|
1462
1462
|
2: "media",
|
|
@@ -1912,7 +1912,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1912
1912
|
var _e = this.media.error || error2;
|
|
1913
1913
|
var type = _e.code ? ERROR_TYPE_MAP[_e.code] : "other";
|
|
1914
1914
|
var message = _e.message;
|
|
1915
|
-
if (!this.media.currentSrc) {
|
|
1915
|
+
if (!(this.media.currentSrc || this.media.srcObject)) {
|
|
1916
1916
|
message = "empty_src";
|
|
1917
1917
|
_e = {
|
|
1918
1918
|
code: 6,
|
|
@@ -3096,9 +3096,9 @@ var __publicField = (obj, key, value) => {
|
|
|
3096
3096
|
}
|
|
3097
3097
|
}
|
|
3098
3098
|
}
|
|
3099
|
-
var
|
|
3100
|
-
if (
|
|
3101
|
-
checkChildren(
|
|
3099
|
+
var root2 = this.root, i18n = this.i18n, langText = this.langText;
|
|
3100
|
+
if (root2) {
|
|
3101
|
+
checkChildren(root2, function(node) {
|
|
3102
3102
|
var langKey = node.getAttribute && node.getAttribute("lang-key");
|
|
3103
3103
|
if (!langKey) {
|
|
3104
3104
|
return;
|
|
@@ -3401,18 +3401,18 @@ var __publicField = (obj, key, value) => {
|
|
|
3401
3401
|
}
|
|
3402
3402
|
}, {
|
|
3403
3403
|
key: "delegate",
|
|
3404
|
-
value: function delegate2(
|
|
3404
|
+
value: function delegate2(root2, querySelector, eventType, callback) {
|
|
3405
3405
|
var capture = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
|
|
3406
3406
|
var dels = [];
|
|
3407
|
-
if (
|
|
3407
|
+
if (root2 instanceof window.Node && typeof callback === "function") {
|
|
3408
3408
|
if (Array.isArray(eventType)) {
|
|
3409
3409
|
eventType.forEach(function(item) {
|
|
3410
|
-
var ret2 = _delegate$1(
|
|
3410
|
+
var ret2 = _delegate$1(root2, querySelector, item, callback, capture);
|
|
3411
3411
|
ret2.key = "".concat(querySelector, "_").concat(item);
|
|
3412
3412
|
dels.push(ret2);
|
|
3413
3413
|
});
|
|
3414
3414
|
} else {
|
|
3415
|
-
var ret = _delegate$1(
|
|
3415
|
+
var ret = _delegate$1(root2, querySelector, eventType, callback, capture);
|
|
3416
3416
|
ret.key = "".concat(querySelector, "_").concat(eventType);
|
|
3417
3417
|
dels.push(ret);
|
|
3418
3418
|
}
|
|
@@ -4126,6 +4126,10 @@ var __publicField = (obj, key, value) => {
|
|
|
4126
4126
|
this.unbind("mouseenter", this.onMouseEnter);
|
|
4127
4127
|
this.unbind("mouseleave", this.onMouseLeave);
|
|
4128
4128
|
}
|
|
4129
|
+
this.left = null;
|
|
4130
|
+
this.center = null;
|
|
4131
|
+
this.right = null;
|
|
4132
|
+
this.innerRoot = null;
|
|
4129
4133
|
}
|
|
4130
4134
|
}, {
|
|
4131
4135
|
key: "render",
|
|
@@ -4506,11 +4510,11 @@ var __publicField = (obj, key, value) => {
|
|
|
4506
4510
|
}]);
|
|
4507
4511
|
return InstManager2;
|
|
4508
4512
|
}(eventemitter3Exports.EventEmitter);
|
|
4509
|
-
function checkPlayerRoot(
|
|
4513
|
+
function checkPlayerRoot(root2) {
|
|
4510
4514
|
var keys = Object.keys(store);
|
|
4511
4515
|
for (var i = 0; i < keys.length; i++) {
|
|
4512
4516
|
var p = store[keys[i]];
|
|
4513
|
-
if (p.root ===
|
|
4517
|
+
if (p.root === root2) {
|
|
4514
4518
|
return p;
|
|
4515
4519
|
}
|
|
4516
4520
|
}
|
|
@@ -5415,13 +5419,13 @@ var __publicField = (obj, key, value) => {
|
|
|
5415
5419
|
key: "destroy",
|
|
5416
5420
|
value: function destroy() {
|
|
5417
5421
|
var _instManager2, _this18 = this;
|
|
5418
|
-
var innerContainer = this.innerContainer,
|
|
5419
|
-
if (!
|
|
5422
|
+
var innerContainer = this.innerContainer, root2 = this.root, media = this.media;
|
|
5423
|
+
if (!root2 || !media) {
|
|
5420
5424
|
return;
|
|
5421
5425
|
}
|
|
5422
5426
|
this.hasStart = false;
|
|
5423
5427
|
this._useAutoplay = false;
|
|
5424
|
-
|
|
5428
|
+
root2.removeAttribute(PLATER_ID);
|
|
5425
5429
|
this.updateAcc("destroy");
|
|
5426
5430
|
this._unbindEvents();
|
|
5427
5431
|
this._detachSourceEvents(this.media);
|
|
@@ -5440,18 +5444,18 @@ var __publicField = (obj, key, value) => {
|
|
|
5440
5444
|
innerContainer.removeChild(_c[i]);
|
|
5441
5445
|
}
|
|
5442
5446
|
}
|
|
5443
|
-
!innerContainer && media instanceof window.Node &&
|
|
5447
|
+
!innerContainer && media instanceof window.Node && root2.contains(media) && root2.removeChild(media);
|
|
5444
5448
|
["topBar", "leftBar", "rightBar", "innerContainer"].map(function(item) {
|
|
5445
|
-
_this18[item] &&
|
|
5449
|
+
_this18[item] && root2.removeChild(_this18[item]);
|
|
5446
5450
|
_this18[item] = null;
|
|
5447
5451
|
});
|
|
5448
|
-
var cList =
|
|
5452
|
+
var cList = root2.className.split(" ");
|
|
5449
5453
|
if (cList.length > 0) {
|
|
5450
|
-
|
|
5454
|
+
root2.className = cList.filter(function(name) {
|
|
5451
5455
|
return name.indexOf("xgplayer") < 0;
|
|
5452
5456
|
}).join(" ");
|
|
5453
5457
|
} else {
|
|
5454
|
-
|
|
5458
|
+
root2.className = "";
|
|
5455
5459
|
}
|
|
5456
5460
|
this.removeAttribute("data-xgfill");
|
|
5457
5461
|
["isSeeking", "isCanplay", "isActive", "cssfullscreen", "fullscreen"].forEach(function(key) {
|
|
@@ -5499,18 +5503,18 @@ var __publicField = (obj, key, value) => {
|
|
|
5499
5503
|
}
|
|
5500
5504
|
}, {
|
|
5501
5505
|
key: "changeFullStyle",
|
|
5502
|
-
value: function changeFullStyle(
|
|
5503
|
-
if (!
|
|
5506
|
+
value: function changeFullStyle(root2, el, rootClass, pClassName) {
|
|
5507
|
+
if (!root2) {
|
|
5504
5508
|
return;
|
|
5505
5509
|
}
|
|
5506
5510
|
if (!pClassName) {
|
|
5507
5511
|
pClassName = STATE_CLASS.PARENT_FULLSCREEN;
|
|
5508
5512
|
}
|
|
5509
5513
|
if (!this._orgCss) {
|
|
5510
|
-
this._orgCss = util.filterStyleFromText(
|
|
5514
|
+
this._orgCss = util.filterStyleFromText(root2);
|
|
5511
5515
|
}
|
|
5512
|
-
util.addClass(
|
|
5513
|
-
if (el && el !==
|
|
5516
|
+
util.addClass(root2, rootClass);
|
|
5517
|
+
if (el && el !== root2 && !this._orgPCss) {
|
|
5514
5518
|
this._orgPCss = util.filterStyleFromText(el);
|
|
5515
5519
|
util.addClass(el, pClassName);
|
|
5516
5520
|
el.setAttribute(PLATER_ID, this.playerId);
|
|
@@ -5518,16 +5522,16 @@ var __publicField = (obj, key, value) => {
|
|
|
5518
5522
|
}
|
|
5519
5523
|
}, {
|
|
5520
5524
|
key: "recoverFullStyle",
|
|
5521
|
-
value: function recoverFullStyle(
|
|
5525
|
+
value: function recoverFullStyle(root2, el, rootClass, pClassName) {
|
|
5522
5526
|
if (!pClassName) {
|
|
5523
5527
|
pClassName = STATE_CLASS.PARENT_FULLSCREEN;
|
|
5524
5528
|
}
|
|
5525
5529
|
if (this._orgCss) {
|
|
5526
|
-
util.setStyleFromCsstext(
|
|
5530
|
+
util.setStyleFromCsstext(root2, this._orgCss);
|
|
5527
5531
|
this._orgCss = "";
|
|
5528
5532
|
}
|
|
5529
|
-
util.removeClass(
|
|
5530
|
-
if (el && el !==
|
|
5533
|
+
util.removeClass(root2, rootClass);
|
|
5534
|
+
if (el && el !== root2 && this._orgPCss) {
|
|
5531
5535
|
util.setStyleFromCsstext(el, this._orgPCss);
|
|
5532
5536
|
this._orgPCss = "";
|
|
5533
5537
|
util.removeClass(el, pClassName);
|
|
@@ -5538,12 +5542,12 @@ var __publicField = (obj, key, value) => {
|
|
|
5538
5542
|
key: "getFullscreen",
|
|
5539
5543
|
value: function getFullscreen() {
|
|
5540
5544
|
var el = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
|
|
5541
|
-
var
|
|
5545
|
+
var root2 = this.root, media = this.media;
|
|
5542
5546
|
if (el === "video" || el === "media") {
|
|
5543
5547
|
el = this[el];
|
|
5544
5548
|
}
|
|
5545
5549
|
if (!el) {
|
|
5546
|
-
el =
|
|
5550
|
+
el = root2;
|
|
5547
5551
|
}
|
|
5548
5552
|
this._fullScreenOffset = {
|
|
5549
5553
|
top: util.scrollTop(),
|
|
@@ -5987,9 +5991,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5987
5991
|
var offsetX = 0;
|
|
5988
5992
|
var scale = 1;
|
|
5989
5993
|
var _t = Math.abs(rotate / 90);
|
|
5990
|
-
var
|
|
5991
|
-
var width =
|
|
5992
|
-
var height = innerContainer ? innerContainer.offsetHeight :
|
|
5994
|
+
var root2 = this.root, innerContainer = this.innerContainer;
|
|
5995
|
+
var width = root2.offsetWidth;
|
|
5996
|
+
var height = innerContainer ? innerContainer.offsetHeight : root2.offsetHeight;
|
|
5993
5997
|
var rHeight = height;
|
|
5994
5998
|
var rWidth = width;
|
|
5995
5999
|
if (_t % 2 === 0) {
|
|
@@ -7191,19 +7195,19 @@ var __publicField = (obj, key, value) => {
|
|
|
7191
7195
|
key: "render",
|
|
7192
7196
|
value: function render() {
|
|
7193
7197
|
var innerHtml = this.config.innerHtml;
|
|
7194
|
-
var
|
|
7198
|
+
var root2 = util.createDom("xg-enter", "", {}, "xgplayer-enter");
|
|
7195
7199
|
if (innerHtml && innerHtml instanceof window.HTMLElement) {
|
|
7196
|
-
|
|
7200
|
+
root2.appendChild(innerHtml);
|
|
7197
7201
|
} else if (innerHtml && typeof innerHtml === "string") {
|
|
7198
|
-
|
|
7202
|
+
root2.innerHTML = innerHtml;
|
|
7199
7203
|
} else {
|
|
7200
7204
|
var barStr = "";
|
|
7201
7205
|
for (var i = 1; i <= 12; i++) {
|
|
7202
7206
|
barStr += '<div class="xgplayer-enter-bar'.concat(i, '"></div>');
|
|
7203
7207
|
}
|
|
7204
|
-
|
|
7208
|
+
root2.innerHTML = '<div class="xgplayer-enter-spinner">'.concat(barStr, "</div>");
|
|
7205
7209
|
}
|
|
7206
|
-
return
|
|
7210
|
+
return root2;
|
|
7207
7211
|
}
|
|
7208
7212
|
}], [{
|
|
7209
7213
|
key: "pluginName",
|
|
@@ -7368,7 +7372,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7368
7372
|
var Draggabilly = /* @__PURE__ */ function(_EventEmitter) {
|
|
7369
7373
|
_inherits(Draggabilly2, _EventEmitter);
|
|
7370
7374
|
var _super = _createSuper(Draggabilly2);
|
|
7371
|
-
function Draggabilly2(
|
|
7375
|
+
function Draggabilly2(root2) {
|
|
7372
7376
|
var _this;
|
|
7373
7377
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7374
7378
|
_classCallCheck(this, Draggabilly2);
|
|
@@ -7386,7 +7390,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7386
7390
|
x: 0,
|
|
7387
7391
|
y: 0
|
|
7388
7392
|
};
|
|
7389
|
-
_this._root =
|
|
7393
|
+
_this._root = root2 instanceof Element ? root2 : document.querySelector(root2);
|
|
7390
7394
|
_this._handlerDom = options.handle instanceof Element ? options.handle : document.querySelector(options.handle);
|
|
7391
7395
|
if (!_this._root || !_this._handlerDom) {
|
|
7392
7396
|
return _possibleConstructorReturn(_this);
|
|
@@ -8018,12 +8022,12 @@ var __publicField = (obj, key, value) => {
|
|
|
8018
8022
|
key: "initEvents",
|
|
8019
8023
|
value: function initEvents() {
|
|
8020
8024
|
var _this3 = this;
|
|
8021
|
-
var _this$player = this.player, media = _this$player.media,
|
|
8025
|
+
var _this$player = this.player, media = _this$player.media, root2 = _this$player.root;
|
|
8022
8026
|
var enableContextmenu = this.playerConfig.enableContextmenu;
|
|
8023
|
-
|
|
8024
|
-
|
|
8027
|
+
root2 && root2.addEventListener("click", this.onVideoClick, false);
|
|
8028
|
+
root2 && root2.addEventListener("dblclick", this.onVideoDblClick, false);
|
|
8025
8029
|
Object.keys(MOUSE_EVENTS).map(function(item) {
|
|
8026
|
-
|
|
8030
|
+
root2.addEventListener(item, _this3[MOUSE_EVENTS[item]], false);
|
|
8027
8031
|
});
|
|
8028
8032
|
!enableContextmenu && media && media.addEventListener("contextmenu", this.onContextmenu, false);
|
|
8029
8033
|
}
|
|
@@ -8060,13 +8064,13 @@ var __publicField = (obj, key, value) => {
|
|
|
8060
8064
|
key: "destroy",
|
|
8061
8065
|
value: function destroy() {
|
|
8062
8066
|
var _this4 = this;
|
|
8063
|
-
var _this$player2 = this.player, video = _this$player2.video,
|
|
8067
|
+
var _this$player2 = this.player, video = _this$player2.video, root2 = _this$player2.root;
|
|
8064
8068
|
this.clickTimer && clearTimeout(this.clickTimer);
|
|
8065
|
-
|
|
8066
|
-
|
|
8069
|
+
root2.removeEventListener("click", this.onVideoClick, false);
|
|
8070
|
+
root2.removeEventListener("dblclick", this.onVideoDblClick, false);
|
|
8067
8071
|
video.removeEventListener("contextmenu", this.onContextmenu, false);
|
|
8068
8072
|
Object.keys(MOUSE_EVENTS).map(function(item) {
|
|
8069
|
-
|
|
8073
|
+
root2.removeEventListener(item, _this4[MOUSE_EVENTS[item]], false);
|
|
8070
8074
|
});
|
|
8071
8075
|
}
|
|
8072
8076
|
}], [{
|
|
@@ -8128,26 +8132,26 @@ var __publicField = (obj, key, value) => {
|
|
|
8128
8132
|
};
|
|
8129
8133
|
_classCallCheck(this, Touche2);
|
|
8130
8134
|
_defineProperty(this, "onTouchStart", function(e) {
|
|
8131
|
-
var _pos = _this._pos,
|
|
8135
|
+
var _pos = _this._pos, root2 = _this.root;
|
|
8132
8136
|
var touch = getTouch(e.touches);
|
|
8133
8137
|
_pos.x = touch ? parseInt(touch.pageX, 10) : e.pageX;
|
|
8134
8138
|
_pos.y = touch ? parseInt(touch.pageX, 10) : e.pageX;
|
|
8135
8139
|
_pos.start = true;
|
|
8136
8140
|
_this.__setPress(e);
|
|
8137
|
-
|
|
8138
|
-
|
|
8139
|
-
|
|
8141
|
+
root2.addEventListener(_this.events.end, _this.onTouchEnd);
|
|
8142
|
+
root2.addEventListener(_this.events.cancel, _this.onTouchCancel);
|
|
8143
|
+
root2.addEventListener(_this.events.move, _this.onTouchMove);
|
|
8140
8144
|
_this.trigger(EVENTS.TOUCH_START, e);
|
|
8141
8145
|
});
|
|
8142
8146
|
_defineProperty(this, "onTouchCancel", function(e) {
|
|
8143
8147
|
_this.onTouchEnd(e);
|
|
8144
8148
|
});
|
|
8145
8149
|
_defineProperty(this, "onTouchEnd", function(e) {
|
|
8146
|
-
var _pos = _this._pos,
|
|
8150
|
+
var _pos = _this._pos, root2 = _this.root;
|
|
8147
8151
|
_this.__clearPress();
|
|
8148
|
-
|
|
8149
|
-
|
|
8150
|
-
|
|
8152
|
+
root2.removeEventListener(_this.events.cancel, _this.onTouchCancel);
|
|
8153
|
+
root2.removeEventListener(_this.events.end, _this.onTouchEnd);
|
|
8154
|
+
root2.removeEventListener(_this.events.move, _this.onTouchMove);
|
|
8151
8155
|
e.moving = _pos.moving;
|
|
8152
8156
|
e.press = _pos.press;
|
|
8153
8157
|
_pos.press && _this.trigger(EVENTS.PRESS_END, e);
|
|
@@ -8596,8 +8600,8 @@ var __publicField = (obj, key, value) => {
|
|
|
8596
8600
|
}, {
|
|
8597
8601
|
key: "changeAction",
|
|
8598
8602
|
value: function changeAction(action) {
|
|
8599
|
-
var player = this.player,
|
|
8600
|
-
|
|
8603
|
+
var player = this.player, root2 = this.root;
|
|
8604
|
+
root2.setAttribute("data-xg-action", action);
|
|
8601
8605
|
var startPlugin = player.plugins.start;
|
|
8602
8606
|
startPlugin && startPlugin.recover();
|
|
8603
8607
|
}
|
|
@@ -10506,7 +10510,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10506
10510
|
key: "renderItemList",
|
|
10507
10511
|
value: function renderItemList(data) {
|
|
10508
10512
|
var _this = this;
|
|
10509
|
-
var config = this.config,
|
|
10513
|
+
var config = this.config, root2 = this.root;
|
|
10510
10514
|
if (data) {
|
|
10511
10515
|
config.data = data;
|
|
10512
10516
|
} else {
|
|
@@ -10514,7 +10518,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10514
10518
|
}
|
|
10515
10519
|
if (config.style) {
|
|
10516
10520
|
Object.keys(config.style).map(function(key) {
|
|
10517
|
-
|
|
10521
|
+
root2.style[key] = config[key];
|
|
10518
10522
|
});
|
|
10519
10523
|
}
|
|
10520
10524
|
if (data.length > 0) {
|
|
@@ -10629,7 +10633,22 @@ var __publicField = (obj, key, value) => {
|
|
|
10629
10633
|
SOURCE_CHANGE: "sourceChange",
|
|
10630
10634
|
ABR_SWITCH_START: "abrSwitchStart",
|
|
10631
10635
|
ABR_SWITCH_SUCCESS: "abrSwitchSuccess",
|
|
10632
|
-
ABR_SWITCH_FAILED: "abrSwitchFailed"
|
|
10636
|
+
ABR_SWITCH_FAILED: "abrSwitchFailed",
|
|
10637
|
+
// 广告插件
|
|
10638
|
+
AD_FIRST_QUARTILE: "ad_first_quartile",
|
|
10639
|
+
AD_MIDPOINT: "ad_midpoint",
|
|
10640
|
+
AD_THIRD_QUARTILE: "ad_third_quartile",
|
|
10641
|
+
AD_CLICK: "ad_click",
|
|
10642
|
+
AD_IMPRESSION: "ad_impression",
|
|
10643
|
+
AD_RESUME: "ad_resume",
|
|
10644
|
+
AD_START: "ad_start",
|
|
10645
|
+
AD_PLAY: "ad_play",
|
|
10646
|
+
AD_PAUSE: "ad_pause",
|
|
10647
|
+
AD_TIME_UPDATE: "ad_time_update",
|
|
10648
|
+
AD_SKIPPED: "ad_skipped",
|
|
10649
|
+
AD_ERROR: "ad_error",
|
|
10650
|
+
AD_COMPLETE: "ad_complete",
|
|
10651
|
+
AD_ALL_COMPLETED: "ad_all_completed"
|
|
10633
10652
|
};
|
|
10634
10653
|
const Events = {
|
|
10635
10654
|
...XGEvents,
|
|
@@ -11206,9 +11225,9 @@ var __publicField = (obj, key, value) => {
|
|
|
11206
11225
|
__publicField(this, "_player");
|
|
11207
11226
|
__publicField(this, "_delegates");
|
|
11208
11227
|
__publicField(this, "_listType");
|
|
11209
|
-
const { config, root, player } = args;
|
|
11228
|
+
const { config, root: root2, player } = args;
|
|
11210
11229
|
this._config = config;
|
|
11211
|
-
this._parent =
|
|
11230
|
+
this._parent = root2;
|
|
11212
11231
|
this._player = player;
|
|
11213
11232
|
this._listType = config.listType;
|
|
11214
11233
|
this.renderPanel();
|
|
@@ -11765,19 +11784,19 @@ var __publicField = (obj, key, value) => {
|
|
|
11765
11784
|
(function(module2, exports3) {
|
|
11766
11785
|
var LARGE_ARRAY_SIZE = 200;
|
|
11767
11786
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
11768
|
-
var
|
|
11769
|
-
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]",
|
|
11787
|
+
var MAX_SAFE_INTEGER2 = 9007199254740991;
|
|
11788
|
+
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag2 = "[object Function]", genTag2 = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", promiseTag = "[object Promise]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag2 = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
11770
11789
|
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
11771
|
-
var
|
|
11790
|
+
var reRegExpChar2 = /[\\^$.*+?()[\]{}|]/g;
|
|
11772
11791
|
var reFlags = /\w*$/;
|
|
11773
|
-
var
|
|
11774
|
-
var
|
|
11792
|
+
var reIsHostCtor2 = /^\[object .+?Constructor\]$/;
|
|
11793
|
+
var reIsUint2 = /^(?:0|[1-9]\d*)$/;
|
|
11775
11794
|
var cloneableTags = {};
|
|
11776
|
-
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[
|
|
11777
|
-
cloneableTags[errorTag] = cloneableTags[
|
|
11778
|
-
var
|
|
11779
|
-
var
|
|
11780
|
-
var
|
|
11795
|
+
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag2] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
11796
|
+
cloneableTags[errorTag] = cloneableTags[funcTag2] = cloneableTags[weakMapTag] = false;
|
|
11797
|
+
var freeGlobal2 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
11798
|
+
var freeSelf2 = typeof self == "object" && self && self.Object === Object && self;
|
|
11799
|
+
var root2 = freeGlobal2 || freeSelf2 || Function("return this")();
|
|
11781
11800
|
var freeExports = exports3 && !exports3.nodeType && exports3;
|
|
11782
11801
|
var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
|
|
11783
11802
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
@@ -11789,7 +11808,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11789
11808
|
set.add(value);
|
|
11790
11809
|
return set;
|
|
11791
11810
|
}
|
|
11792
|
-
function
|
|
11811
|
+
function arrayEach2(array, iteratee) {
|
|
11793
11812
|
var index = -1, length = array ? array.length : 0;
|
|
11794
11813
|
while (++index < length) {
|
|
11795
11814
|
if (iteratee(array[index], index, array) === false) {
|
|
@@ -11822,10 +11841,10 @@ var __publicField = (obj, key, value) => {
|
|
|
11822
11841
|
}
|
|
11823
11842
|
return result;
|
|
11824
11843
|
}
|
|
11825
|
-
function
|
|
11844
|
+
function getValue2(object, key) {
|
|
11826
11845
|
return object == null ? void 0 : object[key];
|
|
11827
11846
|
}
|
|
11828
|
-
function
|
|
11847
|
+
function isHostObject2(value) {
|
|
11829
11848
|
var result = false;
|
|
11830
11849
|
if (value != null && typeof value.toString != "function") {
|
|
11831
11850
|
try {
|
|
@@ -11854,22 +11873,22 @@ var __publicField = (obj, key, value) => {
|
|
|
11854
11873
|
});
|
|
11855
11874
|
return result;
|
|
11856
11875
|
}
|
|
11857
|
-
var arrayProto = Array.prototype,
|
|
11858
|
-
var
|
|
11859
|
-
var
|
|
11860
|
-
var uid = /[^.]+$/.exec(
|
|
11876
|
+
var arrayProto = Array.prototype, funcProto2 = Function.prototype, objectProto2 = Object.prototype;
|
|
11877
|
+
var coreJsData2 = root2["__core-js_shared__"];
|
|
11878
|
+
var maskSrcKey2 = function() {
|
|
11879
|
+
var uid = /[^.]+$/.exec(coreJsData2 && coreJsData2.keys && coreJsData2.keys.IE_PROTO || "");
|
|
11861
11880
|
return uid ? "Symbol(src)_1." + uid : "";
|
|
11862
11881
|
}();
|
|
11863
|
-
var
|
|
11864
|
-
var
|
|
11865
|
-
var
|
|
11866
|
-
var
|
|
11867
|
-
"^" +
|
|
11882
|
+
var funcToString2 = funcProto2.toString;
|
|
11883
|
+
var hasOwnProperty2 = objectProto2.hasOwnProperty;
|
|
11884
|
+
var objectToString2 = objectProto2.toString;
|
|
11885
|
+
var reIsNative2 = RegExp(
|
|
11886
|
+
"^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
11868
11887
|
);
|
|
11869
|
-
var Buffer2 = moduleExports ?
|
|
11888
|
+
var Buffer2 = moduleExports ? root2.Buffer : void 0, Symbol2 = root2.Symbol, Uint8Array2 = root2.Uint8Array, getPrototype = overArg(Object.getPrototypeOf, Object), objectCreate2 = Object.create, propertyIsEnumerable = objectProto2.propertyIsEnumerable, splice = arrayProto.splice;
|
|
11870
11889
|
var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0, nativeKeys = overArg(Object.keys, Object);
|
|
11871
|
-
var DataView =
|
|
11872
|
-
var dataViewCtorString =
|
|
11890
|
+
var DataView = getNative2(root2, "DataView"), Map2 = getNative2(root2, "Map"), Promise2 = getNative2(root2, "Promise"), Set = getNative2(root2, "Set"), WeakMap = getNative2(root2, "WeakMap"), nativeCreate = getNative2(Object, "create");
|
|
11891
|
+
var dataViewCtorString = toSource2(DataView), mapCtorString = toSource2(Map2), promiseCtorString = toSource2(Promise2), setCtorString = toSource2(Set), weakMapCtorString = toSource2(WeakMap);
|
|
11873
11892
|
var symbolProto = Symbol2 ? Symbol2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
11874
11893
|
function Hash(entries) {
|
|
11875
11894
|
var index = -1, length = entries ? entries.length : 0;
|
|
@@ -11891,11 +11910,11 @@ var __publicField = (obj, key, value) => {
|
|
|
11891
11910
|
var result = data[key];
|
|
11892
11911
|
return result === HASH_UNDEFINED ? void 0 : result;
|
|
11893
11912
|
}
|
|
11894
|
-
return
|
|
11913
|
+
return hasOwnProperty2.call(data, key) ? data[key] : void 0;
|
|
11895
11914
|
}
|
|
11896
11915
|
function hashHas(key) {
|
|
11897
11916
|
var data = this.__data__;
|
|
11898
|
-
return nativeCreate ? data[key] !== void 0 :
|
|
11917
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty2.call(data, key);
|
|
11899
11918
|
}
|
|
11900
11919
|
function hashSet(key, value) {
|
|
11901
11920
|
var data = this.__data__;
|
|
@@ -12022,7 +12041,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12022
12041
|
var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : [];
|
|
12023
12042
|
var length = result.length, skipIndexes = !!length;
|
|
12024
12043
|
for (var key in value) {
|
|
12025
|
-
if ((inherited ||
|
|
12044
|
+
if ((inherited || hasOwnProperty2.call(value, key)) && !(skipIndexes && (key == "length" || isIndex2(key, length)))) {
|
|
12026
12045
|
result.push(key);
|
|
12027
12046
|
}
|
|
12028
12047
|
}
|
|
@@ -12030,7 +12049,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12030
12049
|
}
|
|
12031
12050
|
function assignValue(object, key, value) {
|
|
12032
12051
|
var objValue = object[key];
|
|
12033
|
-
if (!(
|
|
12052
|
+
if (!(hasOwnProperty2.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
|
12034
12053
|
object[key] = value;
|
|
12035
12054
|
}
|
|
12036
12055
|
}
|
|
@@ -12061,15 +12080,15 @@ var __publicField = (obj, key, value) => {
|
|
|
12061
12080
|
if (isArr) {
|
|
12062
12081
|
result = initCloneArray(value);
|
|
12063
12082
|
if (!isDeep) {
|
|
12064
|
-
return
|
|
12083
|
+
return copyArray2(value, result);
|
|
12065
12084
|
}
|
|
12066
12085
|
} else {
|
|
12067
|
-
var tag = getTag(value), isFunc = tag ==
|
|
12086
|
+
var tag = getTag(value), isFunc = tag == funcTag2 || tag == genTag2;
|
|
12068
12087
|
if (isBuffer(value)) {
|
|
12069
12088
|
return cloneBuffer(value, isDeep);
|
|
12070
12089
|
}
|
|
12071
12090
|
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
12072
|
-
if (
|
|
12091
|
+
if (isHostObject2(value)) {
|
|
12073
12092
|
return object ? value : {};
|
|
12074
12093
|
}
|
|
12075
12094
|
result = initCloneObject(isFunc ? {} : value);
|
|
@@ -12092,7 +12111,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12092
12111
|
if (!isArr) {
|
|
12093
12112
|
var props = isFull ? getAllKeys(value) : keys(value);
|
|
12094
12113
|
}
|
|
12095
|
-
|
|
12114
|
+
arrayEach2(props || value, function(subValue, key2) {
|
|
12096
12115
|
if (props) {
|
|
12097
12116
|
key2 = subValue;
|
|
12098
12117
|
subValue = value[key2];
|
|
@@ -12101,22 +12120,22 @@ var __publicField = (obj, key, value) => {
|
|
|
12101
12120
|
});
|
|
12102
12121
|
return result;
|
|
12103
12122
|
}
|
|
12104
|
-
function
|
|
12105
|
-
return isObject2(proto2) ?
|
|
12123
|
+
function baseCreate2(proto2) {
|
|
12124
|
+
return isObject2(proto2) ? objectCreate2(proto2) : {};
|
|
12106
12125
|
}
|
|
12107
12126
|
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
12108
12127
|
var result = keysFunc(object);
|
|
12109
12128
|
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
12110
12129
|
}
|
|
12111
12130
|
function baseGetTag(value) {
|
|
12112
|
-
return
|
|
12131
|
+
return objectToString2.call(value);
|
|
12113
12132
|
}
|
|
12114
|
-
function
|
|
12115
|
-
if (!isObject2(value) ||
|
|
12133
|
+
function baseIsNative2(value) {
|
|
12134
|
+
if (!isObject2(value) || isMasked2(value)) {
|
|
12116
12135
|
return false;
|
|
12117
12136
|
}
|
|
12118
|
-
var pattern =
|
|
12119
|
-
return pattern.test(
|
|
12137
|
+
var pattern = isFunction2(value) || isHostObject2(value) ? reIsNative2 : reIsHostCtor2;
|
|
12138
|
+
return pattern.test(toSource2(value));
|
|
12120
12139
|
}
|
|
12121
12140
|
function baseKeys(object) {
|
|
12122
12141
|
if (!isPrototype(object)) {
|
|
@@ -12124,7 +12143,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12124
12143
|
}
|
|
12125
12144
|
var result = [];
|
|
12126
12145
|
for (var key in Object(object)) {
|
|
12127
|
-
if (
|
|
12146
|
+
if (hasOwnProperty2.call(object, key) && key != "constructor") {
|
|
12128
12147
|
result.push(key);
|
|
12129
12148
|
}
|
|
12130
12149
|
}
|
|
@@ -12167,7 +12186,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12167
12186
|
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
12168
12187
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
12169
12188
|
}
|
|
12170
|
-
function
|
|
12189
|
+
function copyArray2(source, array) {
|
|
12171
12190
|
var index = -1, length = source.length;
|
|
12172
12191
|
array || (array = Array(length));
|
|
12173
12192
|
while (++index < length) {
|
|
@@ -12195,15 +12214,15 @@ var __publicField = (obj, key, value) => {
|
|
|
12195
12214
|
var data = map.__data__;
|
|
12196
12215
|
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
12197
12216
|
}
|
|
12198
|
-
function
|
|
12199
|
-
var value =
|
|
12200
|
-
return
|
|
12217
|
+
function getNative2(object, key) {
|
|
12218
|
+
var value = getValue2(object, key);
|
|
12219
|
+
return baseIsNative2(value) ? value : void 0;
|
|
12201
12220
|
}
|
|
12202
12221
|
var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
|
|
12203
12222
|
var getTag = baseGetTag;
|
|
12204
12223
|
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
|
|
12205
12224
|
getTag = function(value) {
|
|
12206
|
-
var result =
|
|
12225
|
+
var result = objectToString2.call(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource2(Ctor) : void 0;
|
|
12207
12226
|
if (ctorString) {
|
|
12208
12227
|
switch (ctorString) {
|
|
12209
12228
|
case dataViewCtorString:
|
|
@@ -12223,14 +12242,14 @@ var __publicField = (obj, key, value) => {
|
|
|
12223
12242
|
}
|
|
12224
12243
|
function initCloneArray(array) {
|
|
12225
12244
|
var length = array.length, result = array.constructor(length);
|
|
12226
|
-
if (length && typeof array[0] == "string" &&
|
|
12245
|
+
if (length && typeof array[0] == "string" && hasOwnProperty2.call(array, "index")) {
|
|
12227
12246
|
result.index = array.index;
|
|
12228
12247
|
result.input = array.input;
|
|
12229
12248
|
}
|
|
12230
12249
|
return result;
|
|
12231
12250
|
}
|
|
12232
12251
|
function initCloneObject(object) {
|
|
12233
|
-
return typeof object.constructor == "function" && !isPrototype(object) ?
|
|
12252
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate2(getPrototype(object)) : {};
|
|
12234
12253
|
}
|
|
12235
12254
|
function initCloneByTag(object, tag, cloneFunc, isDeep) {
|
|
12236
12255
|
var Ctor = object.constructor;
|
|
@@ -12261,29 +12280,29 @@ var __publicField = (obj, key, value) => {
|
|
|
12261
12280
|
return cloneRegExp(object);
|
|
12262
12281
|
case setTag:
|
|
12263
12282
|
return cloneSet(object, isDeep, cloneFunc);
|
|
12264
|
-
case
|
|
12283
|
+
case symbolTag2:
|
|
12265
12284
|
return cloneSymbol(object);
|
|
12266
12285
|
}
|
|
12267
12286
|
}
|
|
12268
|
-
function
|
|
12269
|
-
length = length == null ?
|
|
12270
|
-
return !!length && (typeof value == "number" ||
|
|
12287
|
+
function isIndex2(value, length) {
|
|
12288
|
+
length = length == null ? MAX_SAFE_INTEGER2 : length;
|
|
12289
|
+
return !!length && (typeof value == "number" || reIsUint2.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
12271
12290
|
}
|
|
12272
12291
|
function isKeyable(value) {
|
|
12273
12292
|
var type = typeof value;
|
|
12274
12293
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
12275
12294
|
}
|
|
12276
|
-
function
|
|
12277
|
-
return !!
|
|
12295
|
+
function isMasked2(func) {
|
|
12296
|
+
return !!maskSrcKey2 && maskSrcKey2 in func;
|
|
12278
12297
|
}
|
|
12279
12298
|
function isPrototype(value) {
|
|
12280
|
-
var Ctor = value && value.constructor, proto2 = typeof Ctor == "function" && Ctor.prototype ||
|
|
12299
|
+
var Ctor = value && value.constructor, proto2 = typeof Ctor == "function" && Ctor.prototype || objectProto2;
|
|
12281
12300
|
return value === proto2;
|
|
12282
12301
|
}
|
|
12283
|
-
function
|
|
12302
|
+
function toSource2(func) {
|
|
12284
12303
|
if (func != null) {
|
|
12285
12304
|
try {
|
|
12286
|
-
return
|
|
12305
|
+
return funcToString2.call(func);
|
|
12287
12306
|
} catch (e) {
|
|
12288
12307
|
}
|
|
12289
12308
|
try {
|
|
@@ -12300,28 +12319,28 @@ var __publicField = (obj, key, value) => {
|
|
|
12300
12319
|
return value === other || value !== value && other !== other;
|
|
12301
12320
|
}
|
|
12302
12321
|
function isArguments(value) {
|
|
12303
|
-
return isArrayLikeObject(value) &&
|
|
12322
|
+
return isArrayLikeObject(value) && hasOwnProperty2.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString2.call(value) == argsTag);
|
|
12304
12323
|
}
|
|
12305
12324
|
var isArray = Array.isArray;
|
|
12306
12325
|
function isArrayLike(value) {
|
|
12307
|
-
return value != null && isLength(value.length) && !
|
|
12326
|
+
return value != null && isLength(value.length) && !isFunction2(value);
|
|
12308
12327
|
}
|
|
12309
12328
|
function isArrayLikeObject(value) {
|
|
12310
|
-
return
|
|
12329
|
+
return isObjectLike2(value) && isArrayLike(value);
|
|
12311
12330
|
}
|
|
12312
12331
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
12313
|
-
function
|
|
12314
|
-
var tag = isObject2(value) ?
|
|
12315
|
-
return tag ==
|
|
12332
|
+
function isFunction2(value) {
|
|
12333
|
+
var tag = isObject2(value) ? objectToString2.call(value) : "";
|
|
12334
|
+
return tag == funcTag2 || tag == genTag2;
|
|
12316
12335
|
}
|
|
12317
12336
|
function isLength(value) {
|
|
12318
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <=
|
|
12337
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
|
|
12319
12338
|
}
|
|
12320
12339
|
function isObject2(value) {
|
|
12321
12340
|
var type = typeof value;
|
|
12322
12341
|
return !!value && (type == "object" || type == "function");
|
|
12323
12342
|
}
|
|
12324
|
-
function
|
|
12343
|
+
function isObjectLike2(value) {
|
|
12325
12344
|
return !!value && typeof value == "object";
|
|
12326
12345
|
}
|
|
12327
12346
|
function keys(object) {
|
|
@@ -12580,6 +12599,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12580
12599
|
"plugin:flv": "veplayer.plugin.flv.[env].[ext]",
|
|
12581
12600
|
"plugin:mp4": "veplayer.plugin.mp4.[env].[ext]",
|
|
12582
12601
|
"plugin:hls": "veplayer.plugin.hls.[env].[ext]",
|
|
12602
|
+
"plugin:hlsjs": "veplayer.plugin.hlsjs.[env].[ext]",
|
|
12583
12603
|
"plugin:shaka": "veplayer.plugin.shaka.[env].[ext]",
|
|
12584
12604
|
"plugin:rtm": "veplayer.plugin.rtm.[env].[ext]",
|
|
12585
12605
|
"plugin:xgvideo": "veplayer.plugin.xgvideo.[env].[ext]",
|
|
@@ -12592,6 +12612,7 @@ var __publicField = (obj, key, value) => {
|
|
|
12592
12612
|
DynamicModule2["PluginFlv"] = "plugin:flv";
|
|
12593
12613
|
DynamicModule2["PluginMp4"] = "plugin:mp4";
|
|
12594
12614
|
DynamicModule2["PluginHls"] = "plugin:hls";
|
|
12615
|
+
DynamicModule2["PluginHlsJs"] = "plugin:hlsjs";
|
|
12595
12616
|
DynamicModule2["PluginShaka"] = "plugin:shaka";
|
|
12596
12617
|
DynamicModule2["PluginRtm"] = "plugin:rtm";
|
|
12597
12618
|
DynamicModule2["PluginXgvideo"] = "plugin:xgvideo";
|
|
@@ -12712,6 +12733,495 @@ var __publicField = (obj, key, value) => {
|
|
|
12712
12733
|
});
|
|
12713
12734
|
}
|
|
12714
12735
|
}
|
|
12736
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
12737
|
+
var PLACEHOLDER = "__lodash_placeholder__";
|
|
12738
|
+
var BIND_FLAG = 1, BIND_KEY_FLAG = 2, CURRY_BOUND_FLAG = 4, CURRY_FLAG = 8, CURRY_RIGHT_FLAG = 16, PARTIAL_FLAG = 32, PARTIAL_RIGHT_FLAG = 64, ARY_FLAG = 128, REARG_FLAG = 256, FLIP_FLAG = 512;
|
|
12739
|
+
var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 17976931348623157e292, NAN = 0 / 0;
|
|
12740
|
+
var wrapFlags = [
|
|
12741
|
+
["ary", ARY_FLAG],
|
|
12742
|
+
["bind", BIND_FLAG],
|
|
12743
|
+
["bindKey", BIND_KEY_FLAG],
|
|
12744
|
+
["curry", CURRY_FLAG],
|
|
12745
|
+
["curryRight", CURRY_RIGHT_FLAG],
|
|
12746
|
+
["flip", FLIP_FLAG],
|
|
12747
|
+
["partial", PARTIAL_FLAG],
|
|
12748
|
+
["partialRight", PARTIAL_RIGHT_FLAG],
|
|
12749
|
+
["rearg", REARG_FLAG]
|
|
12750
|
+
];
|
|
12751
|
+
var funcTag = "[object Function]", genTag = "[object GeneratorFunction]", symbolTag = "[object Symbol]";
|
|
12752
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
12753
|
+
var reTrim = /^\s+|\s+$/g;
|
|
12754
|
+
var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, reSplitDetails = /,? & /;
|
|
12755
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
12756
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
12757
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
12758
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
12759
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
12760
|
+
var freeParseInt = parseInt;
|
|
12761
|
+
var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
12762
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
12763
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
12764
|
+
function apply(func, thisArg, args) {
|
|
12765
|
+
switch (args.length) {
|
|
12766
|
+
case 0:
|
|
12767
|
+
return func.call(thisArg);
|
|
12768
|
+
case 1:
|
|
12769
|
+
return func.call(thisArg, args[0]);
|
|
12770
|
+
case 2:
|
|
12771
|
+
return func.call(thisArg, args[0], args[1]);
|
|
12772
|
+
case 3:
|
|
12773
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
|
12774
|
+
}
|
|
12775
|
+
return func.apply(thisArg, args);
|
|
12776
|
+
}
|
|
12777
|
+
function arrayEach(array, iteratee) {
|
|
12778
|
+
var index = -1, length = array ? array.length : 0;
|
|
12779
|
+
while (++index < length) {
|
|
12780
|
+
if (iteratee(array[index], index, array) === false) {
|
|
12781
|
+
break;
|
|
12782
|
+
}
|
|
12783
|
+
}
|
|
12784
|
+
return array;
|
|
12785
|
+
}
|
|
12786
|
+
function arrayIncludes(array, value) {
|
|
12787
|
+
var length = array ? array.length : 0;
|
|
12788
|
+
return !!length && baseIndexOf(array, value, 0) > -1;
|
|
12789
|
+
}
|
|
12790
|
+
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
12791
|
+
var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
|
|
12792
|
+
while (fromRight ? index-- : ++index < length) {
|
|
12793
|
+
if (predicate(array[index], index, array)) {
|
|
12794
|
+
return index;
|
|
12795
|
+
}
|
|
12796
|
+
}
|
|
12797
|
+
return -1;
|
|
12798
|
+
}
|
|
12799
|
+
function baseIndexOf(array, value, fromIndex) {
|
|
12800
|
+
if (value !== value) {
|
|
12801
|
+
return baseFindIndex(array, baseIsNaN, fromIndex);
|
|
12802
|
+
}
|
|
12803
|
+
var index = fromIndex - 1, length = array.length;
|
|
12804
|
+
while (++index < length) {
|
|
12805
|
+
if (array[index] === value) {
|
|
12806
|
+
return index;
|
|
12807
|
+
}
|
|
12808
|
+
}
|
|
12809
|
+
return -1;
|
|
12810
|
+
}
|
|
12811
|
+
function baseIsNaN(value) {
|
|
12812
|
+
return value !== value;
|
|
12813
|
+
}
|
|
12814
|
+
function countHolders(array, placeholder) {
|
|
12815
|
+
var length = array.length, result = 0;
|
|
12816
|
+
while (length--) {
|
|
12817
|
+
if (array[length] === placeholder) {
|
|
12818
|
+
result++;
|
|
12819
|
+
}
|
|
12820
|
+
}
|
|
12821
|
+
return result;
|
|
12822
|
+
}
|
|
12823
|
+
function getValue(object, key) {
|
|
12824
|
+
return object == null ? void 0 : object[key];
|
|
12825
|
+
}
|
|
12826
|
+
function isHostObject(value) {
|
|
12827
|
+
var result = false;
|
|
12828
|
+
if (value != null && typeof value.toString != "function") {
|
|
12829
|
+
try {
|
|
12830
|
+
result = !!(value + "");
|
|
12831
|
+
} catch (e) {
|
|
12832
|
+
}
|
|
12833
|
+
}
|
|
12834
|
+
return result;
|
|
12835
|
+
}
|
|
12836
|
+
function replaceHolders(array, placeholder) {
|
|
12837
|
+
var index = -1, length = array.length, resIndex = 0, result = [];
|
|
12838
|
+
while (++index < length) {
|
|
12839
|
+
var value = array[index];
|
|
12840
|
+
if (value === placeholder || value === PLACEHOLDER) {
|
|
12841
|
+
array[index] = PLACEHOLDER;
|
|
12842
|
+
result[resIndex++] = index;
|
|
12843
|
+
}
|
|
12844
|
+
}
|
|
12845
|
+
return result;
|
|
12846
|
+
}
|
|
12847
|
+
var funcProto = Function.prototype, objectProto = Object.prototype;
|
|
12848
|
+
var coreJsData = root["__core-js_shared__"];
|
|
12849
|
+
var maskSrcKey = function() {
|
|
12850
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
12851
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
12852
|
+
}();
|
|
12853
|
+
var funcToString = funcProto.toString;
|
|
12854
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
12855
|
+
var objectToString = objectProto.toString;
|
|
12856
|
+
var reIsNative = RegExp(
|
|
12857
|
+
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
12858
|
+
);
|
|
12859
|
+
var objectCreate = Object.create;
|
|
12860
|
+
var nativeMax = Math.max, nativeMin = Math.min;
|
|
12861
|
+
var defineProperty = function() {
|
|
12862
|
+
var func = getNative(Object, "defineProperty"), name = getNative.name;
|
|
12863
|
+
return name && name.length > 2 ? func : void 0;
|
|
12864
|
+
}();
|
|
12865
|
+
function baseCreate(proto2) {
|
|
12866
|
+
return isObject(proto2) ? objectCreate(proto2) : {};
|
|
12867
|
+
}
|
|
12868
|
+
function baseIsNative(value) {
|
|
12869
|
+
if (!isObject(value) || isMasked(value)) {
|
|
12870
|
+
return false;
|
|
12871
|
+
}
|
|
12872
|
+
var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
|
|
12873
|
+
return pattern.test(toSource(value));
|
|
12874
|
+
}
|
|
12875
|
+
function composeArgs(args, partials, holders, isCurried) {
|
|
12876
|
+
var argsIndex = -1, argsLength = args.length, holdersLength = holders.length, leftIndex = -1, leftLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result = Array(leftLength + rangeLength), isUncurried = !isCurried;
|
|
12877
|
+
while (++leftIndex < leftLength) {
|
|
12878
|
+
result[leftIndex] = partials[leftIndex];
|
|
12879
|
+
}
|
|
12880
|
+
while (++argsIndex < holdersLength) {
|
|
12881
|
+
if (isUncurried || argsIndex < argsLength) {
|
|
12882
|
+
result[holders[argsIndex]] = args[argsIndex];
|
|
12883
|
+
}
|
|
12884
|
+
}
|
|
12885
|
+
while (rangeLength--) {
|
|
12886
|
+
result[leftIndex++] = args[argsIndex++];
|
|
12887
|
+
}
|
|
12888
|
+
return result;
|
|
12889
|
+
}
|
|
12890
|
+
function composeArgsRight(args, partials, holders, isCurried) {
|
|
12891
|
+
var argsIndex = -1, argsLength = args.length, holdersIndex = -1, holdersLength = holders.length, rightIndex = -1, rightLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result = Array(rangeLength + rightLength), isUncurried = !isCurried;
|
|
12892
|
+
while (++argsIndex < rangeLength) {
|
|
12893
|
+
result[argsIndex] = args[argsIndex];
|
|
12894
|
+
}
|
|
12895
|
+
var offset = argsIndex;
|
|
12896
|
+
while (++rightIndex < rightLength) {
|
|
12897
|
+
result[offset + rightIndex] = partials[rightIndex];
|
|
12898
|
+
}
|
|
12899
|
+
while (++holdersIndex < holdersLength) {
|
|
12900
|
+
if (isUncurried || argsIndex < argsLength) {
|
|
12901
|
+
result[offset + holders[holdersIndex]] = args[argsIndex++];
|
|
12902
|
+
}
|
|
12903
|
+
}
|
|
12904
|
+
return result;
|
|
12905
|
+
}
|
|
12906
|
+
function copyArray(source, array) {
|
|
12907
|
+
var index = -1, length = source.length;
|
|
12908
|
+
array || (array = Array(length));
|
|
12909
|
+
while (++index < length) {
|
|
12910
|
+
array[index] = source[index];
|
|
12911
|
+
}
|
|
12912
|
+
return array;
|
|
12913
|
+
}
|
|
12914
|
+
function createBind(func, bitmask, thisArg) {
|
|
12915
|
+
var isBind = bitmask & BIND_FLAG, Ctor = createCtor(func);
|
|
12916
|
+
function wrapper() {
|
|
12917
|
+
var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
|
|
12918
|
+
return fn.apply(isBind ? thisArg : this, arguments);
|
|
12919
|
+
}
|
|
12920
|
+
return wrapper;
|
|
12921
|
+
}
|
|
12922
|
+
function createCtor(Ctor) {
|
|
12923
|
+
return function() {
|
|
12924
|
+
var args = arguments;
|
|
12925
|
+
switch (args.length) {
|
|
12926
|
+
case 0:
|
|
12927
|
+
return new Ctor();
|
|
12928
|
+
case 1:
|
|
12929
|
+
return new Ctor(args[0]);
|
|
12930
|
+
case 2:
|
|
12931
|
+
return new Ctor(args[0], args[1]);
|
|
12932
|
+
case 3:
|
|
12933
|
+
return new Ctor(args[0], args[1], args[2]);
|
|
12934
|
+
case 4:
|
|
12935
|
+
return new Ctor(args[0], args[1], args[2], args[3]);
|
|
12936
|
+
case 5:
|
|
12937
|
+
return new Ctor(args[0], args[1], args[2], args[3], args[4]);
|
|
12938
|
+
case 6:
|
|
12939
|
+
return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
|
|
12940
|
+
case 7:
|
|
12941
|
+
return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
|
|
12942
|
+
}
|
|
12943
|
+
var thisBinding = baseCreate(Ctor.prototype), result = Ctor.apply(thisBinding, args);
|
|
12944
|
+
return isObject(result) ? result : thisBinding;
|
|
12945
|
+
};
|
|
12946
|
+
}
|
|
12947
|
+
function createCurry(func, bitmask, arity) {
|
|
12948
|
+
var Ctor = createCtor(func);
|
|
12949
|
+
function wrapper() {
|
|
12950
|
+
var length = arguments.length, args = Array(length), index = length, placeholder = getHolder(wrapper);
|
|
12951
|
+
while (index--) {
|
|
12952
|
+
args[index] = arguments[index];
|
|
12953
|
+
}
|
|
12954
|
+
var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders(args, placeholder);
|
|
12955
|
+
length -= holders.length;
|
|
12956
|
+
if (length < arity) {
|
|
12957
|
+
return createRecurry(
|
|
12958
|
+
func,
|
|
12959
|
+
bitmask,
|
|
12960
|
+
createHybrid,
|
|
12961
|
+
wrapper.placeholder,
|
|
12962
|
+
void 0,
|
|
12963
|
+
args,
|
|
12964
|
+
holders,
|
|
12965
|
+
void 0,
|
|
12966
|
+
void 0,
|
|
12967
|
+
arity - length
|
|
12968
|
+
);
|
|
12969
|
+
}
|
|
12970
|
+
var fn = this && this !== root && this instanceof wrapper ? Ctor : func;
|
|
12971
|
+
return apply(fn, this, args);
|
|
12972
|
+
}
|
|
12973
|
+
return wrapper;
|
|
12974
|
+
}
|
|
12975
|
+
function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
|
|
12976
|
+
var isAry = bitmask & ARY_FLAG, isBind = bitmask & BIND_FLAG, isBindKey = bitmask & BIND_KEY_FLAG, isCurried = bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG), isFlip = bitmask & FLIP_FLAG, Ctor = isBindKey ? void 0 : createCtor(func);
|
|
12977
|
+
function wrapper() {
|
|
12978
|
+
var length = arguments.length, args = Array(length), index = length;
|
|
12979
|
+
while (index--) {
|
|
12980
|
+
args[index] = arguments[index];
|
|
12981
|
+
}
|
|
12982
|
+
if (isCurried) {
|
|
12983
|
+
var placeholder = getHolder(wrapper), holdersCount = countHolders(args, placeholder);
|
|
12984
|
+
}
|
|
12985
|
+
if (partials) {
|
|
12986
|
+
args = composeArgs(args, partials, holders, isCurried);
|
|
12987
|
+
}
|
|
12988
|
+
if (partialsRight) {
|
|
12989
|
+
args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
|
|
12990
|
+
}
|
|
12991
|
+
length -= holdersCount;
|
|
12992
|
+
if (isCurried && length < arity) {
|
|
12993
|
+
var newHolders = replaceHolders(args, placeholder);
|
|
12994
|
+
return createRecurry(
|
|
12995
|
+
func,
|
|
12996
|
+
bitmask,
|
|
12997
|
+
createHybrid,
|
|
12998
|
+
wrapper.placeholder,
|
|
12999
|
+
thisArg,
|
|
13000
|
+
args,
|
|
13001
|
+
newHolders,
|
|
13002
|
+
argPos,
|
|
13003
|
+
ary,
|
|
13004
|
+
arity - length
|
|
13005
|
+
);
|
|
13006
|
+
}
|
|
13007
|
+
var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func;
|
|
13008
|
+
length = args.length;
|
|
13009
|
+
if (argPos) {
|
|
13010
|
+
args = reorder(args, argPos);
|
|
13011
|
+
} else if (isFlip && length > 1) {
|
|
13012
|
+
args.reverse();
|
|
13013
|
+
}
|
|
13014
|
+
if (isAry && ary < length) {
|
|
13015
|
+
args.length = ary;
|
|
13016
|
+
}
|
|
13017
|
+
if (this && this !== root && this instanceof wrapper) {
|
|
13018
|
+
fn = Ctor || createCtor(fn);
|
|
13019
|
+
}
|
|
13020
|
+
return fn.apply(thisBinding, args);
|
|
13021
|
+
}
|
|
13022
|
+
return wrapper;
|
|
13023
|
+
}
|
|
13024
|
+
function createPartial(func, bitmask, thisArg, partials) {
|
|
13025
|
+
var isBind = bitmask & BIND_FLAG, Ctor = createCtor(func);
|
|
13026
|
+
function wrapper() {
|
|
13027
|
+
var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func;
|
|
13028
|
+
while (++leftIndex < leftLength) {
|
|
13029
|
+
args[leftIndex] = partials[leftIndex];
|
|
13030
|
+
}
|
|
13031
|
+
while (argsLength--) {
|
|
13032
|
+
args[leftIndex++] = arguments[++argsIndex];
|
|
13033
|
+
}
|
|
13034
|
+
return apply(fn, isBind ? thisArg : this, args);
|
|
13035
|
+
}
|
|
13036
|
+
return wrapper;
|
|
13037
|
+
}
|
|
13038
|
+
function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
|
|
13039
|
+
var isCurry = bitmask & CURRY_FLAG, newHolders = isCurry ? holders : void 0, newHoldersRight = isCurry ? void 0 : holders, newPartials = isCurry ? partials : void 0, newPartialsRight = isCurry ? void 0 : partials;
|
|
13040
|
+
bitmask |= isCurry ? PARTIAL_FLAG : PARTIAL_RIGHT_FLAG;
|
|
13041
|
+
bitmask &= ~(isCurry ? PARTIAL_RIGHT_FLAG : PARTIAL_FLAG);
|
|
13042
|
+
if (!(bitmask & CURRY_BOUND_FLAG)) {
|
|
13043
|
+
bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG);
|
|
13044
|
+
}
|
|
13045
|
+
var result = wrapFunc(func, bitmask, thisArg, newPartials, newHolders, newPartialsRight, newHoldersRight, argPos, ary, arity);
|
|
13046
|
+
result.placeholder = placeholder;
|
|
13047
|
+
return setWrapToString(result, func, bitmask);
|
|
13048
|
+
}
|
|
13049
|
+
function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
|
|
13050
|
+
var isBindKey = bitmask & BIND_KEY_FLAG;
|
|
13051
|
+
if (!isBindKey && typeof func != "function") {
|
|
13052
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
13053
|
+
}
|
|
13054
|
+
var length = partials ? partials.length : 0;
|
|
13055
|
+
if (!length) {
|
|
13056
|
+
bitmask &= ~(PARTIAL_FLAG | PARTIAL_RIGHT_FLAG);
|
|
13057
|
+
partials = holders = void 0;
|
|
13058
|
+
}
|
|
13059
|
+
ary = ary === void 0 ? ary : nativeMax(toInteger(ary), 0);
|
|
13060
|
+
arity = arity === void 0 ? arity : toInteger(arity);
|
|
13061
|
+
length -= holders ? holders.length : 0;
|
|
13062
|
+
if (bitmask & PARTIAL_RIGHT_FLAG) {
|
|
13063
|
+
var partialsRight = partials, holdersRight = holders;
|
|
13064
|
+
partials = holders = void 0;
|
|
13065
|
+
}
|
|
13066
|
+
var newData = [
|
|
13067
|
+
func,
|
|
13068
|
+
bitmask,
|
|
13069
|
+
thisArg,
|
|
13070
|
+
partials,
|
|
13071
|
+
holders,
|
|
13072
|
+
partialsRight,
|
|
13073
|
+
holdersRight,
|
|
13074
|
+
argPos,
|
|
13075
|
+
ary,
|
|
13076
|
+
arity
|
|
13077
|
+
];
|
|
13078
|
+
func = newData[0];
|
|
13079
|
+
bitmask = newData[1];
|
|
13080
|
+
thisArg = newData[2];
|
|
13081
|
+
partials = newData[3];
|
|
13082
|
+
holders = newData[4];
|
|
13083
|
+
arity = newData[9] = newData[9] == null ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0);
|
|
13084
|
+
if (!arity && bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG)) {
|
|
13085
|
+
bitmask &= ~(CURRY_FLAG | CURRY_RIGHT_FLAG);
|
|
13086
|
+
}
|
|
13087
|
+
if (!bitmask || bitmask == BIND_FLAG) {
|
|
13088
|
+
var result = createBind(func, bitmask, thisArg);
|
|
13089
|
+
} else if (bitmask == CURRY_FLAG || bitmask == CURRY_RIGHT_FLAG) {
|
|
13090
|
+
result = createCurry(func, bitmask, arity);
|
|
13091
|
+
} else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !holders.length) {
|
|
13092
|
+
result = createPartial(func, bitmask, thisArg, partials);
|
|
13093
|
+
} else {
|
|
13094
|
+
result = createHybrid.apply(void 0, newData);
|
|
13095
|
+
}
|
|
13096
|
+
return setWrapToString(result, func, bitmask);
|
|
13097
|
+
}
|
|
13098
|
+
function getHolder(func) {
|
|
13099
|
+
var object = func;
|
|
13100
|
+
return object.placeholder;
|
|
13101
|
+
}
|
|
13102
|
+
function getNative(object, key) {
|
|
13103
|
+
var value = getValue(object, key);
|
|
13104
|
+
return baseIsNative(value) ? value : void 0;
|
|
13105
|
+
}
|
|
13106
|
+
function getWrapDetails(source) {
|
|
13107
|
+
var match = source.match(reWrapDetails);
|
|
13108
|
+
return match ? match[1].split(reSplitDetails) : [];
|
|
13109
|
+
}
|
|
13110
|
+
function insertWrapDetails(source, details) {
|
|
13111
|
+
var length = details.length, lastIndex = length - 1;
|
|
13112
|
+
details[lastIndex] = (length > 1 ? "& " : "") + details[lastIndex];
|
|
13113
|
+
details = details.join(length > 2 ? ", " : " ");
|
|
13114
|
+
return source.replace(reWrapComment, "{\n/* [wrapped with " + details + "] */\n");
|
|
13115
|
+
}
|
|
13116
|
+
function isIndex(value, length) {
|
|
13117
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
13118
|
+
return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
|
13119
|
+
}
|
|
13120
|
+
function isMasked(func) {
|
|
13121
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
13122
|
+
}
|
|
13123
|
+
function reorder(array, indexes) {
|
|
13124
|
+
var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array);
|
|
13125
|
+
while (length--) {
|
|
13126
|
+
var index = indexes[length];
|
|
13127
|
+
array[length] = isIndex(index, arrLength) ? oldArray[index] : void 0;
|
|
13128
|
+
}
|
|
13129
|
+
return array;
|
|
13130
|
+
}
|
|
13131
|
+
var setWrapToString = !defineProperty ? identity : function(wrapper, reference, bitmask) {
|
|
13132
|
+
var source = reference + "";
|
|
13133
|
+
return defineProperty(wrapper, "toString", {
|
|
13134
|
+
"configurable": true,
|
|
13135
|
+
"enumerable": false,
|
|
13136
|
+
"value": constant(insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)))
|
|
13137
|
+
});
|
|
13138
|
+
};
|
|
13139
|
+
function toSource(func) {
|
|
13140
|
+
if (func != null) {
|
|
13141
|
+
try {
|
|
13142
|
+
return funcToString.call(func);
|
|
13143
|
+
} catch (e) {
|
|
13144
|
+
}
|
|
13145
|
+
try {
|
|
13146
|
+
return func + "";
|
|
13147
|
+
} catch (e) {
|
|
13148
|
+
}
|
|
13149
|
+
}
|
|
13150
|
+
return "";
|
|
13151
|
+
}
|
|
13152
|
+
function updateWrapDetails(details, bitmask) {
|
|
13153
|
+
arrayEach(wrapFlags, function(pair) {
|
|
13154
|
+
var value = "_." + pair[0];
|
|
13155
|
+
if (bitmask & pair[1] && !arrayIncludes(details, value)) {
|
|
13156
|
+
details.push(value);
|
|
13157
|
+
}
|
|
13158
|
+
});
|
|
13159
|
+
return details.sort();
|
|
13160
|
+
}
|
|
13161
|
+
function curry(func, arity, guard) {
|
|
13162
|
+
arity = guard ? void 0 : arity;
|
|
13163
|
+
var result = createWrap(func, CURRY_FLAG, void 0, void 0, void 0, void 0, void 0, arity);
|
|
13164
|
+
result.placeholder = curry.placeholder;
|
|
13165
|
+
return result;
|
|
13166
|
+
}
|
|
13167
|
+
function isFunction(value) {
|
|
13168
|
+
var tag = isObject(value) ? objectToString.call(value) : "";
|
|
13169
|
+
return tag == funcTag || tag == genTag;
|
|
13170
|
+
}
|
|
13171
|
+
function isObject(value) {
|
|
13172
|
+
var type = typeof value;
|
|
13173
|
+
return !!value && (type == "object" || type == "function");
|
|
13174
|
+
}
|
|
13175
|
+
function isObjectLike(value) {
|
|
13176
|
+
return !!value && typeof value == "object";
|
|
13177
|
+
}
|
|
13178
|
+
function isSymbol(value) {
|
|
13179
|
+
return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
|
|
13180
|
+
}
|
|
13181
|
+
function toFinite(value) {
|
|
13182
|
+
if (!value) {
|
|
13183
|
+
return value === 0 ? value : 0;
|
|
13184
|
+
}
|
|
13185
|
+
value = toNumber(value);
|
|
13186
|
+
if (value === INFINITY || value === -INFINITY) {
|
|
13187
|
+
var sign = value < 0 ? -1 : 1;
|
|
13188
|
+
return sign * MAX_INTEGER;
|
|
13189
|
+
}
|
|
13190
|
+
return value === value ? value : 0;
|
|
13191
|
+
}
|
|
13192
|
+
function toInteger(value) {
|
|
13193
|
+
var result = toFinite(value), remainder = result % 1;
|
|
13194
|
+
return result === result ? remainder ? result - remainder : result : 0;
|
|
13195
|
+
}
|
|
13196
|
+
function toNumber(value) {
|
|
13197
|
+
if (typeof value == "number") {
|
|
13198
|
+
return value;
|
|
13199
|
+
}
|
|
13200
|
+
if (isSymbol(value)) {
|
|
13201
|
+
return NAN;
|
|
13202
|
+
}
|
|
13203
|
+
if (isObject(value)) {
|
|
13204
|
+
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
13205
|
+
value = isObject(other) ? other + "" : other;
|
|
13206
|
+
}
|
|
13207
|
+
if (typeof value != "string") {
|
|
13208
|
+
return value === 0 ? value : +value;
|
|
13209
|
+
}
|
|
13210
|
+
value = value.replace(reTrim, "");
|
|
13211
|
+
var isBinary = reIsBinary.test(value);
|
|
13212
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
13213
|
+
}
|
|
13214
|
+
function constant(value) {
|
|
13215
|
+
return function() {
|
|
13216
|
+
return value;
|
|
13217
|
+
};
|
|
13218
|
+
}
|
|
13219
|
+
function identity(value) {
|
|
13220
|
+
return value;
|
|
13221
|
+
}
|
|
13222
|
+
curry.placeholder = {};
|
|
13223
|
+
var lodash_curry = curry;
|
|
13224
|
+
var curry$1 = /* @__PURE__ */ getDefaultExportFromCjs(lodash_curry);
|
|
12715
13225
|
const src = typeof document === "undefined" && typeof location === "undefined" ? require("url").pathToFileURL(__filename).href : typeof document === "undefined" ? location.href : document.currentScript && document.currentScript.src || new URL("umd/veplayer.vod.development.js", document.baseURI).href;
|
|
12716
13226
|
const baseUrl = src.slice(0, src.lastIndexOf("/"));
|
|
12717
13227
|
const loader = new Loader({
|
|
@@ -12771,11 +13281,16 @@ var __publicField = (obj, key, value) => {
|
|
|
12771
13281
|
return;
|
|
12772
13282
|
}
|
|
12773
13283
|
};
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
13284
|
+
const H264_MIME = 'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';
|
|
13285
|
+
const H265_MIME = [
|
|
13286
|
+
'video/mp4;codecs="hev1.1.6.L120.90"',
|
|
13287
|
+
'video/mp4;codecs="hev1.2.4.L120.90"',
|
|
13288
|
+
'video/mp4;codecs="hev1.3.E.L120.90"',
|
|
13289
|
+
'video/mp4;codecs="hev1.4.10.L120.90"'
|
|
13290
|
+
];
|
|
13291
|
+
const isType = curry$1(function(suffix, url) {
|
|
13292
|
+
return url == null ? void 0 : url.split("?")[0].toLowerCase().includes(suffix);
|
|
13293
|
+
});
|
|
12779
13294
|
const isHls = isType(".m3u8");
|
|
12780
13295
|
const isMp4 = isType(".mp4");
|
|
12781
13296
|
const isFlv = isType(".flv");
|
|
@@ -12803,17 +13318,35 @@ var __publicField = (obj, key, value) => {
|
|
|
12803
13318
|
if (codec === Codec.H265) {
|
|
12804
13319
|
return sniffer.isHevcSupported();
|
|
12805
13320
|
}
|
|
12806
|
-
|
|
13321
|
+
if (codec === Codec.H264) {
|
|
13322
|
+
return sniffer.isMSESupport();
|
|
13323
|
+
}
|
|
13324
|
+
return sniffer.isMSESupport(codec);
|
|
12807
13325
|
}
|
|
12808
13326
|
async function isSoftDecodeSupported() {
|
|
12809
13327
|
const { XGVideoPlugin } = await load(DynamicModule.PluginXgvideo);
|
|
12810
13328
|
return XGVideoPlugin == null ? void 0 : XGVideoPlugin.isSupported();
|
|
12811
13329
|
}
|
|
13330
|
+
function isMMSSupported(codec = Codec.H264) {
|
|
13331
|
+
if (typeof window.ManagedMediaSource === "undefined") {
|
|
13332
|
+
return false;
|
|
13333
|
+
}
|
|
13334
|
+
if (codec === Codec.H264) {
|
|
13335
|
+
return window.ManagedMediaSource.isTypeSupported(H264_MIME);
|
|
13336
|
+
}
|
|
13337
|
+
if (codec === Codec.H265) {
|
|
13338
|
+
return H265_MIME.some((mine) => {
|
|
13339
|
+
return window.ManagedMediaSource.isTypeSupported(mine);
|
|
13340
|
+
});
|
|
13341
|
+
}
|
|
13342
|
+
return window.ManagedMediaSource.isTypeSupported(codec);
|
|
13343
|
+
}
|
|
12812
13344
|
({
|
|
12813
13345
|
...util,
|
|
12814
13346
|
getStreamType,
|
|
12815
13347
|
isMseSupported,
|
|
12816
13348
|
isSoftDecodeSupported,
|
|
13349
|
+
isMMSSupported,
|
|
12817
13350
|
appendSearchParams,
|
|
12818
13351
|
getUrlObject
|
|
12819
13352
|
});
|
|
@@ -13682,7 +14215,7 @@ var __publicField = (obj, key, value) => {
|
|
|
13682
14215
|
* @brief Retrieve the player SDK version number.
|
|
13683
14216
|
*/
|
|
13684
14217
|
get playerVersion() {
|
|
13685
|
-
return "2.6.0-rc.
|
|
14218
|
+
return "2.6.0-rc.5";
|
|
13686
14219
|
}
|
|
13687
14220
|
/** {zh}
|
|
13688
14221
|
* @brief 获取当前播放视频的清晰度唯一标识(definition)。
|
|
@@ -14166,25 +14699,27 @@ var __publicField = (obj, key, value) => {
|
|
|
14166
14699
|
* @hidden
|
|
14167
14700
|
*/
|
|
14168
14701
|
async prepare(url) {
|
|
14169
|
-
var _a, _b;
|
|
14702
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
14170
14703
|
const result = await ((_a = this._preparePlugins) == null ? void 0 : _a.call(this, url));
|
|
14171
|
-
const
|
|
14172
|
-
|
|
14173
|
-
|
|
14174
|
-
)
|
|
14175
|
-
|
|
14176
|
-
|
|
14177
|
-
|
|
14178
|
-
}
|
|
14704
|
+
const newUrl = ((_b = result == null ? void 0 : result.options) == null ? void 0 : _b.url) ?? url;
|
|
14705
|
+
const oldUrl = (_d = (_c = this._player) == null ? void 0 : _c.config) == null ? void 0 : _d.url;
|
|
14706
|
+
const isSameProtocol = oldUrl && getStreamType(newUrl) === getStreamType(oldUrl);
|
|
14707
|
+
if (!isSameProtocol) {
|
|
14708
|
+
(_f = (_e = this._previousPrepareResult) == null ? void 0 : _e.plugins) == null ? void 0 : _f.forEach((plugin) => {
|
|
14709
|
+
this._player.unRegisterPlugin(plugin.pluginName);
|
|
14710
|
+
});
|
|
14711
|
+
}
|
|
14179
14712
|
this._previousPrepareResult = result;
|
|
14180
14713
|
if (result == null ? void 0 : result.options) {
|
|
14181
14714
|
this._player.setConfig(result.options);
|
|
14182
14715
|
}
|
|
14183
14716
|
return {
|
|
14184
|
-
plugins:
|
|
14717
|
+
plugins: isSameProtocol ? [] : (_g = result == null ? void 0 : result.plugins) == null ? void 0 : _g.map((plugin) => {
|
|
14185
14718
|
return this._player.registerPlugin(plugin);
|
|
14186
14719
|
}),
|
|
14187
|
-
options: result == null ? void 0 : result.options
|
|
14720
|
+
options: result == null ? void 0 : result.options,
|
|
14721
|
+
isSameProtocol,
|
|
14722
|
+
useSrc: result == null ? void 0 : result.useSrc
|
|
14188
14723
|
};
|
|
14189
14724
|
}
|
|
14190
14725
|
async _handleFallback(err) {
|
|
@@ -14227,81 +14762,105 @@ var __publicField = (obj, key, value) => {
|
|
|
14227
14762
|
async _switch(targetDefinition) {
|
|
14228
14763
|
var _a, _b, _c, _d, _e, _f;
|
|
14229
14764
|
const preDefinition = clonedeep(this._sourceManager.definition);
|
|
14230
|
-
const
|
|
14765
|
+
const isPaused = this._player.paused && !this._player.isError;
|
|
14766
|
+
const {
|
|
14767
|
+
plugins: newPlugins,
|
|
14768
|
+
options,
|
|
14769
|
+
isSameProtocol,
|
|
14770
|
+
useSrc
|
|
14771
|
+
} = await this.prepare(targetDefinition.url) || {};
|
|
14231
14772
|
if (options == null ? void 0 : options.url) {
|
|
14232
14773
|
targetDefinition.url = options == null ? void 0 : options.url;
|
|
14233
14774
|
}
|
|
14234
14775
|
this._sourceManager.switch(targetDefinition);
|
|
14235
14776
|
(_b = (_a = this._player) == null ? void 0 : _a.plugins) == null ? void 0 : _b.sources.renderItemList();
|
|
14236
14777
|
(_d = (_c = this._player) == null ? void 0 : _c.plugins) == null ? void 0 : _d.definition.renderItemList();
|
|
14237
|
-
|
|
14238
|
-
|
|
14239
|
-
|
|
14240
|
-
|
|
14241
|
-
|
|
14242
|
-
|
|
14243
|
-
|
|
14778
|
+
const isSourceSwitching = ((_e = targetDefinition == null ? void 0 : targetDefinition.source) == null ? void 0 : _e.name) !== ((_f = preDefinition == null ? void 0 : preDefinition.source) == null ? void 0 : _f.name);
|
|
14779
|
+
this._player.config.url = targetDefinition.url;
|
|
14780
|
+
if (isSameProtocol) {
|
|
14781
|
+
if (isSourceSwitching) {
|
|
14782
|
+
this.emit(Events.SOURCE_CHANGE);
|
|
14783
|
+
this._player.switchURL(targetDefinition.url);
|
|
14784
|
+
} else {
|
|
14785
|
+
this._player.changeDefinition(targetDefinition, preDefinition);
|
|
14786
|
+
}
|
|
14244
14787
|
} else {
|
|
14245
|
-
this.
|
|
14788
|
+
this.emit(
|
|
14789
|
+
isSourceSwitching ? Events.SOURCE_CHANGE : Events.DEFINITION_CHANGE
|
|
14790
|
+
);
|
|
14791
|
+
await this._switchDifferentProtocolUrl(
|
|
14792
|
+
newPlugins,
|
|
14793
|
+
targetDefinition.url,
|
|
14794
|
+
isPaused,
|
|
14795
|
+
useSrc
|
|
14796
|
+
);
|
|
14797
|
+
!isSourceSwitching && this.emit(Events.AFTER_DEFINITION_CHANGE);
|
|
14798
|
+
}
|
|
14799
|
+
}
|
|
14800
|
+
async _switchDifferentProtocolUrl(plugins, url, isPaused, useSrc) {
|
|
14801
|
+
var _a, _b;
|
|
14802
|
+
if (useSrc && this._player.media) {
|
|
14803
|
+
if ((_a = this._player.config) == null ? void 0 : _a.preProcessUrl) {
|
|
14804
|
+
url = (_b = this._player.config) == null ? void 0 : _b.preProcessUrl(url).url;
|
|
14805
|
+
}
|
|
14806
|
+
this._player.media.src = url;
|
|
14246
14807
|
}
|
|
14808
|
+
if (plugins == null ? void 0 : plugins.length) {
|
|
14809
|
+
await this._callBeforePlayerInitForUrl(plugins);
|
|
14810
|
+
}
|
|
14811
|
+
return new Promise((resolve) => {
|
|
14812
|
+
const curTime = this._player.currentTime;
|
|
14813
|
+
const _canplay = () => {
|
|
14814
|
+
console.log("canplay canplay");
|
|
14815
|
+
this._player.currentTime = curTime;
|
|
14816
|
+
if (isPaused) {
|
|
14817
|
+
this._player.once(CANPLAY, () => {
|
|
14818
|
+
this._player.pause();
|
|
14819
|
+
});
|
|
14820
|
+
}
|
|
14821
|
+
resolve();
|
|
14822
|
+
};
|
|
14823
|
+
if (sniffer.os.isAndroid) {
|
|
14824
|
+
this.once(TIME_UPDATE, () => {
|
|
14825
|
+
_canplay();
|
|
14826
|
+
});
|
|
14827
|
+
} else {
|
|
14828
|
+
this.once(CANPLAY, () => {
|
|
14829
|
+
_canplay();
|
|
14830
|
+
});
|
|
14831
|
+
}
|
|
14832
|
+
this._player.play();
|
|
14833
|
+
});
|
|
14247
14834
|
}
|
|
14248
14835
|
async _switchUrl(url, config) {
|
|
14249
|
-
const
|
|
14836
|
+
const isPaused = this._player.paused && !this._player.isError;
|
|
14837
|
+
const {
|
|
14838
|
+
plugins: newPlugins,
|
|
14839
|
+
options,
|
|
14840
|
+
isSameProtocol,
|
|
14841
|
+
useSrc
|
|
14842
|
+
} = await this.prepare(url) || {};
|
|
14250
14843
|
const newUrl = (options == null ? void 0 : options.url) ?? url;
|
|
14251
14844
|
this._sourceManager.url = newUrl;
|
|
14252
|
-
|
|
14253
|
-
|
|
14254
|
-
} else {
|
|
14845
|
+
this._player.config.url = newUrl;
|
|
14846
|
+
if (isSameProtocol) {
|
|
14255
14847
|
const res = this._player.switchURL(newUrl, {
|
|
14256
14848
|
seamless: config == null ? void 0 : config.seamless
|
|
14257
14849
|
});
|
|
14258
|
-
const curTime = this._player.currentTime;
|
|
14259
14850
|
if (res && res.then) {
|
|
14260
14851
|
return res;
|
|
14261
|
-
} else {
|
|
14262
|
-
return new Promise((resolve) => {
|
|
14263
|
-
const isPaused = this._player.paused && !this._player.isError;
|
|
14264
|
-
const _canplay = () => {
|
|
14265
|
-
this._player.currentTime = curTime;
|
|
14266
|
-
if (isPaused) {
|
|
14267
|
-
this._player.once(CANPLAY, () => {
|
|
14268
|
-
this._player.pause();
|
|
14269
|
-
});
|
|
14270
|
-
}
|
|
14271
|
-
resolve();
|
|
14272
|
-
};
|
|
14273
|
-
if (sniffer.os.isAndroid) {
|
|
14274
|
-
this.once(TIME_UPDATE, () => {
|
|
14275
|
-
_canplay();
|
|
14276
|
-
});
|
|
14277
|
-
} else {
|
|
14278
|
-
this.once(CANPLAY, () => {
|
|
14279
|
-
_canplay();
|
|
14280
|
-
});
|
|
14281
|
-
}
|
|
14282
|
-
this._player.play();
|
|
14283
|
-
});
|
|
14284
14852
|
}
|
|
14853
|
+
} else {
|
|
14854
|
+
return this._switchDifferentProtocolUrl(
|
|
14855
|
+
newPlugins,
|
|
14856
|
+
newUrl,
|
|
14857
|
+
isPaused,
|
|
14858
|
+
useSrc
|
|
14859
|
+
);
|
|
14285
14860
|
}
|
|
14286
14861
|
}
|
|
14287
|
-
|
|
14288
|
-
_diffPlugins(previousPlugins, newPlugins) {
|
|
14289
|
-
const previousPluginNames = previousPlugins.map((item) => item.pluginName);
|
|
14290
|
-
const newPluginNames = newPlugins.map((item) => item.pluginName);
|
|
14291
|
-
const removedPlugins = previousPluginNames.filter(
|
|
14292
|
-
(name) => !newPluginNames.includes(name)
|
|
14293
|
-
);
|
|
14294
|
-
const addedPlugins = newPlugins.filter(
|
|
14295
|
-
(name) => !previousPluginNames.includes(name.pluginName)
|
|
14296
|
-
);
|
|
14297
|
-
return {
|
|
14298
|
-
removedPlugins,
|
|
14299
|
-
addedPlugins
|
|
14300
|
-
};
|
|
14301
|
-
}
|
|
14302
|
-
_callBeforePlayerInitForUrl(newPlugins, url) {
|
|
14862
|
+
_callBeforePlayerInitForUrl(newPlugins) {
|
|
14303
14863
|
return new Promise((resolve) => {
|
|
14304
|
-
this._player.config.url = url;
|
|
14305
14864
|
newPlugins == null ? void 0 : newPlugins.forEach((plugin) => {
|
|
14306
14865
|
plugin.beforePlayerInit();
|
|
14307
14866
|
});
|