aliyun-rtc-sdk 6.14.2 → 6.14.4-beta.0
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 +12 -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.4-beta.0", 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();
|
|
@@ -12690,6 +12687,7 @@ const xe = (Ae = class extends De {
|
|
|
12690
12687
|
publishAdd(u, h, p, d) {
|
|
12691
12688
|
return w(this, arguments, function* (e, t, i, s, n = !1, c = !1, o = nt.MANUAL) {
|
|
12692
12689
|
var l, x, v, S, b, E, _, y;
|
|
12690
|
+
yield this.dcConnectingPromise;
|
|
12693
12691
|
const f = Date.now(), m = this.getPubMsid(t, s);
|
|
12694
12692
|
try {
|
|
12695
12693
|
const A = yield ja(
|
|
@@ -12873,6 +12871,7 @@ const xe = (Ae = class extends De {
|
|
|
12873
12871
|
subscribeAdd(e) {
|
|
12874
12872
|
return w(this, null, function* () {
|
|
12875
12873
|
var n, c, o, u;
|
|
12874
|
+
yield this.dcConnectingPromise;
|
|
12876
12875
|
const { remoteUser: t, options: i } = e, s = ut(G({
|
|
12877
12876
|
url: t.streamUrl,
|
|
12878
12877
|
subAudio: !!i.audio,
|
|
@@ -13508,7 +13507,7 @@ const Ze = (Vt = class extends De {
|
|
|
13508
13507
|
g(this, "_publishLocalScreenStreamEnabled", !0);
|
|
13509
13508
|
this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
|
|
13510
13509
|
const i = (s) => w(this, null, function* () {
|
|
13511
|
-
if (O.info(`[${Vt.logName}]`, "plugin added", s.name), !s.isSupported("6.14.
|
|
13510
|
+
if (O.info(`[${Vt.logName}]`, "plugin added", s.name), !s.isSupported("6.14.4-beta.0")) {
|
|
13512
13511
|
console.warn(`${s.name} is not supported!!!`), s.emit("unsupported");
|
|
13513
13512
|
return;
|
|
13514
13513
|
}
|