@cloudflare/realtimekit-react 1.1.7-staging.2 → 1.1.7-staging.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/index.cjs.js +9 -9
- package/dist/index.es.js +11 -14
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -19403,7 +19403,7 @@ class n0 {
|
|
|
19403
19403
|
};
|
|
19404
19404
|
});
|
|
19405
19405
|
h(this, "getAudioConstraints", (t2) => {
|
|
19406
|
-
var n, o, c, d, l, p, f
|
|
19406
|
+
var n, o, c, d, l, p, f;
|
|
19407
19407
|
const e2 = {}, r = (n = a(this, ki)) == null ? void 0 : n.audio, i = r != null && r.enableStereo ? 2 : 1;
|
|
19408
19408
|
return Te.isFirefox() || Te.isWebKitBased() ? (e2.audio = {
|
|
19409
19409
|
deviceId: t2,
|
|
@@ -19411,15 +19411,12 @@ class n0 {
|
|
|
19411
19411
|
echoCancellation: (c = r == null ? void 0 : r.echoCancellation) != null ? c : true,
|
|
19412
19412
|
noiseSuppression: (d = r == null ? void 0 : r.noiseSupression) != null ? d : true,
|
|
19413
19413
|
channelCount: i
|
|
19414
|
-
}, e2) : (e2.audio = {
|
|
19415
|
-
|
|
19416
|
-
|
|
19417
|
-
|
|
19418
|
-
|
|
19419
|
-
|
|
19420
|
-
{ googNoiseSuppression: (S = r == null ? void 0 : r.noiseSupression) != null ? S : true },
|
|
19421
|
-
{ googHighpassFilter: true }
|
|
19422
|
-
], e2);
|
|
19414
|
+
}, e2) : (e2.audio = {
|
|
19415
|
+
autoGainControl: (l = r == null ? void 0 : r.autoGainControl) != null ? l : true,
|
|
19416
|
+
echoCancellation: (p = r == null ? void 0 : r.echoCancellation) != null ? p : true,
|
|
19417
|
+
noiseSuppression: (f = r == null ? void 0 : r.noiseSupression) != null ? f : true,
|
|
19418
|
+
channelCount: i
|
|
19419
|
+
}, t2 && t2 !== "default" && (e2.audio.deviceId = { exact: t2 }), e2);
|
|
19423
19420
|
});
|
|
19424
19421
|
h(this, "getVideoConstraints", (t2) => {
|
|
19425
19422
|
var n, o, c, d;
|
|
@@ -20008,12 +20005,12 @@ let Ld = class extends Jn {
|
|
|
20008
20005
|
});
|
|
20009
20006
|
}
|
|
20010
20007
|
getCurrentDeviceId() {
|
|
20011
|
-
var e, r;
|
|
20008
|
+
var e, r, i, n;
|
|
20012
20009
|
const { kind: t } = this.mediaTrack;
|
|
20013
20010
|
switch (t) {
|
|
20014
20011
|
case "audio": {
|
|
20015
|
-
const
|
|
20016
|
-
return this.userSelectedDevice ? (
|
|
20012
|
+
const o = this.mediaTrack.getConstraints();
|
|
20013
|
+
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;
|
|
20017
20014
|
}
|
|
20018
20015
|
default:
|
|
20019
20016
|
return this.mediaTrack.getSettings().deviceId;
|
|
@@ -30511,7 +30508,7 @@ let ri = (Wg = class {
|
|
|
30511
30508
|
video: true
|
|
30512
30509
|
};
|
|
30513
30510
|
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 || (() => {
|
|
30514
|
-
})), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.7-staging.
|
|
30511
|
+
})), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.7-staging.3"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new oO()), n;
|
|
30515
30512
|
}
|
|
30516
30513
|
join() {
|
|
30517
30514
|
return u(this, null, function* () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/realtimekit-react",
|
|
3
|
-
"version": "1.1.7-staging.
|
|
3
|
+
"version": "1.1.7-staging.3",
|
|
4
4
|
"description": "A real-time video and audio SDK for building custom, collaborative communication experiences.",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"private": false,
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudflare/realtimekit": "1.1.7-staging.
|
|
20
|
+
"@cloudflare/realtimekit": "1.1.7-staging.3"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": ">=16.8.6"
|