@cloudflare/realtimekit 1.2.2-staging.4 → 1.2.3-staging.1

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
@@ -21964,7 +21964,7 @@ class Hh extends Wl {
21964
21964
  }
21965
21965
  connect() {
21966
21966
  return u(this, null, function* () {
21967
- this.pc.addTransceiver("video", { direction: "sendonly" });
21967
+ this.pc.addTransceiver("audio", { direction: "sendonly" }), this.pc.addTransceiver("video", { direction: "sendonly" });
21968
21968
  const e = yield this.pc.createOffer();
21969
21969
  return yield this.pc.setLocalDescription(e), this.logger.info(`connect offer: ${JSON.stringify(e)}`), {
21970
21970
  offerSdp: e,
@@ -28419,7 +28419,7 @@ let ti = (Kg = class {
28419
28419
  video: !0
28420
28420
  };
28421
28421
  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", lw({ baseURI: i.baseURI })), a.setValue("defaults", c), a.setValue("onError", e.onError || (() => {
28422
- })), a.setValue("cachedUserDetails", Rs(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.2-staging.4"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new YO()), a;
28422
+ })), a.setValue("cachedUserDetails", Rs(e.cachedUserDetails)), a.setValue("sdkVersion", "1.2.3-staging.1"), (l = e.modules) != null && l.experimentalAudioPlayback && a.setValue("audioPlayback", new YO()), a;
28423
28423
  }
28424
28424
  join() {
28425
28425
  return u(this, null, function* () {
package/dist/index.es5.js CHANGED
@@ -22563,10 +22563,10 @@ var qe = /* @__PURE__ */ C("socket"), V_ = /* @__PURE__ */ function() {
22563
22563
  for (; ; )
22564
22564
  switch (c.prev = c.next) {
22565
22565
  case 0:
22566
- return this.pc.addTransceiver("video", { direction: "sendonly" }), c.next = 3, this.pc.createOffer();
22567
- case 3:
22568
- return i = c.sent, c.next = 6, this.pc.setLocalDescription(i);
22569
- case 6:
22566
+ return this.pc.addTransceiver("audio", { direction: "sendonly" }), this.pc.addTransceiver("video", { direction: "sendonly" }), c.next = 4, this.pc.createOffer();
22567
+ case 4:
22568
+ return i = c.sent, c.next = 7, this.pc.setLocalDescription(i);
22569
+ case 7:
22570
22570
  return this.logger.info("connect offer: ".concat(JSON.stringify(i))), s = /* @__PURE__ */ function() {
22571
22571
  var d = m(/* @__PURE__ */ h().mark(function p(v) {
22572
22572
  return h().wrap(function(g) {
@@ -22584,7 +22584,7 @@ var qe = /* @__PURE__ */ C("socket"), V_ = /* @__PURE__ */ function() {
22584
22584
  return d.apply(this, arguments);
22585
22585
  };
22586
22586
  }(), c.abrupt("return", { offerSdp: i, callback: s });
22587
- case 9:
22587
+ case 10:
22588
22588
  case "end":
22589
22589
  return c.stop();
22590
22590
  }