@cloudflare/realtimekit-react 1.1.7-staging.5 → 1.1.7
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 +2 -2
- package/dist/index.es.js +8 -5
- package/package.json +4 -3
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
|
|
@@ -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
|
|
30515
|
+
})), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.7"), (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
|
|
3
|
+
"version": "1.1.7",
|
|
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,13 +17,14 @@
|
|
|
17
17
|
},
|
|
18
18
|
"private": false,
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudflare/realtimekit": "1.1.7
|
|
20
|
+
"@cloudflare/realtimekit": "1.1.7"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": ">=16.8.6"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
|
-
"
|
|
26
|
+
"access": "public",
|
|
27
|
+
"tag": "latest"
|
|
27
28
|
},
|
|
28
29
|
"scripts": {
|
|
29
30
|
"postpublish": "mv package.json.bak package.json"
|