@volcengine/veplayer-plugin 2.10.4-rc.1 → 2.10.4-rc.3
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 +2007 -1751
- package/esm/index.production.js +7 -7
- package/esm/veplayer.plugin.flv.development.js +3 -4
- package/esm/veplayer.plugin.flv.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +16 -21
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.plugin.flv.development.js +3 -4
- package/umd/veplayer.plugin.flv.production.js +1 -1
- package/umd/veplayer.plugin.rtm.development.js +16 -21
- package/umd/veplayer.plugin.rtm.production.js +1 -1
|
@@ -8551,6 +8551,7 @@
|
|
|
8551
8551
|
_this10._media.removeEventListener("playing", revertMutedProxy2);
|
|
8552
8552
|
}
|
|
8553
8553
|
};
|
|
8554
|
+
this._revertMutedWorkaround = revertMutedProxy;
|
|
8554
8555
|
this._media.addEventListener("playing", revertMutedProxy);
|
|
8555
8556
|
}
|
|
8556
8557
|
}
|
|
@@ -8558,8 +8559,10 @@
|
|
|
8558
8559
|
}, {
|
|
8559
8560
|
key: "destroy",
|
|
8560
8561
|
value: function destroy(keepClearMediaStream) {
|
|
8561
|
-
var _this$_revertVolumeWo, _this$_media3;
|
|
8562
|
+
var _this$_revertMutedWor, _this$_revertVolumeWo, _this$_media3;
|
|
8562
8563
|
this._disconnect("invoke destroy");
|
|
8564
|
+
(_this$_revertMutedWor = this._revertMutedWorkaround) === null || _this$_revertMutedWor === void 0 ? void 0 : _this$_revertMutedWor.call(this);
|
|
8565
|
+
delete this._revertMutedWorkaround;
|
|
8563
8566
|
(_this$_revertVolumeWo = this._revertVolumeWorkaround) === null || _this$_revertVolumeWo === void 0 ? void 0 : _this$_revertVolumeWo.call(this);
|
|
8564
8567
|
delete this._revertVolumeWorkaround;
|
|
8565
8568
|
(_this$_media3 = this._media) === null || _this$_media3 === void 0 ? void 0 : _this$_media3.removeEventListener("timeupdate", this._mockWaitingByTimeupdate);
|
|
@@ -8668,6 +8671,9 @@
|
|
|
8668
8671
|
};
|
|
8669
8672
|
_this.destroy = function() {
|
|
8670
8673
|
var _this$_rts3;
|
|
8674
|
+
if (typeof _this._originHandleSource === "boolean") {
|
|
8675
|
+
_this.player.handleSource = _this._originHandleSource;
|
|
8676
|
+
}
|
|
8671
8677
|
_this.player.switchURL = _this._originSwitchFn;
|
|
8672
8678
|
_this.player.retry = _this._originRetry;
|
|
8673
8679
|
_this._clearDisconnectTimer();
|
|
@@ -8714,12 +8720,16 @@
|
|
|
8714
8720
|
}, {
|
|
8715
8721
|
key: "version",
|
|
8716
8722
|
get: function get() {
|
|
8717
|
-
return "0.2.1-alpha.
|
|
8723
|
+
return "0.2.1-alpha.64";
|
|
8718
8724
|
}
|
|
8719
8725
|
}, {
|
|
8720
8726
|
key: "beforePlayerInit",
|
|
8721
8727
|
value: function beforePlayerInit() {
|
|
8722
|
-
var _this$player2, _this$player$config, _this$player$config$r, _this2 = this;
|
|
8728
|
+
var _this$player$video, _this$player2, _this$player$config, _this$player$config$r, _this2 = this;
|
|
8729
|
+
var pl = this.player;
|
|
8730
|
+
this._originHandleSource = pl.handleSource;
|
|
8731
|
+
pl.handleSource = false;
|
|
8732
|
+
(_this$player$video = this.player.video) === null || _this$player$video === void 0 ? void 0 : _this$player$video.removeAttribute("src");
|
|
8723
8733
|
this._init();
|
|
8724
8734
|
if (!this._originSwitchFn) {
|
|
8725
8735
|
var _this$player$switchUR;
|
|
@@ -8749,24 +8759,6 @@
|
|
|
8749
8759
|
});
|
|
8750
8760
|
}
|
|
8751
8761
|
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
8762
|
}
|
|
8771
8763
|
}, {
|
|
8772
8764
|
key: "getStats",
|
|
@@ -8856,6 +8848,9 @@
|
|
|
8856
8848
|
player.unRegisterPlugin("rts");
|
|
8857
8849
|
player.switchURL = _this3._originSwitchFn;
|
|
8858
8850
|
player.retry = _this3._originRetry;
|
|
8851
|
+
if (typeof _this3._originHandleSource === "boolean") {
|
|
8852
|
+
player.handleSource = _this3._originHandleSource;
|
|
8853
|
+
}
|
|
8859
8854
|
_this3._rts = null;
|
|
8860
8855
|
player.rts = null;
|
|
8861
8856
|
if ((_player$video = player.video) !== null && _player$video !== void 0 && _player$video.srcObject) {
|