@cloudflare/realtimekit-react 1.0.1 → 1.0.2-staging.2
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 +13 -13
- package/dist/index.es.js +11 -9
- package/package.json +3 -4
package/dist/index.es.js
CHANGED
|
@@ -21842,7 +21842,7 @@ const Kc = (fm = class {
|
|
|
21842
21842
|
);
|
|
21843
21843
|
this.updateParticipantsMap(
|
|
21844
21844
|
a(this, qn),
|
|
21845
|
-
this.participants.videoSubscribed.toArray().map(({ id: h }) => h)
|
|
21845
|
+
this.participants.videoSubscribed.toArray().filter(({ videoEnabled: h }) => !!h).map(({ id: h }) => h)
|
|
21846
21846
|
);
|
|
21847
21847
|
const [e, r] = Kc.mapDiff(
|
|
21848
21848
|
a(this, jn),
|
|
@@ -21850,7 +21850,7 @@ const Kc = (fm = class {
|
|
|
21850
21850
|
);
|
|
21851
21851
|
this.updateParticipantsMap(
|
|
21852
21852
|
a(this, jn),
|
|
21853
|
-
this.participants.audioSubscribed.toArray().map(({ id: h }) => h)
|
|
21853
|
+
this.participants.audioSubscribed.toArray().filter(({ audioEnabled: h }) => !!h).map(({ id: h }) => h)
|
|
21854
21854
|
);
|
|
21855
21855
|
const i = [
|
|
21856
21856
|
...this.mapPeerIdsToProducers(s, ["video"]),
|
|
@@ -21917,7 +21917,7 @@ const Kc = (fm = class {
|
|
|
21917
21917
|
producingPeerId: s,
|
|
21918
21918
|
mimeType: i.mimeType
|
|
21919
21919
|
}));
|
|
21920
|
-
}), this.roomNodeClient.handlePeerCapabilities(s, e), z.hasFeature(re.FORCE_VIDEO_CODEC) || this.roomNodeClient.shareWebcam(this.self.videoTrack),
|
|
21920
|
+
}), this.roomNodeClient.handlePeerCapabilities(s, e), z.hasFeature(re.FORCE_VIDEO_CODEC) || this.roomNodeClient.shareWebcam(this.self.videoTrack), k.emit(I.UPDATE_ACTIVE);
|
|
21921
21921
|
}
|
|
21922
21922
|
updateParticipantsMapMinReplacement(s, t) {
|
|
21923
21923
|
const e = Array.from(s.keys()), r = new Map(s), i = new Set(t), n = [];
|
|
@@ -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.
|
|
3
|
+
"version": "1.0.2-staging.2",
|
|
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.
|
|
20
|
+
"@cloudflare/realtimekit": "0.0.2-staging.2"
|
|
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"
|