@cloudflare/realtimekit-react 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/index.cjs.js +2 -2
- package/dist/index.es.js +8 -6
- package/package.json +3 -4
package/dist/index.es.js
CHANGED
|
@@ -24291,11 +24291,12 @@ class Eh extends wl {
|
|
|
24291
24291
|
}
|
|
24292
24292
|
connect() {
|
|
24293
24293
|
return u(this, null, function* () {
|
|
24294
|
-
|
|
24295
|
-
|
|
24296
|
-
|
|
24297
|
-
|
|
24298
|
-
|
|
24294
|
+
this.pc.addTransceiver("video", { direction: "sendonly" });
|
|
24295
|
+
const e = yield this.pc.createOffer();
|
|
24296
|
+
return yield this.pc.setLocalDescription(e), l.info(`connect offer: ${JSON.stringify(e)}`), {
|
|
24297
|
+
offerSdp: e,
|
|
24298
|
+
callback: (i) => u(this, null, function* () {
|
|
24299
|
+
l.debug(`${this.name}::connect() | calling pc.setRemoteDescription() [answer:${JSON.stringify(i)}]`), yield this.pc.setRemoteDescription(i);
|
|
24299
24300
|
})
|
|
24300
24301
|
};
|
|
24301
24302
|
});
|
|
@@ -29079,7 +29080,8 @@ const gv = (Sm = class {
|
|
|
29079
29080
|
ping: this.capabilities.includes("PING"),
|
|
29080
29081
|
capabilities: this.capabilities.map((o) => od[o]).join(" "),
|
|
29081
29082
|
joinWithDetails: true,
|
|
29082
|
-
useCfWorker: true
|
|
29083
|
+
useCfWorker: true,
|
|
29084
|
+
useStartSession: true
|
|
29083
29085
|
});
|
|
29084
29086
|
return Object.entries(n).forEach(([o, c]) => {
|
|
29085
29087
|
r.searchParams.append(o, c.toString());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/realtimekit-react",
|
|
3
|
-
"version": "1.0.1",
|
|
3
|
+
"version": "1.0.2-staging.1",
|
|
4
4
|
"description": "A real-time video and audio SDK for building custom, collaborative communication experiences.",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -17,14 +17,13 @@
|
|
|
17
17
|
},
|
|
18
18
|
"private": false,
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cloudflare/realtimekit": "0.0.1"
|
|
20
|
+
"@cloudflare/realtimekit": "0.0.2-staging.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": ">=16.8.6"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
|
-
"
|
|
27
|
-
"tag": "latest"
|
|
26
|
+
"tag": "staging"
|
|
28
27
|
},
|
|
29
28
|
"scripts": {
|
|
30
29
|
"postpublish": "mv package.json.bak package.json"
|