aliyun-rtc-sdk 6.13.2-beta.3 → 6.13.2-beta.5
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.
|
@@ -2268,7 +2268,7 @@ function jt(s, c, e) {
|
|
|
2268
2268
|
return No(t);
|
|
2269
2269
|
}
|
|
2270
2270
|
var Ri = /* @__PURE__ */ ((s) => (s.prod = "rs.rtn.aliyuncs.com", s.pre = "prs.rtn.aliyuncs.com", s))(Ri || {});
|
|
2271
|
-
const ds = "6.13.2-beta.
|
|
2271
|
+
const ds = "6.13.2-beta.5", hn = "web";
|
|
2272
2272
|
class ft {
|
|
2273
2273
|
/**
|
|
2274
2274
|
* 将版本号转换为number
|
|
@@ -15316,7 +15316,7 @@ const Ke = (yt = class extends Ha {
|
|
|
15316
15316
|
clear(e = !0) {
|
|
15317
15317
|
return O(this, null, function* () {
|
|
15318
15318
|
var t;
|
|
15319
|
-
this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Ki(yt.prototype, this, "clear").call(this), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0, ei.getInstance().removeEventListener("statechange", this.handleAudioContextSuspended)), (t = this.streamInfo) == null || t.removeAllListeners(et.Remote);
|
|
15319
|
+
this.subscribeStopDataChannel(), e && this.doStopSubscribe(this.streamUrl), Ki(yt.prototype, this, "clear").call(this), this.stopPlayAudio(), this.clearStream(), this.clearScreenStream(), this.playoutGainNode && (this.playoutGainNode.disconnect(), this.playoutGainNode = void 0, ei.getInstance().removeEventListener("statechange", this.handleAudioContextSuspended)), (t = this.streamInfo) == null || t.removeAllListeners(et.Remote);
|
|
15320
15320
|
});
|
|
15321
15321
|
}
|
|
15322
15322
|
updateRemoteUserDeviceStatus(e) {
|
|
@@ -16994,7 +16994,7 @@ const dt = (zt = class extends Je {
|
|
|
16994
16994
|
_(this, "_publishLocalScreenStreamEnabled", !0);
|
|
16995
16995
|
this.screenStreamInfo.setVideoContentHint("motion"), this.pluginManager = e, this.slsReporter = t;
|
|
16996
16996
|
const i = (r) => O(this, null, function* () {
|
|
16997
|
-
if (ae.info(`[${zt.logName}]`, "plugin added", r.name), !r.isSupported("6.13.2-beta.
|
|
16997
|
+
if (ae.info(`[${zt.logName}]`, "plugin added", r.name), !r.isSupported("6.13.2-beta.5")) {
|
|
16998
16998
|
console.warn(`${r.name} is not supported!!!`), r.emit("unsupported");
|
|
16999
16999
|
return;
|
|
17000
17000
|
}
|
|
@@ -19264,7 +19264,7 @@ const ue = (le = class extends Je {
|
|
|
19264
19264
|
leaveChannel() {
|
|
19265
19265
|
return O(this, null, function* () {
|
|
19266
19266
|
var t;
|
|
19267
|
-
this.slsReporter.reportLeaveInvoked();
|
|
19267
|
+
this.slsReporter.reportLeaveInvoked(), yield this.bizControl.leave();
|
|
19268
19268
|
let e = (/* @__PURE__ */ new Date()).getTime();
|
|
19269
19269
|
if (De.AliRtcConnectionStatusConnected === this.connectState)
|
|
19270
19270
|
try {
|
|
@@ -19279,7 +19279,7 @@ const ue = (le = class extends Je {
|
|
|
19279
19279
|
}
|
|
19280
19280
|
else
|
|
19281
19281
|
this.slsReporter.reportLeave(0, 0, "");
|
|
19282
|
-
this.networkError = !1, this.connectState = De.AliRtcConnectionStatusDisconnected, this.clearCheckAuthInfoTimer(),
|
|
19282
|
+
this.networkError = !1, this.connectState = De.AliRtcConnectionStatusDisconnected, this.clearCheckAuthInfoTimer(), this.liveTranscoding.clear(), this.slsReporter.stop(), this.signalingManager.reset();
|
|
19283
19283
|
});
|
|
19284
19284
|
}
|
|
19285
19285
|
/**
|
|
@@ -19684,8 +19684,8 @@ const ue = (le = class extends Je {
|
|
|
19684
19684
|
if (this._audioOnlyMode)
|
|
19685
19685
|
throw new Y(te.ERR_INNER, "Cannot switch camera in audio only mode");
|
|
19686
19686
|
const i = {};
|
|
19687
|
-
if (e ? (i.deviceId = e, this.slsReporter.reportSwitchCamera(e)) : (i.cameraDirection = ((r = this.publisher) == null ? void 0 : r.cameraDirection) === "environment" ? gi.CAMERA_FRONT : gi.CAMERA_REAR, this.slsReporter.reportSwitchCamera(((n = this.publisher) == null ? void 0 : n.cameraDirection) || "")),
|
|
19688
|
-
(u = (o = this.publisher) == null ? void 0 : o.publishStreams) != null && u.video && ((f = (m = (h = this.publisher) == null ? void 0 : h.publishStreams) == null ? void 0 : m.video) == null || f.disableVideo(), (g = (d = (p = (l = this.publisher) == null ? void 0 : l.publishStreams) == null ? void 0 : p.video) == null ? void 0 : d.videoTrack) == null || g.stop());
|
|
19687
|
+
if (e ? (i.deviceId = e, this.slsReporter.reportSwitchCamera(e)) : (i.cameraDirection = ((r = this.publisher) == null ? void 0 : r.cameraDirection) === "environment" ? gi.CAMERA_FRONT : gi.CAMERA_REAR, this.slsReporter.reportSwitchCamera(((n = this.publisher) == null ? void 0 : n.cameraDirection) || "")), !((a = this.publisher) != null && a.cameraCaptureDisabled)) {
|
|
19688
|
+
(u = (o = this.publisher) == null ? void 0 : o.publishStreams) != null && u.video && ((f = (m = (h = this.publisher) == null ? void 0 : h.publishStreams) == null ? void 0 : m.video) == null || f.disableVideo(), (g = (d = (p = (l = this.publisher) == null ? void 0 : l.publishStreams) == null ? void 0 : p.video) == null ? void 0 : d.videoTrack) == null || g.stop()), yield this.setCameraCapturerConfiguration(i);
|
|
19689
19689
|
const v = {
|
|
19690
19690
|
video: !0
|
|
19691
19691
|
};
|