@cloudflare/realtimekit 1.1.7-staging.5 → 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/browser.js +2 -2
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +8 -5
- package/dist/index.rn.js +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -19999,12 +19999,15 @@ let Ld = class extends Jn {
|
|
|
19999
19999
|
});
|
|
20000
20000
|
}
|
|
20001
20001
|
getCurrentDeviceId() {
|
|
20002
|
-
var e
|
|
20002
|
+
var e;
|
|
20003
20003
|
const { kind: t } = this.mediaTrack;
|
|
20004
20004
|
switch (t) {
|
|
20005
20005
|
case "audio": {
|
|
20006
|
-
const
|
|
20007
|
-
|
|
20006
|
+
const { deviceId: r } = this.mediaTrack.getSettings();
|
|
20007
|
+
if (r)
|
|
20008
|
+
return r;
|
|
20009
|
+
const i = this.mediaTrack.getConstraints();
|
|
20010
|
+
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;
|
|
20008
20011
|
}
|
|
20009
20012
|
default:
|
|
20010
20013
|
return this.mediaTrack.getSettings().deviceId;
|
|
@@ -20126,7 +20129,7 @@ class Kl extends Ff {
|
|
|
20126
20129
|
!e,
|
|
20127
20130
|
this.userSelectedDevice
|
|
20128
20131
|
)
|
|
20129
|
-
)
|
|
20132
|
+
);
|
|
20130
20133
|
} catch (e) {
|
|
20131
20134
|
throw this.logger.error("AudioMediaHandler.setDevice.error", {
|
|
20132
20135
|
error: e
|
|
@@ -30502,7 +30505,7 @@ let ri = (Wg = class {
|
|
|
30502
30505
|
video: true
|
|
30503
30506
|
};
|
|
30504
30507
|
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 || (() => {
|
|
30505
|
-
})), n.setValue("cachedUserDetails", _s(e.cachedUserDetails)), n.setValue("sdkVersion", "3.1.7-staging.
|
|
30508
|
+
})), 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;
|
|
30506
30509
|
}
|
|
30507
30510
|
join() {
|
|
30508
30511
|
return u(this, null, function* () {
|