@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
|
@@ -1687,7 +1687,7 @@ util.getCurrentTimeByOffset = function(offsetTime, segments) {
|
|
|
1687
1687
|
}
|
|
1688
1688
|
return offsetTime;
|
|
1689
1689
|
};
|
|
1690
|
-
var version = "3.0.
|
|
1690
|
+
var version = "3.0.24-rc.6";
|
|
1691
1691
|
var ERROR_MAP = {
|
|
1692
1692
|
1: 5101,
|
|
1693
1693
|
2: 5102,
|
|
@@ -1798,7 +1798,7 @@ function hook(hookName, handler) {
|
|
|
1798
1798
|
}
|
|
1799
1799
|
if (this.__hooks && this.__hooks[hookName]) {
|
|
1800
1800
|
try {
|
|
1801
|
-
var preRet = runHooks(this, hookName, handler);
|
|
1801
|
+
var preRet = runHooks.apply(void 0, [this, hookName, handler].concat(Array.prototype.slice.call(arguments)));
|
|
1802
1802
|
if (preRet) {
|
|
1803
1803
|
if (preRet.then) {
|
|
1804
1804
|
preRet.then(function(isContinue) {
|
|
@@ -1912,6 +1912,8 @@ function runHooks(obj, hookName, handler) {
|
|
|
1912
1912
|
});
|
|
1913
1913
|
} else if (ret !== false) {
|
|
1914
1914
|
return runHooksRecursive2.apply(void 0, [obj2, hookName2, handler2].concat(args2));
|
|
1915
|
+
} else if (ret === false) {
|
|
1916
|
+
return false;
|
|
1915
1917
|
}
|
|
1916
1918
|
};
|
|
1917
1919
|
return runHooksRecursive.apply(void 0, [obj, hookName, handler].concat(args));
|
|
@@ -8548,6 +8550,7 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
|
|
|
8548
8550
|
_this10._media.removeEventListener("playing", revertMutedProxy2);
|
|
8549
8551
|
}
|
|
8550
8552
|
};
|
|
8553
|
+
this._revertMutedWorkaround = revertMutedProxy;
|
|
8551
8554
|
this._media.addEventListener("playing", revertMutedProxy);
|
|
8552
8555
|
}
|
|
8553
8556
|
}
|
|
@@ -8555,8 +8558,10 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
|
|
|
8555
8558
|
}, {
|
|
8556
8559
|
key: "destroy",
|
|
8557
8560
|
value: function destroy(keepClearMediaStream) {
|
|
8558
|
-
var _this$_revertVolumeWo, _this$_media3;
|
|
8561
|
+
var _this$_revertMutedWor, _this$_revertVolumeWo, _this$_media3;
|
|
8559
8562
|
this._disconnect("invoke destroy");
|
|
8563
|
+
(_this$_revertMutedWor = this._revertMutedWorkaround) === null || _this$_revertMutedWor === void 0 ? void 0 : _this$_revertMutedWor.call(this);
|
|
8564
|
+
delete this._revertMutedWorkaround;
|
|
8560
8565
|
(_this$_revertVolumeWo = this._revertVolumeWorkaround) === null || _this$_revertVolumeWo === void 0 ? void 0 : _this$_revertVolumeWo.call(this);
|
|
8561
8566
|
delete this._revertVolumeWorkaround;
|
|
8562
8567
|
(_this$_media3 = this._media) === null || _this$_media3 === void 0 ? void 0 : _this$_media3.removeEventListener("timeupdate", this._mockWaitingByTimeupdate);
|
|
@@ -8665,6 +8670,9 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
|
|
|
8665
8670
|
};
|
|
8666
8671
|
_this.destroy = function() {
|
|
8667
8672
|
var _this$_rts3;
|
|
8673
|
+
if (typeof _this._originHandleSource === "boolean") {
|
|
8674
|
+
_this.player.handleSource = _this._originHandleSource;
|
|
8675
|
+
}
|
|
8668
8676
|
_this.player.switchURL = _this._originSwitchFn;
|
|
8669
8677
|
_this.player.retry = _this._originRetry;
|
|
8670
8678
|
_this._clearDisconnectTimer();
|
|
@@ -8711,12 +8719,16 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
|
|
|
8711
8719
|
}, {
|
|
8712
8720
|
key: "version",
|
|
8713
8721
|
get: function get() {
|
|
8714
|
-
return "0.2.1-alpha.
|
|
8722
|
+
return "0.2.1-alpha.64";
|
|
8715
8723
|
}
|
|
8716
8724
|
}, {
|
|
8717
8725
|
key: "beforePlayerInit",
|
|
8718
8726
|
value: function beforePlayerInit() {
|
|
8719
|
-
var _this$player2, _this$player$config, _this$player$config$r, _this2 = this;
|
|
8727
|
+
var _this$player$video, _this$player2, _this$player$config, _this$player$config$r, _this2 = this;
|
|
8728
|
+
var pl = this.player;
|
|
8729
|
+
this._originHandleSource = pl.handleSource;
|
|
8730
|
+
pl.handleSource = false;
|
|
8731
|
+
(_this$player$video = this.player.video) === null || _this$player$video === void 0 ? void 0 : _this$player$video.removeAttribute("src");
|
|
8720
8732
|
this._init();
|
|
8721
8733
|
if (!this._originSwitchFn) {
|
|
8722
8734
|
var _this$player$switchUR;
|
|
@@ -8746,24 +8758,6 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
|
|
|
8746
8758
|
});
|
|
8747
8759
|
}
|
|
8748
8760
|
this._bindRtsEvents();
|
|
8749
|
-
try {
|
|
8750
|
-
BasePlugin.defineGetterOrSetter(this.player, {
|
|
8751
|
-
__url: {
|
|
8752
|
-
get: function get() {
|
|
8753
|
-
try {
|
|
8754
|
-
return URL.createObjectURL(new MediaSource());
|
|
8755
|
-
} catch (e) {
|
|
8756
|
-
var _this2$player, _this2$player$video;
|
|
8757
|
-
if (!((_this2$player = _this2.player) !== null && _this2$player !== void 0 && (_this2$player$video = _this2$player.video) !== null && _this2$player$video !== void 0 && _this2$player$video.srcObject)) {
|
|
8758
|
-
_this2.player.video.srcObject = new MediaStream();
|
|
8759
|
-
}
|
|
8760
|
-
return "";
|
|
8761
|
-
}
|
|
8762
|
-
}
|
|
8763
|
-
}
|
|
8764
|
-
});
|
|
8765
|
-
} catch (e) {
|
|
8766
|
-
}
|
|
8767
8761
|
}
|
|
8768
8762
|
}, {
|
|
8769
8763
|
key: "getStats",
|
|
@@ -8853,6 +8847,9 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
|
|
|
8853
8847
|
player.unRegisterPlugin("rts");
|
|
8854
8848
|
player.switchURL = _this3._originSwitchFn;
|
|
8855
8849
|
player.retry = _this3._originRetry;
|
|
8850
|
+
if (typeof _this3._originHandleSource === "boolean") {
|
|
8851
|
+
player.handleSource = _this3._originHandleSource;
|
|
8852
|
+
}
|
|
8856
8853
|
_this3._rts = null;
|
|
8857
8854
|
player.rts = null;
|
|
8858
8855
|
if ((_player$video = player.video) !== null && _player$video !== void 0 && _player$video.srcObject) {
|