@volcengine/veplayer-plugin 2.5.0 → 2.5.1-rc.1
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 +34 -17
- package/esm/index.production.js +1 -1
- package/esm/veplayer.plugin.flv.development.js +7 -3
- package/esm/veplayer.plugin.flv.production.js +1 -1
- package/esm/veplayer.plugin.hls.development.js +11 -5
- package/esm/veplayer.plugin.hls.production.js +1 -1
- package/esm/veplayer.plugin.mp4.development.js +1 -1
- package/esm/veplayer.plugin.mp4.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +18 -11
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.plugin.flv.development.js +7 -3
- package/umd/veplayer.plugin.flv.production.js +1 -1
- package/umd/veplayer.plugin.hls.development.js +11 -5
- package/umd/veplayer.plugin.hls.production.js +1 -1
- package/umd/veplayer.plugin.mp4.development.js +1 -1
- package/umd/veplayer.plugin.mp4.production.js +1 -1
- package/umd/veplayer.plugin.rtm.development.js +18 -11
- package/umd/veplayer.plugin.rtm.production.js +1 -1
|
@@ -1530,7 +1530,7 @@ util.getCurrentTimeByOffset = function(offsetTime, segments) {
|
|
|
1530
1530
|
}
|
|
1531
1531
|
return offsetTime;
|
|
1532
1532
|
};
|
|
1533
|
-
var version = "3.0.21-rc.
|
|
1533
|
+
var version = "3.0.21-rc.5";
|
|
1534
1534
|
var ERROR_MAP = {
|
|
1535
1535
|
1: 5101,
|
|
1536
1536
|
2: 5102,
|
|
@@ -4879,7 +4879,8 @@ function getOption(opts) {
|
|
|
4879
4879
|
stallInterval: 400,
|
|
4880
4880
|
networkEvaluateInterval: 1e3,
|
|
4881
4881
|
delayHint: 0,
|
|
4882
|
-
seamlesslyReload: false
|
|
4882
|
+
seamlesslyReload: false,
|
|
4883
|
+
enableOriginSdpLogger: false
|
|
4883
4884
|
}, opts);
|
|
4884
4885
|
}
|
|
4885
4886
|
function _getStats(stats) {
|
|
@@ -5368,7 +5369,7 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
|
|
|
5368
5369
|
key: "_connect",
|
|
5369
5370
|
value: function() {
|
|
5370
5371
|
var _connect2 = _asyncToGenerator$1(/* @__PURE__ */ _regeneratorRuntime$1().mark(function _callee2() {
|
|
5371
|
-
var pc, offer, delayHint, parsed, finnalUrl, _answer$remoteSdp, _answer$remoteSdp2, parseSession, sessionId, reqStart, res, answer, err, _parsed;
|
|
5372
|
+
var pc, offer, delayHint, parsed, finnalUrl, _this$_opts, _answer$remoteSdp, _this$_opts2, _answer$remoteSdp2, _parsed$media, parseSession, sessionId, reqStart, res, answer, err, _parsed;
|
|
5372
5373
|
return _regeneratorRuntime$1().wrap(function _callee2$(_context2) {
|
|
5373
5374
|
while (1)
|
|
5374
5375
|
switch (_context2.prev = _context2.next) {
|
|
@@ -5444,7 +5445,7 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
|
|
|
5444
5445
|
sessionId = parseSession ? parseSession[1] : Date.now() + "666";
|
|
5445
5446
|
this.emit(EVENT.LOAD_START, {
|
|
5446
5447
|
url: finnalUrl,
|
|
5447
|
-
offersdp: offer.sdp,
|
|
5448
|
+
offersdp: (_this$_opts = this._opts) !== null && _this$_opts !== void 0 && _this$_opts.enableOriginSdpLogger ? offer.sdp : void 0,
|
|
5448
5449
|
sessionId
|
|
5449
5450
|
});
|
|
5450
5451
|
reqStart = Date.now();
|
|
@@ -5479,12 +5480,19 @@ var Rts = /* @__PURE__ */ function(_EventEmitter) {
|
|
|
5479
5480
|
case 42:
|
|
5480
5481
|
logger.log("answer:");
|
|
5481
5482
|
logger.log((_answer$remoteSdp = answer.remoteSdp) === null || _answer$remoteSdp === void 0 ? void 0 : _answer$remoteSdp.sdp);
|
|
5483
|
+
_parsed = lib.parse(answer.remoteSdp.sdp);
|
|
5482
5484
|
this.emit(EVENT.LOAD_COMPLETE, {
|
|
5483
5485
|
url: finnalUrl,
|
|
5484
5486
|
elapsed: Date.now() - reqStart,
|
|
5485
|
-
answersdp: (_answer$remoteSdp2 = answer.remoteSdp) === null || _answer$remoteSdp2 === void 0 ? void 0 : _answer$remoteSdp2.sdp
|
|
5487
|
+
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,
|
|
5488
|
+
parsedSdp: _parsed === null || _parsed === void 0 ? void 0 : (_parsed$media = _parsed.media) === null || _parsed$media === void 0 ? void 0 : _parsed$media.map(function(media) {
|
|
5489
|
+
return {
|
|
5490
|
+
candidates: media.candidates,
|
|
5491
|
+
rtp: media.rtp,
|
|
5492
|
+
type: media.type
|
|
5493
|
+
};
|
|
5494
|
+
})
|
|
5486
5495
|
});
|
|
5487
|
-
_parsed = lib.parse(answer.remoteSdp.sdp);
|
|
5488
5496
|
_parsed.media.forEach(function(x) {
|
|
5489
5497
|
x.fingerprint.hash = x.fingerprint.hash.toUpperCase();
|
|
5490
5498
|
});
|
|
@@ -5689,6 +5697,7 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
|
|
|
5689
5697
|
_this.player.switchURL = _this._originSwitchFn;
|
|
5690
5698
|
_this._clearDisconnectTimer();
|
|
5691
5699
|
(_this$_rts3 = _this._rts) === null || _this$_rts3 === void 0 ? void 0 : _this$_rts3.destroy();
|
|
5700
|
+
_this._rts = null;
|
|
5692
5701
|
});
|
|
5693
5702
|
return _this;
|
|
5694
5703
|
}
|
|
@@ -5724,20 +5733,18 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
|
|
|
5724
5733
|
}, {
|
|
5725
5734
|
key: "version",
|
|
5726
5735
|
get: function get() {
|
|
5727
|
-
return "0.2.1-alpha.
|
|
5736
|
+
return "0.2.1-alpha.14";
|
|
5728
5737
|
}
|
|
5729
5738
|
}, {
|
|
5730
5739
|
key: "beforePlayerInit",
|
|
5731
5740
|
value: function beforePlayerInit() {
|
|
5732
|
-
var _this$player2,
|
|
5741
|
+
var _this$player2, _this$player$config, _this$player$config$r, _this2 = this;
|
|
5733
5742
|
this._init();
|
|
5734
5743
|
if (!this._originSwitchFn) {
|
|
5735
5744
|
this._originSwitchFn = this.player.switchURL.bind(this.player);
|
|
5736
5745
|
}
|
|
5737
5746
|
this.player.switchURL = this._onSwitchURL;
|
|
5738
|
-
(_this$player2 = this.player) === null || _this$player2 === void 0 ? void 0 : _this$player2.useHooks("replay",
|
|
5739
|
-
return _this2._onSwitchURL();
|
|
5740
|
-
});
|
|
5747
|
+
(_this$player2 = this.player) === null || _this$player2 === void 0 ? void 0 : _this$player2.useHooks("replay", this._onSwitchURL);
|
|
5741
5748
|
this.on(URL_CHANGE, this._onSwitchURL);
|
|
5742
5749
|
this.on(DESTROY, this.destroy);
|
|
5743
5750
|
if (typeof ((_this$player$config = this.player.config) === null || _this$player$config === void 0 ? void 0 : (_this$player$config$r = _this$player$config.rts) === null || _this$player$config$r === void 0 ? void 0 : _this$player$config$r.disconnectTime) !== "undefined") {
|