@cloudflare/realtimekit-react 1.1.7-staging.4 → 1.1.7-staging.6
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 +3 -3
- package/dist/index.es.js +14 -11
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -20006,12 +20006,15 @@ let Ld = class extends Jn {
|
|
|
20006
20006
|
});
|
|
20007
20007
|
}
|
|
20008
20008
|
getCurrentDeviceId() {
|
|
20009
|
-
var e
|
|
20009
|
+
var e;
|
|
20010
20010
|
const { kind: t } = this.mediaTrack;
|
|
20011
20011
|
switch (t) {
|
|
20012
20012
|
case "audio": {
|
|
20013
|
-
const
|
|
20014
|
-
|
|
20013
|
+
const { deviceId: r } = this.mediaTrack.getSettings();
|
|
20014
|
+
if (r)
|
|
20015
|
+
return r;
|
|
20016
|
+
const i = this.mediaTrack.getConstraints();
|
|
20017
|
+
return this.userSelectedDevice ? (i && typeof i.deviceId == "object" && "exact" in i.deviceId ? i.deviceId.exact : i.deviceId) || ((e = i == null ? void 0 : i.advanced) == null ? void 0 : e[0].deviceId) || "default" : this.mediaTrack.getSettings().deviceId;
|
|
20015
20018
|
}
|
|
20016
20019
|
default:
|
|
20017
20020
|
return this.mediaTrack.getSettings().deviceId;
|
|
@@ -20133,7 +20136,7 @@ class Kl extends Ff {
|
|
|
20133
20136
|
!e,
|
|
20134
20137
|
this.userSelectedDevice
|
|
20135
20138
|
)
|
|
20136
|
-
)
|
|
20139
|
+
);
|
|
20137
20140
|
} catch (e) {
|
|
20138
20141
|
throw this.logger.error("AudioMediaHandler.setDevice.error", {
|
|
20139
20142
|
error: e
|
|
@@ -26327,19 +26330,19 @@ class lD {
|
|
|
26327
26330
|
const r = {
|
|
26328
26331
|
requests: [],
|
|
26329
26332
|
consumingTransportId: this.recvTransport.serverId
|
|
26330
|
-
};
|
|
26331
|
-
|
|
26333
|
+
}, i = t.filter((n) => n && n.id);
|
|
26334
|
+
i.forEach(({ id: n, producingTransportId: o, localId: c }) => {
|
|
26332
26335
|
r.requests.push({
|
|
26333
|
-
producerId:
|
|
26334
|
-
producingTransportId:
|
|
26335
|
-
mid:
|
|
26336
|
+
producerId: n,
|
|
26337
|
+
producingTransportId: o,
|
|
26338
|
+
mid: c,
|
|
26336
26339
|
simulcast: {
|
|
26337
26340
|
preferredRid: e === 0 ? "q" : "h",
|
|
26338
26341
|
priorityOrdering: "asciibetical",
|
|
26339
26342
|
ridNotAvailable: "asciibetical"
|
|
26340
26343
|
}
|
|
26341
26344
|
});
|
|
26342
|
-
}), yield this.socketHandler.updateConsumersSimulcastConfig(r), a(this, ts).info(`Consumers switched layers to ${e}`, { consumerIds:
|
|
26345
|
+
}), yield this.socketHandler.updateConsumersSimulcastConfig(r), a(this, ts).info(`Consumers switched layers to ${e}`, { consumerIds: i == null ? void 0 : i.map(({ id: n }) => n) });
|
|
26343
26346
|
});
|
|
26344
26347
|
}
|
|
26345
26348
|
}
|
|
@@ -30509,7 +30512,7 @@ let ri = (Wg = class {
|
|
|
30509
30512
|
video: true
|
|
30510
30513
|
};
|
|
30511
30514
|
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.
|
|
30515
|
+
})), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.7-staging.6"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new oO()), n;
|
|
30513
30516
|
}
|
|
30514
30517
|
join() {
|
|
30515
30518
|
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.6",
|
|
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.6"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": ">=16.8.6"
|