@volcengine/veplayer-plugin 2.4.2-rc.5 → 2.4.2-rc.7

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.
@@ -30301,7 +30301,8 @@ function getOption(opts) {
30301
30301
  networkEvaluateInterval: 1e3,
30302
30302
  delayHint: 0,
30303
30303
  seamlesslyReload: false,
30304
- enableSei: true
30304
+ enableSei: true,
30305
+ enableOriginSdpLogger: false
30305
30306
  }, opts);
30306
30307
  }
30307
30308
  function _getStats(stats) {
@@ -31320,7 +31321,7 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
31320
31321
  key: "_connect",
31321
31322
  value: function() {
31322
31323
  var _connect2 = _asyncToGenerator$8(/* @__PURE__ */ _regeneratorRuntime$8().mark(function _callee2() {
31323
- var pc, offer, delayHint, parsed, finnalUrl, _answer$remoteSdp, _answer$remoteSdp2, parseSession, sessionId, reqStart, res, answer, err, _parsed;
31324
+ var pc, offer, delayHint, parsed, finnalUrl, _this$_opts, _answer$remoteSdp, _this$_opts2, _answer$remoteSdp2, _parsed$media, parseSession, sessionId, reqStart, res, answer, err, _parsed;
31324
31325
  return _regeneratorRuntime$8().wrap(function _callee2$(_context2) {
31325
31326
  while (1)
31326
31327
  switch (_context2.prev = _context2.next) {
@@ -31399,7 +31400,7 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
31399
31400
  sessionId = parseSession ? parseSession[1] : Date.now() + "666";
31400
31401
  this.emit(EVENT$2.LOAD_START, {
31401
31402
  url: finnalUrl,
31402
- offersdp: offer.sdp,
31403
+ offersdp: (_this$_opts = this._opts) !== null && _this$_opts !== void 0 && _this$_opts.enableOriginSdpLogger ? offer.sdp : void 0,
31403
31404
  sessionId
31404
31405
  });
31405
31406
  reqStart = Date.now();
@@ -31434,12 +31435,19 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
31434
31435
  case 43:
31435
31436
  logger$6.log("answer:");
31436
31437
  logger$6.log((_answer$remoteSdp = answer.remoteSdp) === null || _answer$remoteSdp === void 0 ? void 0 : _answer$remoteSdp.sdp);
31438
+ _parsed = lib$1.parse(answer.remoteSdp.sdp);
31437
31439
  this.emit(EVENT$2.LOAD_COMPLETE, {
31438
31440
  url: finnalUrl,
31439
31441
  elapsed: Date.now() - reqStart,
31440
- answersdp: (_answer$remoteSdp2 = answer.remoteSdp) === null || _answer$remoteSdp2 === void 0 ? void 0 : _answer$remoteSdp2.sdp
31442
+ answersdp: (_this$_opts2 = this._opts) !== null && _this$_opts2 !== void 0 && _this$_opts2.enableOriginSdpLogger ? answer === null || answer === void 0 ? void 0 : (_answer$remoteSdp2 = answer.remoteSdp) === null || _answer$remoteSdp2 === void 0 ? void 0 : _answer$remoteSdp2.sdp : void 0,
31443
+ parsedSdp: _parsed === null || _parsed === void 0 ? void 0 : (_parsed$media = _parsed.media) === null || _parsed$media === void 0 ? void 0 : _parsed$media.map(function(media) {
31444
+ return {
31445
+ candidates: media.candidates,
31446
+ rtp: media.rtp,
31447
+ type: media.type
31448
+ };
31449
+ })
31441
31450
  });
31442
- _parsed = lib$1.parse(answer.remoteSdp.sdp);
31443
31451
  _parsed.media.forEach(function(x2) {
31444
31452
  x2.fingerprint.hash = x2.fingerprint.hash.toUpperCase();
31445
31453
  });
@@ -31488,10 +31496,10 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
31488
31496
  }, {
31489
31497
  key: "destroy",
31490
31498
  value: function destroy() {
31491
- var _this$_media2, _this$_opts;
31499
+ var _this$_media2, _this$_opts3;
31492
31500
  this._disconnect();
31493
31501
  (_this$_media2 = this._media) === null || _this$_media2 === void 0 ? void 0 : _this$_media2.removeEventListener("timeupdate", this._mockWaitingByTimeupdate);
31494
- if (this._media && !((_this$_opts = this._opts) !== null && _this$_opts !== void 0 && _this$_opts.seamlesslyReload)) {
31502
+ if (this._media && !((_this$_opts3 = this._opts) !== null && _this$_opts3 !== void 0 && _this$_opts3.seamlesslyReload)) {
31495
31503
  this._media.srcObject = null;
31496
31504
  }
31497
31505
  if (this._pc) {
@@ -31618,7 +31626,7 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
31618
31626
  }, {
31619
31627
  key: "version",
31620
31628
  get: function get3() {
31621
- return "0.2.1-alpha.8";
31629
+ return "0.2.1-alpha.13";
31622
31630
  }
31623
31631
  }, {
31624
31632
  key: "beforePlayerInit",