@cloudflare/realtimekit 1.0.1 → 1.0.2-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/browser.js +3 -3
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +9 -7
- package/dist/index.rn.js +2 -2
- package/package.json +2 -3
package/dist/index.es.js
CHANGED
|
@@ -24284,11 +24284,12 @@ class Eh extends wl {
|
|
|
24284
24284
|
}
|
|
24285
24285
|
connect() {
|
|
24286
24286
|
return u(this, null, function* () {
|
|
24287
|
-
|
|
24288
|
-
|
|
24289
|
-
|
|
24290
|
-
|
|
24291
|
-
|
|
24287
|
+
this.pc.addTransceiver("video", { direction: "sendonly" });
|
|
24288
|
+
const e = yield this.pc.createOffer();
|
|
24289
|
+
return yield this.pc.setLocalDescription(e), l.info(`connect offer: ${JSON.stringify(e)}`), {
|
|
24290
|
+
offerSdp: e,
|
|
24291
|
+
callback: (i) => u(this, null, function* () {
|
|
24292
|
+
l.debug(`${this.name}::connect() | calling pc.setRemoteDescription() [answer:${JSON.stringify(i)}]`), yield this.pc.setRemoteDescription(i);
|
|
24292
24293
|
})
|
|
24293
24294
|
};
|
|
24294
24295
|
});
|
|
@@ -29072,7 +29073,8 @@ const gv = (Sm = class {
|
|
|
29072
29073
|
ping: this.capabilities.includes("PING"),
|
|
29073
29074
|
capabilities: this.capabilities.map((o) => od[o]).join(" "),
|
|
29074
29075
|
joinWithDetails: true,
|
|
29075
|
-
useCfWorker: true
|
|
29076
|
+
useCfWorker: true,
|
|
29077
|
+
useStartSession: true
|
|
29076
29078
|
});
|
|
29077
29079
|
return Object.entries(n).forEach(([o, c]) => {
|
|
29078
29080
|
r.searchParams.append(o, c.toString());
|
|
@@ -29817,7 +29819,7 @@ let jr = (Em = class {
|
|
|
29817
29819
|
var c;
|
|
29818
29820
|
const n = $i.createContext(t, e), o = O(O({}, BP), e == null ? void 0 : e.modules);
|
|
29819
29821
|
return 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", (c = e.overrides) != null ? c : {}), n.setValue("env", HP({ baseURI: i.baseURI })), n.setValue("defaults", e.defaults || { audio: true, video: true }), n.setValue("onError", e.onError || (() => {
|
|
29820
|
-
})), n.setValue("cachedUserDetails", fs(e.cachedUserDetails)), n.setValue("sdkVersion", "3.0.1"), n;
|
|
29822
|
+
})), n.setValue("cachedUserDetails", fs(e.cachedUserDetails)), n.setValue("sdkVersion", "3.0.2-staging.1"), n;
|
|
29821
29823
|
}
|
|
29822
29824
|
join() {
|
|
29823
29825
|
return u(this, null, function* () {
|