@cloudflare/realtimekit 1.4.0-staging.1 → 1.4.0-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/browser.js +3 -3
- package/dist/dependencies.txt +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +11 -3
- package/dist/index.es5.js +2 -2
- package/dist/index.rn.js +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -21747,7 +21747,15 @@ class Ah extends Ul {
|
|
|
21747
21747
|
}
|
|
21748
21748
|
connect() {
|
|
21749
21749
|
return u(this, null, function* () {
|
|
21750
|
-
this.pc.addTransceiver("audio", { direction: "sendonly" }), this.pc.addTransceiver("video", {
|
|
21750
|
+
this.pc.addTransceiver("audio", { direction: "sendonly" }), this.pc.addTransceiver("video", O({
|
|
21751
|
+
direction: "sendonly"
|
|
21752
|
+
}, this._direction === "send" ? {
|
|
21753
|
+
sendEncodings: [
|
|
21754
|
+
{ rid: "f", scaleResolutionDownBy: 1 },
|
|
21755
|
+
{ rid: "h", scaleResolutionDownBy: 2 },
|
|
21756
|
+
{ rid: "q", scaleResolutionDownBy: 4 }
|
|
21757
|
+
]
|
|
21758
|
+
} : {}));
|
|
21751
21759
|
const e = yield this.pc.createOffer();
|
|
21752
21760
|
return yield this.pc.setLocalDescription(e), this.logger.info(`connect offer: ${JSON.stringify(e)}`), {
|
|
21753
21761
|
offerSdp: e,
|
|
@@ -24559,7 +24567,7 @@ class ae {
|
|
|
24559
24567
|
return this._shareWebcam(t, e);
|
|
24560
24568
|
}
|
|
24561
24569
|
const n = [e].concat(kt.filter((_) => _ !== e)), o = x(this, Tl, mS).call(this, t, n), c = Aa(this.context, "disableSimulcast"), d = (v = (f = this.context) == null ? void 0 : f.getValue("overrides")) == null ? void 0 : v.simulcastConfig;
|
|
24562
|
-
c || d && d.disable || !((C = (E = this.context) == null ? void 0 : E.getValue("theme")) != null && C.isSimulcastEnabled) ? this.logger.info("Simulcast disabled for webcam producer, SFU: CF") : (this.logger.info("Simulcast enabled for SFU: CF"), o.encodings = v0(this.context, t)), this.context.getValue("flagsmith").hasFeature(te.TRACK_HINT) && (o.track.contentHint = this.context.getValue("flagsmith").getValue(
|
|
24570
|
+
c || d && d.disable || !((C = (E = this.context) == null ? void 0 : E.getValue("theme")) != null && C.isSimulcastEnabled) ? this.logger.info("Simulcast disabled for webcam producer, SFU: CF") : (this.logger.info("Simulcast enabled for SFU: CF"), o.encodings = v0(this.context, t), this.logger.info(`Simulcast encodings: ${JSON.stringify(o.encodings)}`)), this.context.getValue("flagsmith").hasFeature(te.TRACK_HINT) && (o.track.contentHint = this.context.getValue("flagsmith").getValue(
|
|
24563
24571
|
te.TRACK_HINT
|
|
24564
24572
|
));
|
|
24565
24573
|
const p = () => {
|
|
@@ -28243,7 +28251,7 @@ let Qr = (Og = class {
|
|
|
28243
28251
|
video: !0
|
|
28244
28252
|
};
|
|
28245
28253
|
return n.setValue("options", e), 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", (d = e.overrides) != null ? d : {}), n.setValue("env", jC({ baseURI: i.baseURI })), n.setValue("defaults", c), n.setValue("onError", e.onError || (() => {
|
|
28246
|
-
})), n.setValue("cachedUserDetails", Vs(e.cachedUserDetails)), n.setValue("sdkVersion", "1.4.0-staging.
|
|
28254
|
+
})), n.setValue("cachedUserDetails", Vs(e.cachedUserDetails)), n.setValue("sdkVersion", "1.4.0-staging.2"), (l = e.modules) != null && l.experimentalAudioPlayback && n.setValue("audioPlayback", new PO()), n;
|
|
28247
28255
|
}
|
|
28248
28256
|
join() {
|
|
28249
28257
|
return u(this, null, function* () {
|
package/dist/index.es5.js
CHANGED
|
@@ -22426,7 +22426,7 @@ var qe = /* @__PURE__ */ E("socket"), d_ = /* @__PURE__ */ function() {
|
|
|
22426
22426
|
for (; ; )
|
|
22427
22427
|
switch (l.prev = l.next) {
|
|
22428
22428
|
case 0:
|
|
22429
|
-
return this.pc.addTransceiver("audio", { direction: "sendonly" }), this.pc.addTransceiver("video", { direction: "sendonly" }), l.next = 4, this.pc.createOffer();
|
|
22429
|
+
return this.pc.addTransceiver("audio", { direction: "sendonly" }), this.pc.addTransceiver("video", V({ direction: "sendonly" }, this._direction === "send" ? { sendEncodings: [{ rid: "f", scaleResolutionDownBy: 1 }, { rid: "h", scaleResolutionDownBy: 2 }, { rid: "q", scaleResolutionDownBy: 4 }] } : {})), l.next = 4, this.pc.createOffer();
|
|
22430
22430
|
case 4:
|
|
22431
22431
|
return i = l.sent, l.next = 7, this.pc.setLocalDescription(i);
|
|
22432
22432
|
case 7:
|
|
@@ -25608,7 +25608,7 @@ var iO = function() {
|
|
|
25608
25608
|
case 17:
|
|
25609
25609
|
return f = [a].concat(qt.filter(function(I) {
|
|
25610
25610
|
return I !== a;
|
|
25611
|
-
})), g = c(this, xl)[xl](n, f), k = Eo(this.context, "disableSimulcast"), y = (i = this.context) === null || i === void 0 || (i = i.getValue("overrides")) === null || i === void 0 ? void 0 : i.simulcastConfig, b = k || y && y.disable || !((s = this.context) !== null && s !== void 0 && (s = s.getValue("theme")) !== null && s !== void 0 && s.isSimulcastEnabled), b ? this.logger.info("Simulcast disabled for webcam producer, SFU: CF") : (this.logger.info("Simulcast enabled for SFU: CF"), g.encodings = qI(this.context, n)), this.context.getValue("flagsmith").hasFeature(Oe.TRACK_HINT) && (g.track.contentHint = this.context.getValue("flagsmith").getValue(Oe.TRACK_HINT)), T = function() {
|
|
25611
|
+
})), g = c(this, xl)[xl](n, f), k = Eo(this.context, "disableSimulcast"), y = (i = this.context) === null || i === void 0 || (i = i.getValue("overrides")) === null || i === void 0 ? void 0 : i.simulcastConfig, b = k || y && y.disable || !((s = this.context) !== null && s !== void 0 && (s = s.getValue("theme")) !== null && s !== void 0 && s.isSimulcastEnabled), b ? this.logger.info("Simulcast disabled for webcam producer, SFU: CF") : (this.logger.info("Simulcast enabled for SFU: CF"), g.encodings = qI(this.context, n), this.logger.info("Simulcast encodings: ".concat(JSON.stringify(g.encodings)))), this.context.getValue("flagsmith").hasFeature(Oe.TRACK_HINT) && (g.track.contentHint = this.context.getValue("flagsmith").getValue(Oe.TRACK_HINT)), T = function() {
|
|
25612
25612
|
u.logger.info("Disabling video due to the producer closure"), c(u, yr)[yr].delete(l);
|
|
25613
25613
|
}, S = c(this, W)[W].createProducer(g, T), c(this, ba)[ba](l, S.then(function(I) {
|
|
25614
25614
|
return I.id;
|