@cloudflare/realtimekit 0.5.0-staging.66 → 0.5.0-staging.68
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 +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/mock.cjs.js +2 -2
- package/dist/mock.es.js +57 -56
- package/dist/react.cjs.js +1 -1
- package/dist/react.es.js +1 -1
- package/package.json +1 -1
package/dist/mock.es.js
CHANGED
|
@@ -2066,7 +2066,7 @@ var y = (e, s, a) => (Pe(e, typeof s != "symbol" ? s + "" : s, a), a), Je = (e,
|
|
|
2066
2066
|
if (!s.has(e))
|
|
2067
2067
|
throw TypeError("Cannot " + a);
|
|
2068
2068
|
};
|
|
2069
|
-
var H = (e, s, a) => (Je(e, s, "read from private field"), a ? a.call(e) : s.get(e)),
|
|
2069
|
+
var H = (e, s, a) => (Je(e, s, "read from private field"), a ? a.call(e) : s.get(e)), te = (e, s, a) => {
|
|
2070
2070
|
if (s.has(e))
|
|
2071
2071
|
throw TypeError("Cannot add the same private member more than once");
|
|
2072
2072
|
s instanceof WeakSet ? s.add(e) : s.set(e, a);
|
|
@@ -2087,19 +2087,19 @@ var ze = (e, s, a) => new Promise((d, u) => {
|
|
|
2087
2087
|
}, g = (w) => w.done ? d(w.value) : Promise.resolve(w.value).then(T, f);
|
|
2088
2088
|
g((a = a.apply(e, s)).next());
|
|
2089
2089
|
});
|
|
2090
|
-
var Z = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {},
|
|
2090
|
+
var Z = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, ae = {}, ct = {
|
|
2091
2091
|
get exports() {
|
|
2092
|
-
return
|
|
2092
|
+
return ae;
|
|
2093
2093
|
},
|
|
2094
2094
|
set exports(e) {
|
|
2095
|
-
|
|
2095
|
+
ae = e;
|
|
2096
2096
|
}
|
|
2097
2097
|
}, G = typeof Reflect == "object" ? Reflect : null, Ye = G && typeof G.apply == "function" ? G.apply : function(s, a, d) {
|
|
2098
2098
|
return Function.prototype.apply.call(s, a, d);
|
|
2099
|
-
},
|
|
2100
|
-
G && typeof G.ownKeys == "function" ?
|
|
2099
|
+
}, re;
|
|
2100
|
+
G && typeof G.ownKeys == "function" ? re = G.ownKeys : Object.getOwnPropertySymbols ? re = function(s) {
|
|
2101
2101
|
return Object.getOwnPropertyNames(s).concat(Object.getOwnPropertySymbols(s));
|
|
2102
|
-
} :
|
|
2102
|
+
} : re = function(s) {
|
|
2103
2103
|
return Object.getOwnPropertyNames(s);
|
|
2104
2104
|
};
|
|
2105
2105
|
function dt(e) {
|
|
@@ -2112,7 +2112,7 @@ function v() {
|
|
|
2112
2112
|
v.init.call(this);
|
|
2113
2113
|
}
|
|
2114
2114
|
ct.exports = v;
|
|
2115
|
-
|
|
2115
|
+
ae.once = mt;
|
|
2116
2116
|
v.EventEmitter = v;
|
|
2117
2117
|
v.prototype._events = void 0;
|
|
2118
2118
|
v.prototype._eventsCount = 0;
|
|
@@ -2277,7 +2277,7 @@ function Tn(e) {
|
|
|
2277
2277
|
return 0;
|
|
2278
2278
|
}
|
|
2279
2279
|
v.prototype.eventNames = function() {
|
|
2280
|
-
return this._eventsCount > 0 ?
|
|
2280
|
+
return this._eventsCount > 0 ? re(this._events) : [];
|
|
2281
2281
|
};
|
|
2282
2282
|
function fn(e, s) {
|
|
2283
2283
|
for (var a = new Array(s), d = 0; d < s; ++d)
|
|
@@ -2408,7 +2408,7 @@ a=simulcast:send q;h
|
|
|
2408
2408
|
},
|
|
2409
2409
|
setTransform: () => Promise.resolve()
|
|
2410
2410
|
};
|
|
2411
|
-
class ht extends
|
|
2411
|
+
class ht extends ae {
|
|
2412
2412
|
constructor() {
|
|
2413
2413
|
super();
|
|
2414
2414
|
y(this, "localDescription", null);
|
|
@@ -2576,7 +2576,7 @@ var z = {}, gt = {
|
|
|
2576
2576
|
}
|
|
2577
2577
|
return c.length ? t + c.join("&") : "";
|
|
2578
2578
|
}
|
|
2579
|
-
var Nn = fe, An = b,
|
|
2579
|
+
var Nn = fe, An = b, X = {
|
|
2580
2580
|
stringify: Nn,
|
|
2581
2581
|
parse: An
|
|
2582
2582
|
}, De = /[\n\r\t]/g, In = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//, Dn = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i, Un = /^[a-zA-Z]:/, Bn = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/;
|
|
@@ -2638,7 +2638,7 @@ var z = {}, gt = {
|
|
|
2638
2638
|
if (r = he(r), r = r.replace(De, ""), !(this instanceof $))
|
|
2639
2639
|
return new $(r, t, c);
|
|
2640
2640
|
var n, i, p, l, m, k, _ = ke.slice(), E = typeof t, h = this, we = 0;
|
|
2641
|
-
for (E !== "object" && E !== "string" && (c = t, t = null), c && typeof c != "function" && (c =
|
|
2641
|
+
for (E !== "object" && E !== "string" && (c = t, t = null), c && typeof c != "function" && (c = X.parse), t = Be(t), i = Ge(r || "", t), n = !i.protocol && !i.slashes, h.slashes = i.slashes || n && t.slashes, h.protocol = i.protocol || t.protocol || "", r = i.rest, (i.protocol === "file:" && (i.slashesCount !== 2 || Un.test(r)) || !i.slashes && (i.protocol || i.slashesCount < 2 || !q(h.protocol))) && (_[3] = [/(.*)/, "pathname"]); we < _.length; we++) {
|
|
2642
2642
|
if (l = _[we], typeof l == "function") {
|
|
2643
2643
|
r = l(r, h);
|
|
2644
2644
|
continue;
|
|
@@ -2651,7 +2651,7 @@ var z = {}, gt = {
|
|
|
2651
2651
|
var n = this;
|
|
2652
2652
|
switch (r) {
|
|
2653
2653
|
case "query":
|
|
2654
|
-
typeof t == "string" && t.length && (t = (c ||
|
|
2654
|
+
typeof t == "string" && t.length && (t = (c || X.parse)(t)), n[r] = t;
|
|
2655
2655
|
break;
|
|
2656
2656
|
case "port":
|
|
2657
2657
|
n[r] = t, u(t, n.protocol) ? t && (n.host = n.hostname + ":" + t) : (n.host = n.hostname, n[r] = "");
|
|
@@ -2688,20 +2688,20 @@ var z = {}, gt = {
|
|
|
2688
2688
|
return n.auth = n.password ? n.username + ":" + n.password : n.username, n.origin = n.protocol !== "file:" && q(n.protocol) && n.host ? n.protocol + "//" + n.host : "null", n.href = n.toString(), n;
|
|
2689
2689
|
}
|
|
2690
2690
|
function Wn(r) {
|
|
2691
|
-
(!r || typeof r != "function") && (r =
|
|
2691
|
+
(!r || typeof r != "function") && (r = X.stringify);
|
|
2692
2692
|
var t, c = this, n = c.host, i = c.protocol;
|
|
2693
2693
|
i && i.charAt(i.length - 1) !== ":" && (i += ":");
|
|
2694
2694
|
var p = i + (c.protocol && c.slashes || q(c.protocol) ? "//" : "");
|
|
2695
2695
|
return c.username ? (p += c.username, c.password && (p += ":" + c.password), p += "@") : c.password ? (p += ":" + c.password, p += "@") : c.protocol !== "file:" && q(c.protocol) && !n && c.pathname !== "/" && (p += "@"), n[n.length - 1] === ":" && (n += ":"), p += n + c.pathname, t = typeof c.query == "object" ? r(c.query) : c.query, t && (p += t.charAt(0) !== "?" ? "?" + t : t), c.hash && (p += c.hash), p;
|
|
2696
2696
|
}
|
|
2697
|
-
$.prototype = { set: jn, toString: Wn }, $.extractProtocol = Ge, $.location = Be, $.trimLeft = he, $.qs =
|
|
2697
|
+
$.prototype = { set: jn, toString: Wn }, $.extractProtocol = Ge, $.location = Be, $.trimLeft = he, $.qs = X;
|
|
2698
2698
|
var ge = $;
|
|
2699
2699
|
function K(r, t) {
|
|
2700
2700
|
setTimeout(function(c) {
|
|
2701
2701
|
return r.call(c);
|
|
2702
2702
|
}, 4, t);
|
|
2703
2703
|
}
|
|
2704
|
-
function
|
|
2704
|
+
function ee(r, t) {
|
|
2705
2705
|
typeof process != "undefined" && true && console[r].call(null, t);
|
|
2706
2706
|
}
|
|
2707
2707
|
function ye(r, t) {
|
|
@@ -2896,7 +2896,7 @@ var z = {}, gt = {
|
|
|
2896
2896
|
P.removeWebSocket(r, r.url), r.readyState = C.CLOSED, r.dispatchEvent(p), r.dispatchEvent(i), n && n.dispatchEvent(i, n);
|
|
2897
2897
|
}, r);
|
|
2898
2898
|
}
|
|
2899
|
-
function
|
|
2899
|
+
function ne(r) {
|
|
2900
2900
|
return Object.prototype.toString.call(r) !== "[object Blob]" && !(r instanceof ArrayBuffer) && (r = String(r)), r;
|
|
2901
2901
|
}
|
|
2902
2902
|
var ve = /* @__PURE__ */ new WeakMap();
|
|
@@ -2913,7 +2913,7 @@ var z = {}, gt = {
|
|
|
2913
2913
|
};
|
|
2914
2914
|
if (i === "send")
|
|
2915
2915
|
return function(m) {
|
|
2916
|
-
m =
|
|
2916
|
+
m = ne(m), r.dispatchEvent(
|
|
2917
2917
|
V({
|
|
2918
2918
|
type: "message",
|
|
2919
2919
|
data: m,
|
|
@@ -2977,7 +2977,7 @@ var z = {}, gt = {
|
|
|
2977
2977
|
if (this.readyState === t.CONNECTING)
|
|
2978
2978
|
if (l)
|
|
2979
2979
|
if (l.options.verifyClient && typeof l.options.verifyClient == "function" && !l.options.verifyClient())
|
|
2980
|
-
this.readyState = t.CLOSED,
|
|
2980
|
+
this.readyState = t.CLOSED, ee(
|
|
2981
2981
|
"error",
|
|
2982
2982
|
"WebSocket connection to '" + this.url + "' failed: HTTP Authentication failed; no valid credentials available"
|
|
2983
2983
|
), P.removeWebSocket(p, this.url), this.dispatchEvent(L({ type: "error", target: this })), this.dispatchEvent(O({ type: "close", target: this, code: x.CLOSE_NORMAL }));
|
|
@@ -2985,7 +2985,7 @@ var z = {}, gt = {
|
|
|
2985
2985
|
if (l.options.selectProtocol && typeof l.options.selectProtocol == "function") {
|
|
2986
2986
|
var k = l.options.selectProtocol(i), _ = k !== "", E = i.indexOf(k) !== -1;
|
|
2987
2987
|
if (_ && !E) {
|
|
2988
|
-
this.readyState = t.CLOSED,
|
|
2988
|
+
this.readyState = t.CLOSED, ee("error", "WebSocket connection to '" + this.url + "' failed: Invalid Sub-Protocol"), P.removeWebSocket(p, this.url), this.dispatchEvent(L({ type: "error", target: this })), this.dispatchEvent(O({ type: "close", target: this, code: x.CLOSE_NORMAL }));
|
|
2989
2989
|
return;
|
|
2990
2990
|
}
|
|
2991
2991
|
this.protocol = k;
|
|
@@ -2993,7 +2993,7 @@ var z = {}, gt = {
|
|
|
2993
2993
|
this.readyState = t.OPEN, this.dispatchEvent(L({ type: "open", target: this })), l.dispatchEvent(L({ type: "connection" }), p);
|
|
2994
2994
|
}
|
|
2995
2995
|
else
|
|
2996
|
-
this.readyState = t.CLOSED, this.dispatchEvent(L({ type: "error", target: this })), this.dispatchEvent(O({ type: "close", target: this, code: x.CLOSE_NORMAL })),
|
|
2996
|
+
this.readyState = t.CLOSED, this.dispatchEvent(L({ type: "error", target: this })), this.dispatchEvent(O({ type: "close", target: this, code: x.CLOSE_NORMAL })), ee("error", "WebSocket connection to '" + this.url + "' failed");
|
|
2997
2997
|
}, this);
|
|
2998
2998
|
}
|
|
2999
2999
|
r && (t.__proto__ = r), t.prototype = Object.create(r && r.prototype), t.prototype.constructor = t;
|
|
@@ -3021,7 +3021,7 @@ var z = {}, gt = {
|
|
|
3021
3021
|
var l = V({
|
|
3022
3022
|
type: "server::message",
|
|
3023
3023
|
origin: this.url,
|
|
3024
|
-
data:
|
|
3024
|
+
data: ne(i)
|
|
3025
3025
|
}), m = P.serverLookup(this.url);
|
|
3026
3026
|
m && K(function() {
|
|
3027
3027
|
p.dispatchEvent(l, i);
|
|
@@ -3057,7 +3057,7 @@ var z = {}, gt = {
|
|
|
3057
3057
|
target: this,
|
|
3058
3058
|
code: x.CLOSE_NORMAL
|
|
3059
3059
|
})
|
|
3060
|
-
),
|
|
3060
|
+
), ee("error", "Socket.io connection to '" + this.url + "' failed"));
|
|
3061
3061
|
}, this), this.addEventListener("close", function(k) {
|
|
3062
3062
|
p.dispatchEvent(
|
|
3063
3063
|
O({
|
|
@@ -3209,8 +3209,8 @@ var z = {}, gt = {
|
|
|
3209
3209
|
m || (m = P.websocketsLookup(this.url));
|
|
3210
3210
|
var k;
|
|
3211
3211
|
typeof p != "object" || arguments.length > 3 ? (i = Array.prototype.slice.call(arguments, 1, arguments.length), k = i.map(function(_) {
|
|
3212
|
-
return
|
|
3213
|
-
})) : k =
|
|
3212
|
+
return ne(_);
|
|
3213
|
+
})) : k = ne(i), m.forEach(function(_) {
|
|
3214
3214
|
var E = _ instanceof B ? i : k;
|
|
3215
3215
|
Array.isArray(E) ? _.dispatchEvent.apply(
|
|
3216
3216
|
_,
|
|
@@ -3270,10 +3270,10 @@ var be = {}, yt = {
|
|
|
3270
3270
|
}
|
|
3271
3271
|
}, j = typeof Reflect == "object" ? Reflect : null, en = j && typeof j.apply == "function" ? j.apply : function(e, s, a) {
|
|
3272
3272
|
return Function.prototype.apply.call(e, s, a);
|
|
3273
|
-
},
|
|
3274
|
-
j && typeof j.ownKeys == "function" ?
|
|
3273
|
+
}, oe;
|
|
3274
|
+
j && typeof j.ownKeys == "function" ? oe = j.ownKeys : Object.getOwnPropertySymbols ? oe = function(e) {
|
|
3275
3275
|
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
3276
|
-
} :
|
|
3276
|
+
} : oe = function(e) {
|
|
3277
3277
|
return Object.getOwnPropertyNames(e);
|
|
3278
3278
|
};
|
|
3279
3279
|
function vt(e) {
|
|
@@ -3451,7 +3451,7 @@ function _n(e) {
|
|
|
3451
3451
|
return 0;
|
|
3452
3452
|
}
|
|
3453
3453
|
R.prototype.eventNames = function() {
|
|
3454
|
-
return this._eventsCount > 0 ?
|
|
3454
|
+
return this._eventsCount > 0 ? oe(this._events) : [];
|
|
3455
3455
|
};
|
|
3456
3456
|
function wn(e, s) {
|
|
3457
3457
|
for (var a = new Array(s), d = 0; d < s; ++d)
|
|
@@ -3526,10 +3526,10 @@ class Et extends MessageType {
|
|
|
3526
3526
|
}
|
|
3527
3527
|
}
|
|
3528
3528
|
const tn = new Et();
|
|
3529
|
-
var
|
|
3529
|
+
var ie;
|
|
3530
3530
|
(function(e) {
|
|
3531
3531
|
e[e.PUBLISHER = 0] = "PUBLISHER", e[e.SUBSCRIBER = 1] = "SUBSCRIBER";
|
|
3532
|
-
})(
|
|
3532
|
+
})(ie || (ie = {}));
|
|
3533
3533
|
var xe;
|
|
3534
3534
|
(function(e) {
|
|
3535
3535
|
e[e.AUDIO = 0] = "AUDIO", e[e.VIDEO = 1] = "VIDEO";
|
|
@@ -3609,7 +3609,7 @@ new Ot();
|
|
|
3609
3609
|
class Mt extends MessageType {
|
|
3610
3610
|
constructor() {
|
|
3611
3611
|
super("media.SessionDescription", [
|
|
3612
|
-
{ no: 1, name: "target", kind: "enum", T: () => ["media.Target",
|
|
3612
|
+
{ no: 1, name: "target", kind: "enum", T: () => ["media.Target", ie] },
|
|
3613
3613
|
{
|
|
3614
3614
|
no: 2,
|
|
3615
3615
|
name: "type",
|
|
@@ -3922,7 +3922,7 @@ class Vt extends MessageType {
|
|
|
3922
3922
|
]);
|
|
3923
3923
|
}
|
|
3924
3924
|
}
|
|
3925
|
-
const
|
|
3925
|
+
const Q = new Vt();
|
|
3926
3926
|
class Ht extends MessageType {
|
|
3927
3927
|
constructor() {
|
|
3928
3928
|
super("media.ConsumerState", [
|
|
@@ -3932,7 +3932,7 @@ class Ht extends MessageType {
|
|
|
3932
3932
|
kind: "scalar",
|
|
3933
3933
|
T: 9
|
|
3934
3934
|
},
|
|
3935
|
-
{ no: 2, name: "producer_state", kind: "message", T: () =>
|
|
3935
|
+
{ no: 2, name: "producer_state", kind: "message", T: () => Q },
|
|
3936
3936
|
{ no: 3, name: "producer_track", kind: "message", T: () => Wt }
|
|
3937
3937
|
]);
|
|
3938
3938
|
}
|
|
@@ -4512,7 +4512,7 @@ class Es extends MessageType {
|
|
|
4512
4512
|
kind: "scalar",
|
|
4513
4513
|
T: 9
|
|
4514
4514
|
},
|
|
4515
|
-
{ no: 2, name: "producer_states", kind: "message", repeat: 1, T: () =>
|
|
4515
|
+
{ no: 2, name: "producer_states", kind: "message", repeat: 1, T: () => Q },
|
|
4516
4516
|
{
|
|
4517
4517
|
no: 3,
|
|
4518
4518
|
name: "display_name",
|
|
@@ -4867,7 +4867,7 @@ class rr extends MessageType {
|
|
|
4867
4867
|
kind: "scalar",
|
|
4868
4868
|
T: 9
|
|
4869
4869
|
},
|
|
4870
|
-
{ no: 2, name: "producer_state", kind: "message", T: () =>
|
|
4870
|
+
{ no: 2, name: "producer_state", kind: "message", T: () => Q }
|
|
4871
4871
|
]);
|
|
4872
4872
|
}
|
|
4873
4873
|
}
|
|
@@ -4881,7 +4881,7 @@ class or extends MessageType {
|
|
|
4881
4881
|
kind: "scalar",
|
|
4882
4882
|
T: 9
|
|
4883
4883
|
},
|
|
4884
|
-
{ no: 2, name: "producer_state", kind: "message", T: () =>
|
|
4884
|
+
{ no: 2, name: "producer_state", kind: "message", T: () => Q },
|
|
4885
4885
|
{
|
|
4886
4886
|
no: 3,
|
|
4887
4887
|
name: "initiator_participant_id",
|
|
@@ -4902,7 +4902,7 @@ class ar extends MessageType {
|
|
|
4902
4902
|
kind: "scalar",
|
|
4903
4903
|
T: 9
|
|
4904
4904
|
},
|
|
4905
|
-
{ no: 2, name: "producer_state", kind: "message", T: () =>
|
|
4905
|
+
{ no: 2, name: "producer_state", kind: "message", T: () => Q }
|
|
4906
4906
|
]);
|
|
4907
4907
|
}
|
|
4908
4908
|
}
|
|
@@ -5119,14 +5119,14 @@ class kr extends MessageType {
|
|
|
5119
5119
|
}
|
|
5120
5120
|
}
|
|
5121
5121
|
new kr();
|
|
5122
|
-
var
|
|
5122
|
+
var ce;
|
|
5123
5123
|
(function(e) {
|
|
5124
5124
|
e[e.BROWSER = 0] = "BROWSER", e[e.TRACK = 1] = "TRACK", e[e.COMPOSITE = 2] = "COMPOSITE";
|
|
5125
|
-
})(
|
|
5126
|
-
var
|
|
5125
|
+
})(ce || (ce = {}));
|
|
5126
|
+
var Y;
|
|
5127
5127
|
(function(e) {
|
|
5128
5128
|
e[e.UNSPECIFIED = 0] = "UNSPECIFIED", e[e.ON_STAGE = 1] = "ON_STAGE", e[e.APPROVED_STAGE = 2] = "APPROVED_STAGE", e[e.REQUESTED_STAGE = 3] = "REQUESTED_STAGE", e[e.OFF_STAGE = 4] = "OFF_STAGE";
|
|
5129
|
-
})(
|
|
5129
|
+
})(Y || (Y = {}));
|
|
5130
5130
|
var Le;
|
|
5131
5131
|
(function(e) {
|
|
5132
5132
|
e[e.NONE = 0] = "NONE", e[e.RECORDER = 1] = "RECORDER", e[e.LIVESTREAMER = 2] = "LIVESTREAMER";
|
|
@@ -5185,7 +5185,7 @@ class vr extends MessageType {
|
|
|
5185
5185
|
kind: "scalar",
|
|
5186
5186
|
T: 9
|
|
5187
5187
|
},
|
|
5188
|
-
{ no: 4, name: "stage_type", kind: "enum", opt: true, T: () => ["socket.room.StageType",
|
|
5188
|
+
{ no: 4, name: "stage_type", kind: "enum", opt: true, T: () => ["socket.room.StageType", Y, "STAGE_TYPE_"] },
|
|
5189
5189
|
{
|
|
5190
5190
|
no: 5,
|
|
5191
5191
|
name: "custom_participant_id",
|
|
@@ -5241,7 +5241,7 @@ class _r extends MessageType {
|
|
|
5241
5241
|
kind: "scalar",
|
|
5242
5242
|
T: 9
|
|
5243
5243
|
},
|
|
5244
|
-
{ no: 3, name: "stage_type", kind: "enum", opt: true, T: () => ["socket.room.StageType",
|
|
5244
|
+
{ no: 3, name: "stage_type", kind: "enum", opt: true, T: () => ["socket.room.StageType", Y, "STAGE_TYPE_"] }
|
|
5245
5245
|
]);
|
|
5246
5246
|
}
|
|
5247
5247
|
}
|
|
@@ -5336,7 +5336,7 @@ class br extends MessageType {
|
|
|
5336
5336
|
kind: "scalar",
|
|
5337
5337
|
T: 9
|
|
5338
5338
|
},
|
|
5339
|
-
{ no: 2, name: "recording_type", kind: "enum", T: () => ["common.RecordingType",
|
|
5339
|
+
{ no: 2, name: "recording_type", kind: "enum", T: () => ["common.RecordingType", ce] },
|
|
5340
5340
|
{
|
|
5341
5341
|
no: 3,
|
|
5342
5342
|
name: "recording_status",
|
|
@@ -7807,7 +7807,7 @@ class li extends MessageType {
|
|
|
7807
7807
|
kind: "scalar",
|
|
7808
7808
|
T: 9
|
|
7809
7809
|
},
|
|
7810
|
-
{ no: 3, name: "recording_type", kind: "enum", T: () => ["common.RecordingType",
|
|
7810
|
+
{ no: 3, name: "recording_type", kind: "enum", T: () => ["common.RecordingType", ce] }
|
|
7811
7811
|
]);
|
|
7812
7812
|
}
|
|
7813
7813
|
}
|
|
@@ -8083,7 +8083,7 @@ function F(e, s) {
|
|
|
8083
8083
|
function qn(e, s) {
|
|
8084
8084
|
return Object.keys(e).reduce((a, d) => (a[d] = s | e[d], a), {});
|
|
8085
8085
|
}
|
|
8086
|
-
const
|
|
8086
|
+
const se = F(ki, wi);
|
|
8087
8087
|
F(gi, Pi);
|
|
8088
8088
|
F(
|
|
8089
8089
|
yi,
|
|
@@ -8109,9 +8109,9 @@ class xi extends z.WebSocket {
|
|
|
8109
8109
|
var W, pe, ue;
|
|
8110
8110
|
class Li {
|
|
8111
8111
|
constructor() {
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8112
|
+
te(this, W, void 0);
|
|
8113
|
+
te(this, pe, []);
|
|
8114
|
+
te(this, ue, 15e3);
|
|
8115
8115
|
y(this, "roomId", "roomId");
|
|
8116
8116
|
y(this, "roomUuid", "roomUuid");
|
|
8117
8117
|
y(this, "cleanBuffer", (s) => s.buffer.slice(s.byteOffset, s.byteOffset + s.byteLength));
|
|
@@ -8128,18 +8128,19 @@ class Li {
|
|
|
8128
8128
|
const d = tn.fromBinary(a);
|
|
8129
8129
|
let u;
|
|
8130
8130
|
switch (d.event) {
|
|
8131
|
-
case
|
|
8131
|
+
case se.joinRoom: {
|
|
8132
8132
|
u = an.toBinary(an.fromJson({
|
|
8133
8133
|
peer: {
|
|
8134
8134
|
peerId: "self-peerId",
|
|
8135
8135
|
userId: "self-userId",
|
|
8136
8136
|
displayName: "name",
|
|
8137
|
-
waitlisted: false
|
|
8137
|
+
waitlisted: false,
|
|
8138
|
+
stageType: Y.ON_STAGE
|
|
8138
8139
|
}
|
|
8139
8140
|
}));
|
|
8140
8141
|
break;
|
|
8141
8142
|
}
|
|
8142
|
-
case
|
|
8143
|
+
case se.getRoomPeersInfo: {
|
|
8143
8144
|
u = Cr.toBinary({
|
|
8144
8145
|
peers: H(this, W).map((w) => He(Ce({}, w), {
|
|
8145
8146
|
userId: w.peerId,
|
|
@@ -8149,7 +8150,7 @@ class Li {
|
|
|
8149
8150
|
});
|
|
8150
8151
|
break;
|
|
8151
8152
|
}
|
|
8152
|
-
case
|
|
8153
|
+
case se.getRoomInfo: {
|
|
8153
8154
|
u = Or.toBinary({
|
|
8154
8155
|
room: {
|
|
8155
8156
|
roomId: this.roomId,
|
|
@@ -8167,7 +8168,7 @@ class Li {
|
|
|
8167
8168
|
description: {
|
|
8168
8169
|
type: "answer",
|
|
8169
8170
|
sdp: "sdp",
|
|
8170
|
-
target:
|
|
8171
|
+
target: ie.PUBLISHER
|
|
8171
8172
|
},
|
|
8172
8173
|
producerIds: []
|
|
8173
8174
|
});
|
|
@@ -8195,7 +8196,7 @@ class Li {
|
|
|
8195
8196
|
});
|
|
8196
8197
|
break;
|
|
8197
8198
|
}
|
|
8198
|
-
case
|
|
8199
|
+
case se.getConnectedRoomsDump: {
|
|
8199
8200
|
u = Wr.toBinary({
|
|
8200
8201
|
parentMeeting: {
|
|
8201
8202
|
participants: []
|