livekit-server-sdk 0.5.7 → 0.5.10
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/.gitmodules +3 -0
- package/README.md +5 -1
- package/dist/AccessToken.d.ts +5 -0
- package/dist/AccessToken.js +6 -0
- package/dist/AccessToken.js.map +1 -1
- package/dist/AccessToken.test.js +4 -0
- package/dist/AccessToken.test.js.map +1 -1
- package/dist/EgressClient.d.ts +45 -0
- package/dist/EgressClient.js +132 -0
- package/dist/EgressClient.js.map +1 -0
- package/dist/RoomServiceClient.d.ts +8 -3
- package/dist/RoomServiceClient.js +9 -2
- package/dist/RoomServiceClient.js.map +1 -1
- package/dist/WebhookReceiver.d.ts +7 -0
- package/dist/WebhookReceiver.js +7 -0
- package/dist/WebhookReceiver.js.map +1 -1
- package/dist/grants.d.ts +4 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/proto/google/protobuf/empty.d.ts +6 -2
- package/dist/proto/google/protobuf/empty.js +31 -11
- package/dist/proto/google/protobuf/empty.js.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts +132 -0
- package/dist/proto/google/protobuf/timestamp.js +108 -0
- package/dist/proto/google/protobuf/timestamp.js.map +1 -0
- package/dist/proto/livekit_egress.d.ts +1948 -0
- package/dist/proto/livekit_egress.js +1834 -0
- package/dist/proto/livekit_egress.js.map +1 -0
- package/dist/proto/livekit_models.d.ts +697 -11
- package/dist/proto/livekit_models.js +1507 -573
- package/dist/proto/livekit_models.js.map +1 -1
- package/dist/proto/livekit_recording.d.ts +200 -16
- package/dist/proto/livekit_recording.js +272 -502
- package/dist/proto/livekit_recording.js.map +1 -1
- package/dist/proto/livekit_room.d.ts +565 -37
- package/dist/proto/livekit_room.js +334 -603
- package/dist/proto/livekit_room.js.map +1 -1
- package/dist/proto/livekit_webhook.d.ts +930 -5
- package/dist/proto/livekit_webhook.js +133 -59
- package/dist/proto/livekit_webhook.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,23 @@
|
|
|
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
|
};
|
|
@@ -6,7 +25,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
25
|
exports.RtmpResult = exports.FileResult = exports.RecordingInfo = exports.EndRecordingRequest = exports.RemoveOutputRequest = exports.AddOutputRequest = exports.StartRecordingResponse = exports.RecordingOptions = exports.RtmpOutput = exports.RecordingTemplate = exports.StartRecordingRequest = exports.recordingPresetToJSON = exports.recordingPresetFromJSON = exports.RecordingPreset = exports.protobufPackage = void 0;
|
|
7
26
|
/* eslint-disable */
|
|
8
27
|
const long_1 = __importDefault(require("long"));
|
|
9
|
-
const
|
|
28
|
+
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
10
29
|
exports.protobufPackage = "livekit";
|
|
11
30
|
var RecordingPreset;
|
|
12
31
|
(function (RecordingPreset) {
|
|
@@ -63,9 +82,17 @@ function recordingPresetToJSON(object) {
|
|
|
63
82
|
}
|
|
64
83
|
}
|
|
65
84
|
exports.recordingPresetToJSON = recordingPresetToJSON;
|
|
66
|
-
|
|
85
|
+
function createBaseStartRecordingRequest() {
|
|
86
|
+
return {
|
|
87
|
+
url: undefined,
|
|
88
|
+
template: undefined,
|
|
89
|
+
rtmp: undefined,
|
|
90
|
+
filepath: undefined,
|
|
91
|
+
options: undefined,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
67
94
|
exports.StartRecordingRequest = {
|
|
68
|
-
encode(message, writer =
|
|
95
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
69
96
|
if (message.url !== undefined) {
|
|
70
97
|
writer.uint32(10).string(message.url);
|
|
71
98
|
}
|
|
@@ -84,9 +111,9 @@ exports.StartRecordingRequest = {
|
|
|
84
111
|
return writer;
|
|
85
112
|
},
|
|
86
113
|
decode(input, length) {
|
|
87
|
-
const reader = input instanceof
|
|
114
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
88
115
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
89
|
-
const message =
|
|
116
|
+
const message = createBaseStartRecordingRequest();
|
|
90
117
|
while (reader.pos < end) {
|
|
91
118
|
const tag = reader.uint32();
|
|
92
119
|
switch (tag >>> 3) {
|
|
@@ -113,38 +140,17 @@ exports.StartRecordingRequest = {
|
|
|
113
140
|
return message;
|
|
114
141
|
},
|
|
115
142
|
fromJSON(object) {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
message.template = undefined;
|
|
128
|
-
}
|
|
129
|
-
if (object.rtmp !== undefined && object.rtmp !== null) {
|
|
130
|
-
message.rtmp = exports.RtmpOutput.fromJSON(object.rtmp);
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
message.rtmp = undefined;
|
|
134
|
-
}
|
|
135
|
-
if (object.filepath !== undefined && object.filepath !== null) {
|
|
136
|
-
message.filepath = String(object.filepath);
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
message.filepath = undefined;
|
|
140
|
-
}
|
|
141
|
-
if (object.options !== undefined && object.options !== null) {
|
|
142
|
-
message.options = exports.RecordingOptions.fromJSON(object.options);
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
message.options = undefined;
|
|
146
|
-
}
|
|
147
|
-
return message;
|
|
143
|
+
return {
|
|
144
|
+
url: isSet(object.url) ? String(object.url) : undefined,
|
|
145
|
+
template: isSet(object.template)
|
|
146
|
+
? exports.RecordingTemplate.fromJSON(object.template)
|
|
147
|
+
: undefined,
|
|
148
|
+
rtmp: isSet(object.rtmp) ? exports.RtmpOutput.fromJSON(object.rtmp) : undefined,
|
|
149
|
+
filepath: isSet(object.filepath) ? String(object.filepath) : undefined,
|
|
150
|
+
options: isSet(object.options)
|
|
151
|
+
? exports.RecordingOptions.fromJSON(object.options)
|
|
152
|
+
: undefined,
|
|
153
|
+
};
|
|
148
154
|
},
|
|
149
155
|
toJSON(message) {
|
|
150
156
|
const obj = {};
|
|
@@ -163,43 +169,30 @@ exports.StartRecordingRequest = {
|
|
|
163
169
|
return obj;
|
|
164
170
|
},
|
|
165
171
|
fromPartial(object) {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
else {
|
|
183
|
-
message.rtmp = undefined;
|
|
184
|
-
}
|
|
185
|
-
if (object.filepath !== undefined && object.filepath !== null) {
|
|
186
|
-
message.filepath = object.filepath;
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
message.filepath = undefined;
|
|
190
|
-
}
|
|
191
|
-
if (object.options !== undefined && object.options !== null) {
|
|
192
|
-
message.options = exports.RecordingOptions.fromPartial(object.options);
|
|
193
|
-
}
|
|
194
|
-
else {
|
|
195
|
-
message.options = undefined;
|
|
196
|
-
}
|
|
172
|
+
var _a, _b;
|
|
173
|
+
const message = createBaseStartRecordingRequest();
|
|
174
|
+
message.url = (_a = object.url) !== null && _a !== void 0 ? _a : undefined;
|
|
175
|
+
message.template =
|
|
176
|
+
object.template !== undefined && object.template !== null
|
|
177
|
+
? exports.RecordingTemplate.fromPartial(object.template)
|
|
178
|
+
: undefined;
|
|
179
|
+
message.rtmp =
|
|
180
|
+
object.rtmp !== undefined && object.rtmp !== null
|
|
181
|
+
? exports.RtmpOutput.fromPartial(object.rtmp)
|
|
182
|
+
: undefined;
|
|
183
|
+
message.filepath = (_b = object.filepath) !== null && _b !== void 0 ? _b : undefined;
|
|
184
|
+
message.options =
|
|
185
|
+
object.options !== undefined && object.options !== null
|
|
186
|
+
? exports.RecordingOptions.fromPartial(object.options)
|
|
187
|
+
: undefined;
|
|
197
188
|
return message;
|
|
198
189
|
},
|
|
199
190
|
};
|
|
200
|
-
|
|
191
|
+
function createBaseRecordingTemplate() {
|
|
192
|
+
return { layout: "", roomName: "", baseUrl: "" };
|
|
193
|
+
}
|
|
201
194
|
exports.RecordingTemplate = {
|
|
202
|
-
encode(message, writer =
|
|
195
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
203
196
|
if (message.layout !== "") {
|
|
204
197
|
writer.uint32(10).string(message.layout);
|
|
205
198
|
}
|
|
@@ -212,9 +205,9 @@ exports.RecordingTemplate = {
|
|
|
212
205
|
return writer;
|
|
213
206
|
},
|
|
214
207
|
decode(input, length) {
|
|
215
|
-
const reader = input instanceof
|
|
208
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
216
209
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
217
|
-
const message =
|
|
210
|
+
const message = createBaseRecordingTemplate();
|
|
218
211
|
while (reader.pos < end) {
|
|
219
212
|
const tag = reader.uint32();
|
|
220
213
|
switch (tag >>> 3) {
|
|
@@ -235,26 +228,11 @@ exports.RecordingTemplate = {
|
|
|
235
228
|
return message;
|
|
236
229
|
},
|
|
237
230
|
fromJSON(object) {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
message.layout = "";
|
|
244
|
-
}
|
|
245
|
-
if (object.roomName !== undefined && object.roomName !== null) {
|
|
246
|
-
message.roomName = String(object.roomName);
|
|
247
|
-
}
|
|
248
|
-
else {
|
|
249
|
-
message.roomName = "";
|
|
250
|
-
}
|
|
251
|
-
if (object.baseUrl !== undefined && object.baseUrl !== null) {
|
|
252
|
-
message.baseUrl = String(object.baseUrl);
|
|
253
|
-
}
|
|
254
|
-
else {
|
|
255
|
-
message.baseUrl = "";
|
|
256
|
-
}
|
|
257
|
-
return message;
|
|
231
|
+
return {
|
|
232
|
+
layout: isSet(object.layout) ? String(object.layout) : "",
|
|
233
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : "",
|
|
234
|
+
baseUrl: isSet(object.baseUrl) ? String(object.baseUrl) : "",
|
|
235
|
+
};
|
|
258
236
|
},
|
|
259
237
|
toJSON(message) {
|
|
260
238
|
const obj = {};
|
|
@@ -264,41 +242,28 @@ exports.RecordingTemplate = {
|
|
|
264
242
|
return obj;
|
|
265
243
|
},
|
|
266
244
|
fromPartial(object) {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
message.layout = "";
|
|
273
|
-
}
|
|
274
|
-
if (object.roomName !== undefined && object.roomName !== null) {
|
|
275
|
-
message.roomName = object.roomName;
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
message.roomName = "";
|
|
279
|
-
}
|
|
280
|
-
if (object.baseUrl !== undefined && object.baseUrl !== null) {
|
|
281
|
-
message.baseUrl = object.baseUrl;
|
|
282
|
-
}
|
|
283
|
-
else {
|
|
284
|
-
message.baseUrl = "";
|
|
285
|
-
}
|
|
245
|
+
var _a, _b, _c;
|
|
246
|
+
const message = createBaseRecordingTemplate();
|
|
247
|
+
message.layout = (_a = object.layout) !== null && _a !== void 0 ? _a : "";
|
|
248
|
+
message.roomName = (_b = object.roomName) !== null && _b !== void 0 ? _b : "";
|
|
249
|
+
message.baseUrl = (_c = object.baseUrl) !== null && _c !== void 0 ? _c : "";
|
|
286
250
|
return message;
|
|
287
251
|
},
|
|
288
252
|
};
|
|
289
|
-
|
|
253
|
+
function createBaseRtmpOutput() {
|
|
254
|
+
return { urls: [] };
|
|
255
|
+
}
|
|
290
256
|
exports.RtmpOutput = {
|
|
291
|
-
encode(message, writer =
|
|
257
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
292
258
|
for (const v of message.urls) {
|
|
293
259
|
writer.uint32(10).string(v);
|
|
294
260
|
}
|
|
295
261
|
return writer;
|
|
296
262
|
},
|
|
297
263
|
decode(input, length) {
|
|
298
|
-
const reader = input instanceof
|
|
264
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
299
265
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
300
|
-
const message =
|
|
301
|
-
message.urls = [];
|
|
266
|
+
const message = createBaseRtmpOutput();
|
|
302
267
|
while (reader.pos < end) {
|
|
303
268
|
const tag = reader.uint32();
|
|
304
269
|
switch (tag >>> 3) {
|
|
@@ -313,14 +278,11 @@ exports.RtmpOutput = {
|
|
|
313
278
|
return message;
|
|
314
279
|
},
|
|
315
280
|
fromJSON(object) {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
return message;
|
|
281
|
+
return {
|
|
282
|
+
urls: Array.isArray(object === null || object === void 0 ? void 0 : object.urls)
|
|
283
|
+
? object.urls.map((e) => String(e))
|
|
284
|
+
: [],
|
|
285
|
+
};
|
|
324
286
|
},
|
|
325
287
|
toJSON(message) {
|
|
326
288
|
const obj = {};
|
|
@@ -333,28 +295,27 @@ exports.RtmpOutput = {
|
|
|
333
295
|
return obj;
|
|
334
296
|
},
|
|
335
297
|
fromPartial(object) {
|
|
336
|
-
|
|
337
|
-
message
|
|
338
|
-
|
|
339
|
-
for (const e of object.urls) {
|
|
340
|
-
message.urls.push(e);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
298
|
+
var _a;
|
|
299
|
+
const message = createBaseRtmpOutput();
|
|
300
|
+
message.urls = ((_a = object.urls) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
343
301
|
return message;
|
|
344
302
|
},
|
|
345
303
|
};
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
304
|
+
function createBaseRecordingOptions() {
|
|
305
|
+
return {
|
|
306
|
+
preset: 0,
|
|
307
|
+
width: 0,
|
|
308
|
+
height: 0,
|
|
309
|
+
depth: 0,
|
|
310
|
+
framerate: 0,
|
|
311
|
+
audioBitrate: 0,
|
|
312
|
+
audioFrequency: 0,
|
|
313
|
+
videoBitrate: 0,
|
|
314
|
+
profile: "",
|
|
315
|
+
};
|
|
316
|
+
}
|
|
356
317
|
exports.RecordingOptions = {
|
|
357
|
-
encode(message, writer =
|
|
318
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
358
319
|
if (message.preset !== 0) {
|
|
359
320
|
writer.uint32(8).int32(message.preset);
|
|
360
321
|
}
|
|
@@ -379,12 +340,15 @@ exports.RecordingOptions = {
|
|
|
379
340
|
if (message.videoBitrate !== 0) {
|
|
380
341
|
writer.uint32(64).int32(message.videoBitrate);
|
|
381
342
|
}
|
|
343
|
+
if (message.profile !== "") {
|
|
344
|
+
writer.uint32(74).string(message.profile);
|
|
345
|
+
}
|
|
382
346
|
return writer;
|
|
383
347
|
},
|
|
384
348
|
decode(input, length) {
|
|
385
|
-
const reader = input instanceof
|
|
349
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
386
350
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
387
|
-
const message =
|
|
351
|
+
const message = createBaseRecordingOptions();
|
|
388
352
|
while (reader.pos < end) {
|
|
389
353
|
const tag = reader.uint32();
|
|
390
354
|
switch (tag >>> 3) {
|
|
@@ -412,6 +376,9 @@ exports.RecordingOptions = {
|
|
|
412
376
|
case 8:
|
|
413
377
|
message.videoBitrate = reader.int32();
|
|
414
378
|
break;
|
|
379
|
+
case 9:
|
|
380
|
+
message.profile = reader.string();
|
|
381
|
+
break;
|
|
415
382
|
default:
|
|
416
383
|
reader.skipType(tag & 7);
|
|
417
384
|
break;
|
|
@@ -420,138 +387,71 @@ exports.RecordingOptions = {
|
|
|
420
387
|
return message;
|
|
421
388
|
},
|
|
422
389
|
fromJSON(object) {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
message.height = 0;
|
|
441
|
-
}
|
|
442
|
-
if (object.depth !== undefined && object.depth !== null) {
|
|
443
|
-
message.depth = Number(object.depth);
|
|
444
|
-
}
|
|
445
|
-
else {
|
|
446
|
-
message.depth = 0;
|
|
447
|
-
}
|
|
448
|
-
if (object.framerate !== undefined && object.framerate !== null) {
|
|
449
|
-
message.framerate = Number(object.framerate);
|
|
450
|
-
}
|
|
451
|
-
else {
|
|
452
|
-
message.framerate = 0;
|
|
453
|
-
}
|
|
454
|
-
if (object.audioBitrate !== undefined && object.audioBitrate !== null) {
|
|
455
|
-
message.audioBitrate = Number(object.audioBitrate);
|
|
456
|
-
}
|
|
457
|
-
else {
|
|
458
|
-
message.audioBitrate = 0;
|
|
459
|
-
}
|
|
460
|
-
if (object.audioFrequency !== undefined && object.audioFrequency !== null) {
|
|
461
|
-
message.audioFrequency = Number(object.audioFrequency);
|
|
462
|
-
}
|
|
463
|
-
else {
|
|
464
|
-
message.audioFrequency = 0;
|
|
465
|
-
}
|
|
466
|
-
if (object.videoBitrate !== undefined && object.videoBitrate !== null) {
|
|
467
|
-
message.videoBitrate = Number(object.videoBitrate);
|
|
468
|
-
}
|
|
469
|
-
else {
|
|
470
|
-
message.videoBitrate = 0;
|
|
471
|
-
}
|
|
472
|
-
return message;
|
|
390
|
+
return {
|
|
391
|
+
preset: isSet(object.preset) ? recordingPresetFromJSON(object.preset) : 0,
|
|
392
|
+
width: isSet(object.width) ? Number(object.width) : 0,
|
|
393
|
+
height: isSet(object.height) ? Number(object.height) : 0,
|
|
394
|
+
depth: isSet(object.depth) ? Number(object.depth) : 0,
|
|
395
|
+
framerate: isSet(object.framerate) ? Number(object.framerate) : 0,
|
|
396
|
+
audioBitrate: isSet(object.audioBitrate)
|
|
397
|
+
? Number(object.audioBitrate)
|
|
398
|
+
: 0,
|
|
399
|
+
audioFrequency: isSet(object.audioFrequency)
|
|
400
|
+
? Number(object.audioFrequency)
|
|
401
|
+
: 0,
|
|
402
|
+
videoBitrate: isSet(object.videoBitrate)
|
|
403
|
+
? Number(object.videoBitrate)
|
|
404
|
+
: 0,
|
|
405
|
+
profile: isSet(object.profile) ? String(object.profile) : "",
|
|
406
|
+
};
|
|
473
407
|
},
|
|
474
408
|
toJSON(message) {
|
|
475
409
|
const obj = {};
|
|
476
410
|
message.preset !== undefined &&
|
|
477
411
|
(obj.preset = recordingPresetToJSON(message.preset));
|
|
478
|
-
message.width !== undefined && (obj.width = message.width);
|
|
479
|
-
message.height !== undefined && (obj.height = message.height);
|
|
480
|
-
message.depth !== undefined && (obj.depth = message.depth);
|
|
481
|
-
message.framerate !== undefined &&
|
|
412
|
+
message.width !== undefined && (obj.width = Math.round(message.width));
|
|
413
|
+
message.height !== undefined && (obj.height = Math.round(message.height));
|
|
414
|
+
message.depth !== undefined && (obj.depth = Math.round(message.depth));
|
|
415
|
+
message.framerate !== undefined &&
|
|
416
|
+
(obj.framerate = Math.round(message.framerate));
|
|
482
417
|
message.audioBitrate !== undefined &&
|
|
483
|
-
(obj.audioBitrate = message.audioBitrate);
|
|
418
|
+
(obj.audioBitrate = Math.round(message.audioBitrate));
|
|
484
419
|
message.audioFrequency !== undefined &&
|
|
485
|
-
(obj.audioFrequency = message.audioFrequency);
|
|
420
|
+
(obj.audioFrequency = Math.round(message.audioFrequency));
|
|
486
421
|
message.videoBitrate !== undefined &&
|
|
487
|
-
(obj.videoBitrate = message.videoBitrate);
|
|
422
|
+
(obj.videoBitrate = Math.round(message.videoBitrate));
|
|
423
|
+
message.profile !== undefined && (obj.profile = message.profile);
|
|
488
424
|
return obj;
|
|
489
425
|
},
|
|
490
426
|
fromPartial(object) {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
message.width = 0;
|
|
503
|
-
}
|
|
504
|
-
if (object.height !== undefined && object.height !== null) {
|
|
505
|
-
message.height = object.height;
|
|
506
|
-
}
|
|
507
|
-
else {
|
|
508
|
-
message.height = 0;
|
|
509
|
-
}
|
|
510
|
-
if (object.depth !== undefined && object.depth !== null) {
|
|
511
|
-
message.depth = object.depth;
|
|
512
|
-
}
|
|
513
|
-
else {
|
|
514
|
-
message.depth = 0;
|
|
515
|
-
}
|
|
516
|
-
if (object.framerate !== undefined && object.framerate !== null) {
|
|
517
|
-
message.framerate = object.framerate;
|
|
518
|
-
}
|
|
519
|
-
else {
|
|
520
|
-
message.framerate = 0;
|
|
521
|
-
}
|
|
522
|
-
if (object.audioBitrate !== undefined && object.audioBitrate !== null) {
|
|
523
|
-
message.audioBitrate = object.audioBitrate;
|
|
524
|
-
}
|
|
525
|
-
else {
|
|
526
|
-
message.audioBitrate = 0;
|
|
527
|
-
}
|
|
528
|
-
if (object.audioFrequency !== undefined && object.audioFrequency !== null) {
|
|
529
|
-
message.audioFrequency = object.audioFrequency;
|
|
530
|
-
}
|
|
531
|
-
else {
|
|
532
|
-
message.audioFrequency = 0;
|
|
533
|
-
}
|
|
534
|
-
if (object.videoBitrate !== undefined && object.videoBitrate !== null) {
|
|
535
|
-
message.videoBitrate = object.videoBitrate;
|
|
536
|
-
}
|
|
537
|
-
else {
|
|
538
|
-
message.videoBitrate = 0;
|
|
539
|
-
}
|
|
427
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
428
|
+
const message = createBaseRecordingOptions();
|
|
429
|
+
message.preset = (_a = object.preset) !== null && _a !== void 0 ? _a : 0;
|
|
430
|
+
message.width = (_b = object.width) !== null && _b !== void 0 ? _b : 0;
|
|
431
|
+
message.height = (_c = object.height) !== null && _c !== void 0 ? _c : 0;
|
|
432
|
+
message.depth = (_d = object.depth) !== null && _d !== void 0 ? _d : 0;
|
|
433
|
+
message.framerate = (_e = object.framerate) !== null && _e !== void 0 ? _e : 0;
|
|
434
|
+
message.audioBitrate = (_f = object.audioBitrate) !== null && _f !== void 0 ? _f : 0;
|
|
435
|
+
message.audioFrequency = (_g = object.audioFrequency) !== null && _g !== void 0 ? _g : 0;
|
|
436
|
+
message.videoBitrate = (_h = object.videoBitrate) !== null && _h !== void 0 ? _h : 0;
|
|
437
|
+
message.profile = (_j = object.profile) !== null && _j !== void 0 ? _j : "";
|
|
540
438
|
return message;
|
|
541
439
|
},
|
|
542
440
|
};
|
|
543
|
-
|
|
441
|
+
function createBaseStartRecordingResponse() {
|
|
442
|
+
return { recordingId: "" };
|
|
443
|
+
}
|
|
544
444
|
exports.StartRecordingResponse = {
|
|
545
|
-
encode(message, writer =
|
|
445
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
546
446
|
if (message.recordingId !== "") {
|
|
547
447
|
writer.uint32(10).string(message.recordingId);
|
|
548
448
|
}
|
|
549
449
|
return writer;
|
|
550
450
|
},
|
|
551
451
|
decode(input, length) {
|
|
552
|
-
const reader = input instanceof
|
|
452
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
553
453
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
554
|
-
const message =
|
|
454
|
+
const message = createBaseStartRecordingResponse();
|
|
555
455
|
while (reader.pos < end) {
|
|
556
456
|
const tag = reader.uint32();
|
|
557
457
|
switch (tag >>> 3) {
|
|
@@ -566,14 +466,9 @@ exports.StartRecordingResponse = {
|
|
|
566
466
|
return message;
|
|
567
467
|
},
|
|
568
468
|
fromJSON(object) {
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
}
|
|
573
|
-
else {
|
|
574
|
-
message.recordingId = "";
|
|
575
|
-
}
|
|
576
|
-
return message;
|
|
469
|
+
return {
|
|
470
|
+
recordingId: isSet(object.recordingId) ? String(object.recordingId) : "",
|
|
471
|
+
};
|
|
577
472
|
},
|
|
578
473
|
toJSON(message) {
|
|
579
474
|
const obj = {};
|
|
@@ -582,19 +477,17 @@ exports.StartRecordingResponse = {
|
|
|
582
477
|
return obj;
|
|
583
478
|
},
|
|
584
479
|
fromPartial(object) {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
}
|
|
589
|
-
else {
|
|
590
|
-
message.recordingId = "";
|
|
591
|
-
}
|
|
480
|
+
var _a;
|
|
481
|
+
const message = createBaseStartRecordingResponse();
|
|
482
|
+
message.recordingId = (_a = object.recordingId) !== null && _a !== void 0 ? _a : "";
|
|
592
483
|
return message;
|
|
593
484
|
},
|
|
594
485
|
};
|
|
595
|
-
|
|
486
|
+
function createBaseAddOutputRequest() {
|
|
487
|
+
return { recordingId: "", rtmpUrl: "" };
|
|
488
|
+
}
|
|
596
489
|
exports.AddOutputRequest = {
|
|
597
|
-
encode(message, writer =
|
|
490
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
598
491
|
if (message.recordingId !== "") {
|
|
599
492
|
writer.uint32(10).string(message.recordingId);
|
|
600
493
|
}
|
|
@@ -604,9 +497,9 @@ exports.AddOutputRequest = {
|
|
|
604
497
|
return writer;
|
|
605
498
|
},
|
|
606
499
|
decode(input, length) {
|
|
607
|
-
const reader = input instanceof
|
|
500
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
608
501
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
609
|
-
const message =
|
|
502
|
+
const message = createBaseAddOutputRequest();
|
|
610
503
|
while (reader.pos < end) {
|
|
611
504
|
const tag = reader.uint32();
|
|
612
505
|
switch (tag >>> 3) {
|
|
@@ -624,20 +517,10 @@ exports.AddOutputRequest = {
|
|
|
624
517
|
return message;
|
|
625
518
|
},
|
|
626
519
|
fromJSON(object) {
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
}
|
|
631
|
-
else {
|
|
632
|
-
message.recordingId = "";
|
|
633
|
-
}
|
|
634
|
-
if (object.rtmpUrl !== undefined && object.rtmpUrl !== null) {
|
|
635
|
-
message.rtmpUrl = String(object.rtmpUrl);
|
|
636
|
-
}
|
|
637
|
-
else {
|
|
638
|
-
message.rtmpUrl = "";
|
|
639
|
-
}
|
|
640
|
-
return message;
|
|
520
|
+
return {
|
|
521
|
+
recordingId: isSet(object.recordingId) ? String(object.recordingId) : "",
|
|
522
|
+
rtmpUrl: isSet(object.rtmpUrl) ? String(object.rtmpUrl) : "",
|
|
523
|
+
};
|
|
641
524
|
},
|
|
642
525
|
toJSON(message) {
|
|
643
526
|
const obj = {};
|
|
@@ -647,25 +530,18 @@ exports.AddOutputRequest = {
|
|
|
647
530
|
return obj;
|
|
648
531
|
},
|
|
649
532
|
fromPartial(object) {
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
else {
|
|
655
|
-
message.recordingId = "";
|
|
656
|
-
}
|
|
657
|
-
if (object.rtmpUrl !== undefined && object.rtmpUrl !== null) {
|
|
658
|
-
message.rtmpUrl = object.rtmpUrl;
|
|
659
|
-
}
|
|
660
|
-
else {
|
|
661
|
-
message.rtmpUrl = "";
|
|
662
|
-
}
|
|
533
|
+
var _a, _b;
|
|
534
|
+
const message = createBaseAddOutputRequest();
|
|
535
|
+
message.recordingId = (_a = object.recordingId) !== null && _a !== void 0 ? _a : "";
|
|
536
|
+
message.rtmpUrl = (_b = object.rtmpUrl) !== null && _b !== void 0 ? _b : "";
|
|
663
537
|
return message;
|
|
664
538
|
},
|
|
665
539
|
};
|
|
666
|
-
|
|
540
|
+
function createBaseRemoveOutputRequest() {
|
|
541
|
+
return { recordingId: "", rtmpUrl: "" };
|
|
542
|
+
}
|
|
667
543
|
exports.RemoveOutputRequest = {
|
|
668
|
-
encode(message, writer =
|
|
544
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
669
545
|
if (message.recordingId !== "") {
|
|
670
546
|
writer.uint32(10).string(message.recordingId);
|
|
671
547
|
}
|
|
@@ -675,9 +551,9 @@ exports.RemoveOutputRequest = {
|
|
|
675
551
|
return writer;
|
|
676
552
|
},
|
|
677
553
|
decode(input, length) {
|
|
678
|
-
const reader = input instanceof
|
|
554
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
679
555
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
680
|
-
const message =
|
|
556
|
+
const message = createBaseRemoveOutputRequest();
|
|
681
557
|
while (reader.pos < end) {
|
|
682
558
|
const tag = reader.uint32();
|
|
683
559
|
switch (tag >>> 3) {
|
|
@@ -695,20 +571,10 @@ exports.RemoveOutputRequest = {
|
|
|
695
571
|
return message;
|
|
696
572
|
},
|
|
697
573
|
fromJSON(object) {
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
}
|
|
702
|
-
else {
|
|
703
|
-
message.recordingId = "";
|
|
704
|
-
}
|
|
705
|
-
if (object.rtmpUrl !== undefined && object.rtmpUrl !== null) {
|
|
706
|
-
message.rtmpUrl = String(object.rtmpUrl);
|
|
707
|
-
}
|
|
708
|
-
else {
|
|
709
|
-
message.rtmpUrl = "";
|
|
710
|
-
}
|
|
711
|
-
return message;
|
|
574
|
+
return {
|
|
575
|
+
recordingId: isSet(object.recordingId) ? String(object.recordingId) : "",
|
|
576
|
+
rtmpUrl: isSet(object.rtmpUrl) ? String(object.rtmpUrl) : "",
|
|
577
|
+
};
|
|
712
578
|
},
|
|
713
579
|
toJSON(message) {
|
|
714
580
|
const obj = {};
|
|
@@ -718,34 +584,27 @@ exports.RemoveOutputRequest = {
|
|
|
718
584
|
return obj;
|
|
719
585
|
},
|
|
720
586
|
fromPartial(object) {
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
else {
|
|
726
|
-
message.recordingId = "";
|
|
727
|
-
}
|
|
728
|
-
if (object.rtmpUrl !== undefined && object.rtmpUrl !== null) {
|
|
729
|
-
message.rtmpUrl = object.rtmpUrl;
|
|
730
|
-
}
|
|
731
|
-
else {
|
|
732
|
-
message.rtmpUrl = "";
|
|
733
|
-
}
|
|
587
|
+
var _a, _b;
|
|
588
|
+
const message = createBaseRemoveOutputRequest();
|
|
589
|
+
message.recordingId = (_a = object.recordingId) !== null && _a !== void 0 ? _a : "";
|
|
590
|
+
message.rtmpUrl = (_b = object.rtmpUrl) !== null && _b !== void 0 ? _b : "";
|
|
734
591
|
return message;
|
|
735
592
|
},
|
|
736
593
|
};
|
|
737
|
-
|
|
594
|
+
function createBaseEndRecordingRequest() {
|
|
595
|
+
return { recordingId: "" };
|
|
596
|
+
}
|
|
738
597
|
exports.EndRecordingRequest = {
|
|
739
|
-
encode(message, writer =
|
|
598
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
740
599
|
if (message.recordingId !== "") {
|
|
741
600
|
writer.uint32(10).string(message.recordingId);
|
|
742
601
|
}
|
|
743
602
|
return writer;
|
|
744
603
|
},
|
|
745
604
|
decode(input, length) {
|
|
746
|
-
const reader = input instanceof
|
|
605
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
747
606
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
748
|
-
const message =
|
|
607
|
+
const message = createBaseEndRecordingRequest();
|
|
749
608
|
while (reader.pos < end) {
|
|
750
609
|
const tag = reader.uint32();
|
|
751
610
|
switch (tag >>> 3) {
|
|
@@ -760,14 +619,9 @@ exports.EndRecordingRequest = {
|
|
|
760
619
|
return message;
|
|
761
620
|
},
|
|
762
621
|
fromJSON(object) {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
}
|
|
767
|
-
else {
|
|
768
|
-
message.recordingId = "";
|
|
769
|
-
}
|
|
770
|
-
return message;
|
|
622
|
+
return {
|
|
623
|
+
recordingId: isSet(object.recordingId) ? String(object.recordingId) : "",
|
|
624
|
+
};
|
|
771
625
|
},
|
|
772
626
|
toJSON(message) {
|
|
773
627
|
const obj = {};
|
|
@@ -776,24 +630,24 @@ exports.EndRecordingRequest = {
|
|
|
776
630
|
return obj;
|
|
777
631
|
},
|
|
778
632
|
fromPartial(object) {
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
}
|
|
783
|
-
else {
|
|
784
|
-
message.recordingId = "";
|
|
785
|
-
}
|
|
633
|
+
var _a;
|
|
634
|
+
const message = createBaseEndRecordingRequest();
|
|
635
|
+
message.recordingId = (_a = object.recordingId) !== null && _a !== void 0 ? _a : "";
|
|
786
636
|
return message;
|
|
787
637
|
},
|
|
788
638
|
};
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
639
|
+
function createBaseRecordingInfo() {
|
|
640
|
+
return {
|
|
641
|
+
id: "",
|
|
642
|
+
roomName: "",
|
|
643
|
+
active: false,
|
|
644
|
+
error: "",
|
|
645
|
+
file: undefined,
|
|
646
|
+
rtmp: [],
|
|
647
|
+
};
|
|
648
|
+
}
|
|
795
649
|
exports.RecordingInfo = {
|
|
796
|
-
encode(message, writer =
|
|
650
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
797
651
|
if (message.id !== "") {
|
|
798
652
|
writer.uint32(10).string(message.id);
|
|
799
653
|
}
|
|
@@ -815,10 +669,9 @@ exports.RecordingInfo = {
|
|
|
815
669
|
return writer;
|
|
816
670
|
},
|
|
817
671
|
decode(input, length) {
|
|
818
|
-
const reader = input instanceof
|
|
672
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
819
673
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
820
|
-
const message =
|
|
821
|
-
message.rtmp = [];
|
|
674
|
+
const message = createBaseRecordingInfo();
|
|
822
675
|
while (reader.pos < end) {
|
|
823
676
|
const tag = reader.uint32();
|
|
824
677
|
switch (tag >>> 3) {
|
|
@@ -848,44 +701,16 @@ exports.RecordingInfo = {
|
|
|
848
701
|
return message;
|
|
849
702
|
},
|
|
850
703
|
fromJSON(object) {
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
}
|
|
862
|
-
else {
|
|
863
|
-
message.roomName = "";
|
|
864
|
-
}
|
|
865
|
-
if (object.active !== undefined && object.active !== null) {
|
|
866
|
-
message.active = Boolean(object.active);
|
|
867
|
-
}
|
|
868
|
-
else {
|
|
869
|
-
message.active = false;
|
|
870
|
-
}
|
|
871
|
-
if (object.error !== undefined && object.error !== null) {
|
|
872
|
-
message.error = String(object.error);
|
|
873
|
-
}
|
|
874
|
-
else {
|
|
875
|
-
message.error = "";
|
|
876
|
-
}
|
|
877
|
-
if (object.file !== undefined && object.file !== null) {
|
|
878
|
-
message.file = exports.FileResult.fromJSON(object.file);
|
|
879
|
-
}
|
|
880
|
-
else {
|
|
881
|
-
message.file = undefined;
|
|
882
|
-
}
|
|
883
|
-
if (object.rtmp !== undefined && object.rtmp !== null) {
|
|
884
|
-
for (const e of object.rtmp) {
|
|
885
|
-
message.rtmp.push(exports.RtmpResult.fromJSON(e));
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
return message;
|
|
704
|
+
return {
|
|
705
|
+
id: isSet(object.id) ? String(object.id) : "",
|
|
706
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : "",
|
|
707
|
+
active: isSet(object.active) ? Boolean(object.active) : false,
|
|
708
|
+
error: isSet(object.error) ? String(object.error) : "",
|
|
709
|
+
file: isSet(object.file) ? exports.FileResult.fromJSON(object.file) : undefined,
|
|
710
|
+
rtmp: Array.isArray(object === null || object === void 0 ? void 0 : object.rtmp)
|
|
711
|
+
? object.rtmp.map((e) => exports.RtmpResult.fromJSON(e))
|
|
712
|
+
: [],
|
|
713
|
+
};
|
|
889
714
|
},
|
|
890
715
|
toJSON(message) {
|
|
891
716
|
const obj = {};
|
|
@@ -904,49 +729,25 @@ exports.RecordingInfo = {
|
|
|
904
729
|
return obj;
|
|
905
730
|
},
|
|
906
731
|
fromPartial(object) {
|
|
907
|
-
|
|
908
|
-
message
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
else {
|
|
919
|
-
message.roomName = "";
|
|
920
|
-
}
|
|
921
|
-
if (object.active !== undefined && object.active !== null) {
|
|
922
|
-
message.active = object.active;
|
|
923
|
-
}
|
|
924
|
-
else {
|
|
925
|
-
message.active = false;
|
|
926
|
-
}
|
|
927
|
-
if (object.error !== undefined && object.error !== null) {
|
|
928
|
-
message.error = object.error;
|
|
929
|
-
}
|
|
930
|
-
else {
|
|
931
|
-
message.error = "";
|
|
932
|
-
}
|
|
933
|
-
if (object.file !== undefined && object.file !== null) {
|
|
934
|
-
message.file = exports.FileResult.fromPartial(object.file);
|
|
935
|
-
}
|
|
936
|
-
else {
|
|
937
|
-
message.file = undefined;
|
|
938
|
-
}
|
|
939
|
-
if (object.rtmp !== undefined && object.rtmp !== null) {
|
|
940
|
-
for (const e of object.rtmp) {
|
|
941
|
-
message.rtmp.push(exports.RtmpResult.fromPartial(e));
|
|
942
|
-
}
|
|
943
|
-
}
|
|
732
|
+
var _a, _b, _c, _d, _e;
|
|
733
|
+
const message = createBaseRecordingInfo();
|
|
734
|
+
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
735
|
+
message.roomName = (_b = object.roomName) !== null && _b !== void 0 ? _b : "";
|
|
736
|
+
message.active = (_c = object.active) !== null && _c !== void 0 ? _c : false;
|
|
737
|
+
message.error = (_d = object.error) !== null && _d !== void 0 ? _d : "";
|
|
738
|
+
message.file =
|
|
739
|
+
object.file !== undefined && object.file !== null
|
|
740
|
+
? exports.FileResult.fromPartial(object.file)
|
|
741
|
+
: undefined;
|
|
742
|
+
message.rtmp = ((_e = object.rtmp) === null || _e === void 0 ? void 0 : _e.map((e) => exports.RtmpResult.fromPartial(e))) || [];
|
|
944
743
|
return message;
|
|
945
744
|
},
|
|
946
745
|
};
|
|
947
|
-
|
|
746
|
+
function createBaseFileResult() {
|
|
747
|
+
return { downloadUrl: "", duration: 0 };
|
|
748
|
+
}
|
|
948
749
|
exports.FileResult = {
|
|
949
|
-
encode(message, writer =
|
|
750
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
950
751
|
if (message.downloadUrl !== "") {
|
|
951
752
|
writer.uint32(10).string(message.downloadUrl);
|
|
952
753
|
}
|
|
@@ -956,9 +757,9 @@ exports.FileResult = {
|
|
|
956
757
|
return writer;
|
|
957
758
|
},
|
|
958
759
|
decode(input, length) {
|
|
959
|
-
const reader = input instanceof
|
|
760
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
960
761
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
961
|
-
const message =
|
|
762
|
+
const message = createBaseFileResult();
|
|
962
763
|
while (reader.pos < end) {
|
|
963
764
|
const tag = reader.uint32();
|
|
964
765
|
switch (tag >>> 3) {
|
|
@@ -976,48 +777,32 @@ exports.FileResult = {
|
|
|
976
777
|
return message;
|
|
977
778
|
},
|
|
978
779
|
fromJSON(object) {
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
}
|
|
983
|
-
else {
|
|
984
|
-
message.downloadUrl = "";
|
|
985
|
-
}
|
|
986
|
-
if (object.duration !== undefined && object.duration !== null) {
|
|
987
|
-
message.duration = Number(object.duration);
|
|
988
|
-
}
|
|
989
|
-
else {
|
|
990
|
-
message.duration = 0;
|
|
991
|
-
}
|
|
992
|
-
return message;
|
|
780
|
+
return {
|
|
781
|
+
downloadUrl: isSet(object.downloadUrl) ? String(object.downloadUrl) : "",
|
|
782
|
+
duration: isSet(object.duration) ? Number(object.duration) : 0,
|
|
783
|
+
};
|
|
993
784
|
},
|
|
994
785
|
toJSON(message) {
|
|
995
786
|
const obj = {};
|
|
996
787
|
message.downloadUrl !== undefined &&
|
|
997
788
|
(obj.downloadUrl = message.downloadUrl);
|
|
998
|
-
message.duration !== undefined &&
|
|
789
|
+
message.duration !== undefined &&
|
|
790
|
+
(obj.duration = Math.round(message.duration));
|
|
999
791
|
return obj;
|
|
1000
792
|
},
|
|
1001
793
|
fromPartial(object) {
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
else {
|
|
1007
|
-
message.downloadUrl = "";
|
|
1008
|
-
}
|
|
1009
|
-
if (object.duration !== undefined && object.duration !== null) {
|
|
1010
|
-
message.duration = object.duration;
|
|
1011
|
-
}
|
|
1012
|
-
else {
|
|
1013
|
-
message.duration = 0;
|
|
1014
|
-
}
|
|
794
|
+
var _a, _b;
|
|
795
|
+
const message = createBaseFileResult();
|
|
796
|
+
message.downloadUrl = (_a = object.downloadUrl) !== null && _a !== void 0 ? _a : "";
|
|
797
|
+
message.duration = (_b = object.duration) !== null && _b !== void 0 ? _b : 0;
|
|
1015
798
|
return message;
|
|
1016
799
|
},
|
|
1017
800
|
};
|
|
1018
|
-
|
|
801
|
+
function createBaseRtmpResult() {
|
|
802
|
+
return { streamUrl: "", duration: 0 };
|
|
803
|
+
}
|
|
1019
804
|
exports.RtmpResult = {
|
|
1020
|
-
encode(message, writer =
|
|
805
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1021
806
|
if (message.streamUrl !== "") {
|
|
1022
807
|
writer.uint32(10).string(message.streamUrl);
|
|
1023
808
|
}
|
|
@@ -1027,9 +812,9 @@ exports.RtmpResult = {
|
|
|
1027
812
|
return writer;
|
|
1028
813
|
},
|
|
1029
814
|
decode(input, length) {
|
|
1030
|
-
const reader = input instanceof
|
|
815
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1031
816
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1032
|
-
const message =
|
|
817
|
+
const message = createBaseRtmpResult();
|
|
1033
818
|
while (reader.pos < end) {
|
|
1034
819
|
const tag = reader.uint32();
|
|
1035
820
|
switch (tag >>> 3) {
|
|
@@ -1047,41 +832,23 @@ exports.RtmpResult = {
|
|
|
1047
832
|
return message;
|
|
1048
833
|
},
|
|
1049
834
|
fromJSON(object) {
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
}
|
|
1054
|
-
else {
|
|
1055
|
-
message.streamUrl = "";
|
|
1056
|
-
}
|
|
1057
|
-
if (object.duration !== undefined && object.duration !== null) {
|
|
1058
|
-
message.duration = Number(object.duration);
|
|
1059
|
-
}
|
|
1060
|
-
else {
|
|
1061
|
-
message.duration = 0;
|
|
1062
|
-
}
|
|
1063
|
-
return message;
|
|
835
|
+
return {
|
|
836
|
+
streamUrl: isSet(object.streamUrl) ? String(object.streamUrl) : "",
|
|
837
|
+
duration: isSet(object.duration) ? Number(object.duration) : 0,
|
|
838
|
+
};
|
|
1064
839
|
},
|
|
1065
840
|
toJSON(message) {
|
|
1066
841
|
const obj = {};
|
|
1067
842
|
message.streamUrl !== undefined && (obj.streamUrl = message.streamUrl);
|
|
1068
|
-
message.duration !== undefined &&
|
|
843
|
+
message.duration !== undefined &&
|
|
844
|
+
(obj.duration = Math.round(message.duration));
|
|
1069
845
|
return obj;
|
|
1070
846
|
},
|
|
1071
847
|
fromPartial(object) {
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
else {
|
|
1077
|
-
message.streamUrl = "";
|
|
1078
|
-
}
|
|
1079
|
-
if (object.duration !== undefined && object.duration !== null) {
|
|
1080
|
-
message.duration = object.duration;
|
|
1081
|
-
}
|
|
1082
|
-
else {
|
|
1083
|
-
message.duration = 0;
|
|
1084
|
-
}
|
|
848
|
+
var _a, _b;
|
|
849
|
+
const message = createBaseRtmpResult();
|
|
850
|
+
message.streamUrl = (_a = object.streamUrl) !== null && _a !== void 0 ? _a : "";
|
|
851
|
+
message.duration = (_b = object.duration) !== null && _b !== void 0 ? _b : 0;
|
|
1085
852
|
return message;
|
|
1086
853
|
},
|
|
1087
854
|
};
|
|
@@ -1102,8 +869,11 @@ function longToNumber(long) {
|
|
|
1102
869
|
}
|
|
1103
870
|
return long.toNumber();
|
|
1104
871
|
}
|
|
1105
|
-
if (
|
|
1106
|
-
|
|
1107
|
-
|
|
872
|
+
if (_m0.util.Long !== long_1.default) {
|
|
873
|
+
_m0.util.Long = long_1.default;
|
|
874
|
+
_m0.configure();
|
|
875
|
+
}
|
|
876
|
+
function isSet(value) {
|
|
877
|
+
return value !== null && value !== undefined;
|
|
1108
878
|
}
|
|
1109
879
|
//# sourceMappingURL=livekit_recording.js.map
|