@cloudflare/realtimekit-react 1.1.7-staging.1 → 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 +14 -15
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -9711,7 +9711,9 @@ const CC = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d=
|
|
|
9711
9711
|
init(t, e, r) {
|
|
9712
9712
|
this.tracingEnabled = true, this.initialized = false, this.logsCache = [];
|
|
9713
9713
|
const i = t.getValue("peerId");
|
|
9714
|
-
this.meetingMetadata = e, this.tracingEnabled = r, this.meetingMetadata.peerId = i, this.meetingMetadata.sdkVersion = t.getValue("sdkVersion")
|
|
9714
|
+
this.meetingMetadata = e, this.tracingEnabled = r, this.meetingMetadata.peerId = i, this.meetingMetadata.sdkVersion = t.getValue("sdkVersion");
|
|
9715
|
+
const { RNDeviceInfoImpl: n } = navigator;
|
|
9716
|
+
this.meetingMetadata.deviceInfo = navigator.isReactNative ? n == null ? void 0 : n.getDeviceInfo() : Te.getDeviceInfo(), this.meetingMetadata.visitedUrl = !navigator.isReactNative && typeof window != "undefined" && window.location.href, this.logsProcessorTimer = setInterval(
|
|
9715
9717
|
this.processCachedLogs.bind(this),
|
|
9716
9718
|
this.logsProcessingInterval
|
|
9717
9719
|
), r && (this.initialized = true);
|
|
@@ -19401,7 +19403,7 @@ class n0 {
|
|
|
19401
19403
|
};
|
|
19402
19404
|
});
|
|
19403
19405
|
h(this, "getAudioConstraints", (t2) => {
|
|
19404
|
-
var n, o, c, d, l, p, f
|
|
19406
|
+
var n, o, c, d, l, p, f;
|
|
19405
19407
|
const e2 = {}, r = (n = a(this, ki)) == null ? void 0 : n.audio, i = r != null && r.enableStereo ? 2 : 1;
|
|
19406
19408
|
return Te.isFirefox() || Te.isWebKitBased() ? (e2.audio = {
|
|
19407
19409
|
deviceId: t2,
|
|
@@ -19409,15 +19411,12 @@ class n0 {
|
|
|
19409
19411
|
echoCancellation: (c = r == null ? void 0 : r.echoCancellation) != null ? c : true,
|
|
19410
19412
|
noiseSuppression: (d = r == null ? void 0 : r.noiseSupression) != null ? d : true,
|
|
19411
19413
|
channelCount: i
|
|
19412
|
-
}, e2) : (e2.audio = {
|
|
19413
|
-
|
|
19414
|
-
|
|
19415
|
-
|
|
19416
|
-
|
|
19417
|
-
|
|
19418
|
-
{ googNoiseSuppression: (S = r == null ? void 0 : r.noiseSupression) != null ? S : true },
|
|
19419
|
-
{ googHighpassFilter: true }
|
|
19420
|
-
], 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);
|
|
19421
19420
|
});
|
|
19422
19421
|
h(this, "getVideoConstraints", (t2) => {
|
|
19423
19422
|
var n, o, c, d;
|
|
@@ -20006,12 +20005,12 @@ let Ld = class extends Jn {
|
|
|
20006
20005
|
});
|
|
20007
20006
|
}
|
|
20008
20007
|
getCurrentDeviceId() {
|
|
20009
|
-
var e, r;
|
|
20008
|
+
var e, r, i, n;
|
|
20010
20009
|
const { kind: t } = this.mediaTrack;
|
|
20011
20010
|
switch (t) {
|
|
20012
20011
|
case "audio": {
|
|
20013
|
-
const
|
|
20014
|
-
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;
|
|
20015
20014
|
}
|
|
20016
20015
|
default:
|
|
20017
20016
|
return this.mediaTrack.getSettings().deviceId;
|
|
@@ -30509,7 +30508,7 @@ let ri = (Wg = class {
|
|
|
30509
30508
|
video: true
|
|
30510
30509
|
};
|
|
30511
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 || (() => {
|
|
30512
|
-
})), 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;
|
|
30513
30512
|
}
|
|
30514
30513
|
join() {
|
|
30515
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"
|