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