@volcengine/veplayer-plugin 2.10.4-rc.2 → 2.10.4-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.development.js +2016 -1754
- package/esm/index.production.js +7 -7
- package/esm/veplayer.plugin.abr.development.js +3 -1
- package/esm/veplayer.plugin.abr.production.js +1 -1
- package/esm/veplayer.plugin.drm.development.js +3 -1
- package/esm/veplayer.plugin.drm.production.js +1 -1
- package/esm/veplayer.plugin.flv.development.js +7 -6
- package/esm/veplayer.plugin.flv.production.js +1 -1
- package/esm/veplayer.plugin.hls.development.js +4 -2
- package/esm/veplayer.plugin.hls.production.js +1 -1
- package/esm/veplayer.plugin.hlsjs.development.js +3 -1
- package/esm/veplayer.plugin.hlsjs.production.js +1 -1
- package/esm/veplayer.plugin.mp4.development.js +9 -3
- package/esm/veplayer.plugin.mp4.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +20 -23
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/esm/veplayer.plugin.shaka.development.js +8 -2
- package/esm/veplayer.plugin.shaka.production.js +2 -2
- package/esm/veplayer.strategy.base.development.js +3 -1
- package/esm/veplayer.strategy.base.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.plugin.abr.development.js +3 -1
- package/umd/veplayer.plugin.abr.production.js +1 -1
- package/umd/veplayer.plugin.drm.development.js +3 -1
- package/umd/veplayer.plugin.drm.production.js +1 -1
- package/umd/veplayer.plugin.flv.development.js +7 -6
- package/umd/veplayer.plugin.flv.production.js +1 -1
- package/umd/veplayer.plugin.hls.development.js +4 -2
- package/umd/veplayer.plugin.hls.production.js +1 -1
- package/umd/veplayer.plugin.hlsjs.development.js +3 -1
- package/umd/veplayer.plugin.hlsjs.production.js +1 -1
- package/umd/veplayer.plugin.mp4.development.js +9 -3
- package/umd/veplayer.plugin.mp4.production.js +1 -1
- package/umd/veplayer.plugin.rtm.development.js +20 -23
- package/umd/veplayer.plugin.rtm.production.js +1 -1
- package/umd/veplayer.plugin.shaka.development.js +8 -2
- package/umd/veplayer.plugin.shaka.production.js +1 -1
- package/umd/veplayer.strategy.base.development.js +3 -1
- package/umd/veplayer.strategy.base.production.js +1 -1
|
@@ -1545,7 +1545,7 @@ util.getCurrentTimeByOffset = function(offsetTime, segments) {
|
|
|
1545
1545
|
}
|
|
1546
1546
|
return offsetTime;
|
|
1547
1547
|
};
|
|
1548
|
-
var version = "3.0.
|
|
1548
|
+
var version = "3.0.24-rc.6";
|
|
1549
1549
|
var ERROR_MAP = {
|
|
1550
1550
|
1: 5101,
|
|
1551
1551
|
2: 5102,
|
|
@@ -1653,7 +1653,7 @@ function hook(hookName, handler) {
|
|
|
1653
1653
|
}
|
|
1654
1654
|
if (this.__hooks && this.__hooks[hookName]) {
|
|
1655
1655
|
try {
|
|
1656
|
-
var preRet = runHooks(this, hookName, handler);
|
|
1656
|
+
var preRet = runHooks.apply(void 0, [this, hookName, handler].concat(Array.prototype.slice.call(arguments)));
|
|
1657
1657
|
if (preRet) {
|
|
1658
1658
|
if (preRet.then) {
|
|
1659
1659
|
preRet.then(function(isContinue) {
|
|
@@ -1767,6 +1767,8 @@ function runHooks(obj, hookName, handler) {
|
|
|
1767
1767
|
});
|
|
1768
1768
|
} else if (ret !== false) {
|
|
1769
1769
|
return runHooksRecursive2.apply(void 0, [obj2, hookName2, handler2].concat(args2));
|
|
1770
|
+
} else if (ret === false) {
|
|
1771
|
+
return false;
|
|
1770
1772
|
}
|
|
1771
1773
|
};
|
|
1772
1774
|
return runHooksRecursive.apply(void 0, [obj, hookName, handler].concat(args));
|
|
@@ -3832,7 +3834,7 @@ var MSE = /* @__PURE__ */ function() {
|
|
|
3832
3834
|
key: "isSupported",
|
|
3833
3835
|
value: function isSupported() {
|
|
3834
3836
|
var mime = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';
|
|
3835
|
-
var preferMMS = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3837
|
+
var preferMMS = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
3836
3838
|
var MediaSource2 = getMediaSource(preferMMS);
|
|
3837
3839
|
if (!MediaSource2)
|
|
3838
3840
|
return false;
|
|
@@ -11027,7 +11029,7 @@ var Flv = /* @__PURE__ */ function(_EventEmitter) {
|
|
|
11027
11029
|
_createClass$4(Flv2, [{
|
|
11028
11030
|
key: "version",
|
|
11029
11031
|
get: function get() {
|
|
11030
|
-
return "3.0.
|
|
11032
|
+
return "3.0.24-rc.6";
|
|
11031
11033
|
}
|
|
11032
11034
|
}, {
|
|
11033
11035
|
key: "isLive",
|
|
@@ -11631,8 +11633,7 @@ var FlvPlugin$1 = /* @__PURE__ */ function(_BasePlugin) {
|
|
|
11631
11633
|
}, {
|
|
11632
11634
|
key: "transferCost",
|
|
11633
11635
|
get: function get() {
|
|
11634
|
-
|
|
11635
|
-
return (_this$flv5 = this.flv) === null || _this$flv5 === void 0 ? void 0 : (_this$flv5$_transferC = _this$flv5._transferCost) === null || _this$flv5$_transferC === void 0 ? void 0 : _this$flv5$_transferC.transferCost;
|
|
11636
|
+
return this.flv._transferCost.transferCost;
|
|
11636
11637
|
}
|
|
11637
11638
|
}, {
|
|
11638
11639
|
key: "beforePlayerInit",
|