livekit-server-sdk 0.5.9 → 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/dist/EgressClient.d.ts +45 -0
- package/dist/EgressClient.js +132 -0
- package/dist/EgressClient.js.map +1 -0
- package/dist/RoomServiceClient.d.ts +1 -2
- package/dist/RoomServiceClient.js.map +1 -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 +659 -13
- package/dist/proto/livekit_models.js +1379 -734
- package/dist/proto/livekit_models.js.map +1 -1
- package/dist/proto/livekit_recording.d.ts +198 -16
- package/dist/proto/livekit_recording.js +265 -515
- package/dist/proto/livekit_recording.js.map +1 -1
- package/dist/proto/livekit_room.d.ts +556 -34
- package/dist/proto/livekit_room.js +298 -639
- package/dist/proto/livekit_room.js.map +1 -1
- package/dist/proto/livekit_webhook.d.ts +926 -5
- package/dist/proto/livekit_webhook.js +103 -84
- 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,29 +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
|
-
|
|
356
|
-
|
|
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
|
+
}
|
|
357
317
|
exports.RecordingOptions = {
|
|
358
|
-
encode(message, writer =
|
|
318
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
359
319
|
if (message.preset !== 0) {
|
|
360
320
|
writer.uint32(8).int32(message.preset);
|
|
361
321
|
}
|
|
@@ -386,9 +346,9 @@ exports.RecordingOptions = {
|
|
|
386
346
|
return writer;
|
|
387
347
|
},
|
|
388
348
|
decode(input, length) {
|
|
389
|
-
const reader = input instanceof
|
|
349
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
390
350
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
391
|
-
const message =
|
|
351
|
+
const message = createBaseRecordingOptions();
|
|
392
352
|
while (reader.pos < end) {
|
|
393
353
|
const tag = reader.uint32();
|
|
394
354
|
switch (tag >>> 3) {
|
|
@@ -427,151 +387,71 @@ exports.RecordingOptions = {
|
|
|
427
387
|
return message;
|
|
428
388
|
},
|
|
429
389
|
fromJSON(object) {
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
message.height = 0;
|
|
448
|
-
}
|
|
449
|
-
if (object.depth !== undefined && object.depth !== null) {
|
|
450
|
-
message.depth = Number(object.depth);
|
|
451
|
-
}
|
|
452
|
-
else {
|
|
453
|
-
message.depth = 0;
|
|
454
|
-
}
|
|
455
|
-
if (object.framerate !== undefined && object.framerate !== null) {
|
|
456
|
-
message.framerate = Number(object.framerate);
|
|
457
|
-
}
|
|
458
|
-
else {
|
|
459
|
-
message.framerate = 0;
|
|
460
|
-
}
|
|
461
|
-
if (object.audioBitrate !== undefined && object.audioBitrate !== null) {
|
|
462
|
-
message.audioBitrate = Number(object.audioBitrate);
|
|
463
|
-
}
|
|
464
|
-
else {
|
|
465
|
-
message.audioBitrate = 0;
|
|
466
|
-
}
|
|
467
|
-
if (object.audioFrequency !== undefined && object.audioFrequency !== null) {
|
|
468
|
-
message.audioFrequency = Number(object.audioFrequency);
|
|
469
|
-
}
|
|
470
|
-
else {
|
|
471
|
-
message.audioFrequency = 0;
|
|
472
|
-
}
|
|
473
|
-
if (object.videoBitrate !== undefined && object.videoBitrate !== null) {
|
|
474
|
-
message.videoBitrate = Number(object.videoBitrate);
|
|
475
|
-
}
|
|
476
|
-
else {
|
|
477
|
-
message.videoBitrate = 0;
|
|
478
|
-
}
|
|
479
|
-
if (object.profile !== undefined && object.profile !== null) {
|
|
480
|
-
message.profile = String(object.profile);
|
|
481
|
-
}
|
|
482
|
-
else {
|
|
483
|
-
message.profile = "";
|
|
484
|
-
}
|
|
485
|
-
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
|
+
};
|
|
486
407
|
},
|
|
487
408
|
toJSON(message) {
|
|
488
409
|
const obj = {};
|
|
489
410
|
message.preset !== undefined &&
|
|
490
411
|
(obj.preset = recordingPresetToJSON(message.preset));
|
|
491
|
-
message.width !== undefined && (obj.width = message.width);
|
|
492
|
-
message.height !== undefined && (obj.height = message.height);
|
|
493
|
-
message.depth !== undefined && (obj.depth = message.depth);
|
|
494
|
-
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));
|
|
495
417
|
message.audioBitrate !== undefined &&
|
|
496
|
-
(obj.audioBitrate = message.audioBitrate);
|
|
418
|
+
(obj.audioBitrate = Math.round(message.audioBitrate));
|
|
497
419
|
message.audioFrequency !== undefined &&
|
|
498
|
-
(obj.audioFrequency = message.audioFrequency);
|
|
420
|
+
(obj.audioFrequency = Math.round(message.audioFrequency));
|
|
499
421
|
message.videoBitrate !== undefined &&
|
|
500
|
-
(obj.videoBitrate = message.videoBitrate);
|
|
422
|
+
(obj.videoBitrate = Math.round(message.videoBitrate));
|
|
501
423
|
message.profile !== undefined && (obj.profile = message.profile);
|
|
502
424
|
return obj;
|
|
503
425
|
},
|
|
504
426
|
fromPartial(object) {
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
message.width = 0;
|
|
517
|
-
}
|
|
518
|
-
if (object.height !== undefined && object.height !== null) {
|
|
519
|
-
message.height = object.height;
|
|
520
|
-
}
|
|
521
|
-
else {
|
|
522
|
-
message.height = 0;
|
|
523
|
-
}
|
|
524
|
-
if (object.depth !== undefined && object.depth !== null) {
|
|
525
|
-
message.depth = object.depth;
|
|
526
|
-
}
|
|
527
|
-
else {
|
|
528
|
-
message.depth = 0;
|
|
529
|
-
}
|
|
530
|
-
if (object.framerate !== undefined && object.framerate !== null) {
|
|
531
|
-
message.framerate = object.framerate;
|
|
532
|
-
}
|
|
533
|
-
else {
|
|
534
|
-
message.framerate = 0;
|
|
535
|
-
}
|
|
536
|
-
if (object.audioBitrate !== undefined && object.audioBitrate !== null) {
|
|
537
|
-
message.audioBitrate = object.audioBitrate;
|
|
538
|
-
}
|
|
539
|
-
else {
|
|
540
|
-
message.audioBitrate = 0;
|
|
541
|
-
}
|
|
542
|
-
if (object.audioFrequency !== undefined && object.audioFrequency !== null) {
|
|
543
|
-
message.audioFrequency = object.audioFrequency;
|
|
544
|
-
}
|
|
545
|
-
else {
|
|
546
|
-
message.audioFrequency = 0;
|
|
547
|
-
}
|
|
548
|
-
if (object.videoBitrate !== undefined && object.videoBitrate !== null) {
|
|
549
|
-
message.videoBitrate = object.videoBitrate;
|
|
550
|
-
}
|
|
551
|
-
else {
|
|
552
|
-
message.videoBitrate = 0;
|
|
553
|
-
}
|
|
554
|
-
if (object.profile !== undefined && object.profile !== null) {
|
|
555
|
-
message.profile = object.profile;
|
|
556
|
-
}
|
|
557
|
-
else {
|
|
558
|
-
message.profile = "";
|
|
559
|
-
}
|
|
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 : "";
|
|
560
438
|
return message;
|
|
561
439
|
},
|
|
562
440
|
};
|
|
563
|
-
|
|
441
|
+
function createBaseStartRecordingResponse() {
|
|
442
|
+
return { recordingId: "" };
|
|
443
|
+
}
|
|
564
444
|
exports.StartRecordingResponse = {
|
|
565
|
-
encode(message, writer =
|
|
445
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
566
446
|
if (message.recordingId !== "") {
|
|
567
447
|
writer.uint32(10).string(message.recordingId);
|
|
568
448
|
}
|
|
569
449
|
return writer;
|
|
570
450
|
},
|
|
571
451
|
decode(input, length) {
|
|
572
|
-
const reader = input instanceof
|
|
452
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
573
453
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
574
|
-
const message =
|
|
454
|
+
const message = createBaseStartRecordingResponse();
|
|
575
455
|
while (reader.pos < end) {
|
|
576
456
|
const tag = reader.uint32();
|
|
577
457
|
switch (tag >>> 3) {
|
|
@@ -586,14 +466,9 @@ exports.StartRecordingResponse = {
|
|
|
586
466
|
return message;
|
|
587
467
|
},
|
|
588
468
|
fromJSON(object) {
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
}
|
|
593
|
-
else {
|
|
594
|
-
message.recordingId = "";
|
|
595
|
-
}
|
|
596
|
-
return message;
|
|
469
|
+
return {
|
|
470
|
+
recordingId: isSet(object.recordingId) ? String(object.recordingId) : "",
|
|
471
|
+
};
|
|
597
472
|
},
|
|
598
473
|
toJSON(message) {
|
|
599
474
|
const obj = {};
|
|
@@ -602,19 +477,17 @@ exports.StartRecordingResponse = {
|
|
|
602
477
|
return obj;
|
|
603
478
|
},
|
|
604
479
|
fromPartial(object) {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
}
|
|
609
|
-
else {
|
|
610
|
-
message.recordingId = "";
|
|
611
|
-
}
|
|
480
|
+
var _a;
|
|
481
|
+
const message = createBaseStartRecordingResponse();
|
|
482
|
+
message.recordingId = (_a = object.recordingId) !== null && _a !== void 0 ? _a : "";
|
|
612
483
|
return message;
|
|
613
484
|
},
|
|
614
485
|
};
|
|
615
|
-
|
|
486
|
+
function createBaseAddOutputRequest() {
|
|
487
|
+
return { recordingId: "", rtmpUrl: "" };
|
|
488
|
+
}
|
|
616
489
|
exports.AddOutputRequest = {
|
|
617
|
-
encode(message, writer =
|
|
490
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
618
491
|
if (message.recordingId !== "") {
|
|
619
492
|
writer.uint32(10).string(message.recordingId);
|
|
620
493
|
}
|
|
@@ -624,9 +497,9 @@ exports.AddOutputRequest = {
|
|
|
624
497
|
return writer;
|
|
625
498
|
},
|
|
626
499
|
decode(input, length) {
|
|
627
|
-
const reader = input instanceof
|
|
500
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
628
501
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
629
|
-
const message =
|
|
502
|
+
const message = createBaseAddOutputRequest();
|
|
630
503
|
while (reader.pos < end) {
|
|
631
504
|
const tag = reader.uint32();
|
|
632
505
|
switch (tag >>> 3) {
|
|
@@ -644,20 +517,10 @@ exports.AddOutputRequest = {
|
|
|
644
517
|
return message;
|
|
645
518
|
},
|
|
646
519
|
fromJSON(object) {
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
}
|
|
651
|
-
else {
|
|
652
|
-
message.recordingId = "";
|
|
653
|
-
}
|
|
654
|
-
if (object.rtmpUrl !== undefined && object.rtmpUrl !== null) {
|
|
655
|
-
message.rtmpUrl = String(object.rtmpUrl);
|
|
656
|
-
}
|
|
657
|
-
else {
|
|
658
|
-
message.rtmpUrl = "";
|
|
659
|
-
}
|
|
660
|
-
return message;
|
|
520
|
+
return {
|
|
521
|
+
recordingId: isSet(object.recordingId) ? String(object.recordingId) : "",
|
|
522
|
+
rtmpUrl: isSet(object.rtmpUrl) ? String(object.rtmpUrl) : "",
|
|
523
|
+
};
|
|
661
524
|
},
|
|
662
525
|
toJSON(message) {
|
|
663
526
|
const obj = {};
|
|
@@ -667,25 +530,18 @@ exports.AddOutputRequest = {
|
|
|
667
530
|
return obj;
|
|
668
531
|
},
|
|
669
532
|
fromPartial(object) {
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
else {
|
|
675
|
-
message.recordingId = "";
|
|
676
|
-
}
|
|
677
|
-
if (object.rtmpUrl !== undefined && object.rtmpUrl !== null) {
|
|
678
|
-
message.rtmpUrl = object.rtmpUrl;
|
|
679
|
-
}
|
|
680
|
-
else {
|
|
681
|
-
message.rtmpUrl = "";
|
|
682
|
-
}
|
|
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 : "";
|
|
683
537
|
return message;
|
|
684
538
|
},
|
|
685
539
|
};
|
|
686
|
-
|
|
540
|
+
function createBaseRemoveOutputRequest() {
|
|
541
|
+
return { recordingId: "", rtmpUrl: "" };
|
|
542
|
+
}
|
|
687
543
|
exports.RemoveOutputRequest = {
|
|
688
|
-
encode(message, writer =
|
|
544
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
689
545
|
if (message.recordingId !== "") {
|
|
690
546
|
writer.uint32(10).string(message.recordingId);
|
|
691
547
|
}
|
|
@@ -695,9 +551,9 @@ exports.RemoveOutputRequest = {
|
|
|
695
551
|
return writer;
|
|
696
552
|
},
|
|
697
553
|
decode(input, length) {
|
|
698
|
-
const reader = input instanceof
|
|
554
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
699
555
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
700
|
-
const message =
|
|
556
|
+
const message = createBaseRemoveOutputRequest();
|
|
701
557
|
while (reader.pos < end) {
|
|
702
558
|
const tag = reader.uint32();
|
|
703
559
|
switch (tag >>> 3) {
|
|
@@ -715,20 +571,10 @@ exports.RemoveOutputRequest = {
|
|
|
715
571
|
return message;
|
|
716
572
|
},
|
|
717
573
|
fromJSON(object) {
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
}
|
|
722
|
-
else {
|
|
723
|
-
message.recordingId = "";
|
|
724
|
-
}
|
|
725
|
-
if (object.rtmpUrl !== undefined && object.rtmpUrl !== null) {
|
|
726
|
-
message.rtmpUrl = String(object.rtmpUrl);
|
|
727
|
-
}
|
|
728
|
-
else {
|
|
729
|
-
message.rtmpUrl = "";
|
|
730
|
-
}
|
|
731
|
-
return message;
|
|
574
|
+
return {
|
|
575
|
+
recordingId: isSet(object.recordingId) ? String(object.recordingId) : "",
|
|
576
|
+
rtmpUrl: isSet(object.rtmpUrl) ? String(object.rtmpUrl) : "",
|
|
577
|
+
};
|
|
732
578
|
},
|
|
733
579
|
toJSON(message) {
|
|
734
580
|
const obj = {};
|
|
@@ -738,34 +584,27 @@ exports.RemoveOutputRequest = {
|
|
|
738
584
|
return obj;
|
|
739
585
|
},
|
|
740
586
|
fromPartial(object) {
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
else {
|
|
746
|
-
message.recordingId = "";
|
|
747
|
-
}
|
|
748
|
-
if (object.rtmpUrl !== undefined && object.rtmpUrl !== null) {
|
|
749
|
-
message.rtmpUrl = object.rtmpUrl;
|
|
750
|
-
}
|
|
751
|
-
else {
|
|
752
|
-
message.rtmpUrl = "";
|
|
753
|
-
}
|
|
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 : "";
|
|
754
591
|
return message;
|
|
755
592
|
},
|
|
756
593
|
};
|
|
757
|
-
|
|
594
|
+
function createBaseEndRecordingRequest() {
|
|
595
|
+
return { recordingId: "" };
|
|
596
|
+
}
|
|
758
597
|
exports.EndRecordingRequest = {
|
|
759
|
-
encode(message, writer =
|
|
598
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
760
599
|
if (message.recordingId !== "") {
|
|
761
600
|
writer.uint32(10).string(message.recordingId);
|
|
762
601
|
}
|
|
763
602
|
return writer;
|
|
764
603
|
},
|
|
765
604
|
decode(input, length) {
|
|
766
|
-
const reader = input instanceof
|
|
605
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
767
606
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
768
|
-
const message =
|
|
607
|
+
const message = createBaseEndRecordingRequest();
|
|
769
608
|
while (reader.pos < end) {
|
|
770
609
|
const tag = reader.uint32();
|
|
771
610
|
switch (tag >>> 3) {
|
|
@@ -780,14 +619,9 @@ exports.EndRecordingRequest = {
|
|
|
780
619
|
return message;
|
|
781
620
|
},
|
|
782
621
|
fromJSON(object) {
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
}
|
|
787
|
-
else {
|
|
788
|
-
message.recordingId = "";
|
|
789
|
-
}
|
|
790
|
-
return message;
|
|
622
|
+
return {
|
|
623
|
+
recordingId: isSet(object.recordingId) ? String(object.recordingId) : "",
|
|
624
|
+
};
|
|
791
625
|
},
|
|
792
626
|
toJSON(message) {
|
|
793
627
|
const obj = {};
|
|
@@ -796,24 +630,24 @@ exports.EndRecordingRequest = {
|
|
|
796
630
|
return obj;
|
|
797
631
|
},
|
|
798
632
|
fromPartial(object) {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
}
|
|
803
|
-
else {
|
|
804
|
-
message.recordingId = "";
|
|
805
|
-
}
|
|
633
|
+
var _a;
|
|
634
|
+
const message = createBaseEndRecordingRequest();
|
|
635
|
+
message.recordingId = (_a = object.recordingId) !== null && _a !== void 0 ? _a : "";
|
|
806
636
|
return message;
|
|
807
637
|
},
|
|
808
638
|
};
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
639
|
+
function createBaseRecordingInfo() {
|
|
640
|
+
return {
|
|
641
|
+
id: "",
|
|
642
|
+
roomName: "",
|
|
643
|
+
active: false,
|
|
644
|
+
error: "",
|
|
645
|
+
file: undefined,
|
|
646
|
+
rtmp: [],
|
|
647
|
+
};
|
|
648
|
+
}
|
|
815
649
|
exports.RecordingInfo = {
|
|
816
|
-
encode(message, writer =
|
|
650
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
817
651
|
if (message.id !== "") {
|
|
818
652
|
writer.uint32(10).string(message.id);
|
|
819
653
|
}
|
|
@@ -835,10 +669,9 @@ exports.RecordingInfo = {
|
|
|
835
669
|
return writer;
|
|
836
670
|
},
|
|
837
671
|
decode(input, length) {
|
|
838
|
-
const reader = input instanceof
|
|
672
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
839
673
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
840
|
-
const message =
|
|
841
|
-
message.rtmp = [];
|
|
674
|
+
const message = createBaseRecordingInfo();
|
|
842
675
|
while (reader.pos < end) {
|
|
843
676
|
const tag = reader.uint32();
|
|
844
677
|
switch (tag >>> 3) {
|
|
@@ -868,44 +701,16 @@ exports.RecordingInfo = {
|
|
|
868
701
|
return message;
|
|
869
702
|
},
|
|
870
703
|
fromJSON(object) {
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
}
|
|
882
|
-
else {
|
|
883
|
-
message.roomName = "";
|
|
884
|
-
}
|
|
885
|
-
if (object.active !== undefined && object.active !== null) {
|
|
886
|
-
message.active = Boolean(object.active);
|
|
887
|
-
}
|
|
888
|
-
else {
|
|
889
|
-
message.active = false;
|
|
890
|
-
}
|
|
891
|
-
if (object.error !== undefined && object.error !== null) {
|
|
892
|
-
message.error = String(object.error);
|
|
893
|
-
}
|
|
894
|
-
else {
|
|
895
|
-
message.error = "";
|
|
896
|
-
}
|
|
897
|
-
if (object.file !== undefined && object.file !== null) {
|
|
898
|
-
message.file = exports.FileResult.fromJSON(object.file);
|
|
899
|
-
}
|
|
900
|
-
else {
|
|
901
|
-
message.file = undefined;
|
|
902
|
-
}
|
|
903
|
-
if (object.rtmp !== undefined && object.rtmp !== null) {
|
|
904
|
-
for (const e of object.rtmp) {
|
|
905
|
-
message.rtmp.push(exports.RtmpResult.fromJSON(e));
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
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
|
+
};
|
|
909
714
|
},
|
|
910
715
|
toJSON(message) {
|
|
911
716
|
const obj = {};
|
|
@@ -924,49 +729,25 @@ exports.RecordingInfo = {
|
|
|
924
729
|
return obj;
|
|
925
730
|
},
|
|
926
731
|
fromPartial(object) {
|
|
927
|
-
|
|
928
|
-
message
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
else {
|
|
939
|
-
message.roomName = "";
|
|
940
|
-
}
|
|
941
|
-
if (object.active !== undefined && object.active !== null) {
|
|
942
|
-
message.active = object.active;
|
|
943
|
-
}
|
|
944
|
-
else {
|
|
945
|
-
message.active = false;
|
|
946
|
-
}
|
|
947
|
-
if (object.error !== undefined && object.error !== null) {
|
|
948
|
-
message.error = object.error;
|
|
949
|
-
}
|
|
950
|
-
else {
|
|
951
|
-
message.error = "";
|
|
952
|
-
}
|
|
953
|
-
if (object.file !== undefined && object.file !== null) {
|
|
954
|
-
message.file = exports.FileResult.fromPartial(object.file);
|
|
955
|
-
}
|
|
956
|
-
else {
|
|
957
|
-
message.file = undefined;
|
|
958
|
-
}
|
|
959
|
-
if (object.rtmp !== undefined && object.rtmp !== null) {
|
|
960
|
-
for (const e of object.rtmp) {
|
|
961
|
-
message.rtmp.push(exports.RtmpResult.fromPartial(e));
|
|
962
|
-
}
|
|
963
|
-
}
|
|
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))) || [];
|
|
964
743
|
return message;
|
|
965
744
|
},
|
|
966
745
|
};
|
|
967
|
-
|
|
746
|
+
function createBaseFileResult() {
|
|
747
|
+
return { downloadUrl: "", duration: 0 };
|
|
748
|
+
}
|
|
968
749
|
exports.FileResult = {
|
|
969
|
-
encode(message, writer =
|
|
750
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
970
751
|
if (message.downloadUrl !== "") {
|
|
971
752
|
writer.uint32(10).string(message.downloadUrl);
|
|
972
753
|
}
|
|
@@ -976,9 +757,9 @@ exports.FileResult = {
|
|
|
976
757
|
return writer;
|
|
977
758
|
},
|
|
978
759
|
decode(input, length) {
|
|
979
|
-
const reader = input instanceof
|
|
760
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
980
761
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
981
|
-
const message =
|
|
762
|
+
const message = createBaseFileResult();
|
|
982
763
|
while (reader.pos < end) {
|
|
983
764
|
const tag = reader.uint32();
|
|
984
765
|
switch (tag >>> 3) {
|
|
@@ -996,48 +777,32 @@ exports.FileResult = {
|
|
|
996
777
|
return message;
|
|
997
778
|
},
|
|
998
779
|
fromJSON(object) {
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
}
|
|
1003
|
-
else {
|
|
1004
|
-
message.downloadUrl = "";
|
|
1005
|
-
}
|
|
1006
|
-
if (object.duration !== undefined && object.duration !== null) {
|
|
1007
|
-
message.duration = Number(object.duration);
|
|
1008
|
-
}
|
|
1009
|
-
else {
|
|
1010
|
-
message.duration = 0;
|
|
1011
|
-
}
|
|
1012
|
-
return message;
|
|
780
|
+
return {
|
|
781
|
+
downloadUrl: isSet(object.downloadUrl) ? String(object.downloadUrl) : "",
|
|
782
|
+
duration: isSet(object.duration) ? Number(object.duration) : 0,
|
|
783
|
+
};
|
|
1013
784
|
},
|
|
1014
785
|
toJSON(message) {
|
|
1015
786
|
const obj = {};
|
|
1016
787
|
message.downloadUrl !== undefined &&
|
|
1017
788
|
(obj.downloadUrl = message.downloadUrl);
|
|
1018
|
-
message.duration !== undefined &&
|
|
789
|
+
message.duration !== undefined &&
|
|
790
|
+
(obj.duration = Math.round(message.duration));
|
|
1019
791
|
return obj;
|
|
1020
792
|
},
|
|
1021
793
|
fromPartial(object) {
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
else {
|
|
1027
|
-
message.downloadUrl = "";
|
|
1028
|
-
}
|
|
1029
|
-
if (object.duration !== undefined && object.duration !== null) {
|
|
1030
|
-
message.duration = object.duration;
|
|
1031
|
-
}
|
|
1032
|
-
else {
|
|
1033
|
-
message.duration = 0;
|
|
1034
|
-
}
|
|
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;
|
|
1035
798
|
return message;
|
|
1036
799
|
},
|
|
1037
800
|
};
|
|
1038
|
-
|
|
801
|
+
function createBaseRtmpResult() {
|
|
802
|
+
return { streamUrl: "", duration: 0 };
|
|
803
|
+
}
|
|
1039
804
|
exports.RtmpResult = {
|
|
1040
|
-
encode(message, writer =
|
|
805
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1041
806
|
if (message.streamUrl !== "") {
|
|
1042
807
|
writer.uint32(10).string(message.streamUrl);
|
|
1043
808
|
}
|
|
@@ -1047,9 +812,9 @@ exports.RtmpResult = {
|
|
|
1047
812
|
return writer;
|
|
1048
813
|
},
|
|
1049
814
|
decode(input, length) {
|
|
1050
|
-
const reader = input instanceof
|
|
815
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1051
816
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1052
|
-
const message =
|
|
817
|
+
const message = createBaseRtmpResult();
|
|
1053
818
|
while (reader.pos < end) {
|
|
1054
819
|
const tag = reader.uint32();
|
|
1055
820
|
switch (tag >>> 3) {
|
|
@@ -1067,41 +832,23 @@ exports.RtmpResult = {
|
|
|
1067
832
|
return message;
|
|
1068
833
|
},
|
|
1069
834
|
fromJSON(object) {
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
}
|
|
1074
|
-
else {
|
|
1075
|
-
message.streamUrl = "";
|
|
1076
|
-
}
|
|
1077
|
-
if (object.duration !== undefined && object.duration !== null) {
|
|
1078
|
-
message.duration = Number(object.duration);
|
|
1079
|
-
}
|
|
1080
|
-
else {
|
|
1081
|
-
message.duration = 0;
|
|
1082
|
-
}
|
|
1083
|
-
return message;
|
|
835
|
+
return {
|
|
836
|
+
streamUrl: isSet(object.streamUrl) ? String(object.streamUrl) : "",
|
|
837
|
+
duration: isSet(object.duration) ? Number(object.duration) : 0,
|
|
838
|
+
};
|
|
1084
839
|
},
|
|
1085
840
|
toJSON(message) {
|
|
1086
841
|
const obj = {};
|
|
1087
842
|
message.streamUrl !== undefined && (obj.streamUrl = message.streamUrl);
|
|
1088
|
-
message.duration !== undefined &&
|
|
843
|
+
message.duration !== undefined &&
|
|
844
|
+
(obj.duration = Math.round(message.duration));
|
|
1089
845
|
return obj;
|
|
1090
846
|
},
|
|
1091
847
|
fromPartial(object) {
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
else {
|
|
1097
|
-
message.streamUrl = "";
|
|
1098
|
-
}
|
|
1099
|
-
if (object.duration !== undefined && object.duration !== null) {
|
|
1100
|
-
message.duration = object.duration;
|
|
1101
|
-
}
|
|
1102
|
-
else {
|
|
1103
|
-
message.duration = 0;
|
|
1104
|
-
}
|
|
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;
|
|
1105
852
|
return message;
|
|
1106
853
|
},
|
|
1107
854
|
};
|
|
@@ -1122,8 +869,11 @@ function longToNumber(long) {
|
|
|
1122
869
|
}
|
|
1123
870
|
return long.toNumber();
|
|
1124
871
|
}
|
|
1125
|
-
if (
|
|
1126
|
-
|
|
1127
|
-
|
|
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;
|
|
1128
878
|
}
|
|
1129
879
|
//# sourceMappingURL=livekit_recording.js.map
|