@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.
- package/esm/index.development.js +26 -20
- package/esm/index.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +26 -20
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/package.json +1 -1
- package/umd/veplayer.plugin.rtm.development.js +26 -20
- package/umd/veplayer.plugin.rtm.production.js +1 -1
package/package.json
CHANGED
|
@@ -6914,7 +6914,7 @@
|
|
|
6914
6914
|
value: function() {
|
|
6915
6915
|
var _load = _asyncToGenerator$1(/* @__PURE__ */ _regeneratorRuntime$1().mark(function _callee3(url) {
|
|
6916
6916
|
var _this2 = this;
|
|
6917
|
-
var
|
|
6917
|
+
var encodedTransformSupported, lastPc;
|
|
6918
6918
|
return _regeneratorRuntime$1().wrap(function _callee3$(_context3) {
|
|
6919
6919
|
while (1)
|
|
6920
6920
|
switch (_context3.prev = _context3.next) {
|
|
@@ -6922,19 +6922,19 @@
|
|
|
6922
6922
|
this._disconnect();
|
|
6923
6923
|
this._url = url;
|
|
6924
6924
|
this._retry = this._opts.retryCount;
|
|
6925
|
-
lastPc = this._pc;
|
|
6926
|
-
if (lastPc) {
|
|
6927
|
-
lastPc.close();
|
|
6928
|
-
}
|
|
6929
|
-
encodedTransformSupported = isLegacyEncodedTransformSupported();
|
|
6930
|
-
_context3.prev = 6;
|
|
6931
6925
|
if (!this._opts.hackCreateOfferIssue) {
|
|
6932
|
-
_context3.next =
|
|
6926
|
+
_context3.next = 6;
|
|
6933
6927
|
break;
|
|
6934
6928
|
}
|
|
6935
|
-
_context3.next =
|
|
6929
|
+
_context3.next = 6;
|
|
6936
6930
|
return this._createEmptyPeer();
|
|
6937
|
-
case
|
|
6931
|
+
case 6:
|
|
6932
|
+
encodedTransformSupported = isLegacyEncodedTransformSupported();
|
|
6933
|
+
_context3.prev = 7;
|
|
6934
|
+
lastPc = this._pc;
|
|
6935
|
+
if (lastPc) {
|
|
6936
|
+
lastPc.close();
|
|
6937
|
+
}
|
|
6938
6938
|
this._pc = new RTCPeerConnection({
|
|
6939
6939
|
encodedInsertableStreams: encodedTransformSupported && this._opts.enableSei ? true : void 0
|
|
6940
6940
|
});
|
|
@@ -6946,7 +6946,7 @@
|
|
|
6946
6946
|
break;
|
|
6947
6947
|
case 16:
|
|
6948
6948
|
_context3.prev = 16;
|
|
6949
|
-
_context3.t0 = _context3["catch"](
|
|
6949
|
+
_context3.t0 = _context3["catch"](7);
|
|
6950
6950
|
setTimeout(function() {
|
|
6951
6951
|
return _this2._emitError(StreamingError.create(ERR.OTHER, null, _context3.t0));
|
|
6952
6952
|
});
|
|
@@ -6954,7 +6954,7 @@
|
|
|
6954
6954
|
case "end":
|
|
6955
6955
|
return _context3.stop();
|
|
6956
6956
|
}
|
|
6957
|
-
}, _callee3, this, [[
|
|
6957
|
+
}, _callee3, this, [[7, 16]]);
|
|
6958
6958
|
}));
|
|
6959
6959
|
function load(_x) {
|
|
6960
6960
|
return _load.apply(this, arguments);
|
|
@@ -7233,22 +7233,28 @@
|
|
|
7233
7233
|
answer.remoteSdp.sdp = lib.write(_parsed);
|
|
7234
7234
|
logger.log("answer modified:\n", answer.remoteSdp.sdp);
|
|
7235
7235
|
this._rctConnectStartTs = Date.now();
|
|
7236
|
-
|
|
7237
|
-
|
|
7236
|
+
if (!(pc.signalingState === "closed")) {
|
|
7237
|
+
_context4.next = 53;
|
|
7238
|
+
break;
|
|
7239
|
+
}
|
|
7240
|
+
return _context4.abrupt("return");
|
|
7238
7241
|
case 53:
|
|
7242
|
+
_context4.next = 55;
|
|
7243
|
+
return pc.setRemoteDescription(answer.remoteSdp);
|
|
7244
|
+
case 55:
|
|
7239
7245
|
this._networkEvaluate = new NetworkEvaluate(pc, this._opts.networkEvaluateInterval);
|
|
7240
7246
|
this._listenPeerStateTimeout();
|
|
7241
|
-
_context4.next =
|
|
7247
|
+
_context4.next = 62;
|
|
7242
7248
|
break;
|
|
7243
|
-
case
|
|
7244
|
-
_context4.prev =
|
|
7249
|
+
case 59:
|
|
7250
|
+
_context4.prev = 59;
|
|
7245
7251
|
_context4.t0 = _context4["catch"](24);
|
|
7246
7252
|
this._emitError(StreamingError.network(_context4.t0));
|
|
7247
|
-
case
|
|
7253
|
+
case 62:
|
|
7248
7254
|
case "end":
|
|
7249
7255
|
return _context4.stop();
|
|
7250
7256
|
}
|
|
7251
|
-
}, _callee4, this, [[24,
|
|
7257
|
+
}, _callee4, this, [[24, 59]]);
|
|
7252
7258
|
}));
|
|
7253
7259
|
function _connect() {
|
|
7254
7260
|
return _connect2.apply(this, arguments);
|
|
@@ -7597,7 +7603,7 @@
|
|
|
7597
7603
|
}, {
|
|
7598
7604
|
key: "version",
|
|
7599
7605
|
get: function get() {
|
|
7600
|
-
return "0.2.1-alpha.
|
|
7606
|
+
return "0.2.1-alpha.37";
|
|
7601
7607
|
}
|
|
7602
7608
|
}, {
|
|
7603
7609
|
key: "beforePlayerInit",
|