livekit-server-sdk 1.2.0 → 1.2.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/README.md +1 -1
- package/dist/EgressClient.d.ts +4 -0
- package/dist/EgressClient.js +2 -0
- package/dist/EgressClient.js.map +1 -1
- package/dist/IngressClient.d.ts +8 -0
- package/dist/IngressClient.js +5 -1
- package/dist/IngressClient.js.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts +5 -5
- package/dist/proto/google/protobuf/timestamp.js +32 -17
- package/dist/proto/google/protobuf/timestamp.js.map +1 -1
- package/dist/proto/livekit_egress.d.ts +403 -393
- package/dist/proto/livekit_egress.js +581 -453
- package/dist/proto/livekit_egress.js.map +1 -1
- package/dist/proto/livekit_ingress.d.ts +100 -86
- package/dist/proto/livekit_ingress.js +354 -237
- package/dist/proto/livekit_ingress.js.map +1 -1
- package/dist/proto/livekit_models.d.ts +120 -63
- package/dist/proto/livekit_models.js +581 -433
- package/dist/proto/livekit_models.js.map +1 -1
- package/dist/proto/livekit_room.d.ts +135 -132
- package/dist/proto/livekit_room.js +207 -160
- package/dist/proto/livekit_room.js.map +1 -1
- package/dist/proto/livekit_webhook.d.ts +173 -165
- package/dist/proto/livekit_webhook.js +67 -42
- package/dist/proto/livekit_webhook.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,15 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
2
21
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
23
|
};
|
|
5
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.TimedVersion = exports.RTPStats_GapHistogramEntry = exports.RTPStats = exports.DisabledCodecs = exports.VideoConfiguration = exports.ClientConfiguration = exports.ClientInfo = exports.ServerInfo = exports.ParticipantTracks = exports.UserPacket = exports.SpeakerInfo = exports.ActiveSpeakerUpdate = exports.DataPacket = exports.VideoLayer = void 0;
|
|
25
|
+
exports.ParticipantInfo = exports.ParticipantPermission = exports.Codec = exports.Room = exports.clientInfo_SDKToJSON = exports.clientInfo_SDKFromJSON = exports.ClientInfo_SDK = exports.serverInfo_EditionToJSON = exports.serverInfo_EditionFromJSON = exports.ServerInfo_Edition = exports.dataPacket_KindToJSON = exports.dataPacket_KindFromJSON = exports.DataPacket_Kind = exports.encryption_TypeToJSON = exports.encryption_TypeFromJSON = exports.Encryption_Type = exports.participantInfo_StateToJSON = exports.participantInfo_StateFromJSON = exports.ParticipantInfo_State = exports.subscriptionErrorToJSON = exports.subscriptionErrorFromJSON = exports.SubscriptionError = exports.reconnectReasonToJSON = exports.reconnectReasonFromJSON = exports.ReconnectReason = exports.disconnectReasonToJSON = exports.disconnectReasonFromJSON = exports.DisconnectReason = exports.clientConfigSettingToJSON = exports.clientConfigSettingFromJSON = exports.ClientConfigSetting = exports.connectionQualityToJSON = exports.connectionQualityFromJSON = exports.ConnectionQuality = exports.videoQualityToJSON = exports.videoQualityFromJSON = exports.VideoQuality = exports.trackSourceToJSON = exports.trackSourceFromJSON = exports.TrackSource = exports.trackTypeToJSON = exports.trackTypeFromJSON = exports.TrackType = exports.videoCodecToJSON = exports.videoCodecFromJSON = exports.VideoCodec = exports.audioCodecToJSON = exports.audioCodecFromJSON = exports.AudioCodec = exports.protobufPackage = void 0;
|
|
26
|
+
exports.TimedVersion = exports.RTPStats_GapHistogramEntry = exports.RTPStats = exports.DisabledCodecs = exports.VideoConfiguration = exports.ClientConfiguration = exports.ClientInfo = exports.ServerInfo = exports.ParticipantTracks = exports.UserPacket = exports.SpeakerInfo = exports.ActiveSpeakerUpdate = exports.DataPacket = exports.VideoLayer = exports.TrackInfo = exports.SimulcastCodecInfo = exports.Encryption = void 0;
|
|
8
27
|
/* eslint-disable */
|
|
9
28
|
const long_1 = __importDefault(require("long"));
|
|
10
|
-
const
|
|
29
|
+
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
11
30
|
const timestamp_1 = require("./google/protobuf/timestamp");
|
|
12
|
-
exports.protobufPackage =
|
|
31
|
+
exports.protobufPackage = 'livekit';
|
|
13
32
|
var AudioCodec;
|
|
14
33
|
(function (AudioCodec) {
|
|
15
34
|
AudioCodec[AudioCodec["DEFAULT_AC"] = 0] = "DEFAULT_AC";
|
|
@@ -20,16 +39,16 @@ var AudioCodec;
|
|
|
20
39
|
function audioCodecFromJSON(object) {
|
|
21
40
|
switch (object) {
|
|
22
41
|
case 0:
|
|
23
|
-
case
|
|
42
|
+
case 'DEFAULT_AC':
|
|
24
43
|
return AudioCodec.DEFAULT_AC;
|
|
25
44
|
case 1:
|
|
26
|
-
case
|
|
45
|
+
case 'OPUS':
|
|
27
46
|
return AudioCodec.OPUS;
|
|
28
47
|
case 2:
|
|
29
|
-
case
|
|
48
|
+
case 'AAC':
|
|
30
49
|
return AudioCodec.AAC;
|
|
31
50
|
case -1:
|
|
32
|
-
case
|
|
51
|
+
case 'UNRECOGNIZED':
|
|
33
52
|
default:
|
|
34
53
|
return AudioCodec.UNRECOGNIZED;
|
|
35
54
|
}
|
|
@@ -38,14 +57,13 @@ exports.audioCodecFromJSON = audioCodecFromJSON;
|
|
|
38
57
|
function audioCodecToJSON(object) {
|
|
39
58
|
switch (object) {
|
|
40
59
|
case AudioCodec.DEFAULT_AC:
|
|
41
|
-
return
|
|
60
|
+
return 'DEFAULT_AC';
|
|
42
61
|
case AudioCodec.OPUS:
|
|
43
|
-
return
|
|
62
|
+
return 'OPUS';
|
|
44
63
|
case AudioCodec.AAC:
|
|
45
|
-
return
|
|
46
|
-
case AudioCodec.UNRECOGNIZED:
|
|
64
|
+
return 'AAC';
|
|
47
65
|
default:
|
|
48
|
-
return
|
|
66
|
+
return 'UNKNOWN';
|
|
49
67
|
}
|
|
50
68
|
}
|
|
51
69
|
exports.audioCodecToJSON = audioCodecToJSON;
|
|
@@ -61,22 +79,22 @@ var VideoCodec;
|
|
|
61
79
|
function videoCodecFromJSON(object) {
|
|
62
80
|
switch (object) {
|
|
63
81
|
case 0:
|
|
64
|
-
case
|
|
82
|
+
case 'DEFAULT_VC':
|
|
65
83
|
return VideoCodec.DEFAULT_VC;
|
|
66
84
|
case 1:
|
|
67
|
-
case
|
|
85
|
+
case 'H264_BASELINE':
|
|
68
86
|
return VideoCodec.H264_BASELINE;
|
|
69
87
|
case 2:
|
|
70
|
-
case
|
|
88
|
+
case 'H264_MAIN':
|
|
71
89
|
return VideoCodec.H264_MAIN;
|
|
72
90
|
case 3:
|
|
73
|
-
case
|
|
91
|
+
case 'H264_HIGH':
|
|
74
92
|
return VideoCodec.H264_HIGH;
|
|
75
93
|
case 4:
|
|
76
|
-
case
|
|
94
|
+
case 'VP8':
|
|
77
95
|
return VideoCodec.VP8;
|
|
78
96
|
case -1:
|
|
79
|
-
case
|
|
97
|
+
case 'UNRECOGNIZED':
|
|
80
98
|
default:
|
|
81
99
|
return VideoCodec.UNRECOGNIZED;
|
|
82
100
|
}
|
|
@@ -85,18 +103,17 @@ exports.videoCodecFromJSON = videoCodecFromJSON;
|
|
|
85
103
|
function videoCodecToJSON(object) {
|
|
86
104
|
switch (object) {
|
|
87
105
|
case VideoCodec.DEFAULT_VC:
|
|
88
|
-
return
|
|
106
|
+
return 'DEFAULT_VC';
|
|
89
107
|
case VideoCodec.H264_BASELINE:
|
|
90
|
-
return
|
|
108
|
+
return 'H264_BASELINE';
|
|
91
109
|
case VideoCodec.H264_MAIN:
|
|
92
|
-
return
|
|
110
|
+
return 'H264_MAIN';
|
|
93
111
|
case VideoCodec.H264_HIGH:
|
|
94
|
-
return
|
|
112
|
+
return 'H264_HIGH';
|
|
95
113
|
case VideoCodec.VP8:
|
|
96
|
-
return
|
|
97
|
-
case VideoCodec.UNRECOGNIZED:
|
|
114
|
+
return 'VP8';
|
|
98
115
|
default:
|
|
99
|
-
return
|
|
116
|
+
return 'UNKNOWN';
|
|
100
117
|
}
|
|
101
118
|
}
|
|
102
119
|
exports.videoCodecToJSON = videoCodecToJSON;
|
|
@@ -110,16 +127,16 @@ var TrackType;
|
|
|
110
127
|
function trackTypeFromJSON(object) {
|
|
111
128
|
switch (object) {
|
|
112
129
|
case 0:
|
|
113
|
-
case
|
|
130
|
+
case 'AUDIO':
|
|
114
131
|
return TrackType.AUDIO;
|
|
115
132
|
case 1:
|
|
116
|
-
case
|
|
133
|
+
case 'VIDEO':
|
|
117
134
|
return TrackType.VIDEO;
|
|
118
135
|
case 2:
|
|
119
|
-
case
|
|
136
|
+
case 'DATA':
|
|
120
137
|
return TrackType.DATA;
|
|
121
138
|
case -1:
|
|
122
|
-
case
|
|
139
|
+
case 'UNRECOGNIZED':
|
|
123
140
|
default:
|
|
124
141
|
return TrackType.UNRECOGNIZED;
|
|
125
142
|
}
|
|
@@ -128,14 +145,13 @@ exports.trackTypeFromJSON = trackTypeFromJSON;
|
|
|
128
145
|
function trackTypeToJSON(object) {
|
|
129
146
|
switch (object) {
|
|
130
147
|
case TrackType.AUDIO:
|
|
131
|
-
return
|
|
148
|
+
return 'AUDIO';
|
|
132
149
|
case TrackType.VIDEO:
|
|
133
|
-
return
|
|
150
|
+
return 'VIDEO';
|
|
134
151
|
case TrackType.DATA:
|
|
135
|
-
return
|
|
136
|
-
case TrackType.UNRECOGNIZED:
|
|
152
|
+
return 'DATA';
|
|
137
153
|
default:
|
|
138
|
-
return
|
|
154
|
+
return 'UNKNOWN';
|
|
139
155
|
}
|
|
140
156
|
}
|
|
141
157
|
exports.trackTypeToJSON = trackTypeToJSON;
|
|
@@ -151,22 +167,22 @@ var TrackSource;
|
|
|
151
167
|
function trackSourceFromJSON(object) {
|
|
152
168
|
switch (object) {
|
|
153
169
|
case 0:
|
|
154
|
-
case
|
|
170
|
+
case 'UNKNOWN':
|
|
155
171
|
return TrackSource.UNKNOWN;
|
|
156
172
|
case 1:
|
|
157
|
-
case
|
|
173
|
+
case 'CAMERA':
|
|
158
174
|
return TrackSource.CAMERA;
|
|
159
175
|
case 2:
|
|
160
|
-
case
|
|
176
|
+
case 'MICROPHONE':
|
|
161
177
|
return TrackSource.MICROPHONE;
|
|
162
178
|
case 3:
|
|
163
|
-
case
|
|
179
|
+
case 'SCREEN_SHARE':
|
|
164
180
|
return TrackSource.SCREEN_SHARE;
|
|
165
181
|
case 4:
|
|
166
|
-
case
|
|
182
|
+
case 'SCREEN_SHARE_AUDIO':
|
|
167
183
|
return TrackSource.SCREEN_SHARE_AUDIO;
|
|
168
184
|
case -1:
|
|
169
|
-
case
|
|
185
|
+
case 'UNRECOGNIZED':
|
|
170
186
|
default:
|
|
171
187
|
return TrackSource.UNRECOGNIZED;
|
|
172
188
|
}
|
|
@@ -175,18 +191,17 @@ exports.trackSourceFromJSON = trackSourceFromJSON;
|
|
|
175
191
|
function trackSourceToJSON(object) {
|
|
176
192
|
switch (object) {
|
|
177
193
|
case TrackSource.UNKNOWN:
|
|
178
|
-
return
|
|
194
|
+
return 'UNKNOWN';
|
|
179
195
|
case TrackSource.CAMERA:
|
|
180
|
-
return
|
|
196
|
+
return 'CAMERA';
|
|
181
197
|
case TrackSource.MICROPHONE:
|
|
182
|
-
return
|
|
198
|
+
return 'MICROPHONE';
|
|
183
199
|
case TrackSource.SCREEN_SHARE:
|
|
184
|
-
return
|
|
200
|
+
return 'SCREEN_SHARE';
|
|
185
201
|
case TrackSource.SCREEN_SHARE_AUDIO:
|
|
186
|
-
return
|
|
187
|
-
case TrackSource.UNRECOGNIZED:
|
|
202
|
+
return 'SCREEN_SHARE_AUDIO';
|
|
188
203
|
default:
|
|
189
|
-
return
|
|
204
|
+
return 'UNKNOWN';
|
|
190
205
|
}
|
|
191
206
|
}
|
|
192
207
|
exports.trackSourceToJSON = trackSourceToJSON;
|
|
@@ -201,19 +216,19 @@ var VideoQuality;
|
|
|
201
216
|
function videoQualityFromJSON(object) {
|
|
202
217
|
switch (object) {
|
|
203
218
|
case 0:
|
|
204
|
-
case
|
|
219
|
+
case 'LOW':
|
|
205
220
|
return VideoQuality.LOW;
|
|
206
221
|
case 1:
|
|
207
|
-
case
|
|
222
|
+
case 'MEDIUM':
|
|
208
223
|
return VideoQuality.MEDIUM;
|
|
209
224
|
case 2:
|
|
210
|
-
case
|
|
225
|
+
case 'HIGH':
|
|
211
226
|
return VideoQuality.HIGH;
|
|
212
227
|
case 3:
|
|
213
|
-
case
|
|
228
|
+
case 'OFF':
|
|
214
229
|
return VideoQuality.OFF;
|
|
215
230
|
case -1:
|
|
216
|
-
case
|
|
231
|
+
case 'UNRECOGNIZED':
|
|
217
232
|
default:
|
|
218
233
|
return VideoQuality.UNRECOGNIZED;
|
|
219
234
|
}
|
|
@@ -222,16 +237,15 @@ exports.videoQualityFromJSON = videoQualityFromJSON;
|
|
|
222
237
|
function videoQualityToJSON(object) {
|
|
223
238
|
switch (object) {
|
|
224
239
|
case VideoQuality.LOW:
|
|
225
|
-
return
|
|
240
|
+
return 'LOW';
|
|
226
241
|
case VideoQuality.MEDIUM:
|
|
227
|
-
return
|
|
242
|
+
return 'MEDIUM';
|
|
228
243
|
case VideoQuality.HIGH:
|
|
229
|
-
return
|
|
244
|
+
return 'HIGH';
|
|
230
245
|
case VideoQuality.OFF:
|
|
231
|
-
return
|
|
232
|
-
case VideoQuality.UNRECOGNIZED:
|
|
246
|
+
return 'OFF';
|
|
233
247
|
default:
|
|
234
|
-
return
|
|
248
|
+
return 'UNKNOWN';
|
|
235
249
|
}
|
|
236
250
|
}
|
|
237
251
|
exports.videoQualityToJSON = videoQualityToJSON;
|
|
@@ -245,16 +259,16 @@ var ConnectionQuality;
|
|
|
245
259
|
function connectionQualityFromJSON(object) {
|
|
246
260
|
switch (object) {
|
|
247
261
|
case 0:
|
|
248
|
-
case
|
|
262
|
+
case 'POOR':
|
|
249
263
|
return ConnectionQuality.POOR;
|
|
250
264
|
case 1:
|
|
251
|
-
case
|
|
265
|
+
case 'GOOD':
|
|
252
266
|
return ConnectionQuality.GOOD;
|
|
253
267
|
case 2:
|
|
254
|
-
case
|
|
268
|
+
case 'EXCELLENT':
|
|
255
269
|
return ConnectionQuality.EXCELLENT;
|
|
256
270
|
case -1:
|
|
257
|
-
case
|
|
271
|
+
case 'UNRECOGNIZED':
|
|
258
272
|
default:
|
|
259
273
|
return ConnectionQuality.UNRECOGNIZED;
|
|
260
274
|
}
|
|
@@ -263,14 +277,13 @@ exports.connectionQualityFromJSON = connectionQualityFromJSON;
|
|
|
263
277
|
function connectionQualityToJSON(object) {
|
|
264
278
|
switch (object) {
|
|
265
279
|
case ConnectionQuality.POOR:
|
|
266
|
-
return
|
|
280
|
+
return 'POOR';
|
|
267
281
|
case ConnectionQuality.GOOD:
|
|
268
|
-
return
|
|
282
|
+
return 'GOOD';
|
|
269
283
|
case ConnectionQuality.EXCELLENT:
|
|
270
|
-
return
|
|
271
|
-
case ConnectionQuality.UNRECOGNIZED:
|
|
284
|
+
return 'EXCELLENT';
|
|
272
285
|
default:
|
|
273
|
-
return
|
|
286
|
+
return 'UNKNOWN';
|
|
274
287
|
}
|
|
275
288
|
}
|
|
276
289
|
exports.connectionQualityToJSON = connectionQualityToJSON;
|
|
@@ -284,16 +297,16 @@ var ClientConfigSetting;
|
|
|
284
297
|
function clientConfigSettingFromJSON(object) {
|
|
285
298
|
switch (object) {
|
|
286
299
|
case 0:
|
|
287
|
-
case
|
|
300
|
+
case 'UNSET':
|
|
288
301
|
return ClientConfigSetting.UNSET;
|
|
289
302
|
case 1:
|
|
290
|
-
case
|
|
303
|
+
case 'DISABLED':
|
|
291
304
|
return ClientConfigSetting.DISABLED;
|
|
292
305
|
case 2:
|
|
293
|
-
case
|
|
306
|
+
case 'ENABLED':
|
|
294
307
|
return ClientConfigSetting.ENABLED;
|
|
295
308
|
case -1:
|
|
296
|
-
case
|
|
309
|
+
case 'UNRECOGNIZED':
|
|
297
310
|
default:
|
|
298
311
|
return ClientConfigSetting.UNRECOGNIZED;
|
|
299
312
|
}
|
|
@@ -302,14 +315,13 @@ exports.clientConfigSettingFromJSON = clientConfigSettingFromJSON;
|
|
|
302
315
|
function clientConfigSettingToJSON(object) {
|
|
303
316
|
switch (object) {
|
|
304
317
|
case ClientConfigSetting.UNSET:
|
|
305
|
-
return
|
|
318
|
+
return 'UNSET';
|
|
306
319
|
case ClientConfigSetting.DISABLED:
|
|
307
|
-
return
|
|
320
|
+
return 'DISABLED';
|
|
308
321
|
case ClientConfigSetting.ENABLED:
|
|
309
|
-
return
|
|
310
|
-
case ClientConfigSetting.UNRECOGNIZED:
|
|
322
|
+
return 'ENABLED';
|
|
311
323
|
default:
|
|
312
|
-
return
|
|
324
|
+
return 'UNKNOWN';
|
|
313
325
|
}
|
|
314
326
|
}
|
|
315
327
|
exports.clientConfigSettingToJSON = clientConfigSettingToJSON;
|
|
@@ -328,31 +340,31 @@ var DisconnectReason;
|
|
|
328
340
|
function disconnectReasonFromJSON(object) {
|
|
329
341
|
switch (object) {
|
|
330
342
|
case 0:
|
|
331
|
-
case
|
|
343
|
+
case 'UNKNOWN_REASON':
|
|
332
344
|
return DisconnectReason.UNKNOWN_REASON;
|
|
333
345
|
case 1:
|
|
334
|
-
case
|
|
346
|
+
case 'CLIENT_INITIATED':
|
|
335
347
|
return DisconnectReason.CLIENT_INITIATED;
|
|
336
348
|
case 2:
|
|
337
|
-
case
|
|
349
|
+
case 'DUPLICATE_IDENTITY':
|
|
338
350
|
return DisconnectReason.DUPLICATE_IDENTITY;
|
|
339
351
|
case 3:
|
|
340
|
-
case
|
|
352
|
+
case 'SERVER_SHUTDOWN':
|
|
341
353
|
return DisconnectReason.SERVER_SHUTDOWN;
|
|
342
354
|
case 4:
|
|
343
|
-
case
|
|
355
|
+
case 'PARTICIPANT_REMOVED':
|
|
344
356
|
return DisconnectReason.PARTICIPANT_REMOVED;
|
|
345
357
|
case 5:
|
|
346
|
-
case
|
|
358
|
+
case 'ROOM_DELETED':
|
|
347
359
|
return DisconnectReason.ROOM_DELETED;
|
|
348
360
|
case 6:
|
|
349
|
-
case
|
|
361
|
+
case 'STATE_MISMATCH':
|
|
350
362
|
return DisconnectReason.STATE_MISMATCH;
|
|
351
363
|
case 7:
|
|
352
|
-
case
|
|
364
|
+
case 'JOIN_FAILURE':
|
|
353
365
|
return DisconnectReason.JOIN_FAILURE;
|
|
354
366
|
case -1:
|
|
355
|
-
case
|
|
367
|
+
case 'UNRECOGNIZED':
|
|
356
368
|
default:
|
|
357
369
|
return DisconnectReason.UNRECOGNIZED;
|
|
358
370
|
}
|
|
@@ -361,24 +373,23 @@ exports.disconnectReasonFromJSON = disconnectReasonFromJSON;
|
|
|
361
373
|
function disconnectReasonToJSON(object) {
|
|
362
374
|
switch (object) {
|
|
363
375
|
case DisconnectReason.UNKNOWN_REASON:
|
|
364
|
-
return
|
|
376
|
+
return 'UNKNOWN_REASON';
|
|
365
377
|
case DisconnectReason.CLIENT_INITIATED:
|
|
366
|
-
return
|
|
378
|
+
return 'CLIENT_INITIATED';
|
|
367
379
|
case DisconnectReason.DUPLICATE_IDENTITY:
|
|
368
|
-
return
|
|
380
|
+
return 'DUPLICATE_IDENTITY';
|
|
369
381
|
case DisconnectReason.SERVER_SHUTDOWN:
|
|
370
|
-
return
|
|
382
|
+
return 'SERVER_SHUTDOWN';
|
|
371
383
|
case DisconnectReason.PARTICIPANT_REMOVED:
|
|
372
|
-
return
|
|
384
|
+
return 'PARTICIPANT_REMOVED';
|
|
373
385
|
case DisconnectReason.ROOM_DELETED:
|
|
374
|
-
return
|
|
386
|
+
return 'ROOM_DELETED';
|
|
375
387
|
case DisconnectReason.STATE_MISMATCH:
|
|
376
|
-
return
|
|
388
|
+
return 'STATE_MISMATCH';
|
|
377
389
|
case DisconnectReason.JOIN_FAILURE:
|
|
378
|
-
return
|
|
379
|
-
case DisconnectReason.UNRECOGNIZED:
|
|
390
|
+
return 'JOIN_FAILURE';
|
|
380
391
|
default:
|
|
381
|
-
return
|
|
392
|
+
return 'UNKNOWN';
|
|
382
393
|
}
|
|
383
394
|
}
|
|
384
395
|
exports.disconnectReasonToJSON = disconnectReasonToJSON;
|
|
@@ -394,22 +405,22 @@ var ReconnectReason;
|
|
|
394
405
|
function reconnectReasonFromJSON(object) {
|
|
395
406
|
switch (object) {
|
|
396
407
|
case 0:
|
|
397
|
-
case
|
|
408
|
+
case 'RR_UNKOWN':
|
|
398
409
|
return ReconnectReason.RR_UNKOWN;
|
|
399
410
|
case 1:
|
|
400
|
-
case
|
|
411
|
+
case 'RR_SIGNAL_DISCONNECTED':
|
|
401
412
|
return ReconnectReason.RR_SIGNAL_DISCONNECTED;
|
|
402
413
|
case 2:
|
|
403
|
-
case
|
|
414
|
+
case 'RR_PUBLISHER_FAILED':
|
|
404
415
|
return ReconnectReason.RR_PUBLISHER_FAILED;
|
|
405
416
|
case 3:
|
|
406
|
-
case
|
|
417
|
+
case 'RR_SUBSCRIBER_FAILED':
|
|
407
418
|
return ReconnectReason.RR_SUBSCRIBER_FAILED;
|
|
408
419
|
case 4:
|
|
409
|
-
case
|
|
420
|
+
case 'RR_SWITCH_CANDIDATE':
|
|
410
421
|
return ReconnectReason.RR_SWITCH_CANDIDATE;
|
|
411
422
|
case -1:
|
|
412
|
-
case
|
|
423
|
+
case 'UNRECOGNIZED':
|
|
413
424
|
default:
|
|
414
425
|
return ReconnectReason.UNRECOGNIZED;
|
|
415
426
|
}
|
|
@@ -418,21 +429,58 @@ exports.reconnectReasonFromJSON = reconnectReasonFromJSON;
|
|
|
418
429
|
function reconnectReasonToJSON(object) {
|
|
419
430
|
switch (object) {
|
|
420
431
|
case ReconnectReason.RR_UNKOWN:
|
|
421
|
-
return
|
|
432
|
+
return 'RR_UNKOWN';
|
|
422
433
|
case ReconnectReason.RR_SIGNAL_DISCONNECTED:
|
|
423
|
-
return
|
|
434
|
+
return 'RR_SIGNAL_DISCONNECTED';
|
|
424
435
|
case ReconnectReason.RR_PUBLISHER_FAILED:
|
|
425
|
-
return
|
|
436
|
+
return 'RR_PUBLISHER_FAILED';
|
|
426
437
|
case ReconnectReason.RR_SUBSCRIBER_FAILED:
|
|
427
|
-
return
|
|
438
|
+
return 'RR_SUBSCRIBER_FAILED';
|
|
428
439
|
case ReconnectReason.RR_SWITCH_CANDIDATE:
|
|
429
|
-
return
|
|
430
|
-
case ReconnectReason.UNRECOGNIZED:
|
|
440
|
+
return 'RR_SWITCH_CANDIDATE';
|
|
431
441
|
default:
|
|
432
|
-
return
|
|
442
|
+
return 'UNKNOWN';
|
|
433
443
|
}
|
|
434
444
|
}
|
|
435
445
|
exports.reconnectReasonToJSON = reconnectReasonToJSON;
|
|
446
|
+
var SubscriptionError;
|
|
447
|
+
(function (SubscriptionError) {
|
|
448
|
+
SubscriptionError[SubscriptionError["SE_UNKOWN"] = 0] = "SE_UNKOWN";
|
|
449
|
+
SubscriptionError[SubscriptionError["SE_CODEC_UNSUPPORTED"] = 1] = "SE_CODEC_UNSUPPORTED";
|
|
450
|
+
SubscriptionError[SubscriptionError["SE_TRACK_NOTFOUND"] = 2] = "SE_TRACK_NOTFOUND";
|
|
451
|
+
SubscriptionError[SubscriptionError["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
452
|
+
})(SubscriptionError = exports.SubscriptionError || (exports.SubscriptionError = {}));
|
|
453
|
+
function subscriptionErrorFromJSON(object) {
|
|
454
|
+
switch (object) {
|
|
455
|
+
case 0:
|
|
456
|
+
case 'SE_UNKOWN':
|
|
457
|
+
return SubscriptionError.SE_UNKOWN;
|
|
458
|
+
case 1:
|
|
459
|
+
case 'SE_CODEC_UNSUPPORTED':
|
|
460
|
+
return SubscriptionError.SE_CODEC_UNSUPPORTED;
|
|
461
|
+
case 2:
|
|
462
|
+
case 'SE_TRACK_NOTFOUND':
|
|
463
|
+
return SubscriptionError.SE_TRACK_NOTFOUND;
|
|
464
|
+
case -1:
|
|
465
|
+
case 'UNRECOGNIZED':
|
|
466
|
+
default:
|
|
467
|
+
return SubscriptionError.UNRECOGNIZED;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
exports.subscriptionErrorFromJSON = subscriptionErrorFromJSON;
|
|
471
|
+
function subscriptionErrorToJSON(object) {
|
|
472
|
+
switch (object) {
|
|
473
|
+
case SubscriptionError.SE_UNKOWN:
|
|
474
|
+
return 'SE_UNKOWN';
|
|
475
|
+
case SubscriptionError.SE_CODEC_UNSUPPORTED:
|
|
476
|
+
return 'SE_CODEC_UNSUPPORTED';
|
|
477
|
+
case SubscriptionError.SE_TRACK_NOTFOUND:
|
|
478
|
+
return 'SE_TRACK_NOTFOUND';
|
|
479
|
+
default:
|
|
480
|
+
return 'UNKNOWN';
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
exports.subscriptionErrorToJSON = subscriptionErrorToJSON;
|
|
436
484
|
var ParticipantInfo_State;
|
|
437
485
|
(function (ParticipantInfo_State) {
|
|
438
486
|
/** JOINING - websocket' connected, but not offered yet */
|
|
@@ -448,19 +496,19 @@ var ParticipantInfo_State;
|
|
|
448
496
|
function participantInfo_StateFromJSON(object) {
|
|
449
497
|
switch (object) {
|
|
450
498
|
case 0:
|
|
451
|
-
case
|
|
499
|
+
case 'JOINING':
|
|
452
500
|
return ParticipantInfo_State.JOINING;
|
|
453
501
|
case 1:
|
|
454
|
-
case
|
|
502
|
+
case 'JOINED':
|
|
455
503
|
return ParticipantInfo_State.JOINED;
|
|
456
504
|
case 2:
|
|
457
|
-
case
|
|
505
|
+
case 'ACTIVE':
|
|
458
506
|
return ParticipantInfo_State.ACTIVE;
|
|
459
507
|
case 3:
|
|
460
|
-
case
|
|
508
|
+
case 'DISCONNECTED':
|
|
461
509
|
return ParticipantInfo_State.DISCONNECTED;
|
|
462
510
|
case -1:
|
|
463
|
-
case
|
|
511
|
+
case 'UNRECOGNIZED':
|
|
464
512
|
default:
|
|
465
513
|
return ParticipantInfo_State.UNRECOGNIZED;
|
|
466
514
|
}
|
|
@@ -469,16 +517,15 @@ exports.participantInfo_StateFromJSON = participantInfo_StateFromJSON;
|
|
|
469
517
|
function participantInfo_StateToJSON(object) {
|
|
470
518
|
switch (object) {
|
|
471
519
|
case ParticipantInfo_State.JOINING:
|
|
472
|
-
return
|
|
520
|
+
return 'JOINING';
|
|
473
521
|
case ParticipantInfo_State.JOINED:
|
|
474
|
-
return
|
|
522
|
+
return 'JOINED';
|
|
475
523
|
case ParticipantInfo_State.ACTIVE:
|
|
476
|
-
return
|
|
524
|
+
return 'ACTIVE';
|
|
477
525
|
case ParticipantInfo_State.DISCONNECTED:
|
|
478
|
-
return
|
|
479
|
-
case ParticipantInfo_State.UNRECOGNIZED:
|
|
526
|
+
return 'DISCONNECTED';
|
|
480
527
|
default:
|
|
481
|
-
return
|
|
528
|
+
return 'UNKNOWN';
|
|
482
529
|
}
|
|
483
530
|
}
|
|
484
531
|
exports.participantInfo_StateToJSON = participantInfo_StateToJSON;
|
|
@@ -492,16 +539,16 @@ var Encryption_Type;
|
|
|
492
539
|
function encryption_TypeFromJSON(object) {
|
|
493
540
|
switch (object) {
|
|
494
541
|
case 0:
|
|
495
|
-
case
|
|
542
|
+
case 'NONE':
|
|
496
543
|
return Encryption_Type.NONE;
|
|
497
544
|
case 1:
|
|
498
|
-
case
|
|
545
|
+
case 'GCM':
|
|
499
546
|
return Encryption_Type.GCM;
|
|
500
547
|
case 2:
|
|
501
|
-
case
|
|
548
|
+
case 'CUSTOM':
|
|
502
549
|
return Encryption_Type.CUSTOM;
|
|
503
550
|
case -1:
|
|
504
|
-
case
|
|
551
|
+
case 'UNRECOGNIZED':
|
|
505
552
|
default:
|
|
506
553
|
return Encryption_Type.UNRECOGNIZED;
|
|
507
554
|
}
|
|
@@ -510,14 +557,13 @@ exports.encryption_TypeFromJSON = encryption_TypeFromJSON;
|
|
|
510
557
|
function encryption_TypeToJSON(object) {
|
|
511
558
|
switch (object) {
|
|
512
559
|
case Encryption_Type.NONE:
|
|
513
|
-
return
|
|
560
|
+
return 'NONE';
|
|
514
561
|
case Encryption_Type.GCM:
|
|
515
|
-
return
|
|
562
|
+
return 'GCM';
|
|
516
563
|
case Encryption_Type.CUSTOM:
|
|
517
|
-
return
|
|
518
|
-
case Encryption_Type.UNRECOGNIZED:
|
|
564
|
+
return 'CUSTOM';
|
|
519
565
|
default:
|
|
520
|
-
return
|
|
566
|
+
return 'UNKNOWN';
|
|
521
567
|
}
|
|
522
568
|
}
|
|
523
569
|
exports.encryption_TypeToJSON = encryption_TypeToJSON;
|
|
@@ -530,13 +576,13 @@ var DataPacket_Kind;
|
|
|
530
576
|
function dataPacket_KindFromJSON(object) {
|
|
531
577
|
switch (object) {
|
|
532
578
|
case 0:
|
|
533
|
-
case
|
|
579
|
+
case 'RELIABLE':
|
|
534
580
|
return DataPacket_Kind.RELIABLE;
|
|
535
581
|
case 1:
|
|
536
|
-
case
|
|
582
|
+
case 'LOSSY':
|
|
537
583
|
return DataPacket_Kind.LOSSY;
|
|
538
584
|
case -1:
|
|
539
|
-
case
|
|
585
|
+
case 'UNRECOGNIZED':
|
|
540
586
|
default:
|
|
541
587
|
return DataPacket_Kind.UNRECOGNIZED;
|
|
542
588
|
}
|
|
@@ -545,12 +591,11 @@ exports.dataPacket_KindFromJSON = dataPacket_KindFromJSON;
|
|
|
545
591
|
function dataPacket_KindToJSON(object) {
|
|
546
592
|
switch (object) {
|
|
547
593
|
case DataPacket_Kind.RELIABLE:
|
|
548
|
-
return
|
|
594
|
+
return 'RELIABLE';
|
|
549
595
|
case DataPacket_Kind.LOSSY:
|
|
550
|
-
return
|
|
551
|
-
case DataPacket_Kind.UNRECOGNIZED:
|
|
596
|
+
return 'LOSSY';
|
|
552
597
|
default:
|
|
553
|
-
return
|
|
598
|
+
return 'UNKNOWN';
|
|
554
599
|
}
|
|
555
600
|
}
|
|
556
601
|
exports.dataPacket_KindToJSON = dataPacket_KindToJSON;
|
|
@@ -563,13 +608,13 @@ var ServerInfo_Edition;
|
|
|
563
608
|
function serverInfo_EditionFromJSON(object) {
|
|
564
609
|
switch (object) {
|
|
565
610
|
case 0:
|
|
566
|
-
case
|
|
611
|
+
case 'Standard':
|
|
567
612
|
return ServerInfo_Edition.Standard;
|
|
568
613
|
case 1:
|
|
569
|
-
case
|
|
614
|
+
case 'Cloud':
|
|
570
615
|
return ServerInfo_Edition.Cloud;
|
|
571
616
|
case -1:
|
|
572
|
-
case
|
|
617
|
+
case 'UNRECOGNIZED':
|
|
573
618
|
default:
|
|
574
619
|
return ServerInfo_Edition.UNRECOGNIZED;
|
|
575
620
|
}
|
|
@@ -578,12 +623,11 @@ exports.serverInfo_EditionFromJSON = serverInfo_EditionFromJSON;
|
|
|
578
623
|
function serverInfo_EditionToJSON(object) {
|
|
579
624
|
switch (object) {
|
|
580
625
|
case ServerInfo_Edition.Standard:
|
|
581
|
-
return
|
|
626
|
+
return 'Standard';
|
|
582
627
|
case ServerInfo_Edition.Cloud:
|
|
583
|
-
return
|
|
584
|
-
case ServerInfo_Edition.UNRECOGNIZED:
|
|
628
|
+
return 'Cloud';
|
|
585
629
|
default:
|
|
586
|
-
return
|
|
630
|
+
return 'UNKNOWN';
|
|
587
631
|
}
|
|
588
632
|
}
|
|
589
633
|
exports.serverInfo_EditionToJSON = serverInfo_EditionToJSON;
|
|
@@ -603,34 +647,34 @@ var ClientInfo_SDK;
|
|
|
603
647
|
function clientInfo_SDKFromJSON(object) {
|
|
604
648
|
switch (object) {
|
|
605
649
|
case 0:
|
|
606
|
-
case
|
|
650
|
+
case 'UNKNOWN':
|
|
607
651
|
return ClientInfo_SDK.UNKNOWN;
|
|
608
652
|
case 1:
|
|
609
|
-
case
|
|
653
|
+
case 'JS':
|
|
610
654
|
return ClientInfo_SDK.JS;
|
|
611
655
|
case 2:
|
|
612
|
-
case
|
|
656
|
+
case 'SWIFT':
|
|
613
657
|
return ClientInfo_SDK.SWIFT;
|
|
614
658
|
case 3:
|
|
615
|
-
case
|
|
659
|
+
case 'ANDROID':
|
|
616
660
|
return ClientInfo_SDK.ANDROID;
|
|
617
661
|
case 4:
|
|
618
|
-
case
|
|
662
|
+
case 'FLUTTER':
|
|
619
663
|
return ClientInfo_SDK.FLUTTER;
|
|
620
664
|
case 5:
|
|
621
|
-
case
|
|
665
|
+
case 'GO':
|
|
622
666
|
return ClientInfo_SDK.GO;
|
|
623
667
|
case 6:
|
|
624
|
-
case
|
|
668
|
+
case 'UNITY':
|
|
625
669
|
return ClientInfo_SDK.UNITY;
|
|
626
670
|
case 7:
|
|
627
|
-
case
|
|
671
|
+
case 'REACT_NATIVE':
|
|
628
672
|
return ClientInfo_SDK.REACT_NATIVE;
|
|
629
673
|
case 8:
|
|
630
|
-
case
|
|
674
|
+
case 'RUST':
|
|
631
675
|
return ClientInfo_SDK.RUST;
|
|
632
676
|
case -1:
|
|
633
|
-
case
|
|
677
|
+
case 'UNRECOGNIZED':
|
|
634
678
|
default:
|
|
635
679
|
return ClientInfo_SDK.UNRECOGNIZED;
|
|
636
680
|
}
|
|
@@ -639,49 +683,49 @@ exports.clientInfo_SDKFromJSON = clientInfo_SDKFromJSON;
|
|
|
639
683
|
function clientInfo_SDKToJSON(object) {
|
|
640
684
|
switch (object) {
|
|
641
685
|
case ClientInfo_SDK.UNKNOWN:
|
|
642
|
-
return
|
|
686
|
+
return 'UNKNOWN';
|
|
643
687
|
case ClientInfo_SDK.JS:
|
|
644
|
-
return
|
|
688
|
+
return 'JS';
|
|
645
689
|
case ClientInfo_SDK.SWIFT:
|
|
646
|
-
return
|
|
690
|
+
return 'SWIFT';
|
|
647
691
|
case ClientInfo_SDK.ANDROID:
|
|
648
|
-
return
|
|
692
|
+
return 'ANDROID';
|
|
649
693
|
case ClientInfo_SDK.FLUTTER:
|
|
650
|
-
return
|
|
694
|
+
return 'FLUTTER';
|
|
651
695
|
case ClientInfo_SDK.GO:
|
|
652
|
-
return
|
|
696
|
+
return 'GO';
|
|
653
697
|
case ClientInfo_SDK.UNITY:
|
|
654
|
-
return
|
|
698
|
+
return 'UNITY';
|
|
655
699
|
case ClientInfo_SDK.REACT_NATIVE:
|
|
656
|
-
return
|
|
700
|
+
return 'REACT_NATIVE';
|
|
657
701
|
case ClientInfo_SDK.RUST:
|
|
658
|
-
return
|
|
659
|
-
case ClientInfo_SDK.UNRECOGNIZED:
|
|
702
|
+
return 'RUST';
|
|
660
703
|
default:
|
|
661
|
-
return
|
|
704
|
+
return 'UNKNOWN';
|
|
662
705
|
}
|
|
663
706
|
}
|
|
664
707
|
exports.clientInfo_SDKToJSON = clientInfo_SDKToJSON;
|
|
665
708
|
function createBaseRoom() {
|
|
666
709
|
return {
|
|
667
|
-
sid:
|
|
668
|
-
name:
|
|
710
|
+
sid: '',
|
|
711
|
+
name: '',
|
|
669
712
|
emptyTimeout: 0,
|
|
670
713
|
maxParticipants: 0,
|
|
671
714
|
creationTime: 0,
|
|
672
|
-
turnPassword:
|
|
715
|
+
turnPassword: '',
|
|
673
716
|
enabledCodecs: [],
|
|
674
|
-
metadata:
|
|
717
|
+
metadata: '',
|
|
675
718
|
numParticipants: 0,
|
|
719
|
+
numPublishers: 0,
|
|
676
720
|
activeRecording: false,
|
|
677
721
|
};
|
|
678
722
|
}
|
|
679
723
|
exports.Room = {
|
|
680
|
-
encode(message, writer =
|
|
681
|
-
if (message.sid !==
|
|
724
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
725
|
+
if (message.sid !== '') {
|
|
682
726
|
writer.uint32(10).string(message.sid);
|
|
683
727
|
}
|
|
684
|
-
if (message.name !==
|
|
728
|
+
if (message.name !== '') {
|
|
685
729
|
writer.uint32(18).string(message.name);
|
|
686
730
|
}
|
|
687
731
|
if (message.emptyTimeout !== 0) {
|
|
@@ -693,25 +737,28 @@ exports.Room = {
|
|
|
693
737
|
if (message.creationTime !== 0) {
|
|
694
738
|
writer.uint32(40).int64(message.creationTime);
|
|
695
739
|
}
|
|
696
|
-
if (message.turnPassword !==
|
|
740
|
+
if (message.turnPassword !== '') {
|
|
697
741
|
writer.uint32(50).string(message.turnPassword);
|
|
698
742
|
}
|
|
699
743
|
for (const v of message.enabledCodecs) {
|
|
700
744
|
exports.Codec.encode(v, writer.uint32(58).fork()).ldelim();
|
|
701
745
|
}
|
|
702
|
-
if (message.metadata !==
|
|
746
|
+
if (message.metadata !== '') {
|
|
703
747
|
writer.uint32(66).string(message.metadata);
|
|
704
748
|
}
|
|
705
749
|
if (message.numParticipants !== 0) {
|
|
706
750
|
writer.uint32(72).uint32(message.numParticipants);
|
|
707
751
|
}
|
|
752
|
+
if (message.numPublishers !== 0) {
|
|
753
|
+
writer.uint32(88).uint32(message.numPublishers);
|
|
754
|
+
}
|
|
708
755
|
if (message.activeRecording === true) {
|
|
709
756
|
writer.uint32(80).bool(message.activeRecording);
|
|
710
757
|
}
|
|
711
758
|
return writer;
|
|
712
759
|
},
|
|
713
760
|
decode(input, length) {
|
|
714
|
-
const reader = input instanceof
|
|
761
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
715
762
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
716
763
|
const message = createBaseRoom();
|
|
717
764
|
while (reader.pos < end) {
|
|
@@ -744,6 +791,9 @@ exports.Room = {
|
|
|
744
791
|
case 9:
|
|
745
792
|
message.numParticipants = reader.uint32();
|
|
746
793
|
break;
|
|
794
|
+
case 11:
|
|
795
|
+
message.numPublishers = reader.uint32();
|
|
796
|
+
break;
|
|
747
797
|
case 10:
|
|
748
798
|
message.activeRecording = reader.bool();
|
|
749
799
|
break;
|
|
@@ -756,17 +806,18 @@ exports.Room = {
|
|
|
756
806
|
},
|
|
757
807
|
fromJSON(object) {
|
|
758
808
|
return {
|
|
759
|
-
sid: isSet(object.sid) ? String(object.sid) :
|
|
760
|
-
name: isSet(object.name) ? String(object.name) :
|
|
809
|
+
sid: isSet(object.sid) ? String(object.sid) : '',
|
|
810
|
+
name: isSet(object.name) ? String(object.name) : '',
|
|
761
811
|
emptyTimeout: isSet(object.emptyTimeout) ? Number(object.emptyTimeout) : 0,
|
|
762
812
|
maxParticipants: isSet(object.maxParticipants) ? Number(object.maxParticipants) : 0,
|
|
763
813
|
creationTime: isSet(object.creationTime) ? Number(object.creationTime) : 0,
|
|
764
|
-
turnPassword: isSet(object.turnPassword) ? String(object.turnPassword) :
|
|
814
|
+
turnPassword: isSet(object.turnPassword) ? String(object.turnPassword) : '',
|
|
765
815
|
enabledCodecs: Array.isArray(object === null || object === void 0 ? void 0 : object.enabledCodecs)
|
|
766
816
|
? object.enabledCodecs.map((e) => exports.Codec.fromJSON(e))
|
|
767
817
|
: [],
|
|
768
|
-
metadata: isSet(object.metadata) ? String(object.metadata) :
|
|
818
|
+
metadata: isSet(object.metadata) ? String(object.metadata) : '',
|
|
769
819
|
numParticipants: isSet(object.numParticipants) ? Number(object.numParticipants) : 0,
|
|
820
|
+
numPublishers: isSet(object.numPublishers) ? Number(object.numPublishers) : 0,
|
|
770
821
|
activeRecording: isSet(object.activeRecording) ? Boolean(object.activeRecording) : false,
|
|
771
822
|
};
|
|
772
823
|
},
|
|
@@ -775,51 +826,55 @@ exports.Room = {
|
|
|
775
826
|
message.sid !== undefined && (obj.sid = message.sid);
|
|
776
827
|
message.name !== undefined && (obj.name = message.name);
|
|
777
828
|
message.emptyTimeout !== undefined && (obj.emptyTimeout = Math.round(message.emptyTimeout));
|
|
778
|
-
message.maxParticipants !== undefined &&
|
|
829
|
+
message.maxParticipants !== undefined &&
|
|
830
|
+
(obj.maxParticipants = Math.round(message.maxParticipants));
|
|
779
831
|
message.creationTime !== undefined && (obj.creationTime = Math.round(message.creationTime));
|
|
780
832
|
message.turnPassword !== undefined && (obj.turnPassword = message.turnPassword);
|
|
781
833
|
if (message.enabledCodecs) {
|
|
782
|
-
obj.enabledCodecs = message.enabledCodecs.map((e) => e ? exports.Codec.toJSON(e) : undefined);
|
|
834
|
+
obj.enabledCodecs = message.enabledCodecs.map((e) => (e ? exports.Codec.toJSON(e) : undefined));
|
|
783
835
|
}
|
|
784
836
|
else {
|
|
785
837
|
obj.enabledCodecs = [];
|
|
786
838
|
}
|
|
787
839
|
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
788
|
-
message.numParticipants !== undefined &&
|
|
840
|
+
message.numParticipants !== undefined &&
|
|
841
|
+
(obj.numParticipants = Math.round(message.numParticipants));
|
|
842
|
+
message.numPublishers !== undefined && (obj.numPublishers = Math.round(message.numPublishers));
|
|
789
843
|
message.activeRecording !== undefined && (obj.activeRecording = message.activeRecording);
|
|
790
844
|
return obj;
|
|
791
845
|
},
|
|
792
846
|
fromPartial(object) {
|
|
793
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
847
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
794
848
|
const message = createBaseRoom();
|
|
795
|
-
message.sid = (_a = object.sid) !== null && _a !== void 0 ? _a :
|
|
796
|
-
message.name = (_b = object.name) !== null && _b !== void 0 ? _b :
|
|
849
|
+
message.sid = (_a = object.sid) !== null && _a !== void 0 ? _a : '';
|
|
850
|
+
message.name = (_b = object.name) !== null && _b !== void 0 ? _b : '';
|
|
797
851
|
message.emptyTimeout = (_c = object.emptyTimeout) !== null && _c !== void 0 ? _c : 0;
|
|
798
852
|
message.maxParticipants = (_d = object.maxParticipants) !== null && _d !== void 0 ? _d : 0;
|
|
799
853
|
message.creationTime = (_e = object.creationTime) !== null && _e !== void 0 ? _e : 0;
|
|
800
|
-
message.turnPassword = (_f = object.turnPassword) !== null && _f !== void 0 ? _f :
|
|
854
|
+
message.turnPassword = (_f = object.turnPassword) !== null && _f !== void 0 ? _f : '';
|
|
801
855
|
message.enabledCodecs = ((_g = object.enabledCodecs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.Codec.fromPartial(e))) || [];
|
|
802
|
-
message.metadata = (_h = object.metadata) !== null && _h !== void 0 ? _h :
|
|
856
|
+
message.metadata = (_h = object.metadata) !== null && _h !== void 0 ? _h : '';
|
|
803
857
|
message.numParticipants = (_j = object.numParticipants) !== null && _j !== void 0 ? _j : 0;
|
|
804
|
-
message.
|
|
858
|
+
message.numPublishers = (_k = object.numPublishers) !== null && _k !== void 0 ? _k : 0;
|
|
859
|
+
message.activeRecording = (_l = object.activeRecording) !== null && _l !== void 0 ? _l : false;
|
|
805
860
|
return message;
|
|
806
861
|
},
|
|
807
862
|
};
|
|
808
863
|
function createBaseCodec() {
|
|
809
|
-
return { mime:
|
|
864
|
+
return { mime: '', fmtpLine: '' };
|
|
810
865
|
}
|
|
811
866
|
exports.Codec = {
|
|
812
|
-
encode(message, writer =
|
|
813
|
-
if (message.mime !==
|
|
867
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
868
|
+
if (message.mime !== '') {
|
|
814
869
|
writer.uint32(10).string(message.mime);
|
|
815
870
|
}
|
|
816
|
-
if (message.fmtpLine !==
|
|
871
|
+
if (message.fmtpLine !== '') {
|
|
817
872
|
writer.uint32(18).string(message.fmtpLine);
|
|
818
873
|
}
|
|
819
874
|
return writer;
|
|
820
875
|
},
|
|
821
876
|
decode(input, length) {
|
|
822
|
-
const reader = input instanceof
|
|
877
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
823
878
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
824
879
|
const message = createBaseCodec();
|
|
825
880
|
while (reader.pos < end) {
|
|
@@ -840,8 +895,8 @@ exports.Codec = {
|
|
|
840
895
|
},
|
|
841
896
|
fromJSON(object) {
|
|
842
897
|
return {
|
|
843
|
-
mime: isSet(object.mime) ? String(object.mime) :
|
|
844
|
-
fmtpLine: isSet(object.fmtpLine) ? String(object.fmtpLine) :
|
|
898
|
+
mime: isSet(object.mime) ? String(object.mime) : '',
|
|
899
|
+
fmtpLine: isSet(object.fmtpLine) ? String(object.fmtpLine) : '',
|
|
845
900
|
};
|
|
846
901
|
},
|
|
847
902
|
toJSON(message) {
|
|
@@ -853,8 +908,8 @@ exports.Codec = {
|
|
|
853
908
|
fromPartial(object) {
|
|
854
909
|
var _a, _b;
|
|
855
910
|
const message = createBaseCodec();
|
|
856
|
-
message.mime = (_a = object.mime) !== null && _a !== void 0 ? _a :
|
|
857
|
-
message.fmtpLine = (_b = object.fmtpLine) !== null && _b !== void 0 ? _b :
|
|
911
|
+
message.mime = (_a = object.mime) !== null && _a !== void 0 ? _a : '';
|
|
912
|
+
message.fmtpLine = (_b = object.fmtpLine) !== null && _b !== void 0 ? _b : '';
|
|
858
913
|
return message;
|
|
859
914
|
},
|
|
860
915
|
};
|
|
@@ -870,7 +925,7 @@ function createBaseParticipantPermission() {
|
|
|
870
925
|
};
|
|
871
926
|
}
|
|
872
927
|
exports.ParticipantPermission = {
|
|
873
|
-
encode(message, writer =
|
|
928
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
874
929
|
if (message.canSubscribe === true) {
|
|
875
930
|
writer.uint32(8).bool(message.canSubscribe);
|
|
876
931
|
}
|
|
@@ -897,7 +952,7 @@ exports.ParticipantPermission = {
|
|
|
897
952
|
return writer;
|
|
898
953
|
},
|
|
899
954
|
decode(input, length) {
|
|
900
|
-
const reader = input instanceof
|
|
955
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
901
956
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
902
957
|
const message = createBaseParticipantPermission();
|
|
903
958
|
while (reader.pos < end) {
|
|
@@ -949,7 +1004,9 @@ exports.ParticipantPermission = {
|
|
|
949
1004
|
: [],
|
|
950
1005
|
hidden: isSet(object.hidden) ? Boolean(object.hidden) : false,
|
|
951
1006
|
recorder: isSet(object.recorder) ? Boolean(object.recorder) : false,
|
|
952
|
-
canUpdateMetadata: isSet(object.canUpdateMetadata)
|
|
1007
|
+
canUpdateMetadata: isSet(object.canUpdateMetadata)
|
|
1008
|
+
? Boolean(object.canUpdateMetadata)
|
|
1009
|
+
: false,
|
|
953
1010
|
};
|
|
954
1011
|
},
|
|
955
1012
|
toJSON(message) {
|
|
@@ -983,25 +1040,25 @@ exports.ParticipantPermission = {
|
|
|
983
1040
|
};
|
|
984
1041
|
function createBaseParticipantInfo() {
|
|
985
1042
|
return {
|
|
986
|
-
sid:
|
|
987
|
-
identity:
|
|
1043
|
+
sid: '',
|
|
1044
|
+
identity: '',
|
|
988
1045
|
state: 0,
|
|
989
1046
|
tracks: [],
|
|
990
|
-
metadata:
|
|
1047
|
+
metadata: '',
|
|
991
1048
|
joinedAt: 0,
|
|
992
|
-
name:
|
|
1049
|
+
name: '',
|
|
993
1050
|
version: 0,
|
|
994
1051
|
permission: undefined,
|
|
995
|
-
region:
|
|
1052
|
+
region: '',
|
|
996
1053
|
isPublisher: false,
|
|
997
1054
|
};
|
|
998
1055
|
}
|
|
999
1056
|
exports.ParticipantInfo = {
|
|
1000
|
-
encode(message, writer =
|
|
1001
|
-
if (message.sid !==
|
|
1057
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1058
|
+
if (message.sid !== '') {
|
|
1002
1059
|
writer.uint32(10).string(message.sid);
|
|
1003
1060
|
}
|
|
1004
|
-
if (message.identity !==
|
|
1061
|
+
if (message.identity !== '') {
|
|
1005
1062
|
writer.uint32(18).string(message.identity);
|
|
1006
1063
|
}
|
|
1007
1064
|
if (message.state !== 0) {
|
|
@@ -1010,13 +1067,13 @@ exports.ParticipantInfo = {
|
|
|
1010
1067
|
for (const v of message.tracks) {
|
|
1011
1068
|
exports.TrackInfo.encode(v, writer.uint32(34).fork()).ldelim();
|
|
1012
1069
|
}
|
|
1013
|
-
if (message.metadata !==
|
|
1070
|
+
if (message.metadata !== '') {
|
|
1014
1071
|
writer.uint32(42).string(message.metadata);
|
|
1015
1072
|
}
|
|
1016
1073
|
if (message.joinedAt !== 0) {
|
|
1017
1074
|
writer.uint32(48).int64(message.joinedAt);
|
|
1018
1075
|
}
|
|
1019
|
-
if (message.name !==
|
|
1076
|
+
if (message.name !== '') {
|
|
1020
1077
|
writer.uint32(74).string(message.name);
|
|
1021
1078
|
}
|
|
1022
1079
|
if (message.version !== 0) {
|
|
@@ -1025,7 +1082,7 @@ exports.ParticipantInfo = {
|
|
|
1025
1082
|
if (message.permission !== undefined) {
|
|
1026
1083
|
exports.ParticipantPermission.encode(message.permission, writer.uint32(90).fork()).ldelim();
|
|
1027
1084
|
}
|
|
1028
|
-
if (message.region !==
|
|
1085
|
+
if (message.region !== '') {
|
|
1029
1086
|
writer.uint32(98).string(message.region);
|
|
1030
1087
|
}
|
|
1031
1088
|
if (message.isPublisher === true) {
|
|
@@ -1034,7 +1091,7 @@ exports.ParticipantInfo = {
|
|
|
1034
1091
|
return writer;
|
|
1035
1092
|
},
|
|
1036
1093
|
decode(input, length) {
|
|
1037
|
-
const reader = input instanceof
|
|
1094
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1038
1095
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1039
1096
|
const message = createBaseParticipantInfo();
|
|
1040
1097
|
while (reader.pos < end) {
|
|
@@ -1082,16 +1139,20 @@ exports.ParticipantInfo = {
|
|
|
1082
1139
|
},
|
|
1083
1140
|
fromJSON(object) {
|
|
1084
1141
|
return {
|
|
1085
|
-
sid: isSet(object.sid) ? String(object.sid) :
|
|
1086
|
-
identity: isSet(object.identity) ? String(object.identity) :
|
|
1142
|
+
sid: isSet(object.sid) ? String(object.sid) : '',
|
|
1143
|
+
identity: isSet(object.identity) ? String(object.identity) : '',
|
|
1087
1144
|
state: isSet(object.state) ? participantInfo_StateFromJSON(object.state) : 0,
|
|
1088
|
-
tracks: Array.isArray(object === null || object === void 0 ? void 0 : object.tracks)
|
|
1089
|
-
|
|
1145
|
+
tracks: Array.isArray(object === null || object === void 0 ? void 0 : object.tracks)
|
|
1146
|
+
? object.tracks.map((e) => exports.TrackInfo.fromJSON(e))
|
|
1147
|
+
: [],
|
|
1148
|
+
metadata: isSet(object.metadata) ? String(object.metadata) : '',
|
|
1090
1149
|
joinedAt: isSet(object.joinedAt) ? Number(object.joinedAt) : 0,
|
|
1091
|
-
name: isSet(object.name) ? String(object.name) :
|
|
1150
|
+
name: isSet(object.name) ? String(object.name) : '',
|
|
1092
1151
|
version: isSet(object.version) ? Number(object.version) : 0,
|
|
1093
|
-
permission: isSet(object.permission)
|
|
1094
|
-
|
|
1152
|
+
permission: isSet(object.permission)
|
|
1153
|
+
? exports.ParticipantPermission.fromJSON(object.permission)
|
|
1154
|
+
: undefined,
|
|
1155
|
+
region: isSet(object.region) ? String(object.region) : '',
|
|
1095
1156
|
isPublisher: isSet(object.isPublisher) ? Boolean(object.isPublisher) : false,
|
|
1096
1157
|
};
|
|
1097
1158
|
},
|
|
@@ -1101,7 +1162,7 @@ exports.ParticipantInfo = {
|
|
|
1101
1162
|
message.identity !== undefined && (obj.identity = message.identity);
|
|
1102
1163
|
message.state !== undefined && (obj.state = participantInfo_StateToJSON(message.state));
|
|
1103
1164
|
if (message.tracks) {
|
|
1104
|
-
obj.tracks = message.tracks.map((e) => e ? exports.TrackInfo.toJSON(e) : undefined);
|
|
1165
|
+
obj.tracks = message.tracks.map((e) => (e ? exports.TrackInfo.toJSON(e) : undefined));
|
|
1105
1166
|
}
|
|
1106
1167
|
else {
|
|
1107
1168
|
obj.tracks = [];
|
|
@@ -1111,7 +1172,9 @@ exports.ParticipantInfo = {
|
|
|
1111
1172
|
message.name !== undefined && (obj.name = message.name);
|
|
1112
1173
|
message.version !== undefined && (obj.version = Math.round(message.version));
|
|
1113
1174
|
message.permission !== undefined &&
|
|
1114
|
-
(obj.permission = message.permission
|
|
1175
|
+
(obj.permission = message.permission
|
|
1176
|
+
? exports.ParticipantPermission.toJSON(message.permission)
|
|
1177
|
+
: undefined);
|
|
1115
1178
|
message.region !== undefined && (obj.region = message.region);
|
|
1116
1179
|
message.isPublisher !== undefined && (obj.isPublisher = message.isPublisher);
|
|
1117
1180
|
return obj;
|
|
@@ -1119,18 +1182,19 @@ exports.ParticipantInfo = {
|
|
|
1119
1182
|
fromPartial(object) {
|
|
1120
1183
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1121
1184
|
const message = createBaseParticipantInfo();
|
|
1122
|
-
message.sid = (_a = object.sid) !== null && _a !== void 0 ? _a :
|
|
1123
|
-
message.identity = (_b = object.identity) !== null && _b !== void 0 ? _b :
|
|
1185
|
+
message.sid = (_a = object.sid) !== null && _a !== void 0 ? _a : '';
|
|
1186
|
+
message.identity = (_b = object.identity) !== null && _b !== void 0 ? _b : '';
|
|
1124
1187
|
message.state = (_c = object.state) !== null && _c !== void 0 ? _c : 0;
|
|
1125
1188
|
message.tracks = ((_d = object.tracks) === null || _d === void 0 ? void 0 : _d.map((e) => exports.TrackInfo.fromPartial(e))) || [];
|
|
1126
|
-
message.metadata = (_e = object.metadata) !== null && _e !== void 0 ? _e :
|
|
1189
|
+
message.metadata = (_e = object.metadata) !== null && _e !== void 0 ? _e : '';
|
|
1127
1190
|
message.joinedAt = (_f = object.joinedAt) !== null && _f !== void 0 ? _f : 0;
|
|
1128
|
-
message.name = (_g = object.name) !== null && _g !== void 0 ? _g :
|
|
1191
|
+
message.name = (_g = object.name) !== null && _g !== void 0 ? _g : '';
|
|
1129
1192
|
message.version = (_h = object.version) !== null && _h !== void 0 ? _h : 0;
|
|
1130
|
-
message.permission =
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1193
|
+
message.permission =
|
|
1194
|
+
object.permission !== undefined && object.permission !== null
|
|
1195
|
+
? exports.ParticipantPermission.fromPartial(object.permission)
|
|
1196
|
+
: undefined;
|
|
1197
|
+
message.region = (_j = object.region) !== null && _j !== void 0 ? _j : '';
|
|
1134
1198
|
message.isPublisher = (_k = object.isPublisher) !== null && _k !== void 0 ? _k : false;
|
|
1135
1199
|
return message;
|
|
1136
1200
|
},
|
|
@@ -1139,11 +1203,11 @@ function createBaseEncryption() {
|
|
|
1139
1203
|
return {};
|
|
1140
1204
|
}
|
|
1141
1205
|
exports.Encryption = {
|
|
1142
|
-
encode(_, writer =
|
|
1206
|
+
encode(_, writer = _m0.Writer.create()) {
|
|
1143
1207
|
return writer;
|
|
1144
1208
|
},
|
|
1145
1209
|
decode(input, length) {
|
|
1146
|
-
const reader = input instanceof
|
|
1210
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1147
1211
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1148
1212
|
const message = createBaseEncryption();
|
|
1149
1213
|
while (reader.pos < end) {
|
|
@@ -1169,17 +1233,17 @@ exports.Encryption = {
|
|
|
1169
1233
|
},
|
|
1170
1234
|
};
|
|
1171
1235
|
function createBaseSimulcastCodecInfo() {
|
|
1172
|
-
return { mimeType:
|
|
1236
|
+
return { mimeType: '', mid: '', cid: '', layers: [] };
|
|
1173
1237
|
}
|
|
1174
1238
|
exports.SimulcastCodecInfo = {
|
|
1175
|
-
encode(message, writer =
|
|
1176
|
-
if (message.mimeType !==
|
|
1239
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1240
|
+
if (message.mimeType !== '') {
|
|
1177
1241
|
writer.uint32(10).string(message.mimeType);
|
|
1178
1242
|
}
|
|
1179
|
-
if (message.mid !==
|
|
1243
|
+
if (message.mid !== '') {
|
|
1180
1244
|
writer.uint32(18).string(message.mid);
|
|
1181
1245
|
}
|
|
1182
|
-
if (message.cid !==
|
|
1246
|
+
if (message.cid !== '') {
|
|
1183
1247
|
writer.uint32(26).string(message.cid);
|
|
1184
1248
|
}
|
|
1185
1249
|
for (const v of message.layers) {
|
|
@@ -1188,7 +1252,7 @@ exports.SimulcastCodecInfo = {
|
|
|
1188
1252
|
return writer;
|
|
1189
1253
|
},
|
|
1190
1254
|
decode(input, length) {
|
|
1191
|
-
const reader = input instanceof
|
|
1255
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1192
1256
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1193
1257
|
const message = createBaseSimulcastCodecInfo();
|
|
1194
1258
|
while (reader.pos < end) {
|
|
@@ -1215,10 +1279,12 @@ exports.SimulcastCodecInfo = {
|
|
|
1215
1279
|
},
|
|
1216
1280
|
fromJSON(object) {
|
|
1217
1281
|
return {
|
|
1218
|
-
mimeType: isSet(object.mimeType) ? String(object.mimeType) :
|
|
1219
|
-
mid: isSet(object.mid) ? String(object.mid) :
|
|
1220
|
-
cid: isSet(object.cid) ? String(object.cid) :
|
|
1221
|
-
layers: Array.isArray(object === null || object === void 0 ? void 0 : object.layers)
|
|
1282
|
+
mimeType: isSet(object.mimeType) ? String(object.mimeType) : '',
|
|
1283
|
+
mid: isSet(object.mid) ? String(object.mid) : '',
|
|
1284
|
+
cid: isSet(object.cid) ? String(object.cid) : '',
|
|
1285
|
+
layers: Array.isArray(object === null || object === void 0 ? void 0 : object.layers)
|
|
1286
|
+
? object.layers.map((e) => exports.VideoLayer.fromJSON(e))
|
|
1287
|
+
: [],
|
|
1222
1288
|
};
|
|
1223
1289
|
},
|
|
1224
1290
|
toJSON(message) {
|
|
@@ -1227,7 +1293,7 @@ exports.SimulcastCodecInfo = {
|
|
|
1227
1293
|
message.mid !== undefined && (obj.mid = message.mid);
|
|
1228
1294
|
message.cid !== undefined && (obj.cid = message.cid);
|
|
1229
1295
|
if (message.layers) {
|
|
1230
|
-
obj.layers = message.layers.map((e) => e ? exports.VideoLayer.toJSON(e) : undefined);
|
|
1296
|
+
obj.layers = message.layers.map((e) => (e ? exports.VideoLayer.toJSON(e) : undefined));
|
|
1231
1297
|
}
|
|
1232
1298
|
else {
|
|
1233
1299
|
obj.layers = [];
|
|
@@ -1237,18 +1303,18 @@ exports.SimulcastCodecInfo = {
|
|
|
1237
1303
|
fromPartial(object) {
|
|
1238
1304
|
var _a, _b, _c, _d;
|
|
1239
1305
|
const message = createBaseSimulcastCodecInfo();
|
|
1240
|
-
message.mimeType = (_a = object.mimeType) !== null && _a !== void 0 ? _a :
|
|
1241
|
-
message.mid = (_b = object.mid) !== null && _b !== void 0 ? _b :
|
|
1242
|
-
message.cid = (_c = object.cid) !== null && _c !== void 0 ? _c :
|
|
1306
|
+
message.mimeType = (_a = object.mimeType) !== null && _a !== void 0 ? _a : '';
|
|
1307
|
+
message.mid = (_b = object.mid) !== null && _b !== void 0 ? _b : '';
|
|
1308
|
+
message.cid = (_c = object.cid) !== null && _c !== void 0 ? _c : '';
|
|
1243
1309
|
message.layers = ((_d = object.layers) === null || _d === void 0 ? void 0 : _d.map((e) => exports.VideoLayer.fromPartial(e))) || [];
|
|
1244
1310
|
return message;
|
|
1245
1311
|
},
|
|
1246
1312
|
};
|
|
1247
1313
|
function createBaseTrackInfo() {
|
|
1248
1314
|
return {
|
|
1249
|
-
sid:
|
|
1315
|
+
sid: '',
|
|
1250
1316
|
type: 0,
|
|
1251
|
-
name:
|
|
1317
|
+
name: '',
|
|
1252
1318
|
muted: false,
|
|
1253
1319
|
width: 0,
|
|
1254
1320
|
height: 0,
|
|
@@ -1256,8 +1322,8 @@ function createBaseTrackInfo() {
|
|
|
1256
1322
|
disableDtx: false,
|
|
1257
1323
|
source: 0,
|
|
1258
1324
|
layers: [],
|
|
1259
|
-
mimeType:
|
|
1260
|
-
mid:
|
|
1325
|
+
mimeType: '',
|
|
1326
|
+
mid: '',
|
|
1261
1327
|
codecs: [],
|
|
1262
1328
|
stereo: false,
|
|
1263
1329
|
disableRed: false,
|
|
@@ -1265,14 +1331,14 @@ function createBaseTrackInfo() {
|
|
|
1265
1331
|
};
|
|
1266
1332
|
}
|
|
1267
1333
|
exports.TrackInfo = {
|
|
1268
|
-
encode(message, writer =
|
|
1269
|
-
if (message.sid !==
|
|
1334
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1335
|
+
if (message.sid !== '') {
|
|
1270
1336
|
writer.uint32(10).string(message.sid);
|
|
1271
1337
|
}
|
|
1272
1338
|
if (message.type !== 0) {
|
|
1273
1339
|
writer.uint32(16).int32(message.type);
|
|
1274
1340
|
}
|
|
1275
|
-
if (message.name !==
|
|
1341
|
+
if (message.name !== '') {
|
|
1276
1342
|
writer.uint32(26).string(message.name);
|
|
1277
1343
|
}
|
|
1278
1344
|
if (message.muted === true) {
|
|
@@ -1296,10 +1362,10 @@ exports.TrackInfo = {
|
|
|
1296
1362
|
for (const v of message.layers) {
|
|
1297
1363
|
exports.VideoLayer.encode(v, writer.uint32(82).fork()).ldelim();
|
|
1298
1364
|
}
|
|
1299
|
-
if (message.mimeType !==
|
|
1365
|
+
if (message.mimeType !== '') {
|
|
1300
1366
|
writer.uint32(90).string(message.mimeType);
|
|
1301
1367
|
}
|
|
1302
|
-
if (message.mid !==
|
|
1368
|
+
if (message.mid !== '') {
|
|
1303
1369
|
writer.uint32(98).string(message.mid);
|
|
1304
1370
|
}
|
|
1305
1371
|
for (const v of message.codecs) {
|
|
@@ -1317,7 +1383,7 @@ exports.TrackInfo = {
|
|
|
1317
1383
|
return writer;
|
|
1318
1384
|
},
|
|
1319
1385
|
decode(input, length) {
|
|
1320
|
-
const reader = input instanceof
|
|
1386
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1321
1387
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1322
1388
|
const message = createBaseTrackInfo();
|
|
1323
1389
|
while (reader.pos < end) {
|
|
@@ -1380,19 +1446,23 @@ exports.TrackInfo = {
|
|
|
1380
1446
|
},
|
|
1381
1447
|
fromJSON(object) {
|
|
1382
1448
|
return {
|
|
1383
|
-
sid: isSet(object.sid) ? String(object.sid) :
|
|
1449
|
+
sid: isSet(object.sid) ? String(object.sid) : '',
|
|
1384
1450
|
type: isSet(object.type) ? trackTypeFromJSON(object.type) : 0,
|
|
1385
|
-
name: isSet(object.name) ? String(object.name) :
|
|
1451
|
+
name: isSet(object.name) ? String(object.name) : '',
|
|
1386
1452
|
muted: isSet(object.muted) ? Boolean(object.muted) : false,
|
|
1387
1453
|
width: isSet(object.width) ? Number(object.width) : 0,
|
|
1388
1454
|
height: isSet(object.height) ? Number(object.height) : 0,
|
|
1389
1455
|
simulcast: isSet(object.simulcast) ? Boolean(object.simulcast) : false,
|
|
1390
1456
|
disableDtx: isSet(object.disableDtx) ? Boolean(object.disableDtx) : false,
|
|
1391
1457
|
source: isSet(object.source) ? trackSourceFromJSON(object.source) : 0,
|
|
1392
|
-
layers: Array.isArray(object === null || object === void 0 ? void 0 : object.layers)
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1458
|
+
layers: Array.isArray(object === null || object === void 0 ? void 0 : object.layers)
|
|
1459
|
+
? object.layers.map((e) => exports.VideoLayer.fromJSON(e))
|
|
1460
|
+
: [],
|
|
1461
|
+
mimeType: isSet(object.mimeType) ? String(object.mimeType) : '',
|
|
1462
|
+
mid: isSet(object.mid) ? String(object.mid) : '',
|
|
1463
|
+
codecs: Array.isArray(object === null || object === void 0 ? void 0 : object.codecs)
|
|
1464
|
+
? object.codecs.map((e) => exports.SimulcastCodecInfo.fromJSON(e))
|
|
1465
|
+
: [],
|
|
1396
1466
|
stereo: isSet(object.stereo) ? Boolean(object.stereo) : false,
|
|
1397
1467
|
disableRed: isSet(object.disableRed) ? Boolean(object.disableRed) : false,
|
|
1398
1468
|
encryption: isSet(object.encryption) ? encryption_TypeFromJSON(object.encryption) : 0,
|
|
@@ -1410,7 +1480,7 @@ exports.TrackInfo = {
|
|
|
1410
1480
|
message.disableDtx !== undefined && (obj.disableDtx = message.disableDtx);
|
|
1411
1481
|
message.source !== undefined && (obj.source = trackSourceToJSON(message.source));
|
|
1412
1482
|
if (message.layers) {
|
|
1413
|
-
obj.layers = message.layers.map((e) => e ? exports.VideoLayer.toJSON(e) : undefined);
|
|
1483
|
+
obj.layers = message.layers.map((e) => (e ? exports.VideoLayer.toJSON(e) : undefined));
|
|
1414
1484
|
}
|
|
1415
1485
|
else {
|
|
1416
1486
|
obj.layers = [];
|
|
@@ -1418,22 +1488,23 @@ exports.TrackInfo = {
|
|
|
1418
1488
|
message.mimeType !== undefined && (obj.mimeType = message.mimeType);
|
|
1419
1489
|
message.mid !== undefined && (obj.mid = message.mid);
|
|
1420
1490
|
if (message.codecs) {
|
|
1421
|
-
obj.codecs = message.codecs.map((e) => e ? exports.SimulcastCodecInfo.toJSON(e) : undefined);
|
|
1491
|
+
obj.codecs = message.codecs.map((e) => (e ? exports.SimulcastCodecInfo.toJSON(e) : undefined));
|
|
1422
1492
|
}
|
|
1423
1493
|
else {
|
|
1424
1494
|
obj.codecs = [];
|
|
1425
1495
|
}
|
|
1426
1496
|
message.stereo !== undefined && (obj.stereo = message.stereo);
|
|
1427
1497
|
message.disableRed !== undefined && (obj.disableRed = message.disableRed);
|
|
1428
|
-
message.encryption !== undefined &&
|
|
1498
|
+
message.encryption !== undefined &&
|
|
1499
|
+
(obj.encryption = encryption_TypeToJSON(message.encryption));
|
|
1429
1500
|
return obj;
|
|
1430
1501
|
},
|
|
1431
1502
|
fromPartial(object) {
|
|
1432
1503
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
1433
1504
|
const message = createBaseTrackInfo();
|
|
1434
|
-
message.sid = (_a = object.sid) !== null && _a !== void 0 ? _a :
|
|
1505
|
+
message.sid = (_a = object.sid) !== null && _a !== void 0 ? _a : '';
|
|
1435
1506
|
message.type = (_b = object.type) !== null && _b !== void 0 ? _b : 0;
|
|
1436
|
-
message.name = (_c = object.name) !== null && _c !== void 0 ? _c :
|
|
1507
|
+
message.name = (_c = object.name) !== null && _c !== void 0 ? _c : '';
|
|
1437
1508
|
message.muted = (_d = object.muted) !== null && _d !== void 0 ? _d : false;
|
|
1438
1509
|
message.width = (_e = object.width) !== null && _e !== void 0 ? _e : 0;
|
|
1439
1510
|
message.height = (_f = object.height) !== null && _f !== void 0 ? _f : 0;
|
|
@@ -1441,8 +1512,8 @@ exports.TrackInfo = {
|
|
|
1441
1512
|
message.disableDtx = (_h = object.disableDtx) !== null && _h !== void 0 ? _h : false;
|
|
1442
1513
|
message.source = (_j = object.source) !== null && _j !== void 0 ? _j : 0;
|
|
1443
1514
|
message.layers = ((_k = object.layers) === null || _k === void 0 ? void 0 : _k.map((e) => exports.VideoLayer.fromPartial(e))) || [];
|
|
1444
|
-
message.mimeType = (_l = object.mimeType) !== null && _l !== void 0 ? _l :
|
|
1445
|
-
message.mid = (_m = object.mid) !== null && _m !== void 0 ? _m :
|
|
1515
|
+
message.mimeType = (_l = object.mimeType) !== null && _l !== void 0 ? _l : '';
|
|
1516
|
+
message.mid = (_m = object.mid) !== null && _m !== void 0 ? _m : '';
|
|
1446
1517
|
message.codecs = ((_o = object.codecs) === null || _o === void 0 ? void 0 : _o.map((e) => exports.SimulcastCodecInfo.fromPartial(e))) || [];
|
|
1447
1518
|
message.stereo = (_p = object.stereo) !== null && _p !== void 0 ? _p : false;
|
|
1448
1519
|
message.disableRed = (_q = object.disableRed) !== null && _q !== void 0 ? _q : false;
|
|
@@ -1454,7 +1525,7 @@ function createBaseVideoLayer() {
|
|
|
1454
1525
|
return { quality: 0, width: 0, height: 0, bitrate: 0, ssrc: 0 };
|
|
1455
1526
|
}
|
|
1456
1527
|
exports.VideoLayer = {
|
|
1457
|
-
encode(message, writer =
|
|
1528
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1458
1529
|
if (message.quality !== 0) {
|
|
1459
1530
|
writer.uint32(8).int32(message.quality);
|
|
1460
1531
|
}
|
|
@@ -1473,7 +1544,7 @@ exports.VideoLayer = {
|
|
|
1473
1544
|
return writer;
|
|
1474
1545
|
},
|
|
1475
1546
|
decode(input, length) {
|
|
1476
|
-
const reader = input instanceof
|
|
1547
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1477
1548
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1478
1549
|
const message = createBaseVideoLayer();
|
|
1479
1550
|
while (reader.pos < end) {
|
|
@@ -1534,7 +1605,7 @@ function createBaseDataPacket() {
|
|
|
1534
1605
|
return { kind: 0, user: undefined, speaker: undefined };
|
|
1535
1606
|
}
|
|
1536
1607
|
exports.DataPacket = {
|
|
1537
|
-
encode(message, writer =
|
|
1608
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1538
1609
|
if (message.kind !== 0) {
|
|
1539
1610
|
writer.uint32(8).int32(message.kind);
|
|
1540
1611
|
}
|
|
@@ -1547,7 +1618,7 @@ exports.DataPacket = {
|
|
|
1547
1618
|
return writer;
|
|
1548
1619
|
},
|
|
1549
1620
|
decode(input, length) {
|
|
1550
|
-
const reader = input instanceof
|
|
1621
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1551
1622
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1552
1623
|
const message = createBaseDataPacket();
|
|
1553
1624
|
while (reader.pos < end) {
|
|
@@ -1579,7 +1650,8 @@ exports.DataPacket = {
|
|
|
1579
1650
|
toJSON(message) {
|
|
1580
1651
|
const obj = {};
|
|
1581
1652
|
message.kind !== undefined && (obj.kind = dataPacket_KindToJSON(message.kind));
|
|
1582
|
-
message.user !== undefined &&
|
|
1653
|
+
message.user !== undefined &&
|
|
1654
|
+
(obj.user = message.user ? exports.UserPacket.toJSON(message.user) : undefined);
|
|
1583
1655
|
message.speaker !== undefined &&
|
|
1584
1656
|
(obj.speaker = message.speaker ? exports.ActiveSpeakerUpdate.toJSON(message.speaker) : undefined);
|
|
1585
1657
|
return obj;
|
|
@@ -1588,12 +1660,14 @@ exports.DataPacket = {
|
|
|
1588
1660
|
var _a;
|
|
1589
1661
|
const message = createBaseDataPacket();
|
|
1590
1662
|
message.kind = (_a = object.kind) !== null && _a !== void 0 ? _a : 0;
|
|
1591
|
-
message.user =
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1663
|
+
message.user =
|
|
1664
|
+
object.user !== undefined && object.user !== null
|
|
1665
|
+
? exports.UserPacket.fromPartial(object.user)
|
|
1666
|
+
: undefined;
|
|
1667
|
+
message.speaker =
|
|
1668
|
+
object.speaker !== undefined && object.speaker !== null
|
|
1669
|
+
? exports.ActiveSpeakerUpdate.fromPartial(object.speaker)
|
|
1670
|
+
: undefined;
|
|
1597
1671
|
return message;
|
|
1598
1672
|
},
|
|
1599
1673
|
};
|
|
@@ -1601,14 +1675,14 @@ function createBaseActiveSpeakerUpdate() {
|
|
|
1601
1675
|
return { speakers: [] };
|
|
1602
1676
|
}
|
|
1603
1677
|
exports.ActiveSpeakerUpdate = {
|
|
1604
|
-
encode(message, writer =
|
|
1678
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1605
1679
|
for (const v of message.speakers) {
|
|
1606
1680
|
exports.SpeakerInfo.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1607
1681
|
}
|
|
1608
1682
|
return writer;
|
|
1609
1683
|
},
|
|
1610
1684
|
decode(input, length) {
|
|
1611
|
-
const reader = input instanceof
|
|
1685
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1612
1686
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1613
1687
|
const message = createBaseActiveSpeakerUpdate();
|
|
1614
1688
|
while (reader.pos < end) {
|
|
@@ -1626,13 +1700,15 @@ exports.ActiveSpeakerUpdate = {
|
|
|
1626
1700
|
},
|
|
1627
1701
|
fromJSON(object) {
|
|
1628
1702
|
return {
|
|
1629
|
-
speakers: Array.isArray(object === null || object === void 0 ? void 0 : object.speakers)
|
|
1703
|
+
speakers: Array.isArray(object === null || object === void 0 ? void 0 : object.speakers)
|
|
1704
|
+
? object.speakers.map((e) => exports.SpeakerInfo.fromJSON(e))
|
|
1705
|
+
: [],
|
|
1630
1706
|
};
|
|
1631
1707
|
},
|
|
1632
1708
|
toJSON(message) {
|
|
1633
1709
|
const obj = {};
|
|
1634
1710
|
if (message.speakers) {
|
|
1635
|
-
obj.speakers = message.speakers.map((e) => e ? exports.SpeakerInfo.toJSON(e) : undefined);
|
|
1711
|
+
obj.speakers = message.speakers.map((e) => (e ? exports.SpeakerInfo.toJSON(e) : undefined));
|
|
1636
1712
|
}
|
|
1637
1713
|
else {
|
|
1638
1714
|
obj.speakers = [];
|
|
@@ -1647,11 +1723,11 @@ exports.ActiveSpeakerUpdate = {
|
|
|
1647
1723
|
},
|
|
1648
1724
|
};
|
|
1649
1725
|
function createBaseSpeakerInfo() {
|
|
1650
|
-
return { sid:
|
|
1726
|
+
return { sid: '', level: 0, active: false };
|
|
1651
1727
|
}
|
|
1652
1728
|
exports.SpeakerInfo = {
|
|
1653
|
-
encode(message, writer =
|
|
1654
|
-
if (message.sid !==
|
|
1729
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1730
|
+
if (message.sid !== '') {
|
|
1655
1731
|
writer.uint32(10).string(message.sid);
|
|
1656
1732
|
}
|
|
1657
1733
|
if (message.level !== 0) {
|
|
@@ -1663,7 +1739,7 @@ exports.SpeakerInfo = {
|
|
|
1663
1739
|
return writer;
|
|
1664
1740
|
},
|
|
1665
1741
|
decode(input, length) {
|
|
1666
|
-
const reader = input instanceof
|
|
1742
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1667
1743
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1668
1744
|
const message = createBaseSpeakerInfo();
|
|
1669
1745
|
while (reader.pos < end) {
|
|
@@ -1687,7 +1763,7 @@ exports.SpeakerInfo = {
|
|
|
1687
1763
|
},
|
|
1688
1764
|
fromJSON(object) {
|
|
1689
1765
|
return {
|
|
1690
|
-
sid: isSet(object.sid) ? String(object.sid) :
|
|
1766
|
+
sid: isSet(object.sid) ? String(object.sid) : '',
|
|
1691
1767
|
level: isSet(object.level) ? Number(object.level) : 0,
|
|
1692
1768
|
active: isSet(object.active) ? Boolean(object.active) : false,
|
|
1693
1769
|
};
|
|
@@ -1702,18 +1778,18 @@ exports.SpeakerInfo = {
|
|
|
1702
1778
|
fromPartial(object) {
|
|
1703
1779
|
var _a, _b, _c;
|
|
1704
1780
|
const message = createBaseSpeakerInfo();
|
|
1705
|
-
message.sid = (_a = object.sid) !== null && _a !== void 0 ? _a :
|
|
1781
|
+
message.sid = (_a = object.sid) !== null && _a !== void 0 ? _a : '';
|
|
1706
1782
|
message.level = (_b = object.level) !== null && _b !== void 0 ? _b : 0;
|
|
1707
1783
|
message.active = (_c = object.active) !== null && _c !== void 0 ? _c : false;
|
|
1708
1784
|
return message;
|
|
1709
1785
|
},
|
|
1710
1786
|
};
|
|
1711
1787
|
function createBaseUserPacket() {
|
|
1712
|
-
return { participantSid:
|
|
1788
|
+
return { participantSid: '', payload: new Uint8Array(), destinationSids: [], topic: undefined };
|
|
1713
1789
|
}
|
|
1714
1790
|
exports.UserPacket = {
|
|
1715
|
-
encode(message, writer =
|
|
1716
|
-
if (message.participantSid !==
|
|
1791
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1792
|
+
if (message.participantSid !== '') {
|
|
1717
1793
|
writer.uint32(10).string(message.participantSid);
|
|
1718
1794
|
}
|
|
1719
1795
|
if (message.payload.length !== 0) {
|
|
@@ -1728,7 +1804,7 @@ exports.UserPacket = {
|
|
|
1728
1804
|
return writer;
|
|
1729
1805
|
},
|
|
1730
1806
|
decode(input, length) {
|
|
1731
|
-
const reader = input instanceof
|
|
1807
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1732
1808
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1733
1809
|
const message = createBaseUserPacket();
|
|
1734
1810
|
while (reader.pos < end) {
|
|
@@ -1755,9 +1831,11 @@ exports.UserPacket = {
|
|
|
1755
1831
|
},
|
|
1756
1832
|
fromJSON(object) {
|
|
1757
1833
|
return {
|
|
1758
|
-
participantSid: isSet(object.participantSid) ? String(object.participantSid) :
|
|
1834
|
+
participantSid: isSet(object.participantSid) ? String(object.participantSid) : '',
|
|
1759
1835
|
payload: isSet(object.payload) ? bytesFromBase64(object.payload) : new Uint8Array(),
|
|
1760
|
-
destinationSids: Array.isArray(object === null || object === void 0 ? void 0 : object.destinationSids)
|
|
1836
|
+
destinationSids: Array.isArray(object === null || object === void 0 ? void 0 : object.destinationSids)
|
|
1837
|
+
? object.destinationSids.map((e) => String(e))
|
|
1838
|
+
: [],
|
|
1761
1839
|
topic: isSet(object.topic) ? String(object.topic) : undefined,
|
|
1762
1840
|
};
|
|
1763
1841
|
},
|
|
@@ -1778,7 +1856,7 @@ exports.UserPacket = {
|
|
|
1778
1856
|
fromPartial(object) {
|
|
1779
1857
|
var _a, _b, _c, _d;
|
|
1780
1858
|
const message = createBaseUserPacket();
|
|
1781
|
-
message.participantSid = (_a = object.participantSid) !== null && _a !== void 0 ? _a :
|
|
1859
|
+
message.participantSid = (_a = object.participantSid) !== null && _a !== void 0 ? _a : '';
|
|
1782
1860
|
message.payload = (_b = object.payload) !== null && _b !== void 0 ? _b : new Uint8Array();
|
|
1783
1861
|
message.destinationSids = ((_c = object.destinationSids) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
1784
1862
|
message.topic = (_d = object.topic) !== null && _d !== void 0 ? _d : undefined;
|
|
@@ -1786,11 +1864,11 @@ exports.UserPacket = {
|
|
|
1786
1864
|
},
|
|
1787
1865
|
};
|
|
1788
1866
|
function createBaseParticipantTracks() {
|
|
1789
|
-
return { participantSid:
|
|
1867
|
+
return { participantSid: '', trackSids: [] };
|
|
1790
1868
|
}
|
|
1791
1869
|
exports.ParticipantTracks = {
|
|
1792
|
-
encode(message, writer =
|
|
1793
|
-
if (message.participantSid !==
|
|
1870
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1871
|
+
if (message.participantSid !== '') {
|
|
1794
1872
|
writer.uint32(10).string(message.participantSid);
|
|
1795
1873
|
}
|
|
1796
1874
|
for (const v of message.trackSids) {
|
|
@@ -1799,7 +1877,7 @@ exports.ParticipantTracks = {
|
|
|
1799
1877
|
return writer;
|
|
1800
1878
|
},
|
|
1801
1879
|
decode(input, length) {
|
|
1802
|
-
const reader = input instanceof
|
|
1880
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1803
1881
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1804
1882
|
const message = createBaseParticipantTracks();
|
|
1805
1883
|
while (reader.pos < end) {
|
|
@@ -1820,8 +1898,10 @@ exports.ParticipantTracks = {
|
|
|
1820
1898
|
},
|
|
1821
1899
|
fromJSON(object) {
|
|
1822
1900
|
return {
|
|
1823
|
-
participantSid: isSet(object.participantSid) ? String(object.participantSid) :
|
|
1824
|
-
trackSids: Array.isArray(object === null || object === void 0 ? void 0 : object.trackSids)
|
|
1901
|
+
participantSid: isSet(object.participantSid) ? String(object.participantSid) : '',
|
|
1902
|
+
trackSids: Array.isArray(object === null || object === void 0 ? void 0 : object.trackSids)
|
|
1903
|
+
? object.trackSids.map((e) => String(e))
|
|
1904
|
+
: [],
|
|
1825
1905
|
};
|
|
1826
1906
|
},
|
|
1827
1907
|
toJSON(message) {
|
|
@@ -1838,38 +1918,38 @@ exports.ParticipantTracks = {
|
|
|
1838
1918
|
fromPartial(object) {
|
|
1839
1919
|
var _a, _b;
|
|
1840
1920
|
const message = createBaseParticipantTracks();
|
|
1841
|
-
message.participantSid = (_a = object.participantSid) !== null && _a !== void 0 ? _a :
|
|
1921
|
+
message.participantSid = (_a = object.participantSid) !== null && _a !== void 0 ? _a : '';
|
|
1842
1922
|
message.trackSids = ((_b = object.trackSids) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
1843
1923
|
return message;
|
|
1844
1924
|
},
|
|
1845
1925
|
};
|
|
1846
1926
|
function createBaseServerInfo() {
|
|
1847
|
-
return { edition: 0, version:
|
|
1927
|
+
return { edition: 0, version: '', protocol: 0, region: '', nodeId: '', debugInfo: '' };
|
|
1848
1928
|
}
|
|
1849
1929
|
exports.ServerInfo = {
|
|
1850
|
-
encode(message, writer =
|
|
1930
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1851
1931
|
if (message.edition !== 0) {
|
|
1852
1932
|
writer.uint32(8).int32(message.edition);
|
|
1853
1933
|
}
|
|
1854
|
-
if (message.version !==
|
|
1934
|
+
if (message.version !== '') {
|
|
1855
1935
|
writer.uint32(18).string(message.version);
|
|
1856
1936
|
}
|
|
1857
1937
|
if (message.protocol !== 0) {
|
|
1858
1938
|
writer.uint32(24).int32(message.protocol);
|
|
1859
1939
|
}
|
|
1860
|
-
if (message.region !==
|
|
1940
|
+
if (message.region !== '') {
|
|
1861
1941
|
writer.uint32(34).string(message.region);
|
|
1862
1942
|
}
|
|
1863
|
-
if (message.nodeId !==
|
|
1943
|
+
if (message.nodeId !== '') {
|
|
1864
1944
|
writer.uint32(42).string(message.nodeId);
|
|
1865
1945
|
}
|
|
1866
|
-
if (message.debugInfo !==
|
|
1946
|
+
if (message.debugInfo !== '') {
|
|
1867
1947
|
writer.uint32(50).string(message.debugInfo);
|
|
1868
1948
|
}
|
|
1869
1949
|
return writer;
|
|
1870
1950
|
},
|
|
1871
1951
|
decode(input, length) {
|
|
1872
|
-
const reader = input instanceof
|
|
1952
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1873
1953
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1874
1954
|
const message = createBaseServerInfo();
|
|
1875
1955
|
while (reader.pos < end) {
|
|
@@ -1903,11 +1983,11 @@ exports.ServerInfo = {
|
|
|
1903
1983
|
fromJSON(object) {
|
|
1904
1984
|
return {
|
|
1905
1985
|
edition: isSet(object.edition) ? serverInfo_EditionFromJSON(object.edition) : 0,
|
|
1906
|
-
version: isSet(object.version) ? String(object.version) :
|
|
1986
|
+
version: isSet(object.version) ? String(object.version) : '',
|
|
1907
1987
|
protocol: isSet(object.protocol) ? Number(object.protocol) : 0,
|
|
1908
|
-
region: isSet(object.region) ? String(object.region) :
|
|
1909
|
-
nodeId: isSet(object.nodeId) ? String(object.nodeId) :
|
|
1910
|
-
debugInfo: isSet(object.debugInfo) ? String(object.debugInfo) :
|
|
1988
|
+
region: isSet(object.region) ? String(object.region) : '',
|
|
1989
|
+
nodeId: isSet(object.nodeId) ? String(object.nodeId) : '',
|
|
1990
|
+
debugInfo: isSet(object.debugInfo) ? String(object.debugInfo) : '',
|
|
1911
1991
|
};
|
|
1912
1992
|
},
|
|
1913
1993
|
toJSON(message) {
|
|
@@ -1924,64 +2004,64 @@ exports.ServerInfo = {
|
|
|
1924
2004
|
var _a, _b, _c, _d, _e, _f;
|
|
1925
2005
|
const message = createBaseServerInfo();
|
|
1926
2006
|
message.edition = (_a = object.edition) !== null && _a !== void 0 ? _a : 0;
|
|
1927
|
-
message.version = (_b = object.version) !== null && _b !== void 0 ? _b :
|
|
2007
|
+
message.version = (_b = object.version) !== null && _b !== void 0 ? _b : '';
|
|
1928
2008
|
message.protocol = (_c = object.protocol) !== null && _c !== void 0 ? _c : 0;
|
|
1929
|
-
message.region = (_d = object.region) !== null && _d !== void 0 ? _d :
|
|
1930
|
-
message.nodeId = (_e = object.nodeId) !== null && _e !== void 0 ? _e :
|
|
1931
|
-
message.debugInfo = (_f = object.debugInfo) !== null && _f !== void 0 ? _f :
|
|
2009
|
+
message.region = (_d = object.region) !== null && _d !== void 0 ? _d : '';
|
|
2010
|
+
message.nodeId = (_e = object.nodeId) !== null && _e !== void 0 ? _e : '';
|
|
2011
|
+
message.debugInfo = (_f = object.debugInfo) !== null && _f !== void 0 ? _f : '';
|
|
1932
2012
|
return message;
|
|
1933
2013
|
},
|
|
1934
2014
|
};
|
|
1935
2015
|
function createBaseClientInfo() {
|
|
1936
2016
|
return {
|
|
1937
2017
|
sdk: 0,
|
|
1938
|
-
version:
|
|
2018
|
+
version: '',
|
|
1939
2019
|
protocol: 0,
|
|
1940
|
-
os:
|
|
1941
|
-
osVersion:
|
|
1942
|
-
deviceModel:
|
|
1943
|
-
browser:
|
|
1944
|
-
browserVersion:
|
|
1945
|
-
address:
|
|
1946
|
-
network:
|
|
2020
|
+
os: '',
|
|
2021
|
+
osVersion: '',
|
|
2022
|
+
deviceModel: '',
|
|
2023
|
+
browser: '',
|
|
2024
|
+
browserVersion: '',
|
|
2025
|
+
address: '',
|
|
2026
|
+
network: '',
|
|
1947
2027
|
};
|
|
1948
2028
|
}
|
|
1949
2029
|
exports.ClientInfo = {
|
|
1950
|
-
encode(message, writer =
|
|
2030
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1951
2031
|
if (message.sdk !== 0) {
|
|
1952
2032
|
writer.uint32(8).int32(message.sdk);
|
|
1953
2033
|
}
|
|
1954
|
-
if (message.version !==
|
|
2034
|
+
if (message.version !== '') {
|
|
1955
2035
|
writer.uint32(18).string(message.version);
|
|
1956
2036
|
}
|
|
1957
2037
|
if (message.protocol !== 0) {
|
|
1958
2038
|
writer.uint32(24).int32(message.protocol);
|
|
1959
2039
|
}
|
|
1960
|
-
if (message.os !==
|
|
2040
|
+
if (message.os !== '') {
|
|
1961
2041
|
writer.uint32(34).string(message.os);
|
|
1962
2042
|
}
|
|
1963
|
-
if (message.osVersion !==
|
|
2043
|
+
if (message.osVersion !== '') {
|
|
1964
2044
|
writer.uint32(42).string(message.osVersion);
|
|
1965
2045
|
}
|
|
1966
|
-
if (message.deviceModel !==
|
|
2046
|
+
if (message.deviceModel !== '') {
|
|
1967
2047
|
writer.uint32(50).string(message.deviceModel);
|
|
1968
2048
|
}
|
|
1969
|
-
if (message.browser !==
|
|
2049
|
+
if (message.browser !== '') {
|
|
1970
2050
|
writer.uint32(58).string(message.browser);
|
|
1971
2051
|
}
|
|
1972
|
-
if (message.browserVersion !==
|
|
2052
|
+
if (message.browserVersion !== '') {
|
|
1973
2053
|
writer.uint32(66).string(message.browserVersion);
|
|
1974
2054
|
}
|
|
1975
|
-
if (message.address !==
|
|
2055
|
+
if (message.address !== '') {
|
|
1976
2056
|
writer.uint32(74).string(message.address);
|
|
1977
2057
|
}
|
|
1978
|
-
if (message.network !==
|
|
2058
|
+
if (message.network !== '') {
|
|
1979
2059
|
writer.uint32(82).string(message.network);
|
|
1980
2060
|
}
|
|
1981
2061
|
return writer;
|
|
1982
2062
|
},
|
|
1983
2063
|
decode(input, length) {
|
|
1984
|
-
const reader = input instanceof
|
|
2064
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1985
2065
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1986
2066
|
const message = createBaseClientInfo();
|
|
1987
2067
|
while (reader.pos < end) {
|
|
@@ -2027,15 +2107,15 @@ exports.ClientInfo = {
|
|
|
2027
2107
|
fromJSON(object) {
|
|
2028
2108
|
return {
|
|
2029
2109
|
sdk: isSet(object.sdk) ? clientInfo_SDKFromJSON(object.sdk) : 0,
|
|
2030
|
-
version: isSet(object.version) ? String(object.version) :
|
|
2110
|
+
version: isSet(object.version) ? String(object.version) : '',
|
|
2031
2111
|
protocol: isSet(object.protocol) ? Number(object.protocol) : 0,
|
|
2032
|
-
os: isSet(object.os) ? String(object.os) :
|
|
2033
|
-
osVersion: isSet(object.osVersion) ? String(object.osVersion) :
|
|
2034
|
-
deviceModel: isSet(object.deviceModel) ? String(object.deviceModel) :
|
|
2035
|
-
browser: isSet(object.browser) ? String(object.browser) :
|
|
2036
|
-
browserVersion: isSet(object.browserVersion) ? String(object.browserVersion) :
|
|
2037
|
-
address: isSet(object.address) ? String(object.address) :
|
|
2038
|
-
network: isSet(object.network) ? String(object.network) :
|
|
2112
|
+
os: isSet(object.os) ? String(object.os) : '',
|
|
2113
|
+
osVersion: isSet(object.osVersion) ? String(object.osVersion) : '',
|
|
2114
|
+
deviceModel: isSet(object.deviceModel) ? String(object.deviceModel) : '',
|
|
2115
|
+
browser: isSet(object.browser) ? String(object.browser) : '',
|
|
2116
|
+
browserVersion: isSet(object.browserVersion) ? String(object.browserVersion) : '',
|
|
2117
|
+
address: isSet(object.address) ? String(object.address) : '',
|
|
2118
|
+
network: isSet(object.network) ? String(object.network) : '',
|
|
2039
2119
|
};
|
|
2040
2120
|
},
|
|
2041
2121
|
toJSON(message) {
|
|
@@ -2056,23 +2136,29 @@ exports.ClientInfo = {
|
|
|
2056
2136
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2057
2137
|
const message = createBaseClientInfo();
|
|
2058
2138
|
message.sdk = (_a = object.sdk) !== null && _a !== void 0 ? _a : 0;
|
|
2059
|
-
message.version = (_b = object.version) !== null && _b !== void 0 ? _b :
|
|
2139
|
+
message.version = (_b = object.version) !== null && _b !== void 0 ? _b : '';
|
|
2060
2140
|
message.protocol = (_c = object.protocol) !== null && _c !== void 0 ? _c : 0;
|
|
2061
|
-
message.os = (_d = object.os) !== null && _d !== void 0 ? _d :
|
|
2062
|
-
message.osVersion = (_e = object.osVersion) !== null && _e !== void 0 ? _e :
|
|
2063
|
-
message.deviceModel = (_f = object.deviceModel) !== null && _f !== void 0 ? _f :
|
|
2064
|
-
message.browser = (_g = object.browser) !== null && _g !== void 0 ? _g :
|
|
2065
|
-
message.browserVersion = (_h = object.browserVersion) !== null && _h !== void 0 ? _h :
|
|
2066
|
-
message.address = (_j = object.address) !== null && _j !== void 0 ? _j :
|
|
2067
|
-
message.network = (_k = object.network) !== null && _k !== void 0 ? _k :
|
|
2141
|
+
message.os = (_d = object.os) !== null && _d !== void 0 ? _d : '';
|
|
2142
|
+
message.osVersion = (_e = object.osVersion) !== null && _e !== void 0 ? _e : '';
|
|
2143
|
+
message.deviceModel = (_f = object.deviceModel) !== null && _f !== void 0 ? _f : '';
|
|
2144
|
+
message.browser = (_g = object.browser) !== null && _g !== void 0 ? _g : '';
|
|
2145
|
+
message.browserVersion = (_h = object.browserVersion) !== null && _h !== void 0 ? _h : '';
|
|
2146
|
+
message.address = (_j = object.address) !== null && _j !== void 0 ? _j : '';
|
|
2147
|
+
message.network = (_k = object.network) !== null && _k !== void 0 ? _k : '';
|
|
2068
2148
|
return message;
|
|
2069
2149
|
},
|
|
2070
2150
|
};
|
|
2071
2151
|
function createBaseClientConfiguration() {
|
|
2072
|
-
return {
|
|
2152
|
+
return {
|
|
2153
|
+
video: undefined,
|
|
2154
|
+
screen: undefined,
|
|
2155
|
+
resumeConnection: 0,
|
|
2156
|
+
disabledCodecs: undefined,
|
|
2157
|
+
forceRelay: 0,
|
|
2158
|
+
};
|
|
2073
2159
|
}
|
|
2074
2160
|
exports.ClientConfiguration = {
|
|
2075
|
-
encode(message, writer =
|
|
2161
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2076
2162
|
if (message.video !== undefined) {
|
|
2077
2163
|
exports.VideoConfiguration.encode(message.video, writer.uint32(10).fork()).ldelim();
|
|
2078
2164
|
}
|
|
@@ -2091,7 +2177,7 @@ exports.ClientConfiguration = {
|
|
|
2091
2177
|
return writer;
|
|
2092
2178
|
},
|
|
2093
2179
|
decode(input, length) {
|
|
2094
|
-
const reader = input instanceof
|
|
2180
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2095
2181
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2096
2182
|
const message = createBaseClientConfiguration();
|
|
2097
2183
|
while (reader.pos < end) {
|
|
@@ -2123,36 +2209,47 @@ exports.ClientConfiguration = {
|
|
|
2123
2209
|
return {
|
|
2124
2210
|
video: isSet(object.video) ? exports.VideoConfiguration.fromJSON(object.video) : undefined,
|
|
2125
2211
|
screen: isSet(object.screen) ? exports.VideoConfiguration.fromJSON(object.screen) : undefined,
|
|
2126
|
-
resumeConnection: isSet(object.resumeConnection)
|
|
2127
|
-
|
|
2212
|
+
resumeConnection: isSet(object.resumeConnection)
|
|
2213
|
+
? clientConfigSettingFromJSON(object.resumeConnection)
|
|
2214
|
+
: 0,
|
|
2215
|
+
disabledCodecs: isSet(object.disabledCodecs)
|
|
2216
|
+
? exports.DisabledCodecs.fromJSON(object.disabledCodecs)
|
|
2217
|
+
: undefined,
|
|
2128
2218
|
forceRelay: isSet(object.forceRelay) ? clientConfigSettingFromJSON(object.forceRelay) : 0,
|
|
2129
2219
|
};
|
|
2130
2220
|
},
|
|
2131
2221
|
toJSON(message) {
|
|
2132
2222
|
const obj = {};
|
|
2133
|
-
message.video !== undefined &&
|
|
2223
|
+
message.video !== undefined &&
|
|
2224
|
+
(obj.video = message.video ? exports.VideoConfiguration.toJSON(message.video) : undefined);
|
|
2134
2225
|
message.screen !== undefined &&
|
|
2135
2226
|
(obj.screen = message.screen ? exports.VideoConfiguration.toJSON(message.screen) : undefined);
|
|
2136
2227
|
message.resumeConnection !== undefined &&
|
|
2137
2228
|
(obj.resumeConnection = clientConfigSettingToJSON(message.resumeConnection));
|
|
2138
2229
|
message.disabledCodecs !== undefined &&
|
|
2139
|
-
(obj.disabledCodecs = message.disabledCodecs
|
|
2140
|
-
|
|
2230
|
+
(obj.disabledCodecs = message.disabledCodecs
|
|
2231
|
+
? exports.DisabledCodecs.toJSON(message.disabledCodecs)
|
|
2232
|
+
: undefined);
|
|
2233
|
+
message.forceRelay !== undefined &&
|
|
2234
|
+
(obj.forceRelay = clientConfigSettingToJSON(message.forceRelay));
|
|
2141
2235
|
return obj;
|
|
2142
2236
|
},
|
|
2143
2237
|
fromPartial(object) {
|
|
2144
2238
|
var _a, _b;
|
|
2145
2239
|
const message = createBaseClientConfiguration();
|
|
2146
|
-
message.video =
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2240
|
+
message.video =
|
|
2241
|
+
object.video !== undefined && object.video !== null
|
|
2242
|
+
? exports.VideoConfiguration.fromPartial(object.video)
|
|
2243
|
+
: undefined;
|
|
2244
|
+
message.screen =
|
|
2245
|
+
object.screen !== undefined && object.screen !== null
|
|
2246
|
+
? exports.VideoConfiguration.fromPartial(object.screen)
|
|
2247
|
+
: undefined;
|
|
2152
2248
|
message.resumeConnection = (_a = object.resumeConnection) !== null && _a !== void 0 ? _a : 0;
|
|
2153
|
-
message.disabledCodecs =
|
|
2154
|
-
|
|
2155
|
-
|
|
2249
|
+
message.disabledCodecs =
|
|
2250
|
+
object.disabledCodecs !== undefined && object.disabledCodecs !== null
|
|
2251
|
+
? exports.DisabledCodecs.fromPartial(object.disabledCodecs)
|
|
2252
|
+
: undefined;
|
|
2156
2253
|
message.forceRelay = (_b = object.forceRelay) !== null && _b !== void 0 ? _b : 0;
|
|
2157
2254
|
return message;
|
|
2158
2255
|
},
|
|
@@ -2161,14 +2258,14 @@ function createBaseVideoConfiguration() {
|
|
|
2161
2258
|
return { hardwareEncoder: 0 };
|
|
2162
2259
|
}
|
|
2163
2260
|
exports.VideoConfiguration = {
|
|
2164
|
-
encode(message, writer =
|
|
2261
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2165
2262
|
if (message.hardwareEncoder !== 0) {
|
|
2166
2263
|
writer.uint32(8).int32(message.hardwareEncoder);
|
|
2167
2264
|
}
|
|
2168
2265
|
return writer;
|
|
2169
2266
|
},
|
|
2170
2267
|
decode(input, length) {
|
|
2171
|
-
const reader = input instanceof
|
|
2268
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2172
2269
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2173
2270
|
const message = createBaseVideoConfiguration();
|
|
2174
2271
|
while (reader.pos < end) {
|
|
@@ -2185,11 +2282,16 @@ exports.VideoConfiguration = {
|
|
|
2185
2282
|
return message;
|
|
2186
2283
|
},
|
|
2187
2284
|
fromJSON(object) {
|
|
2188
|
-
return {
|
|
2285
|
+
return {
|
|
2286
|
+
hardwareEncoder: isSet(object.hardwareEncoder)
|
|
2287
|
+
? clientConfigSettingFromJSON(object.hardwareEncoder)
|
|
2288
|
+
: 0,
|
|
2289
|
+
};
|
|
2189
2290
|
},
|
|
2190
2291
|
toJSON(message) {
|
|
2191
2292
|
const obj = {};
|
|
2192
|
-
message.hardwareEncoder !== undefined &&
|
|
2293
|
+
message.hardwareEncoder !== undefined &&
|
|
2294
|
+
(obj.hardwareEncoder = clientConfigSettingToJSON(message.hardwareEncoder));
|
|
2193
2295
|
return obj;
|
|
2194
2296
|
},
|
|
2195
2297
|
fromPartial(object) {
|
|
@@ -2200,17 +2302,20 @@ exports.VideoConfiguration = {
|
|
|
2200
2302
|
},
|
|
2201
2303
|
};
|
|
2202
2304
|
function createBaseDisabledCodecs() {
|
|
2203
|
-
return { codecs: [] };
|
|
2305
|
+
return { codecs: [], publish: [] };
|
|
2204
2306
|
}
|
|
2205
2307
|
exports.DisabledCodecs = {
|
|
2206
|
-
encode(message, writer =
|
|
2308
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2207
2309
|
for (const v of message.codecs) {
|
|
2208
2310
|
exports.Codec.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2209
2311
|
}
|
|
2312
|
+
for (const v of message.publish) {
|
|
2313
|
+
exports.Codec.encode(v, writer.uint32(18).fork()).ldelim();
|
|
2314
|
+
}
|
|
2210
2315
|
return writer;
|
|
2211
2316
|
},
|
|
2212
2317
|
decode(input, length) {
|
|
2213
|
-
const reader = input instanceof
|
|
2318
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2214
2319
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2215
2320
|
const message = createBaseDisabledCodecs();
|
|
2216
2321
|
while (reader.pos < end) {
|
|
@@ -2219,6 +2324,9 @@ exports.DisabledCodecs = {
|
|
|
2219
2324
|
case 1:
|
|
2220
2325
|
message.codecs.push(exports.Codec.decode(reader, reader.uint32()));
|
|
2221
2326
|
break;
|
|
2327
|
+
case 2:
|
|
2328
|
+
message.publish.push(exports.Codec.decode(reader, reader.uint32()));
|
|
2329
|
+
break;
|
|
2222
2330
|
default:
|
|
2223
2331
|
reader.skipType(tag & 7);
|
|
2224
2332
|
break;
|
|
@@ -2227,22 +2335,34 @@ exports.DisabledCodecs = {
|
|
|
2227
2335
|
return message;
|
|
2228
2336
|
},
|
|
2229
2337
|
fromJSON(object) {
|
|
2230
|
-
return {
|
|
2338
|
+
return {
|
|
2339
|
+
codecs: Array.isArray(object === null || object === void 0 ? void 0 : object.codecs) ? object.codecs.map((e) => exports.Codec.fromJSON(e)) : [],
|
|
2340
|
+
publish: Array.isArray(object === null || object === void 0 ? void 0 : object.publish)
|
|
2341
|
+
? object.publish.map((e) => exports.Codec.fromJSON(e))
|
|
2342
|
+
: [],
|
|
2343
|
+
};
|
|
2231
2344
|
},
|
|
2232
2345
|
toJSON(message) {
|
|
2233
2346
|
const obj = {};
|
|
2234
2347
|
if (message.codecs) {
|
|
2235
|
-
obj.codecs = message.codecs.map((e) => e ? exports.Codec.toJSON(e) : undefined);
|
|
2348
|
+
obj.codecs = message.codecs.map((e) => (e ? exports.Codec.toJSON(e) : undefined));
|
|
2236
2349
|
}
|
|
2237
2350
|
else {
|
|
2238
2351
|
obj.codecs = [];
|
|
2239
2352
|
}
|
|
2353
|
+
if (message.publish) {
|
|
2354
|
+
obj.publish = message.publish.map((e) => (e ? exports.Codec.toJSON(e) : undefined));
|
|
2355
|
+
}
|
|
2356
|
+
else {
|
|
2357
|
+
obj.publish = [];
|
|
2358
|
+
}
|
|
2240
2359
|
return obj;
|
|
2241
2360
|
},
|
|
2242
2361
|
fromPartial(object) {
|
|
2243
|
-
var _a;
|
|
2362
|
+
var _a, _b;
|
|
2244
2363
|
const message = createBaseDisabledCodecs();
|
|
2245
2364
|
message.codecs = ((_a = object.codecs) === null || _a === void 0 ? void 0 : _a.map((e) => exports.Codec.fromPartial(e))) || [];
|
|
2365
|
+
message.publish = ((_b = object.publish) === null || _b === void 0 ? void 0 : _b.map((e) => exports.Codec.fromPartial(e))) || [];
|
|
2246
2366
|
return message;
|
|
2247
2367
|
},
|
|
2248
2368
|
};
|
|
@@ -2289,10 +2409,12 @@ function createBaseRTPStats() {
|
|
|
2289
2409
|
lastKeyFrame: undefined,
|
|
2290
2410
|
layerLockPlis: 0,
|
|
2291
2411
|
lastLayerLockPli: undefined,
|
|
2412
|
+
sampleRate: 0,
|
|
2413
|
+
driftMs: 0,
|
|
2292
2414
|
};
|
|
2293
2415
|
}
|
|
2294
2416
|
exports.RTPStats = {
|
|
2295
|
-
encode(message, writer =
|
|
2417
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2296
2418
|
if (message.startTime !== undefined) {
|
|
2297
2419
|
timestamp_1.Timestamp.encode(toTimestamp(message.startTime), writer.uint32(10).fork()).ldelim();
|
|
2298
2420
|
}
|
|
@@ -2416,10 +2538,16 @@ exports.RTPStats = {
|
|
|
2416
2538
|
if (message.lastLayerLockPli !== undefined) {
|
|
2417
2539
|
timestamp_1.Timestamp.encode(toTimestamp(message.lastLayerLockPli), writer.uint32(290).fork()).ldelim();
|
|
2418
2540
|
}
|
|
2541
|
+
if (message.sampleRate !== 0) {
|
|
2542
|
+
writer.uint32(337).double(message.sampleRate);
|
|
2543
|
+
}
|
|
2544
|
+
if (message.driftMs !== 0) {
|
|
2545
|
+
writer.uint32(345).double(message.driftMs);
|
|
2546
|
+
}
|
|
2419
2547
|
return writer;
|
|
2420
2548
|
},
|
|
2421
2549
|
decode(input, length) {
|
|
2422
|
-
const reader = input instanceof
|
|
2550
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2423
2551
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2424
2552
|
const message = createBaseRTPStats();
|
|
2425
2553
|
while (reader.pos < end) {
|
|
@@ -2551,6 +2679,12 @@ exports.RTPStats = {
|
|
|
2551
2679
|
case 36:
|
|
2552
2680
|
message.lastLayerLockPli = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2553
2681
|
break;
|
|
2682
|
+
case 42:
|
|
2683
|
+
message.sampleRate = reader.double();
|
|
2684
|
+
break;
|
|
2685
|
+
case 43:
|
|
2686
|
+
message.driftMs = reader.double();
|
|
2687
|
+
break;
|
|
2554
2688
|
default:
|
|
2555
2689
|
reader.skipType(tag & 7);
|
|
2556
2690
|
break;
|
|
@@ -2570,11 +2704,17 @@ exports.RTPStats = {
|
|
|
2570
2704
|
bitrate: isSet(object.bitrate) ? Number(object.bitrate) : 0,
|
|
2571
2705
|
packetsLost: isSet(object.packetsLost) ? Number(object.packetsLost) : 0,
|
|
2572
2706
|
packetLossRate: isSet(object.packetLossRate) ? Number(object.packetLossRate) : 0,
|
|
2573
|
-
packetLossPercentage: isSet(object.packetLossPercentage)
|
|
2707
|
+
packetLossPercentage: isSet(object.packetLossPercentage)
|
|
2708
|
+
? Number(object.packetLossPercentage)
|
|
2709
|
+
: 0,
|
|
2574
2710
|
packetsDuplicate: isSet(object.packetsDuplicate) ? Number(object.packetsDuplicate) : 0,
|
|
2575
|
-
packetDuplicateRate: isSet(object.packetDuplicateRate)
|
|
2711
|
+
packetDuplicateRate: isSet(object.packetDuplicateRate)
|
|
2712
|
+
? Number(object.packetDuplicateRate)
|
|
2713
|
+
: 0,
|
|
2576
2714
|
bytesDuplicate: isSet(object.bytesDuplicate) ? Number(object.bytesDuplicate) : 0,
|
|
2577
|
-
headerBytesDuplicate: isSet(object.headerBytesDuplicate)
|
|
2715
|
+
headerBytesDuplicate: isSet(object.headerBytesDuplicate)
|
|
2716
|
+
? Number(object.headerBytesDuplicate)
|
|
2717
|
+
: 0,
|
|
2578
2718
|
bitrateDuplicate: isSet(object.bitrateDuplicate) ? Number(object.bitrateDuplicate) : 0,
|
|
2579
2719
|
packetsPadding: isSet(object.packetsPadding) ? Number(object.packetsPadding) : 0,
|
|
2580
2720
|
packetPaddingRate: isSet(object.packetPaddingRate) ? Number(object.packetPaddingRate) : 0,
|
|
@@ -2605,7 +2745,11 @@ exports.RTPStats = {
|
|
|
2605
2745
|
keyFrames: isSet(object.keyFrames) ? Number(object.keyFrames) : 0,
|
|
2606
2746
|
lastKeyFrame: isSet(object.lastKeyFrame) ? fromJsonTimestamp(object.lastKeyFrame) : undefined,
|
|
2607
2747
|
layerLockPlis: isSet(object.layerLockPlis) ? Number(object.layerLockPlis) : 0,
|
|
2608
|
-
lastLayerLockPli: isSet(object.lastLayerLockPli)
|
|
2748
|
+
lastLayerLockPli: isSet(object.lastLayerLockPli)
|
|
2749
|
+
? fromJsonTimestamp(object.lastLayerLockPli)
|
|
2750
|
+
: undefined,
|
|
2751
|
+
sampleRate: isSet(object.sampleRate) ? Number(object.sampleRate) : 0,
|
|
2752
|
+
driftMs: isSet(object.driftMs) ? Number(object.driftMs) : 0,
|
|
2609
2753
|
};
|
|
2610
2754
|
},
|
|
2611
2755
|
toJSON(message) {
|
|
@@ -2620,18 +2764,26 @@ exports.RTPStats = {
|
|
|
2620
2764
|
message.bitrate !== undefined && (obj.bitrate = message.bitrate);
|
|
2621
2765
|
message.packetsLost !== undefined && (obj.packetsLost = Math.round(message.packetsLost));
|
|
2622
2766
|
message.packetLossRate !== undefined && (obj.packetLossRate = message.packetLossRate);
|
|
2623
|
-
message.packetLossPercentage !== undefined &&
|
|
2624
|
-
|
|
2625
|
-
message.
|
|
2626
|
-
|
|
2627
|
-
message.
|
|
2767
|
+
message.packetLossPercentage !== undefined &&
|
|
2768
|
+
(obj.packetLossPercentage = message.packetLossPercentage);
|
|
2769
|
+
message.packetsDuplicate !== undefined &&
|
|
2770
|
+
(obj.packetsDuplicate = Math.round(message.packetsDuplicate));
|
|
2771
|
+
message.packetDuplicateRate !== undefined &&
|
|
2772
|
+
(obj.packetDuplicateRate = message.packetDuplicateRate);
|
|
2773
|
+
message.bytesDuplicate !== undefined &&
|
|
2774
|
+
(obj.bytesDuplicate = Math.round(message.bytesDuplicate));
|
|
2775
|
+
message.headerBytesDuplicate !== undefined &&
|
|
2776
|
+
(obj.headerBytesDuplicate = Math.round(message.headerBytesDuplicate));
|
|
2628
2777
|
message.bitrateDuplicate !== undefined && (obj.bitrateDuplicate = message.bitrateDuplicate);
|
|
2629
|
-
message.packetsPadding !== undefined &&
|
|
2778
|
+
message.packetsPadding !== undefined &&
|
|
2779
|
+
(obj.packetsPadding = Math.round(message.packetsPadding));
|
|
2630
2780
|
message.packetPaddingRate !== undefined && (obj.packetPaddingRate = message.packetPaddingRate);
|
|
2631
2781
|
message.bytesPadding !== undefined && (obj.bytesPadding = Math.round(message.bytesPadding));
|
|
2632
|
-
message.headerBytesPadding !== undefined &&
|
|
2782
|
+
message.headerBytesPadding !== undefined &&
|
|
2783
|
+
(obj.headerBytesPadding = Math.round(message.headerBytesPadding));
|
|
2633
2784
|
message.bitratePadding !== undefined && (obj.bitratePadding = message.bitratePadding);
|
|
2634
|
-
message.packetsOutOfOrder !== undefined &&
|
|
2785
|
+
message.packetsOutOfOrder !== undefined &&
|
|
2786
|
+
(obj.packetsOutOfOrder = Math.round(message.packetsOutOfOrder));
|
|
2635
2787
|
message.frames !== undefined && (obj.frames = Math.round(message.frames));
|
|
2636
2788
|
message.frameRate !== undefined && (obj.frameRate = message.frameRate);
|
|
2637
2789
|
message.jitterCurrent !== undefined && (obj.jitterCurrent = message.jitterCurrent);
|
|
@@ -2655,11 +2807,14 @@ exports.RTPStats = {
|
|
|
2655
2807
|
message.keyFrames !== undefined && (obj.keyFrames = Math.round(message.keyFrames));
|
|
2656
2808
|
message.lastKeyFrame !== undefined && (obj.lastKeyFrame = message.lastKeyFrame.toISOString());
|
|
2657
2809
|
message.layerLockPlis !== undefined && (obj.layerLockPlis = Math.round(message.layerLockPlis));
|
|
2658
|
-
message.lastLayerLockPli !== undefined &&
|
|
2810
|
+
message.lastLayerLockPli !== undefined &&
|
|
2811
|
+
(obj.lastLayerLockPli = message.lastLayerLockPli.toISOString());
|
|
2812
|
+
message.sampleRate !== undefined && (obj.sampleRate = message.sampleRate);
|
|
2813
|
+
message.driftMs !== undefined && (obj.driftMs = message.driftMs);
|
|
2659
2814
|
return obj;
|
|
2660
2815
|
},
|
|
2661
2816
|
fromPartial(object) {
|
|
2662
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16;
|
|
2817
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18;
|
|
2663
2818
|
const message = createBaseRTPStats();
|
|
2664
2819
|
message.startTime = (_a = object.startTime) !== null && _a !== void 0 ? _a : undefined;
|
|
2665
2820
|
message.endTime = (_b = object.endTime) !== null && _b !== void 0 ? _b : undefined;
|
|
@@ -2707,6 +2862,8 @@ exports.RTPStats = {
|
|
|
2707
2862
|
message.lastKeyFrame = (_14 = object.lastKeyFrame) !== null && _14 !== void 0 ? _14 : undefined;
|
|
2708
2863
|
message.layerLockPlis = (_15 = object.layerLockPlis) !== null && _15 !== void 0 ? _15 : 0;
|
|
2709
2864
|
message.lastLayerLockPli = (_16 = object.lastLayerLockPli) !== null && _16 !== void 0 ? _16 : undefined;
|
|
2865
|
+
message.sampleRate = (_17 = object.sampleRate) !== null && _17 !== void 0 ? _17 : 0;
|
|
2866
|
+
message.driftMs = (_18 = object.driftMs) !== null && _18 !== void 0 ? _18 : 0;
|
|
2710
2867
|
return message;
|
|
2711
2868
|
},
|
|
2712
2869
|
};
|
|
@@ -2714,7 +2871,7 @@ function createBaseRTPStats_GapHistogramEntry() {
|
|
|
2714
2871
|
return { key: 0, value: 0 };
|
|
2715
2872
|
}
|
|
2716
2873
|
exports.RTPStats_GapHistogramEntry = {
|
|
2717
|
-
encode(message, writer =
|
|
2874
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2718
2875
|
if (message.key !== 0) {
|
|
2719
2876
|
writer.uint32(8).int32(message.key);
|
|
2720
2877
|
}
|
|
@@ -2724,7 +2881,7 @@ exports.RTPStats_GapHistogramEntry = {
|
|
|
2724
2881
|
return writer;
|
|
2725
2882
|
},
|
|
2726
2883
|
decode(input, length) {
|
|
2727
|
-
const reader = input instanceof
|
|
2884
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2728
2885
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2729
2886
|
const message = createBaseRTPStats_GapHistogramEntry();
|
|
2730
2887
|
while (reader.pos < end) {
|
|
@@ -2744,7 +2901,10 @@ exports.RTPStats_GapHistogramEntry = {
|
|
|
2744
2901
|
return message;
|
|
2745
2902
|
},
|
|
2746
2903
|
fromJSON(object) {
|
|
2747
|
-
return {
|
|
2904
|
+
return {
|
|
2905
|
+
key: isSet(object.key) ? Number(object.key) : 0,
|
|
2906
|
+
value: isSet(object.value) ? Number(object.value) : 0,
|
|
2907
|
+
};
|
|
2748
2908
|
},
|
|
2749
2909
|
toJSON(message) {
|
|
2750
2910
|
const obj = {};
|
|
@@ -2764,7 +2924,7 @@ function createBaseTimedVersion() {
|
|
|
2764
2924
|
return { unixMicro: 0, ticks: 0 };
|
|
2765
2925
|
}
|
|
2766
2926
|
exports.TimedVersion = {
|
|
2767
|
-
encode(message, writer =
|
|
2927
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2768
2928
|
if (message.unixMicro !== 0) {
|
|
2769
2929
|
writer.uint32(8).int64(message.unixMicro);
|
|
2770
2930
|
}
|
|
@@ -2774,7 +2934,7 @@ exports.TimedVersion = {
|
|
|
2774
2934
|
return writer;
|
|
2775
2935
|
},
|
|
2776
2936
|
decode(input, length) {
|
|
2777
|
-
const reader = input instanceof
|
|
2937
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2778
2938
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2779
2939
|
const message = createBaseTimedVersion();
|
|
2780
2940
|
while (reader.pos < end) {
|
|
@@ -2814,44 +2974,32 @@ exports.TimedVersion = {
|
|
|
2814
2974
|
},
|
|
2815
2975
|
};
|
|
2816
2976
|
var globalThis = (() => {
|
|
2817
|
-
if (typeof globalThis !==
|
|
2977
|
+
if (typeof globalThis !== 'undefined')
|
|
2818
2978
|
return globalThis;
|
|
2819
|
-
|
|
2820
|
-
if (typeof self !== "undefined") {
|
|
2979
|
+
if (typeof self !== 'undefined')
|
|
2821
2980
|
return self;
|
|
2822
|
-
|
|
2823
|
-
if (typeof window !== "undefined") {
|
|
2981
|
+
if (typeof window !== 'undefined')
|
|
2824
2982
|
return window;
|
|
2825
|
-
|
|
2826
|
-
if (typeof global !== "undefined") {
|
|
2983
|
+
if (typeof global !== 'undefined')
|
|
2827
2984
|
return global;
|
|
2828
|
-
|
|
2829
|
-
throw "Unable to locate global object";
|
|
2985
|
+
throw 'Unable to locate global object';
|
|
2830
2986
|
})();
|
|
2987
|
+
const atob = globalThis.atob || ((b64) => globalThis.Buffer.from(b64, 'base64').toString('binary'));
|
|
2831
2988
|
function bytesFromBase64(b64) {
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
const bin = globalThis.atob(b64);
|
|
2837
|
-
const arr = new Uint8Array(bin.length);
|
|
2838
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
2839
|
-
arr[i] = bin.charCodeAt(i);
|
|
2840
|
-
}
|
|
2841
|
-
return arr;
|
|
2989
|
+
const bin = atob(b64);
|
|
2990
|
+
const arr = new Uint8Array(bin.length);
|
|
2991
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
2992
|
+
arr[i] = bin.charCodeAt(i);
|
|
2842
2993
|
}
|
|
2994
|
+
return arr;
|
|
2843
2995
|
}
|
|
2996
|
+
const btoa = globalThis.btoa || ((bin) => globalThis.Buffer.from(bin, 'binary').toString('base64'));
|
|
2844
2997
|
function base64FromBytes(arr) {
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
else {
|
|
2849
|
-
const bin = [];
|
|
2850
|
-
arr.forEach((byte) => {
|
|
2851
|
-
bin.push(String.fromCharCode(byte));
|
|
2852
|
-
});
|
|
2853
|
-
return globalThis.btoa(bin.join(""));
|
|
2998
|
+
const bin = [];
|
|
2999
|
+
for (const byte of arr) {
|
|
3000
|
+
bin.push(String.fromCharCode(byte));
|
|
2854
3001
|
}
|
|
3002
|
+
return btoa(bin.join(''));
|
|
2855
3003
|
}
|
|
2856
3004
|
function toTimestamp(date) {
|
|
2857
3005
|
const seconds = date.getTime() / 1000;
|
|
@@ -2867,7 +3015,7 @@ function fromJsonTimestamp(o) {
|
|
|
2867
3015
|
if (o instanceof Date) {
|
|
2868
3016
|
return o;
|
|
2869
3017
|
}
|
|
2870
|
-
else if (typeof o ===
|
|
3018
|
+
else if (typeof o === 'string') {
|
|
2871
3019
|
return new Date(o);
|
|
2872
3020
|
}
|
|
2873
3021
|
else {
|
|
@@ -2876,16 +3024,16 @@ function fromJsonTimestamp(o) {
|
|
|
2876
3024
|
}
|
|
2877
3025
|
function longToNumber(long) {
|
|
2878
3026
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
2879
|
-
throw new globalThis.Error(
|
|
3027
|
+
throw new globalThis.Error('Value is larger than Number.MAX_SAFE_INTEGER');
|
|
2880
3028
|
}
|
|
2881
3029
|
return long.toNumber();
|
|
2882
3030
|
}
|
|
2883
|
-
if (
|
|
2884
|
-
|
|
2885
|
-
|
|
3031
|
+
if (_m0.util.Long !== long_1.default) {
|
|
3032
|
+
_m0.util.Long = long_1.default;
|
|
3033
|
+
_m0.configure();
|
|
2886
3034
|
}
|
|
2887
3035
|
function isObject(value) {
|
|
2888
|
-
return typeof value ===
|
|
3036
|
+
return typeof value === 'object' && value !== null;
|
|
2889
3037
|
}
|
|
2890
3038
|
function isSet(value) {
|
|
2891
3039
|
return value !== null && value !== undefined;
|