@cloudflare/realtimekit 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/browser.js +3 -3
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +14 -11
- package/dist/index.rn.js +3 -3
- 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
|
|
@@ -26320,19 +26323,19 @@ class lD {
|
|
|
26320
26323
|
const r = {
|
|
26321
26324
|
requests: [],
|
|
26322
26325
|
consumingTransportId: this.recvTransport.serverId
|
|
26323
|
-
};
|
|
26324
|
-
|
|
26326
|
+
}, i = t.filter((n) => n && n.id);
|
|
26327
|
+
i.forEach(({ id: n, producingTransportId: o, localId: c }) => {
|
|
26325
26328
|
r.requests.push({
|
|
26326
|
-
producerId:
|
|
26327
|
-
producingTransportId:
|
|
26328
|
-
mid:
|
|
26329
|
+
producerId: n,
|
|
26330
|
+
producingTransportId: o,
|
|
26331
|
+
mid: c,
|
|
26329
26332
|
simulcast: {
|
|
26330
26333
|
preferredRid: e === 0 ? "q" : "h",
|
|
26331
26334
|
priorityOrdering: "asciibetical",
|
|
26332
26335
|
ridNotAvailable: "asciibetical"
|
|
26333
26336
|
}
|
|
26334
26337
|
});
|
|
26335
|
-
}), yield this.socketHandler.updateConsumersSimulcastConfig(r), a(this, ts).info(`Consumers switched layers to ${e}`, { consumerIds:
|
|
26338
|
+
}), yield this.socketHandler.updateConsumersSimulcastConfig(r), a(this, ts).info(`Consumers switched layers to ${e}`, { consumerIds: i == null ? void 0 : i.map(({ id: n }) => n) });
|
|
26336
26339
|
});
|
|
26337
26340
|
}
|
|
26338
26341
|
}
|
|
@@ -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* () {
|