@cloudflare/realtimekit 2.0.4-staging.2 → 2.0.4-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.es.js CHANGED
@@ -15911,7 +15911,7 @@ let Ht = (Tm = class extends pD {
15911
15911
  const t = yield navigator.mediaDevices.enumerateDevices(), e = (i) => {
15912
15912
  var o;
15913
15913
  const a = ((o = i.label) == null ? void 0 : o.toLowerCase()) || "";
15914
- return Fd(i) ? 4 : a.includes("airpods") || a.includes("airdopes") || a.includes("bluetooth") || a.includes("wireless") || a.includes("headphones") || a.includes("headset") || a.includes("earbuds") || a.includes("usb") || a.includes("external") ? 0 : i.deviceId === "default" || a.includes("default") ? 1 : a.includes("built-in") || a.includes("internal") ? 2 : 3;
15914
+ return Fd(i) ? 4 : a.includes("airpods") || a.includes("airdopes") || a.includes("bluetooth") || a.includes("wireless") || a.includes("headphones") || a.includes("headset") && !a.includes("earpiece") || a.includes("earbuds") || a.includes("usb") || a.includes("external") ? 0 : i.deviceId === "default" || a.includes("default") ? 1 : a.includes("built-in") || a.includes("internal") ? 2 : 3;
15915
15915
  }, r = (i) => {
15916
15916
  var o;
15917
15917
  if (i.kind !== "videoinput")
@@ -27571,7 +27571,7 @@ let oi = (Rm = class {
27571
27571
  video: !0
27572
27572
  };
27573
27573
  return a.setValue("options", e), a.setValue("peerId", t), a.setValue("modules", o), a.setValue("sdkName", "web-core"), a.setValue("meetingId", r), a.setValue("apiBase", i.apiBase), a.setValue("baseURI", i.baseURI), a.setValue("userId", i.participantId), a.setValue("organizationId", i.orgId), a.setValue("authToken", e.authToken), a.setValue("overrides", (d = e.overrides) != null ? d : {}), a.setValue("env", AC({ baseURI: i.baseURI })), a.setValue("defaults", c), a.setValue("onError", e.onError || (() => {
27574
- })), a.setValue("cachedUserDetails", Vs(e.cachedUserDetails)), a.setValue("sdkVersion", "2.0.4-staging.2"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new m1()), a;
27574
+ })), a.setValue("cachedUserDetails", Vs(e.cachedUserDetails)), a.setValue("sdkVersion", "2.0.4-staging.3"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new m1()), a;
27575
27575
  }
27576
27576
  join() {
27577
27577
  return u(this, null, function* () {
package/dist/index.es5.js CHANGED
@@ -15259,7 +15259,7 @@ var wi = /* @__PURE__ */ w("mediaConstraints"), hd = /* @__PURE__ */ w("context"
15259
15259
  case 1:
15260
15260
  return i = c.v, a = function(d) {
15261
15261
  var p, v = ((p = d.label) === null || p === void 0 ? void 0 : p.toLowerCase()) || "";
15262
- return kl(d) ? 4 : v.includes("airpods") || v.includes("airdopes") || v.includes("bluetooth") || v.includes("wireless") || v.includes("headphones") || v.includes("headset") || v.includes("earbuds") || v.includes("usb") || v.includes("external") ? 0 : d.deviceId === "default" || v.includes("default") ? 1 : v.includes("built-in") || v.includes("internal") ? 2 : 3;
15262
+ return kl(d) ? 4 : v.includes("airpods") || v.includes("airdopes") || v.includes("bluetooth") || v.includes("wireless") || v.includes("headphones") || v.includes("headset") && !v.includes("earpiece") || v.includes("earbuds") || v.includes("usb") || v.includes("external") ? 0 : d.deviceId === "default" || v.includes("default") ? 1 : v.includes("built-in") || v.includes("internal") ? 2 : 3;
15263
15263
  }, o = function(d) {
15264
15264
  var p;
15265
15265
  if (d.kind !== "videoinput")
@@ -28452,7 +28452,7 @@ var gr = /* @__PURE__ */ w("trackMap"), m2 = /* @__PURE__ */ function(s) {
28452
28452
  }, { key: "setupContext", value: function(e, t, n, i) {
28453
28453
  var a, o, c = Aa.createContext(e, t), l = V(V({}, RP), t == null ? void 0 : t.modules), d = t.defaults || { audio: !0, video: !0 };
28454
28454
  return c.setValue("options", t), c.setValue("peerId", e), c.setValue("modules", l), c.setValue("sdkName", "web-core"), c.setValue("meetingId", n), c.setValue("apiBase", i.apiBase), c.setValue("baseURI", i.baseURI), c.setValue("userId", i.participantId), c.setValue("organizationId", i.orgId), c.setValue("authToken", t.authToken), c.setValue("overrides", (a = t.overrides) !== null && a !== void 0 ? a : {}), c.setValue("env", _P({ baseURI: i.baseURI })), c.setValue("defaults", d), c.setValue("onError", t.onError || function() {
28455
- }), c.setValue("cachedUserDetails", di(t.cachedUserDetails)), c.setValue("sdkVersion", "2.0.4-staging.2"), (o = t.modules) !== null && o !== void 0 && o.experimentalAudioPlayback && c.setValue("audioPlayback", new m2()), c;
28455
+ }), c.setValue("cachedUserDetails", di(t.cachedUserDetails)), c.setValue("sdkVersion", "2.0.4-staging.3"), (o = t.modules) !== null && o !== void 0 && o.experimentalAudioPlayback && c.setValue("audioPlayback", new m2()), c;
28456
28456
  } }]);
28457
28457
  }());
28458
28458
  Yl([dr("0002"), Xi.executeWithLock({ methodName: "meeting.join", lockName: "Client.join", timeout: 3e3 })], Ma.prototype, "join", 1);