aliyun-rtc-sdk 6.14.2 → 6.14.3
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/dist/aliyun-rtc-sdk.es.js +10 -13
- package/dist/aliyun-rtc-sdk.umd.js +2 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2264,7 +2264,7 @@ function rt(r, a, e) {
|
|
|
2264
2264
|
return vo(t);
|
|
2265
2265
|
}
|
|
2266
2266
|
var Si = /* @__PURE__ */ ((r) => (r.prod = "rs.rtn.aliyuncs.com", r.pre = "prs.rtn.aliyuncs.com", r))(Si || {});
|
|
2267
|
-
const _i = "6.14.
|
|
2267
|
+
const _i = "6.14.3", Js = "web";
|
|
2268
2268
|
class He {
|
|
2269
2269
|
/**
|
|
2270
2270
|
* 将版本号转换为number
|
|
@@ -10144,7 +10144,10 @@ const ge = (lt = class extends Sn {
|
|
|
10144
10144
|
g(this, "_url", "");
|
|
10145
10145
|
g(this, "joinTime", 0);
|
|
10146
10146
|
g(this, "_isPublishing", !1);
|
|
10147
|
-
g(this, "publishPromise"
|
|
10147
|
+
g(this, "publishPromise", Promise.resolve({
|
|
10148
|
+
traceId: "",
|
|
10149
|
+
l1ip: void 0
|
|
10150
|
+
}));
|
|
10148
10151
|
g(this, "previewElements", []);
|
|
10149
10152
|
// 本地主流预览容器元素列表
|
|
10150
10153
|
g(this, "screenPreviewElements", []);
|
|
@@ -10339,12 +10342,12 @@ const ge = (lt = class extends Sn {
|
|
|
10339
10342
|
// 离会,对于本地用户来说核心是停止推流
|
|
10340
10343
|
leave() {
|
|
10341
10344
|
return w(this, null, function* () {
|
|
10342
|
-
this._isPublishing && (this._isPublishing = !1, yield this.unPublish());
|
|
10345
|
+
this._isPublishing && (this._isPublishing = !1, yield this.unPublish()), this.joinTime = 0, this.dc = void 0;
|
|
10343
10346
|
});
|
|
10344
10347
|
}
|
|
10345
10348
|
clear() {
|
|
10346
10349
|
return w(this, null, function* () {
|
|
10347
|
-
ki(lt.prototype, this, "clear").call(this), this.stopPreview(), this.resetPreviewElements(), this.resetSecondayPreviewElements(), this.clearStream(), yield this.leave(), this.streamManager.cameraCaptureDisabled = !1
|
|
10350
|
+
ki(lt.prototype, this, "clear").call(this), this.stopPreview(), this.resetPreviewElements(), this.resetSecondayPreviewElements(), this.clearStream(), yield this.leave(), this.streamManager.cameraCaptureDisabled = !1;
|
|
10348
10351
|
});
|
|
10349
10352
|
}
|
|
10350
10353
|
resetElement(e) {
|
|
@@ -10651,15 +10654,9 @@ const ge = (lt = class extends Sn {
|
|
|
10651
10654
|
publishUpdate(e) {
|
|
10652
10655
|
return w(this, null, function* () {
|
|
10653
10656
|
var n, c, o, u, h, p;
|
|
10654
|
-
if (this.
|
|
10655
|
-
try {
|
|
10656
|
-
yield this.publishPromise;
|
|
10657
|
-
} catch (d) {
|
|
10658
|
-
}
|
|
10659
|
-
if (!this._isPublishing) {
|
|
10660
|
-
this.startPublish();
|
|
10657
|
+
if (!this._isPublishing)
|
|
10661
10658
|
return;
|
|
10662
|
-
|
|
10659
|
+
yield this.publishPromise;
|
|
10663
10660
|
const t = this.streamManager.publishStreams;
|
|
10664
10661
|
let i;
|
|
10665
10662
|
const s = (/* @__PURE__ */ new Date()).getTime();
|
|
@@ -13508,7 +13505,7 @@ const Ze = (Vt = class extends De {
|
|
|
13508
13505
|
g(this, "_publishLocalScreenStreamEnabled", !0);
|
|
13509
13506
|
this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
|
|
13510
13507
|
const i = (s) => w(this, null, function* () {
|
|
13511
|
-
if (O.info(`[${Vt.logName}]`, "plugin added", s.name), !s.isSupported("6.14.
|
|
13508
|
+
if (O.info(`[${Vt.logName}]`, "plugin added", s.name), !s.isSupported("6.14.3")) {
|
|
13512
13509
|
console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
|
|
13513
13510
|
return;
|
|
13514
13511
|
}
|