@cloudflare/realtimekit 1.1.7-staging.2 → 1.1.7-staging.4
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/browser.js +9 -9
- package/dist/index.cjs.js +9 -9
- package/dist/index.es.js +14 -16
- package/dist/index.rn.js +9 -9
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -18937,9 +18937,10 @@ class Ot extends Jn {
|
|
|
18937
18937
|
}
|
|
18938
18938
|
setupSpeaker() {
|
|
18939
18939
|
return u(this, null, function* () {
|
|
18940
|
-
yield a(this, zs).setupSpeaker();
|
|
18941
18940
|
const { speaker: e } = this.getCurrentDevices();
|
|
18942
|
-
|
|
18941
|
+
yield a(this, zs).setupSpeaker();
|
|
18942
|
+
const { speaker: r } = this.getCurrentDevices();
|
|
18943
|
+
(e == null ? void 0 : e.deviceId) !== (r == null ? void 0 : r.deviceId) && r && this.emit("DEVICE_CHANGE", { device: r });
|
|
18943
18944
|
});
|
|
18944
18945
|
}
|
|
18945
18946
|
setSpeakerDevice(e) {
|
|
@@ -19396,7 +19397,7 @@ class n0 {
|
|
|
19396
19397
|
};
|
|
19397
19398
|
});
|
|
19398
19399
|
h(this, "getAudioConstraints", (t2) => {
|
|
19399
|
-
var n, o, c, d, l, p, f
|
|
19400
|
+
var n, o, c, d, l, p, f;
|
|
19400
19401
|
const e2 = {}, r = (n = a(this, ki)) == null ? void 0 : n.audio, i = r != null && r.enableStereo ? 2 : 1;
|
|
19401
19402
|
return Te.isFirefox() || Te.isWebKitBased() ? (e2.audio = {
|
|
19402
19403
|
deviceId: t2,
|
|
@@ -19404,15 +19405,12 @@ class n0 {
|
|
|
19404
19405
|
echoCancellation: (c = r == null ? void 0 : r.echoCancellation) != null ? c : true,
|
|
19405
19406
|
noiseSuppression: (d = r == null ? void 0 : r.noiseSupression) != null ? d : true,
|
|
19406
19407
|
channelCount: i
|
|
19407
|
-
}, e2) : (e2.audio = {
|
|
19408
|
-
|
|
19409
|
-
|
|
19410
|
-
|
|
19411
|
-
|
|
19412
|
-
|
|
19413
|
-
{ googNoiseSuppression: (S = r == null ? void 0 : r.noiseSupression) != null ? S : true },
|
|
19414
|
-
{ googHighpassFilter: true }
|
|
19415
|
-
], e2);
|
|
19408
|
+
}, e2) : (e2.audio = {
|
|
19409
|
+
autoGainControl: (l = r == null ? void 0 : r.autoGainControl) != null ? l : true,
|
|
19410
|
+
echoCancellation: (p = r == null ? void 0 : r.echoCancellation) != null ? p : true,
|
|
19411
|
+
noiseSuppression: (f = r == null ? void 0 : r.noiseSupression) != null ? f : true,
|
|
19412
|
+
channelCount: i
|
|
19413
|
+
}, t2 && t2 !== "default" && (e2.audio.deviceId = { exact: t2 }), e2);
|
|
19416
19414
|
});
|
|
19417
19415
|
h(this, "getVideoConstraints", (t2) => {
|
|
19418
19416
|
var n, o, c, d;
|
|
@@ -20001,12 +19999,12 @@ let Ld = class extends Jn {
|
|
|
20001
19999
|
});
|
|
20002
20000
|
}
|
|
20003
20001
|
getCurrentDeviceId() {
|
|
20004
|
-
var e, r;
|
|
20002
|
+
var e, r, i, n;
|
|
20005
20003
|
const { kind: t } = this.mediaTrack;
|
|
20006
20004
|
switch (t) {
|
|
20007
20005
|
case "audio": {
|
|
20008
|
-
const
|
|
20009
|
-
return this.userSelectedDevice ? (
|
|
20006
|
+
const o = this.mediaTrack.getConstraints();
|
|
20007
|
+
return this.userSelectedDevice ? (n = (i = (r = o == null ? void 0 : o.deviceId) != null ? r : (e = o == null ? void 0 : o.advanced) == null ? void 0 : e[0].deviceId) != null ? i : this.mediaTrack.getSettings().deviceId) != null ? n : "default" : this.mediaTrack.getSettings().deviceId;
|
|
20010
20008
|
}
|
|
20011
20009
|
default:
|
|
20012
20010
|
return this.mediaTrack.getSettings().deviceId;
|
|
@@ -30504,7 +30502,7 @@ let ri = (Wg = class {
|
|
|
30504
30502
|
video: true
|
|
30505
30503
|
};
|
|
30506
30504
|
return n.setValue("options", e), n.setValue("peerId", t), n.setValue("modules", o), n.setValue("sdkName", "web-core"), n.setValue("meetingId", r), n.setValue("apiBase", i.apiBase), n.setValue("baseURI", i.baseURI), n.setValue("userId", i.participantId), n.setValue("organizationId", i.orgId), n.setValue("authToken", e.authToken), n.setValue("overrides", (d = e.overrides) != null ? d : {}), n.setValue("env", PC({ baseURI: i.baseURI })), n.setValue("defaults", c), n.setValue("onError", e.onError || (() => {
|
|
30507
|
-
})), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.7-staging.
|
|
30505
|
+
})), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.7-staging.4"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new oO()), n;
|
|
30508
30506
|
}
|
|
30509
30507
|
join() {
|
|
30510
30508
|
return u(this, null, function* () {
|