@byteplus/veplayer-plugin 2.8.0-rc.2 → 2.8.0-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.
@@ -6733,6 +6733,9 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
6733
6733
  while (1)
6734
6734
  switch (_context2.prev = _context2.next) {
6735
6735
  case 0:
6736
+ if (_this._checkStatsErrorTimer) {
6737
+ clearTimeout(_this._checkStatsErrorTimer);
6738
+ }
6736
6739
  _this._checkStatsErrorTimer = setTimeout(/* @__PURE__ */ _asyncToGenerator$1(/* @__PURE__ */ _regeneratorRuntime$1().mark(function _callee() {
6737
6740
  var stats, _stats$video, framesDecoded, bytesReceived;
6738
6741
  return _regeneratorRuntime$1().wrap(function _callee$(_context) {
@@ -6761,7 +6764,7 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
6761
6764
  }
6762
6765
  }, _callee);
6763
6766
  })), _this._opts.checkStatsErrorDelay);
6764
- case 1:
6767
+ case 2:
6765
6768
  case "end":
6766
6769
  return _context2.stop();
6767
6770
  }
@@ -7367,6 +7370,7 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
7367
7370
  (_this$_loader = this._loader) === null || _this$_loader === void 0 ? void 0 : _this$_loader.cancel();
7368
7371
  (_this$_networkEvaluat2 = this._networkEvaluate) === null || _this$_networkEvaluat2 === void 0 ? void 0 : _this$_networkEvaluat2.destroy();
7369
7372
  this._stopRtcReport();
7373
+ clearTimeout(this._checkStatsErrorTimer);
7370
7374
  this._audioTransceicer = null;
7371
7375
  this._videoTransceicer = null;
7372
7376
  this._mediaStream = null;
@@ -7521,7 +7525,7 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
7521
7525
  }, {
7522
7526
  key: "version",
7523
7527
  get: function get() {
7524
- return "0.2.1-alpha.30";
7528
+ return "0.2.1-alpha.31";
7525
7529
  }
7526
7530
  }, {
7527
7531
  key: "beforePlayerInit",