@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
|
@@ -1690,7 +1690,7 @@
|
|
|
1690
1690
|
}
|
|
1691
1691
|
return offsetTime;
|
|
1692
1692
|
};
|
|
1693
|
-
var version = "3.0.
|
|
1693
|
+
var version = "3.0.24-rc.6";
|
|
1694
1694
|
var ERROR_MAP = {
|
|
1695
1695
|
1: 5101,
|
|
1696
1696
|
2: 5102,
|
|
@@ -1801,7 +1801,7 @@
|
|
|
1801
1801
|
}
|
|
1802
1802
|
if (this.__hooks && this.__hooks[hookName]) {
|
|
1803
1803
|
try {
|
|
1804
|
-
var preRet = runHooks(this, hookName, handler);
|
|
1804
|
+
var preRet = runHooks.apply(void 0, [this, hookName, handler].concat(Array.prototype.slice.call(arguments)));
|
|
1805
1805
|
if (preRet) {
|
|
1806
1806
|
if (preRet.then) {
|
|
1807
1807
|
preRet.then(function(isContinue) {
|
|
@@ -1915,6 +1915,8 @@
|
|
|
1915
1915
|
});
|
|
1916
1916
|
} else if (ret !== false) {
|
|
1917
1917
|
return runHooksRecursive2.apply(void 0, [obj2, hookName2, handler2].concat(args2));
|
|
1918
|
+
} else if (ret === false) {
|
|
1919
|
+
return false;
|
|
1918
1920
|
}
|
|
1919
1921
|
};
|
|
1920
1922
|
return runHooksRecursive.apply(void 0, [obj, hookName, handler].concat(args));
|
|
@@ -8551,6 +8553,7 @@
|
|
|
8551
8553
|
_this10._media.removeEventListener("playing", revertMutedProxy2);
|
|
8552
8554
|
}
|
|
8553
8555
|
};
|
|
8556
|
+
this._revertMutedWorkaround = revertMutedProxy;
|
|
8554
8557
|
this._media.addEventListener("playing", revertMutedProxy);
|
|
8555
8558
|
}
|
|
8556
8559
|
}
|
|
@@ -8558,8 +8561,10 @@
|
|
|
8558
8561
|
}, {
|
|
8559
8562
|
key: "destroy",
|
|
8560
8563
|
value: function destroy(keepClearMediaStream) {
|
|
8561
|
-
var _this$_revertVolumeWo, _this$_media3;
|
|
8564
|
+
var _this$_revertMutedWor, _this$_revertVolumeWo, _this$_media3;
|
|
8562
8565
|
this._disconnect("invoke destroy");
|
|
8566
|
+
(_this$_revertMutedWor = this._revertMutedWorkaround) === null || _this$_revertMutedWor === void 0 ? void 0 : _this$_revertMutedWor.call(this);
|
|
8567
|
+
delete this._revertMutedWorkaround;
|
|
8563
8568
|
(_this$_revertVolumeWo = this._revertVolumeWorkaround) === null || _this$_revertVolumeWo === void 0 ? void 0 : _this$_revertVolumeWo.call(this);
|
|
8564
8569
|
delete this._revertVolumeWorkaround;
|
|
8565
8570
|
(_this$_media3 = this._media) === null || _this$_media3 === void 0 ? void 0 : _this$_media3.removeEventListener("timeupdate", this._mockWaitingByTimeupdate);
|
|
@@ -8668,6 +8673,9 @@
|
|
|
8668
8673
|
};
|
|
8669
8674
|
_this.destroy = function() {
|
|
8670
8675
|
var _this$_rts3;
|
|
8676
|
+
if (typeof _this._originHandleSource === "boolean") {
|
|
8677
|
+
_this.player.handleSource = _this._originHandleSource;
|
|
8678
|
+
}
|
|
8671
8679
|
_this.player.switchURL = _this._originSwitchFn;
|
|
8672
8680
|
_this.player.retry = _this._originRetry;
|
|
8673
8681
|
_this._clearDisconnectTimer();
|
|
@@ -8714,12 +8722,16 @@
|
|
|
8714
8722
|
}, {
|
|
8715
8723
|
key: "version",
|
|
8716
8724
|
get: function get() {
|
|
8717
|
-
return "0.2.1-alpha.
|
|
8725
|
+
return "0.2.1-alpha.64";
|
|
8718
8726
|
}
|
|
8719
8727
|
}, {
|
|
8720
8728
|
key: "beforePlayerInit",
|
|
8721
8729
|
value: function beforePlayerInit() {
|
|
8722
|
-
var _this$player2, _this$player$config, _this$player$config$r, _this2 = this;
|
|
8730
|
+
var _this$player$video, _this$player2, _this$player$config, _this$player$config$r, _this2 = this;
|
|
8731
|
+
var pl = this.player;
|
|
8732
|
+
this._originHandleSource = pl.handleSource;
|
|
8733
|
+
pl.handleSource = false;
|
|
8734
|
+
(_this$player$video = this.player.video) === null || _this$player$video === void 0 ? void 0 : _this$player$video.removeAttribute("src");
|
|
8723
8735
|
this._init();
|
|
8724
8736
|
if (!this._originSwitchFn) {
|
|
8725
8737
|
var _this$player$switchUR;
|
|
@@ -8749,24 +8761,6 @@
|
|
|
8749
8761
|
});
|
|
8750
8762
|
}
|
|
8751
8763
|
this._bindRtsEvents();
|
|
8752
|
-
try {
|
|
8753
|
-
BasePlugin.defineGetterOrSetter(this.player, {
|
|
8754
|
-
__url: {
|
|
8755
|
-
get: function get() {
|
|
8756
|
-
try {
|
|
8757
|
-
return URL.createObjectURL(new MediaSource());
|
|
8758
|
-
} catch (e) {
|
|
8759
|
-
var _this2$player, _this2$player$video;
|
|
8760
|
-
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)) {
|
|
8761
|
-
_this2.player.video.srcObject = new MediaStream();
|
|
8762
|
-
}
|
|
8763
|
-
return "";
|
|
8764
|
-
}
|
|
8765
|
-
}
|
|
8766
|
-
}
|
|
8767
|
-
});
|
|
8768
|
-
} catch (e) {
|
|
8769
|
-
}
|
|
8770
8764
|
}
|
|
8771
8765
|
}, {
|
|
8772
8766
|
key: "getStats",
|
|
@@ -8856,6 +8850,9 @@
|
|
|
8856
8850
|
player.unRegisterPlugin("rts");
|
|
8857
8851
|
player.switchURL = _this3._originSwitchFn;
|
|
8858
8852
|
player.retry = _this3._originRetry;
|
|
8853
|
+
if (typeof _this3._originHandleSource === "boolean") {
|
|
8854
|
+
player.handleSource = _this3._originHandleSource;
|
|
8855
|
+
}
|
|
8859
8856
|
_this3._rts = null;
|
|
8860
8857
|
player.rts = null;
|
|
8861
8858
|
if ((_player$video = player.video) !== null && _player$video !== void 0 && _player$video.srcObject) {
|