@byteplus/veplayer-plugin 2.8.0-rc.8 → 2.8.0-rc.9

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.
@@ -53214,7 +53214,7 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
53214
53214
  value: function() {
53215
53215
  var _load = _asyncToGenerator$a(/* @__PURE__ */ _regeneratorRuntime$a().mark(function _callee3(url2) {
53216
53216
  var _this2 = this;
53217
- var lastPc, encodedTransformSupported;
53217
+ var encodedTransformSupported, lastPc;
53218
53218
  return _regeneratorRuntime$a().wrap(function _callee3$(_context3) {
53219
53219
  while (1)
53220
53220
  switch (_context3.prev = _context3.next) {
@@ -53222,19 +53222,19 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
53222
53222
  this._disconnect();
53223
53223
  this._url = url2;
53224
53224
  this._retry = this._opts.retryCount;
53225
- lastPc = this._pc;
53226
- if (lastPc) {
53227
- lastPc.close();
53228
- }
53229
- encodedTransformSupported = isLegacyEncodedTransformSupported();
53230
- _context3.prev = 6;
53231
53225
  if (!this._opts.hackCreateOfferIssue) {
53232
- _context3.next = 10;
53226
+ _context3.next = 6;
53233
53227
  break;
53234
53228
  }
53235
- _context3.next = 10;
53229
+ _context3.next = 6;
53236
53230
  return this._createEmptyPeer();
53237
- case 10:
53231
+ case 6:
53232
+ encodedTransformSupported = isLegacyEncodedTransformSupported();
53233
+ _context3.prev = 7;
53234
+ lastPc = this._pc;
53235
+ if (lastPc) {
53236
+ lastPc.close();
53237
+ }
53238
53238
  this._pc = new RTCPeerConnection({
53239
53239
  encodedInsertableStreams: encodedTransformSupported && this._opts.enableSei ? true : void 0
53240
53240
  });
@@ -53246,7 +53246,7 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
53246
53246
  break;
53247
53247
  case 16:
53248
53248
  _context3.prev = 16;
53249
- _context3.t0 = _context3["catch"](6);
53249
+ _context3.t0 = _context3["catch"](7);
53250
53250
  setTimeout(function() {
53251
53251
  return _this2._emitError(StreamingError$2.create(ERR$2.OTHER, null, _context3.t0));
53252
53252
  });
@@ -53254,7 +53254,7 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
53254
53254
  case "end":
53255
53255
  return _context3.stop();
53256
53256
  }
53257
- }, _callee3, this, [[6, 16]]);
53257
+ }, _callee3, this, [[7, 16]]);
53258
53258
  }));
53259
53259
  function load(_x) {
53260
53260
  return _load.apply(this, arguments);
@@ -53533,22 +53533,28 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
53533
53533
  answer.remoteSdp.sdp = lib$1.write(_parsed);
53534
53534
  logger$a.log("answer modified:\n", answer.remoteSdp.sdp);
53535
53535
  this._rctConnectStartTs = Date.now();
53536
- _context4.next = 53;
53537
- return this._pc.setRemoteDescription(answer.remoteSdp);
53536
+ if (!(pc.signalingState === "closed")) {
53537
+ _context4.next = 53;
53538
+ break;
53539
+ }
53540
+ return _context4.abrupt("return");
53538
53541
  case 53:
53542
+ _context4.next = 55;
53543
+ return pc.setRemoteDescription(answer.remoteSdp);
53544
+ case 55:
53539
53545
  this._networkEvaluate = new NetworkEvaluate(pc, this._opts.networkEvaluateInterval);
53540
53546
  this._listenPeerStateTimeout();
53541
- _context4.next = 60;
53547
+ _context4.next = 62;
53542
53548
  break;
53543
- case 57:
53544
- _context4.prev = 57;
53549
+ case 59:
53550
+ _context4.prev = 59;
53545
53551
  _context4.t0 = _context4["catch"](24);
53546
53552
  this._emitError(StreamingError$2.network(_context4.t0));
53547
- case 60:
53553
+ case 62:
53548
53554
  case "end":
53549
53555
  return _context4.stop();
53550
53556
  }
53551
- }, _callee4, this, [[24, 57]]);
53557
+ }, _callee4, this, [[24, 59]]);
53552
53558
  }));
53553
53559
  function _connect() {
53554
53560
  return _connect2.apply(this, arguments);
@@ -53897,7 +53903,7 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
53897
53903
  }, {
53898
53904
  key: "version",
53899
53905
  get: function get4() {
53900
- return "0.2.1-alpha.35";
53906
+ return "0.2.1-alpha.37";
53901
53907
  }
53902
53908
  }, {
53903
53909
  key: "beforePlayerInit",