@volcengine/veplayer-plugin 2.10.4-rc.2 → 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.
@@ -8548,6 +8548,7 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
8548
8548
  _this10._media.removeEventListener("playing", revertMutedProxy2);
8549
8549
  }
8550
8550
  };
8551
+ this._revertMutedWorkaround = revertMutedProxy;
8551
8552
  this._media.addEventListener("playing", revertMutedProxy);
8552
8553
  }
8553
8554
  }
@@ -8555,8 +8556,10 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
8555
8556
  }, {
8556
8557
  key: "destroy",
8557
8558
  value: function destroy(keepClearMediaStream) {
8558
- var _this$_revertVolumeWo, _this$_media3;
8559
+ var _this$_revertMutedWor, _this$_revertVolumeWo, _this$_media3;
8559
8560
  this._disconnect("invoke destroy");
8561
+ (_this$_revertMutedWor = this._revertMutedWorkaround) === null || _this$_revertMutedWor === void 0 ? void 0 : _this$_revertMutedWor.call(this);
8562
+ delete this._revertMutedWorkaround;
8560
8563
  (_this$_revertVolumeWo = this._revertVolumeWorkaround) === null || _this$_revertVolumeWo === void 0 ? void 0 : _this$_revertVolumeWo.call(this);
8561
8564
  delete this._revertVolumeWorkaround;
8562
8565
  (_this$_media3 = this._media) === null || _this$_media3 === void 0 ? void 0 : _this$_media3.removeEventListener("timeupdate", this._mockWaitingByTimeupdate);
@@ -8665,6 +8668,9 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
8665
8668
  };
8666
8669
  _this.destroy = function() {
8667
8670
  var _this$_rts3;
8671
+ if (typeof _this._originHandleSource === "boolean") {
8672
+ _this.player.handleSource = _this._originHandleSource;
8673
+ }
8668
8674
  _this.player.switchURL = _this._originSwitchFn;
8669
8675
  _this.player.retry = _this._originRetry;
8670
8676
  _this._clearDisconnectTimer();
@@ -8711,12 +8717,16 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
8711
8717
  }, {
8712
8718
  key: "version",
8713
8719
  get: function get() {
8714
- return "0.2.1-alpha.62";
8720
+ return "0.2.1-alpha.64";
8715
8721
  }
8716
8722
  }, {
8717
8723
  key: "beforePlayerInit",
8718
8724
  value: function beforePlayerInit() {
8719
- var _this$player2, _this$player$config, _this$player$config$r, _this2 = this;
8725
+ var _this$player$video, _this$player2, _this$player$config, _this$player$config$r, _this2 = this;
8726
+ var pl = this.player;
8727
+ this._originHandleSource = pl.handleSource;
8728
+ pl.handleSource = false;
8729
+ (_this$player$video = this.player.video) === null || _this$player$video === void 0 ? void 0 : _this$player$video.removeAttribute("src");
8720
8730
  this._init();
8721
8731
  if (!this._originSwitchFn) {
8722
8732
  var _this$player$switchUR;
@@ -8746,24 +8756,6 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
8746
8756
  });
8747
8757
  }
8748
8758
  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
8759
  }
8768
8760
  }, {
8769
8761
  key: "getStats",
@@ -8853,6 +8845,9 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
8853
8845
  player.unRegisterPlugin("rts");
8854
8846
  player.switchURL = _this3._originSwitchFn;
8855
8847
  player.retry = _this3._originRetry;
8848
+ if (typeof _this3._originHandleSource === "boolean") {
8849
+ player.handleSource = _this3._originHandleSource;
8850
+ }
8856
8851
  _this3._rts = null;
8857
8852
  player.rts = null;
8858
8853
  if ((_player$video = player.video) !== null && _player$video !== void 0 && _player$video.srcObject) {