livekit-server-sdk 1.2.1 → 1.2.3
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 +15 -0
- package/dist/EgressClient.js +11 -3
- 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/index.d.ts +1 -1
- package/dist/index.js +1 -2
- package/dist/index.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 +1 -1
|
@@ -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,9 +25,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
25
|
exports.AutoTrackEgress = exports.SegmentsInfo = exports.FileInfo = exports.StreamInfo = exports.StreamInfoList = exports.EgressInfo = exports.StopEgressRequest = exports.ListEgressResponse = exports.ListEgressRequest = exports.UpdateStreamRequest = exports.UpdateLayoutRequest = exports.EncodingOptions = exports.StreamOutput = exports.AliOSSUpload = exports.AzureBlobUpload = exports.GCPUpload = exports.S3Upload_MetadataEntry = exports.S3Upload = exports.DirectFileOutput = exports.SegmentedFileOutput = exports.EncodedFileOutput = exports.TrackEgressRequest = exports.TrackCompositeEgressRequest = exports.WebEgressRequest = exports.RoomCompositeEgressRequest = exports.streamInfo_StatusToJSON = exports.streamInfo_StatusFromJSON = exports.StreamInfo_Status = exports.egressStatusToJSON = exports.egressStatusFromJSON = exports.EgressStatus = exports.encodingOptionsPresetToJSON = exports.encodingOptionsPresetFromJSON = exports.EncodingOptionsPreset = exports.streamProtocolToJSON = exports.streamProtocolFromJSON = exports.StreamProtocol = exports.segmentedFileSuffixToJSON = exports.segmentedFileSuffixFromJSON = exports.SegmentedFileSuffix = exports.segmentedFileProtocolToJSON = exports.segmentedFileProtocolFromJSON = exports.SegmentedFileProtocol = exports.encodedFileTypeToJSON = exports.encodedFileTypeFromJSON = exports.EncodedFileType = 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
|
const livekit_models_1 = require("./livekit_models");
|
|
11
|
-
exports.protobufPackage =
|
|
30
|
+
exports.protobufPackage = 'livekit';
|
|
12
31
|
var EncodedFileType;
|
|
13
32
|
(function (EncodedFileType) {
|
|
14
33
|
/** DEFAULT_FILETYPE - file type chosen based on codecs */
|
|
@@ -20,16 +39,16 @@ var EncodedFileType;
|
|
|
20
39
|
function encodedFileTypeFromJSON(object) {
|
|
21
40
|
switch (object) {
|
|
22
41
|
case 0:
|
|
23
|
-
case
|
|
42
|
+
case 'DEFAULT_FILETYPE':
|
|
24
43
|
return EncodedFileType.DEFAULT_FILETYPE;
|
|
25
44
|
case 1:
|
|
26
|
-
case
|
|
45
|
+
case 'MP4':
|
|
27
46
|
return EncodedFileType.MP4;
|
|
28
47
|
case 2:
|
|
29
|
-
case
|
|
48
|
+
case 'OGG':
|
|
30
49
|
return EncodedFileType.OGG;
|
|
31
50
|
case -1:
|
|
32
|
-
case
|
|
51
|
+
case 'UNRECOGNIZED':
|
|
33
52
|
default:
|
|
34
53
|
return EncodedFileType.UNRECOGNIZED;
|
|
35
54
|
}
|
|
@@ -38,14 +57,13 @@ exports.encodedFileTypeFromJSON = encodedFileTypeFromJSON;
|
|
|
38
57
|
function encodedFileTypeToJSON(object) {
|
|
39
58
|
switch (object) {
|
|
40
59
|
case EncodedFileType.DEFAULT_FILETYPE:
|
|
41
|
-
return
|
|
60
|
+
return 'DEFAULT_FILETYPE';
|
|
42
61
|
case EncodedFileType.MP4:
|
|
43
|
-
return
|
|
62
|
+
return 'MP4';
|
|
44
63
|
case EncodedFileType.OGG:
|
|
45
|
-
return
|
|
46
|
-
case EncodedFileType.UNRECOGNIZED:
|
|
64
|
+
return 'OGG';
|
|
47
65
|
default:
|
|
48
|
-
return
|
|
66
|
+
return 'UNKNOWN';
|
|
49
67
|
}
|
|
50
68
|
}
|
|
51
69
|
exports.encodedFileTypeToJSON = encodedFileTypeToJSON;
|
|
@@ -58,13 +76,13 @@ var SegmentedFileProtocol;
|
|
|
58
76
|
function segmentedFileProtocolFromJSON(object) {
|
|
59
77
|
switch (object) {
|
|
60
78
|
case 0:
|
|
61
|
-
case
|
|
79
|
+
case 'DEFAULT_SEGMENTED_FILE_PROTOCOL':
|
|
62
80
|
return SegmentedFileProtocol.DEFAULT_SEGMENTED_FILE_PROTOCOL;
|
|
63
81
|
case 1:
|
|
64
|
-
case
|
|
82
|
+
case 'HLS_PROTOCOL':
|
|
65
83
|
return SegmentedFileProtocol.HLS_PROTOCOL;
|
|
66
84
|
case -1:
|
|
67
|
-
case
|
|
85
|
+
case 'UNRECOGNIZED':
|
|
68
86
|
default:
|
|
69
87
|
return SegmentedFileProtocol.UNRECOGNIZED;
|
|
70
88
|
}
|
|
@@ -73,12 +91,11 @@ exports.segmentedFileProtocolFromJSON = segmentedFileProtocolFromJSON;
|
|
|
73
91
|
function segmentedFileProtocolToJSON(object) {
|
|
74
92
|
switch (object) {
|
|
75
93
|
case SegmentedFileProtocol.DEFAULT_SEGMENTED_FILE_PROTOCOL:
|
|
76
|
-
return
|
|
94
|
+
return 'DEFAULT_SEGMENTED_FILE_PROTOCOL';
|
|
77
95
|
case SegmentedFileProtocol.HLS_PROTOCOL:
|
|
78
|
-
return
|
|
79
|
-
case SegmentedFileProtocol.UNRECOGNIZED:
|
|
96
|
+
return 'HLS_PROTOCOL';
|
|
80
97
|
default:
|
|
81
|
-
return
|
|
98
|
+
return 'UNKNOWN';
|
|
82
99
|
}
|
|
83
100
|
}
|
|
84
101
|
exports.segmentedFileProtocolToJSON = segmentedFileProtocolToJSON;
|
|
@@ -91,13 +108,13 @@ var SegmentedFileSuffix;
|
|
|
91
108
|
function segmentedFileSuffixFromJSON(object) {
|
|
92
109
|
switch (object) {
|
|
93
110
|
case 0:
|
|
94
|
-
case
|
|
111
|
+
case 'INDEX':
|
|
95
112
|
return SegmentedFileSuffix.INDEX;
|
|
96
113
|
case 1:
|
|
97
|
-
case
|
|
114
|
+
case 'TIMESTAMP':
|
|
98
115
|
return SegmentedFileSuffix.TIMESTAMP;
|
|
99
116
|
case -1:
|
|
100
|
-
case
|
|
117
|
+
case 'UNRECOGNIZED':
|
|
101
118
|
default:
|
|
102
119
|
return SegmentedFileSuffix.UNRECOGNIZED;
|
|
103
120
|
}
|
|
@@ -106,12 +123,11 @@ exports.segmentedFileSuffixFromJSON = segmentedFileSuffixFromJSON;
|
|
|
106
123
|
function segmentedFileSuffixToJSON(object) {
|
|
107
124
|
switch (object) {
|
|
108
125
|
case SegmentedFileSuffix.INDEX:
|
|
109
|
-
return
|
|
126
|
+
return 'INDEX';
|
|
110
127
|
case SegmentedFileSuffix.TIMESTAMP:
|
|
111
|
-
return
|
|
112
|
-
case SegmentedFileSuffix.UNRECOGNIZED:
|
|
128
|
+
return 'TIMESTAMP';
|
|
113
129
|
default:
|
|
114
|
-
return
|
|
130
|
+
return 'UNKNOWN';
|
|
115
131
|
}
|
|
116
132
|
}
|
|
117
133
|
exports.segmentedFileSuffixToJSON = segmentedFileSuffixToJSON;
|
|
@@ -125,13 +141,13 @@ var StreamProtocol;
|
|
|
125
141
|
function streamProtocolFromJSON(object) {
|
|
126
142
|
switch (object) {
|
|
127
143
|
case 0:
|
|
128
|
-
case
|
|
144
|
+
case 'DEFAULT_PROTOCOL':
|
|
129
145
|
return StreamProtocol.DEFAULT_PROTOCOL;
|
|
130
146
|
case 1:
|
|
131
|
-
case
|
|
147
|
+
case 'RTMP':
|
|
132
148
|
return StreamProtocol.RTMP;
|
|
133
149
|
case -1:
|
|
134
|
-
case
|
|
150
|
+
case 'UNRECOGNIZED':
|
|
135
151
|
default:
|
|
136
152
|
return StreamProtocol.UNRECOGNIZED;
|
|
137
153
|
}
|
|
@@ -140,12 +156,11 @@ exports.streamProtocolFromJSON = streamProtocolFromJSON;
|
|
|
140
156
|
function streamProtocolToJSON(object) {
|
|
141
157
|
switch (object) {
|
|
142
158
|
case StreamProtocol.DEFAULT_PROTOCOL:
|
|
143
|
-
return
|
|
159
|
+
return 'DEFAULT_PROTOCOL';
|
|
144
160
|
case StreamProtocol.RTMP:
|
|
145
|
-
return
|
|
146
|
-
case StreamProtocol.UNRECOGNIZED:
|
|
161
|
+
return 'RTMP';
|
|
147
162
|
default:
|
|
148
|
-
return
|
|
163
|
+
return 'UNKNOWN';
|
|
149
164
|
}
|
|
150
165
|
}
|
|
151
166
|
exports.streamProtocolToJSON = streamProtocolToJSON;
|
|
@@ -172,31 +187,31 @@ var EncodingOptionsPreset;
|
|
|
172
187
|
function encodingOptionsPresetFromJSON(object) {
|
|
173
188
|
switch (object) {
|
|
174
189
|
case 0:
|
|
175
|
-
case
|
|
190
|
+
case 'H264_720P_30':
|
|
176
191
|
return EncodingOptionsPreset.H264_720P_30;
|
|
177
192
|
case 1:
|
|
178
|
-
case
|
|
193
|
+
case 'H264_720P_60':
|
|
179
194
|
return EncodingOptionsPreset.H264_720P_60;
|
|
180
195
|
case 2:
|
|
181
|
-
case
|
|
196
|
+
case 'H264_1080P_30':
|
|
182
197
|
return EncodingOptionsPreset.H264_1080P_30;
|
|
183
198
|
case 3:
|
|
184
|
-
case
|
|
199
|
+
case 'H264_1080P_60':
|
|
185
200
|
return EncodingOptionsPreset.H264_1080P_60;
|
|
186
201
|
case 4:
|
|
187
|
-
case
|
|
202
|
+
case 'PORTRAIT_H264_720P_30':
|
|
188
203
|
return EncodingOptionsPreset.PORTRAIT_H264_720P_30;
|
|
189
204
|
case 5:
|
|
190
|
-
case
|
|
205
|
+
case 'PORTRAIT_H264_720P_60':
|
|
191
206
|
return EncodingOptionsPreset.PORTRAIT_H264_720P_60;
|
|
192
207
|
case 6:
|
|
193
|
-
case
|
|
208
|
+
case 'PORTRAIT_H264_1080P_30':
|
|
194
209
|
return EncodingOptionsPreset.PORTRAIT_H264_1080P_30;
|
|
195
210
|
case 7:
|
|
196
|
-
case
|
|
211
|
+
case 'PORTRAIT_H264_1080P_60':
|
|
197
212
|
return EncodingOptionsPreset.PORTRAIT_H264_1080P_60;
|
|
198
213
|
case -1:
|
|
199
|
-
case
|
|
214
|
+
case 'UNRECOGNIZED':
|
|
200
215
|
default:
|
|
201
216
|
return EncodingOptionsPreset.UNRECOGNIZED;
|
|
202
217
|
}
|
|
@@ -205,24 +220,23 @@ exports.encodingOptionsPresetFromJSON = encodingOptionsPresetFromJSON;
|
|
|
205
220
|
function encodingOptionsPresetToJSON(object) {
|
|
206
221
|
switch (object) {
|
|
207
222
|
case EncodingOptionsPreset.H264_720P_30:
|
|
208
|
-
return
|
|
223
|
+
return 'H264_720P_30';
|
|
209
224
|
case EncodingOptionsPreset.H264_720P_60:
|
|
210
|
-
return
|
|
225
|
+
return 'H264_720P_60';
|
|
211
226
|
case EncodingOptionsPreset.H264_1080P_30:
|
|
212
|
-
return
|
|
227
|
+
return 'H264_1080P_30';
|
|
213
228
|
case EncodingOptionsPreset.H264_1080P_60:
|
|
214
|
-
return
|
|
229
|
+
return 'H264_1080P_60';
|
|
215
230
|
case EncodingOptionsPreset.PORTRAIT_H264_720P_30:
|
|
216
|
-
return
|
|
231
|
+
return 'PORTRAIT_H264_720P_30';
|
|
217
232
|
case EncodingOptionsPreset.PORTRAIT_H264_720P_60:
|
|
218
|
-
return
|
|
233
|
+
return 'PORTRAIT_H264_720P_60';
|
|
219
234
|
case EncodingOptionsPreset.PORTRAIT_H264_1080P_30:
|
|
220
|
-
return
|
|
235
|
+
return 'PORTRAIT_H264_1080P_30';
|
|
221
236
|
case EncodingOptionsPreset.PORTRAIT_H264_1080P_60:
|
|
222
|
-
return
|
|
223
|
-
case EncodingOptionsPreset.UNRECOGNIZED:
|
|
237
|
+
return 'PORTRAIT_H264_1080P_60';
|
|
224
238
|
default:
|
|
225
|
-
return
|
|
239
|
+
return 'UNKNOWN';
|
|
226
240
|
}
|
|
227
241
|
}
|
|
228
242
|
exports.encodingOptionsPresetToJSON = encodingOptionsPresetToJSON;
|
|
@@ -240,28 +254,28 @@ var EgressStatus;
|
|
|
240
254
|
function egressStatusFromJSON(object) {
|
|
241
255
|
switch (object) {
|
|
242
256
|
case 0:
|
|
243
|
-
case
|
|
257
|
+
case 'EGRESS_STARTING':
|
|
244
258
|
return EgressStatus.EGRESS_STARTING;
|
|
245
259
|
case 1:
|
|
246
|
-
case
|
|
260
|
+
case 'EGRESS_ACTIVE':
|
|
247
261
|
return EgressStatus.EGRESS_ACTIVE;
|
|
248
262
|
case 2:
|
|
249
|
-
case
|
|
263
|
+
case 'EGRESS_ENDING':
|
|
250
264
|
return EgressStatus.EGRESS_ENDING;
|
|
251
265
|
case 3:
|
|
252
|
-
case
|
|
266
|
+
case 'EGRESS_COMPLETE':
|
|
253
267
|
return EgressStatus.EGRESS_COMPLETE;
|
|
254
268
|
case 4:
|
|
255
|
-
case
|
|
269
|
+
case 'EGRESS_FAILED':
|
|
256
270
|
return EgressStatus.EGRESS_FAILED;
|
|
257
271
|
case 5:
|
|
258
|
-
case
|
|
272
|
+
case 'EGRESS_ABORTED':
|
|
259
273
|
return EgressStatus.EGRESS_ABORTED;
|
|
260
274
|
case 6:
|
|
261
|
-
case
|
|
275
|
+
case 'EGRESS_LIMIT_REACHED':
|
|
262
276
|
return EgressStatus.EGRESS_LIMIT_REACHED;
|
|
263
277
|
case -1:
|
|
264
|
-
case
|
|
278
|
+
case 'UNRECOGNIZED':
|
|
265
279
|
default:
|
|
266
280
|
return EgressStatus.UNRECOGNIZED;
|
|
267
281
|
}
|
|
@@ -270,22 +284,21 @@ exports.egressStatusFromJSON = egressStatusFromJSON;
|
|
|
270
284
|
function egressStatusToJSON(object) {
|
|
271
285
|
switch (object) {
|
|
272
286
|
case EgressStatus.EGRESS_STARTING:
|
|
273
|
-
return
|
|
287
|
+
return 'EGRESS_STARTING';
|
|
274
288
|
case EgressStatus.EGRESS_ACTIVE:
|
|
275
|
-
return
|
|
289
|
+
return 'EGRESS_ACTIVE';
|
|
276
290
|
case EgressStatus.EGRESS_ENDING:
|
|
277
|
-
return
|
|
291
|
+
return 'EGRESS_ENDING';
|
|
278
292
|
case EgressStatus.EGRESS_COMPLETE:
|
|
279
|
-
return
|
|
293
|
+
return 'EGRESS_COMPLETE';
|
|
280
294
|
case EgressStatus.EGRESS_FAILED:
|
|
281
|
-
return
|
|
295
|
+
return 'EGRESS_FAILED';
|
|
282
296
|
case EgressStatus.EGRESS_ABORTED:
|
|
283
|
-
return
|
|
297
|
+
return 'EGRESS_ABORTED';
|
|
284
298
|
case EgressStatus.EGRESS_LIMIT_REACHED:
|
|
285
|
-
return
|
|
286
|
-
case EgressStatus.UNRECOGNIZED:
|
|
299
|
+
return 'EGRESS_LIMIT_REACHED';
|
|
287
300
|
default:
|
|
288
|
-
return
|
|
301
|
+
return 'UNKNOWN';
|
|
289
302
|
}
|
|
290
303
|
}
|
|
291
304
|
exports.egressStatusToJSON = egressStatusToJSON;
|
|
@@ -299,16 +312,16 @@ var StreamInfo_Status;
|
|
|
299
312
|
function streamInfo_StatusFromJSON(object) {
|
|
300
313
|
switch (object) {
|
|
301
314
|
case 0:
|
|
302
|
-
case
|
|
315
|
+
case 'ACTIVE':
|
|
303
316
|
return StreamInfo_Status.ACTIVE;
|
|
304
317
|
case 1:
|
|
305
|
-
case
|
|
318
|
+
case 'FINISHED':
|
|
306
319
|
return StreamInfo_Status.FINISHED;
|
|
307
320
|
case 2:
|
|
308
|
-
case
|
|
321
|
+
case 'FAILED':
|
|
309
322
|
return StreamInfo_Status.FAILED;
|
|
310
323
|
case -1:
|
|
311
|
-
case
|
|
324
|
+
case 'UNRECOGNIZED':
|
|
312
325
|
default:
|
|
313
326
|
return StreamInfo_Status.UNRECOGNIZED;
|
|
314
327
|
}
|
|
@@ -317,24 +330,23 @@ exports.streamInfo_StatusFromJSON = streamInfo_StatusFromJSON;
|
|
|
317
330
|
function streamInfo_StatusToJSON(object) {
|
|
318
331
|
switch (object) {
|
|
319
332
|
case StreamInfo_Status.ACTIVE:
|
|
320
|
-
return
|
|
333
|
+
return 'ACTIVE';
|
|
321
334
|
case StreamInfo_Status.FINISHED:
|
|
322
|
-
return
|
|
335
|
+
return 'FINISHED';
|
|
323
336
|
case StreamInfo_Status.FAILED:
|
|
324
|
-
return
|
|
325
|
-
case StreamInfo_Status.UNRECOGNIZED:
|
|
337
|
+
return 'FAILED';
|
|
326
338
|
default:
|
|
327
|
-
return
|
|
339
|
+
return 'UNKNOWN';
|
|
328
340
|
}
|
|
329
341
|
}
|
|
330
342
|
exports.streamInfo_StatusToJSON = streamInfo_StatusToJSON;
|
|
331
343
|
function createBaseRoomCompositeEgressRequest() {
|
|
332
344
|
return {
|
|
333
|
-
roomName:
|
|
334
|
-
layout:
|
|
345
|
+
roomName: '',
|
|
346
|
+
layout: '',
|
|
335
347
|
audioOnly: false,
|
|
336
348
|
videoOnly: false,
|
|
337
|
-
customBaseUrl:
|
|
349
|
+
customBaseUrl: '',
|
|
338
350
|
file: undefined,
|
|
339
351
|
stream: undefined,
|
|
340
352
|
segments: undefined,
|
|
@@ -346,11 +358,11 @@ function createBaseRoomCompositeEgressRequest() {
|
|
|
346
358
|
};
|
|
347
359
|
}
|
|
348
360
|
exports.RoomCompositeEgressRequest = {
|
|
349
|
-
encode(message, writer =
|
|
350
|
-
if (message.roomName !== undefined && message.roomName !==
|
|
361
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
362
|
+
if (message.roomName !== undefined && message.roomName !== '') {
|
|
351
363
|
writer.uint32(10).string(message.roomName);
|
|
352
364
|
}
|
|
353
|
-
if (message.layout !== undefined && message.layout !==
|
|
365
|
+
if (message.layout !== undefined && message.layout !== '') {
|
|
354
366
|
writer.uint32(18).string(message.layout);
|
|
355
367
|
}
|
|
356
368
|
if (message.audioOnly === true) {
|
|
@@ -359,7 +371,7 @@ exports.RoomCompositeEgressRequest = {
|
|
|
359
371
|
if (message.videoOnly === true) {
|
|
360
372
|
writer.uint32(32).bool(message.videoOnly);
|
|
361
373
|
}
|
|
362
|
-
if (message.customBaseUrl !== undefined && message.customBaseUrl !==
|
|
374
|
+
if (message.customBaseUrl !== undefined && message.customBaseUrl !== '') {
|
|
363
375
|
writer.uint32(42).string(message.customBaseUrl);
|
|
364
376
|
}
|
|
365
377
|
if (message.file !== undefined) {
|
|
@@ -395,7 +407,7 @@ exports.RoomCompositeEgressRequest = {
|
|
|
395
407
|
return writer;
|
|
396
408
|
},
|
|
397
409
|
decode(input, length) {
|
|
398
|
-
const reader = input instanceof
|
|
410
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
399
411
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
400
412
|
const message = createBaseRoomCompositeEgressRequest();
|
|
401
413
|
while (reader.pos < end) {
|
|
@@ -449,11 +461,11 @@ exports.RoomCompositeEgressRequest = {
|
|
|
449
461
|
},
|
|
450
462
|
fromJSON(object) {
|
|
451
463
|
return {
|
|
452
|
-
roomName: isSet(object.roomName) ? String(object.roomName) :
|
|
453
|
-
layout: isSet(object.layout) ? String(object.layout) :
|
|
464
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : '',
|
|
465
|
+
layout: isSet(object.layout) ? String(object.layout) : '',
|
|
454
466
|
audioOnly: isSet(object.audioOnly) ? Boolean(object.audioOnly) : false,
|
|
455
467
|
videoOnly: isSet(object.videoOnly) ? Boolean(object.videoOnly) : false,
|
|
456
|
-
customBaseUrl: isSet(object.customBaseUrl) ? String(object.customBaseUrl) :
|
|
468
|
+
customBaseUrl: isSet(object.customBaseUrl) ? String(object.customBaseUrl) : '',
|
|
457
469
|
file: isSet(object.file) ? exports.EncodedFileOutput.fromJSON(object.file) : undefined,
|
|
458
470
|
stream: isSet(object.stream) ? exports.StreamOutput.fromJSON(object.stream) : undefined,
|
|
459
471
|
segments: isSet(object.segments) ? exports.SegmentedFileOutput.fromJSON(object.segments) : undefined,
|
|
@@ -477,12 +489,15 @@ exports.RoomCompositeEgressRequest = {
|
|
|
477
489
|
message.audioOnly !== undefined && (obj.audioOnly = message.audioOnly);
|
|
478
490
|
message.videoOnly !== undefined && (obj.videoOnly = message.videoOnly);
|
|
479
491
|
message.customBaseUrl !== undefined && (obj.customBaseUrl = message.customBaseUrl);
|
|
480
|
-
message.file !== undefined &&
|
|
481
|
-
|
|
492
|
+
message.file !== undefined &&
|
|
493
|
+
(obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
|
|
494
|
+
message.stream !== undefined &&
|
|
495
|
+
(obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
|
|
482
496
|
message.segments !== undefined &&
|
|
483
497
|
(obj.segments = message.segments ? exports.SegmentedFileOutput.toJSON(message.segments) : undefined);
|
|
484
498
|
message.preset !== undefined &&
|
|
485
|
-
(obj.preset =
|
|
499
|
+
(obj.preset =
|
|
500
|
+
message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
|
|
486
501
|
message.advanced !== undefined &&
|
|
487
502
|
(obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
|
|
488
503
|
if (message.fileOutputs) {
|
|
@@ -508,35 +523,41 @@ exports.RoomCompositeEgressRequest = {
|
|
|
508
523
|
fromPartial(object) {
|
|
509
524
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
510
525
|
const message = createBaseRoomCompositeEgressRequest();
|
|
511
|
-
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a :
|
|
512
|
-
message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b :
|
|
526
|
+
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : '';
|
|
527
|
+
message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b : '';
|
|
513
528
|
message.audioOnly = (_c = object.audioOnly) !== null && _c !== void 0 ? _c : false;
|
|
514
529
|
message.videoOnly = (_d = object.videoOnly) !== null && _d !== void 0 ? _d : false;
|
|
515
|
-
message.customBaseUrl = (_e = object.customBaseUrl) !== null && _e !== void 0 ? _e :
|
|
516
|
-
message.file =
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
530
|
+
message.customBaseUrl = (_e = object.customBaseUrl) !== null && _e !== void 0 ? _e : '';
|
|
531
|
+
message.file =
|
|
532
|
+
object.file !== undefined && object.file !== null
|
|
533
|
+
? exports.EncodedFileOutput.fromPartial(object.file)
|
|
534
|
+
: undefined;
|
|
535
|
+
message.stream =
|
|
536
|
+
object.stream !== undefined && object.stream !== null
|
|
537
|
+
? exports.StreamOutput.fromPartial(object.stream)
|
|
538
|
+
: undefined;
|
|
539
|
+
message.segments =
|
|
540
|
+
object.segments !== undefined && object.segments !== null
|
|
541
|
+
? exports.SegmentedFileOutput.fromPartial(object.segments)
|
|
542
|
+
: undefined;
|
|
525
543
|
message.preset = (_f = object.preset) !== null && _f !== void 0 ? _f : undefined;
|
|
526
|
-
message.advanced =
|
|
527
|
-
|
|
528
|
-
|
|
544
|
+
message.advanced =
|
|
545
|
+
object.advanced !== undefined && object.advanced !== null
|
|
546
|
+
? exports.EncodingOptions.fromPartial(object.advanced)
|
|
547
|
+
: undefined;
|
|
529
548
|
message.fileOutputs = ((_g = object.fileOutputs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.EncodedFileOutput.fromPartial(e))) || [];
|
|
530
549
|
message.streamOutputs = ((_h = object.streamOutputs) === null || _h === void 0 ? void 0 : _h.map((e) => exports.StreamOutput.fromPartial(e))) || [];
|
|
531
|
-
message.segmentOutputs =
|
|
550
|
+
message.segmentOutputs =
|
|
551
|
+
((_j = object.segmentOutputs) === null || _j === void 0 ? void 0 : _j.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
|
|
532
552
|
return message;
|
|
533
553
|
},
|
|
534
554
|
};
|
|
535
555
|
function createBaseWebEgressRequest() {
|
|
536
556
|
return {
|
|
537
|
-
url:
|
|
557
|
+
url: '',
|
|
538
558
|
audioOnly: false,
|
|
539
559
|
videoOnly: false,
|
|
560
|
+
awaitStartSignal: false,
|
|
540
561
|
file: undefined,
|
|
541
562
|
stream: undefined,
|
|
542
563
|
segments: undefined,
|
|
@@ -548,8 +569,8 @@ function createBaseWebEgressRequest() {
|
|
|
548
569
|
};
|
|
549
570
|
}
|
|
550
571
|
exports.WebEgressRequest = {
|
|
551
|
-
encode(message, writer =
|
|
552
|
-
if (message.url !== undefined && message.url !==
|
|
572
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
573
|
+
if (message.url !== undefined && message.url !== '') {
|
|
553
574
|
writer.uint32(10).string(message.url);
|
|
554
575
|
}
|
|
555
576
|
if (message.audioOnly === true) {
|
|
@@ -558,6 +579,9 @@ exports.WebEgressRequest = {
|
|
|
558
579
|
if (message.videoOnly === true) {
|
|
559
580
|
writer.uint32(24).bool(message.videoOnly);
|
|
560
581
|
}
|
|
582
|
+
if (message.awaitStartSignal === true) {
|
|
583
|
+
writer.uint32(96).bool(message.awaitStartSignal);
|
|
584
|
+
}
|
|
561
585
|
if (message.file !== undefined) {
|
|
562
586
|
exports.EncodedFileOutput.encode(message.file, writer.uint32(34).fork()).ldelim();
|
|
563
587
|
}
|
|
@@ -591,7 +615,7 @@ exports.WebEgressRequest = {
|
|
|
591
615
|
return writer;
|
|
592
616
|
},
|
|
593
617
|
decode(input, length) {
|
|
594
|
-
const reader = input instanceof
|
|
618
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
595
619
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
596
620
|
const message = createBaseWebEgressRequest();
|
|
597
621
|
while (reader.pos < end) {
|
|
@@ -606,6 +630,9 @@ exports.WebEgressRequest = {
|
|
|
606
630
|
case 3:
|
|
607
631
|
message.videoOnly = reader.bool();
|
|
608
632
|
break;
|
|
633
|
+
case 12:
|
|
634
|
+
message.awaitStartSignal = reader.bool();
|
|
635
|
+
break;
|
|
609
636
|
case 4:
|
|
610
637
|
message.file = exports.EncodedFileOutput.decode(reader, reader.uint32());
|
|
611
638
|
break;
|
|
@@ -639,9 +666,10 @@ exports.WebEgressRequest = {
|
|
|
639
666
|
},
|
|
640
667
|
fromJSON(object) {
|
|
641
668
|
return {
|
|
642
|
-
url: isSet(object.url) ? String(object.url) :
|
|
669
|
+
url: isSet(object.url) ? String(object.url) : '',
|
|
643
670
|
audioOnly: isSet(object.audioOnly) ? Boolean(object.audioOnly) : false,
|
|
644
671
|
videoOnly: isSet(object.videoOnly) ? Boolean(object.videoOnly) : false,
|
|
672
|
+
awaitStartSignal: isSet(object.awaitStartSignal) ? Boolean(object.awaitStartSignal) : false,
|
|
645
673
|
file: isSet(object.file) ? exports.EncodedFileOutput.fromJSON(object.file) : undefined,
|
|
646
674
|
stream: isSet(object.stream) ? exports.StreamOutput.fromJSON(object.stream) : undefined,
|
|
647
675
|
segments: isSet(object.segments) ? exports.SegmentedFileOutput.fromJSON(object.segments) : undefined,
|
|
@@ -663,12 +691,16 @@ exports.WebEgressRequest = {
|
|
|
663
691
|
message.url !== undefined && (obj.url = message.url);
|
|
664
692
|
message.audioOnly !== undefined && (obj.audioOnly = message.audioOnly);
|
|
665
693
|
message.videoOnly !== undefined && (obj.videoOnly = message.videoOnly);
|
|
666
|
-
message.
|
|
667
|
-
message.
|
|
694
|
+
message.awaitStartSignal !== undefined && (obj.awaitStartSignal = message.awaitStartSignal);
|
|
695
|
+
message.file !== undefined &&
|
|
696
|
+
(obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
|
|
697
|
+
message.stream !== undefined &&
|
|
698
|
+
(obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
|
|
668
699
|
message.segments !== undefined &&
|
|
669
700
|
(obj.segments = message.segments ? exports.SegmentedFileOutput.toJSON(message.segments) : undefined);
|
|
670
701
|
message.preset !== undefined &&
|
|
671
|
-
(obj.preset =
|
|
702
|
+
(obj.preset =
|
|
703
|
+
message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
|
|
672
704
|
message.advanced !== undefined &&
|
|
673
705
|
(obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
|
|
674
706
|
if (message.fileOutputs) {
|
|
@@ -692,35 +724,41 @@ exports.WebEgressRequest = {
|
|
|
692
724
|
return obj;
|
|
693
725
|
},
|
|
694
726
|
fromPartial(object) {
|
|
695
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
727
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
696
728
|
const message = createBaseWebEgressRequest();
|
|
697
|
-
message.url = (_a = object.url) !== null && _a !== void 0 ? _a :
|
|
729
|
+
message.url = (_a = object.url) !== null && _a !== void 0 ? _a : '';
|
|
698
730
|
message.audioOnly = (_b = object.audioOnly) !== null && _b !== void 0 ? _b : false;
|
|
699
731
|
message.videoOnly = (_c = object.videoOnly) !== null && _c !== void 0 ? _c : false;
|
|
700
|
-
message.
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
message.
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
message.
|
|
714
|
-
message.
|
|
715
|
-
|
|
732
|
+
message.awaitStartSignal = (_d = object.awaitStartSignal) !== null && _d !== void 0 ? _d : false;
|
|
733
|
+
message.file =
|
|
734
|
+
object.file !== undefined && object.file !== null
|
|
735
|
+
? exports.EncodedFileOutput.fromPartial(object.file)
|
|
736
|
+
: undefined;
|
|
737
|
+
message.stream =
|
|
738
|
+
object.stream !== undefined && object.stream !== null
|
|
739
|
+
? exports.StreamOutput.fromPartial(object.stream)
|
|
740
|
+
: undefined;
|
|
741
|
+
message.segments =
|
|
742
|
+
object.segments !== undefined && object.segments !== null
|
|
743
|
+
? exports.SegmentedFileOutput.fromPartial(object.segments)
|
|
744
|
+
: undefined;
|
|
745
|
+
message.preset = (_e = object.preset) !== null && _e !== void 0 ? _e : undefined;
|
|
746
|
+
message.advanced =
|
|
747
|
+
object.advanced !== undefined && object.advanced !== null
|
|
748
|
+
? exports.EncodingOptions.fromPartial(object.advanced)
|
|
749
|
+
: undefined;
|
|
750
|
+
message.fileOutputs = ((_f = object.fileOutputs) === null || _f === void 0 ? void 0 : _f.map((e) => exports.EncodedFileOutput.fromPartial(e))) || [];
|
|
751
|
+
message.streamOutputs = ((_g = object.streamOutputs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.StreamOutput.fromPartial(e))) || [];
|
|
752
|
+
message.segmentOutputs =
|
|
753
|
+
((_h = object.segmentOutputs) === null || _h === void 0 ? void 0 : _h.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
|
|
716
754
|
return message;
|
|
717
755
|
},
|
|
718
756
|
};
|
|
719
757
|
function createBaseTrackCompositeEgressRequest() {
|
|
720
758
|
return {
|
|
721
|
-
roomName:
|
|
722
|
-
audioTrackId:
|
|
723
|
-
videoTrackId:
|
|
759
|
+
roomName: '',
|
|
760
|
+
audioTrackId: '',
|
|
761
|
+
videoTrackId: '',
|
|
724
762
|
file: undefined,
|
|
725
763
|
stream: undefined,
|
|
726
764
|
segments: undefined,
|
|
@@ -732,14 +770,14 @@ function createBaseTrackCompositeEgressRequest() {
|
|
|
732
770
|
};
|
|
733
771
|
}
|
|
734
772
|
exports.TrackCompositeEgressRequest = {
|
|
735
|
-
encode(message, writer =
|
|
736
|
-
if (message.roomName !== undefined && message.roomName !==
|
|
773
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
774
|
+
if (message.roomName !== undefined && message.roomName !== '') {
|
|
737
775
|
writer.uint32(10).string(message.roomName);
|
|
738
776
|
}
|
|
739
|
-
if (message.audioTrackId !== undefined && message.audioTrackId !==
|
|
777
|
+
if (message.audioTrackId !== undefined && message.audioTrackId !== '') {
|
|
740
778
|
writer.uint32(18).string(message.audioTrackId);
|
|
741
779
|
}
|
|
742
|
-
if (message.videoTrackId !== undefined && message.videoTrackId !==
|
|
780
|
+
if (message.videoTrackId !== undefined && message.videoTrackId !== '') {
|
|
743
781
|
writer.uint32(26).string(message.videoTrackId);
|
|
744
782
|
}
|
|
745
783
|
if (message.file !== undefined) {
|
|
@@ -775,7 +813,7 @@ exports.TrackCompositeEgressRequest = {
|
|
|
775
813
|
return writer;
|
|
776
814
|
},
|
|
777
815
|
decode(input, length) {
|
|
778
|
-
const reader = input instanceof
|
|
816
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
779
817
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
780
818
|
const message = createBaseTrackCompositeEgressRequest();
|
|
781
819
|
while (reader.pos < end) {
|
|
@@ -823,9 +861,9 @@ exports.TrackCompositeEgressRequest = {
|
|
|
823
861
|
},
|
|
824
862
|
fromJSON(object) {
|
|
825
863
|
return {
|
|
826
|
-
roomName: isSet(object.roomName) ? String(object.roomName) :
|
|
827
|
-
audioTrackId: isSet(object.audioTrackId) ? String(object.audioTrackId) :
|
|
828
|
-
videoTrackId: isSet(object.videoTrackId) ? String(object.videoTrackId) :
|
|
864
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : '',
|
|
865
|
+
audioTrackId: isSet(object.audioTrackId) ? String(object.audioTrackId) : '',
|
|
866
|
+
videoTrackId: isSet(object.videoTrackId) ? String(object.videoTrackId) : '',
|
|
829
867
|
file: isSet(object.file) ? exports.EncodedFileOutput.fromJSON(object.file) : undefined,
|
|
830
868
|
stream: isSet(object.stream) ? exports.StreamOutput.fromJSON(object.stream) : undefined,
|
|
831
869
|
segments: isSet(object.segments) ? exports.SegmentedFileOutput.fromJSON(object.segments) : undefined,
|
|
@@ -847,12 +885,15 @@ exports.TrackCompositeEgressRequest = {
|
|
|
847
885
|
message.roomName !== undefined && (obj.roomName = message.roomName);
|
|
848
886
|
message.audioTrackId !== undefined && (obj.audioTrackId = message.audioTrackId);
|
|
849
887
|
message.videoTrackId !== undefined && (obj.videoTrackId = message.videoTrackId);
|
|
850
|
-
message.file !== undefined &&
|
|
851
|
-
|
|
888
|
+
message.file !== undefined &&
|
|
889
|
+
(obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
|
|
890
|
+
message.stream !== undefined &&
|
|
891
|
+
(obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
|
|
852
892
|
message.segments !== undefined &&
|
|
853
893
|
(obj.segments = message.segments ? exports.SegmentedFileOutput.toJSON(message.segments) : undefined);
|
|
854
894
|
message.preset !== undefined &&
|
|
855
|
-
(obj.preset =
|
|
895
|
+
(obj.preset =
|
|
896
|
+
message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
|
|
856
897
|
message.advanced !== undefined &&
|
|
857
898
|
(obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
|
|
858
899
|
if (message.fileOutputs) {
|
|
@@ -878,37 +919,42 @@ exports.TrackCompositeEgressRequest = {
|
|
|
878
919
|
fromPartial(object) {
|
|
879
920
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
880
921
|
const message = createBaseTrackCompositeEgressRequest();
|
|
881
|
-
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a :
|
|
882
|
-
message.audioTrackId = (_b = object.audioTrackId) !== null && _b !== void 0 ? _b :
|
|
883
|
-
message.videoTrackId = (_c = object.videoTrackId) !== null && _c !== void 0 ? _c :
|
|
884
|
-
message.file =
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
922
|
+
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : '';
|
|
923
|
+
message.audioTrackId = (_b = object.audioTrackId) !== null && _b !== void 0 ? _b : '';
|
|
924
|
+
message.videoTrackId = (_c = object.videoTrackId) !== null && _c !== void 0 ? _c : '';
|
|
925
|
+
message.file =
|
|
926
|
+
object.file !== undefined && object.file !== null
|
|
927
|
+
? exports.EncodedFileOutput.fromPartial(object.file)
|
|
928
|
+
: undefined;
|
|
929
|
+
message.stream =
|
|
930
|
+
object.stream !== undefined && object.stream !== null
|
|
931
|
+
? exports.StreamOutput.fromPartial(object.stream)
|
|
932
|
+
: undefined;
|
|
933
|
+
message.segments =
|
|
934
|
+
object.segments !== undefined && object.segments !== null
|
|
935
|
+
? exports.SegmentedFileOutput.fromPartial(object.segments)
|
|
936
|
+
: undefined;
|
|
893
937
|
message.preset = (_d = object.preset) !== null && _d !== void 0 ? _d : undefined;
|
|
894
|
-
message.advanced =
|
|
895
|
-
|
|
896
|
-
|
|
938
|
+
message.advanced =
|
|
939
|
+
object.advanced !== undefined && object.advanced !== null
|
|
940
|
+
? exports.EncodingOptions.fromPartial(object.advanced)
|
|
941
|
+
: undefined;
|
|
897
942
|
message.fileOutputs = ((_e = object.fileOutputs) === null || _e === void 0 ? void 0 : _e.map((e) => exports.EncodedFileOutput.fromPartial(e))) || [];
|
|
898
943
|
message.streamOutputs = ((_f = object.streamOutputs) === null || _f === void 0 ? void 0 : _f.map((e) => exports.StreamOutput.fromPartial(e))) || [];
|
|
899
|
-
message.segmentOutputs =
|
|
944
|
+
message.segmentOutputs =
|
|
945
|
+
((_g = object.segmentOutputs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
|
|
900
946
|
return message;
|
|
901
947
|
},
|
|
902
948
|
};
|
|
903
949
|
function createBaseTrackEgressRequest() {
|
|
904
|
-
return { roomName:
|
|
950
|
+
return { roomName: '', trackId: '', file: undefined, websocketUrl: undefined };
|
|
905
951
|
}
|
|
906
952
|
exports.TrackEgressRequest = {
|
|
907
|
-
encode(message, writer =
|
|
908
|
-
if (message.roomName !== undefined && message.roomName !==
|
|
953
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
954
|
+
if (message.roomName !== undefined && message.roomName !== '') {
|
|
909
955
|
writer.uint32(10).string(message.roomName);
|
|
910
956
|
}
|
|
911
|
-
if (message.trackId !== undefined && message.trackId !==
|
|
957
|
+
if (message.trackId !== undefined && message.trackId !== '') {
|
|
912
958
|
writer.uint32(18).string(message.trackId);
|
|
913
959
|
}
|
|
914
960
|
if (message.file !== undefined) {
|
|
@@ -920,7 +966,7 @@ exports.TrackEgressRequest = {
|
|
|
920
966
|
return writer;
|
|
921
967
|
},
|
|
922
968
|
decode(input, length) {
|
|
923
|
-
const reader = input instanceof
|
|
969
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
924
970
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
925
971
|
const message = createBaseTrackEgressRequest();
|
|
926
972
|
while (reader.pos < end) {
|
|
@@ -947,8 +993,8 @@ exports.TrackEgressRequest = {
|
|
|
947
993
|
},
|
|
948
994
|
fromJSON(object) {
|
|
949
995
|
return {
|
|
950
|
-
roomName: isSet(object.roomName) ? String(object.roomName) :
|
|
951
|
-
trackId: isSet(object.trackId) ? String(object.trackId) :
|
|
996
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : '',
|
|
997
|
+
trackId: isSet(object.trackId) ? String(object.trackId) : '',
|
|
952
998
|
file: isSet(object.file) ? exports.DirectFileOutput.fromJSON(object.file) : undefined,
|
|
953
999
|
websocketUrl: isSet(object.websocketUrl) ? String(object.websocketUrl) : undefined,
|
|
954
1000
|
};
|
|
@@ -957,18 +1003,20 @@ exports.TrackEgressRequest = {
|
|
|
957
1003
|
const obj = {};
|
|
958
1004
|
message.roomName !== undefined && (obj.roomName = message.roomName);
|
|
959
1005
|
message.trackId !== undefined && (obj.trackId = message.trackId);
|
|
960
|
-
message.file !== undefined &&
|
|
1006
|
+
message.file !== undefined &&
|
|
1007
|
+
(obj.file = message.file ? exports.DirectFileOutput.toJSON(message.file) : undefined);
|
|
961
1008
|
message.websocketUrl !== undefined && (obj.websocketUrl = message.websocketUrl);
|
|
962
1009
|
return obj;
|
|
963
1010
|
},
|
|
964
1011
|
fromPartial(object) {
|
|
965
1012
|
var _a, _b, _c;
|
|
966
1013
|
const message = createBaseTrackEgressRequest();
|
|
967
|
-
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a :
|
|
968
|
-
message.trackId = (_b = object.trackId) !== null && _b !== void 0 ? _b :
|
|
969
|
-
message.file =
|
|
970
|
-
|
|
971
|
-
|
|
1014
|
+
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : '';
|
|
1015
|
+
message.trackId = (_b = object.trackId) !== null && _b !== void 0 ? _b : '';
|
|
1016
|
+
message.file =
|
|
1017
|
+
object.file !== undefined && object.file !== null
|
|
1018
|
+
? exports.DirectFileOutput.fromPartial(object.file)
|
|
1019
|
+
: undefined;
|
|
972
1020
|
message.websocketUrl = (_c = object.websocketUrl) !== null && _c !== void 0 ? _c : undefined;
|
|
973
1021
|
return message;
|
|
974
1022
|
},
|
|
@@ -976,7 +1024,7 @@ exports.TrackEgressRequest = {
|
|
|
976
1024
|
function createBaseEncodedFileOutput() {
|
|
977
1025
|
return {
|
|
978
1026
|
fileType: 0,
|
|
979
|
-
filepath:
|
|
1027
|
+
filepath: '',
|
|
980
1028
|
disableManifest: false,
|
|
981
1029
|
s3: undefined,
|
|
982
1030
|
gcp: undefined,
|
|
@@ -985,11 +1033,11 @@ function createBaseEncodedFileOutput() {
|
|
|
985
1033
|
};
|
|
986
1034
|
}
|
|
987
1035
|
exports.EncodedFileOutput = {
|
|
988
|
-
encode(message, writer =
|
|
1036
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
989
1037
|
if (message.fileType !== undefined && message.fileType !== 0) {
|
|
990
1038
|
writer.uint32(8).int32(message.fileType);
|
|
991
1039
|
}
|
|
992
|
-
if (message.filepath !== undefined && message.filepath !==
|
|
1040
|
+
if (message.filepath !== undefined && message.filepath !== '') {
|
|
993
1041
|
writer.uint32(18).string(message.filepath);
|
|
994
1042
|
}
|
|
995
1043
|
if (message.disableManifest === true) {
|
|
@@ -1010,7 +1058,7 @@ exports.EncodedFileOutput = {
|
|
|
1010
1058
|
return writer;
|
|
1011
1059
|
},
|
|
1012
1060
|
decode(input, length) {
|
|
1013
|
-
const reader = input instanceof
|
|
1061
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1014
1062
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1015
1063
|
const message = createBaseEncodedFileOutput();
|
|
1016
1064
|
while (reader.pos < end) {
|
|
@@ -1047,7 +1095,7 @@ exports.EncodedFileOutput = {
|
|
|
1047
1095
|
fromJSON(object) {
|
|
1048
1096
|
return {
|
|
1049
1097
|
fileType: isSet(object.fileType) ? encodedFileTypeFromJSON(object.fileType) : 0,
|
|
1050
|
-
filepath: isSet(object.filepath) ? String(object.filepath) :
|
|
1098
|
+
filepath: isSet(object.filepath) ? String(object.filepath) : '',
|
|
1051
1099
|
disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
|
|
1052
1100
|
s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
|
|
1053
1101
|
gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
|
|
@@ -1061,33 +1109,42 @@ exports.EncodedFileOutput = {
|
|
|
1061
1109
|
message.filepath !== undefined && (obj.filepath = message.filepath);
|
|
1062
1110
|
message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
|
|
1063
1111
|
message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
|
|
1064
|
-
message.gcp !== undefined &&
|
|
1065
|
-
|
|
1066
|
-
message.
|
|
1112
|
+
message.gcp !== undefined &&
|
|
1113
|
+
(obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
|
|
1114
|
+
message.azure !== undefined &&
|
|
1115
|
+
(obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
|
|
1116
|
+
message.aliOSS !== undefined &&
|
|
1117
|
+
(obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
|
|
1067
1118
|
return obj;
|
|
1068
1119
|
},
|
|
1069
1120
|
fromPartial(object) {
|
|
1070
1121
|
var _a, _b, _c;
|
|
1071
1122
|
const message = createBaseEncodedFileOutput();
|
|
1072
1123
|
message.fileType = (_a = object.fileType) !== null && _a !== void 0 ? _a : 0;
|
|
1073
|
-
message.filepath = (_b = object.filepath) !== null && _b !== void 0 ? _b :
|
|
1124
|
+
message.filepath = (_b = object.filepath) !== null && _b !== void 0 ? _b : '';
|
|
1074
1125
|
message.disableManifest = (_c = object.disableManifest) !== null && _c !== void 0 ? _c : false;
|
|
1075
|
-
message.s3 =
|
|
1076
|
-
|
|
1077
|
-
message.
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1126
|
+
message.s3 =
|
|
1127
|
+
object.s3 !== undefined && object.s3 !== null ? exports.S3Upload.fromPartial(object.s3) : undefined;
|
|
1128
|
+
message.gcp =
|
|
1129
|
+
object.gcp !== undefined && object.gcp !== null
|
|
1130
|
+
? exports.GCPUpload.fromPartial(object.gcp)
|
|
1131
|
+
: undefined;
|
|
1132
|
+
message.azure =
|
|
1133
|
+
object.azure !== undefined && object.azure !== null
|
|
1134
|
+
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
1135
|
+
: undefined;
|
|
1136
|
+
message.aliOSS =
|
|
1137
|
+
object.aliOSS !== undefined && object.aliOSS !== null
|
|
1138
|
+
? exports.AliOSSUpload.fromPartial(object.aliOSS)
|
|
1139
|
+
: undefined;
|
|
1083
1140
|
return message;
|
|
1084
1141
|
},
|
|
1085
1142
|
};
|
|
1086
1143
|
function createBaseSegmentedFileOutput() {
|
|
1087
1144
|
return {
|
|
1088
1145
|
protocol: 0,
|
|
1089
|
-
filenamePrefix:
|
|
1090
|
-
playlistName:
|
|
1146
|
+
filenamePrefix: '',
|
|
1147
|
+
playlistName: '',
|
|
1091
1148
|
segmentDuration: 0,
|
|
1092
1149
|
filenameSuffix: 0,
|
|
1093
1150
|
disableManifest: false,
|
|
@@ -1098,14 +1155,14 @@ function createBaseSegmentedFileOutput() {
|
|
|
1098
1155
|
};
|
|
1099
1156
|
}
|
|
1100
1157
|
exports.SegmentedFileOutput = {
|
|
1101
|
-
encode(message, writer =
|
|
1158
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1102
1159
|
if (message.protocol !== undefined && message.protocol !== 0) {
|
|
1103
1160
|
writer.uint32(8).int32(message.protocol);
|
|
1104
1161
|
}
|
|
1105
|
-
if (message.filenamePrefix !== undefined && message.filenamePrefix !==
|
|
1162
|
+
if (message.filenamePrefix !== undefined && message.filenamePrefix !== '') {
|
|
1106
1163
|
writer.uint32(18).string(message.filenamePrefix);
|
|
1107
1164
|
}
|
|
1108
|
-
if (message.playlistName !== undefined && message.playlistName !==
|
|
1165
|
+
if (message.playlistName !== undefined && message.playlistName !== '') {
|
|
1109
1166
|
writer.uint32(26).string(message.playlistName);
|
|
1110
1167
|
}
|
|
1111
1168
|
if (message.segmentDuration !== undefined && message.segmentDuration !== 0) {
|
|
@@ -1132,7 +1189,7 @@ exports.SegmentedFileOutput = {
|
|
|
1132
1189
|
return writer;
|
|
1133
1190
|
},
|
|
1134
1191
|
decode(input, length) {
|
|
1135
|
-
const reader = input instanceof
|
|
1192
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1136
1193
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1137
1194
|
const message = createBaseSegmentedFileOutput();
|
|
1138
1195
|
while (reader.pos < end) {
|
|
@@ -1178,10 +1235,12 @@ exports.SegmentedFileOutput = {
|
|
|
1178
1235
|
fromJSON(object) {
|
|
1179
1236
|
return {
|
|
1180
1237
|
protocol: isSet(object.protocol) ? segmentedFileProtocolFromJSON(object.protocol) : 0,
|
|
1181
|
-
filenamePrefix: isSet(object.filenamePrefix) ? String(object.filenamePrefix) :
|
|
1182
|
-
playlistName: isSet(object.playlistName) ? String(object.playlistName) :
|
|
1238
|
+
filenamePrefix: isSet(object.filenamePrefix) ? String(object.filenamePrefix) : '',
|
|
1239
|
+
playlistName: isSet(object.playlistName) ? String(object.playlistName) : '',
|
|
1183
1240
|
segmentDuration: isSet(object.segmentDuration) ? Number(object.segmentDuration) : 0,
|
|
1184
|
-
filenameSuffix: isSet(object.filenameSuffix)
|
|
1241
|
+
filenameSuffix: isSet(object.filenameSuffix)
|
|
1242
|
+
? segmentedFileSuffixFromJSON(object.filenameSuffix)
|
|
1243
|
+
: 0,
|
|
1185
1244
|
disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
|
|
1186
1245
|
s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
|
|
1187
1246
|
gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
|
|
@@ -1191,44 +1250,63 @@ exports.SegmentedFileOutput = {
|
|
|
1191
1250
|
},
|
|
1192
1251
|
toJSON(message) {
|
|
1193
1252
|
const obj = {};
|
|
1194
|
-
message.protocol !== undefined &&
|
|
1253
|
+
message.protocol !== undefined &&
|
|
1254
|
+
(obj.protocol = segmentedFileProtocolToJSON(message.protocol));
|
|
1195
1255
|
message.filenamePrefix !== undefined && (obj.filenamePrefix = message.filenamePrefix);
|
|
1196
1256
|
message.playlistName !== undefined && (obj.playlistName = message.playlistName);
|
|
1197
|
-
message.segmentDuration !== undefined &&
|
|
1198
|
-
|
|
1257
|
+
message.segmentDuration !== undefined &&
|
|
1258
|
+
(obj.segmentDuration = Math.round(message.segmentDuration));
|
|
1259
|
+
message.filenameSuffix !== undefined &&
|
|
1260
|
+
(obj.filenameSuffix = segmentedFileSuffixToJSON(message.filenameSuffix));
|
|
1199
1261
|
message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
|
|
1200
1262
|
message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
|
|
1201
|
-
message.gcp !== undefined &&
|
|
1202
|
-
|
|
1203
|
-
message.
|
|
1263
|
+
message.gcp !== undefined &&
|
|
1264
|
+
(obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
|
|
1265
|
+
message.azure !== undefined &&
|
|
1266
|
+
(obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
|
|
1267
|
+
message.aliOSS !== undefined &&
|
|
1268
|
+
(obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
|
|
1204
1269
|
return obj;
|
|
1205
1270
|
},
|
|
1206
1271
|
fromPartial(object) {
|
|
1207
1272
|
var _a, _b, _c, _d, _e, _f;
|
|
1208
1273
|
const message = createBaseSegmentedFileOutput();
|
|
1209
1274
|
message.protocol = (_a = object.protocol) !== null && _a !== void 0 ? _a : 0;
|
|
1210
|
-
message.filenamePrefix = (_b = object.filenamePrefix) !== null && _b !== void 0 ? _b :
|
|
1211
|
-
message.playlistName = (_c = object.playlistName) !== null && _c !== void 0 ? _c :
|
|
1275
|
+
message.filenamePrefix = (_b = object.filenamePrefix) !== null && _b !== void 0 ? _b : '';
|
|
1276
|
+
message.playlistName = (_c = object.playlistName) !== null && _c !== void 0 ? _c : '';
|
|
1212
1277
|
message.segmentDuration = (_d = object.segmentDuration) !== null && _d !== void 0 ? _d : 0;
|
|
1213
1278
|
message.filenameSuffix = (_e = object.filenameSuffix) !== null && _e !== void 0 ? _e : 0;
|
|
1214
1279
|
message.disableManifest = (_f = object.disableManifest) !== null && _f !== void 0 ? _f : false;
|
|
1215
|
-
message.s3 =
|
|
1216
|
-
|
|
1217
|
-
message.
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1280
|
+
message.s3 =
|
|
1281
|
+
object.s3 !== undefined && object.s3 !== null ? exports.S3Upload.fromPartial(object.s3) : undefined;
|
|
1282
|
+
message.gcp =
|
|
1283
|
+
object.gcp !== undefined && object.gcp !== null
|
|
1284
|
+
? exports.GCPUpload.fromPartial(object.gcp)
|
|
1285
|
+
: undefined;
|
|
1286
|
+
message.azure =
|
|
1287
|
+
object.azure !== undefined && object.azure !== null
|
|
1288
|
+
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
1289
|
+
: undefined;
|
|
1290
|
+
message.aliOSS =
|
|
1291
|
+
object.aliOSS !== undefined && object.aliOSS !== null
|
|
1292
|
+
? exports.AliOSSUpload.fromPartial(object.aliOSS)
|
|
1293
|
+
: undefined;
|
|
1223
1294
|
return message;
|
|
1224
1295
|
},
|
|
1225
1296
|
};
|
|
1226
1297
|
function createBaseDirectFileOutput() {
|
|
1227
|
-
return {
|
|
1298
|
+
return {
|
|
1299
|
+
filepath: '',
|
|
1300
|
+
disableManifest: false,
|
|
1301
|
+
s3: undefined,
|
|
1302
|
+
gcp: undefined,
|
|
1303
|
+
azure: undefined,
|
|
1304
|
+
aliOSS: undefined,
|
|
1305
|
+
};
|
|
1228
1306
|
}
|
|
1229
1307
|
exports.DirectFileOutput = {
|
|
1230
|
-
encode(message, writer =
|
|
1231
|
-
if (message.filepath !== undefined && message.filepath !==
|
|
1308
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1309
|
+
if (message.filepath !== undefined && message.filepath !== '') {
|
|
1232
1310
|
writer.uint32(10).string(message.filepath);
|
|
1233
1311
|
}
|
|
1234
1312
|
if (message.disableManifest === true) {
|
|
@@ -1249,7 +1327,7 @@ exports.DirectFileOutput = {
|
|
|
1249
1327
|
return writer;
|
|
1250
1328
|
},
|
|
1251
1329
|
decode(input, length) {
|
|
1252
|
-
const reader = input instanceof
|
|
1330
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1253
1331
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1254
1332
|
const message = createBaseDirectFileOutput();
|
|
1255
1333
|
while (reader.pos < end) {
|
|
@@ -1282,7 +1360,7 @@ exports.DirectFileOutput = {
|
|
|
1282
1360
|
},
|
|
1283
1361
|
fromJSON(object) {
|
|
1284
1362
|
return {
|
|
1285
|
-
filepath: isSet(object.filepath) ? String(object.filepath) :
|
|
1363
|
+
filepath: isSet(object.filepath) ? String(object.filepath) : '',
|
|
1286
1364
|
disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
|
|
1287
1365
|
s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
|
|
1288
1366
|
gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
|
|
@@ -1295,54 +1373,63 @@ exports.DirectFileOutput = {
|
|
|
1295
1373
|
message.filepath !== undefined && (obj.filepath = message.filepath);
|
|
1296
1374
|
message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
|
|
1297
1375
|
message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
|
|
1298
|
-
message.gcp !== undefined &&
|
|
1299
|
-
|
|
1300
|
-
message.
|
|
1376
|
+
message.gcp !== undefined &&
|
|
1377
|
+
(obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
|
|
1378
|
+
message.azure !== undefined &&
|
|
1379
|
+
(obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
|
|
1380
|
+
message.aliOSS !== undefined &&
|
|
1381
|
+
(obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
|
|
1301
1382
|
return obj;
|
|
1302
1383
|
},
|
|
1303
1384
|
fromPartial(object) {
|
|
1304
1385
|
var _a, _b;
|
|
1305
1386
|
const message = createBaseDirectFileOutput();
|
|
1306
|
-
message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a :
|
|
1387
|
+
message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a : '';
|
|
1307
1388
|
message.disableManifest = (_b = object.disableManifest) !== null && _b !== void 0 ? _b : false;
|
|
1308
|
-
message.s3 =
|
|
1309
|
-
|
|
1310
|
-
message.
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1389
|
+
message.s3 =
|
|
1390
|
+
object.s3 !== undefined && object.s3 !== null ? exports.S3Upload.fromPartial(object.s3) : undefined;
|
|
1391
|
+
message.gcp =
|
|
1392
|
+
object.gcp !== undefined && object.gcp !== null
|
|
1393
|
+
? exports.GCPUpload.fromPartial(object.gcp)
|
|
1394
|
+
: undefined;
|
|
1395
|
+
message.azure =
|
|
1396
|
+
object.azure !== undefined && object.azure !== null
|
|
1397
|
+
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
1398
|
+
: undefined;
|
|
1399
|
+
message.aliOSS =
|
|
1400
|
+
object.aliOSS !== undefined && object.aliOSS !== null
|
|
1401
|
+
? exports.AliOSSUpload.fromPartial(object.aliOSS)
|
|
1402
|
+
: undefined;
|
|
1316
1403
|
return message;
|
|
1317
1404
|
},
|
|
1318
1405
|
};
|
|
1319
1406
|
function createBaseS3Upload() {
|
|
1320
1407
|
return {
|
|
1321
|
-
accessKey:
|
|
1322
|
-
secret:
|
|
1323
|
-
region:
|
|
1324
|
-
endpoint:
|
|
1325
|
-
bucket:
|
|
1408
|
+
accessKey: '',
|
|
1409
|
+
secret: '',
|
|
1410
|
+
region: '',
|
|
1411
|
+
endpoint: '',
|
|
1412
|
+
bucket: '',
|
|
1326
1413
|
forcePathStyle: false,
|
|
1327
1414
|
metadata: {},
|
|
1328
|
-
tagging:
|
|
1415
|
+
tagging: '',
|
|
1329
1416
|
};
|
|
1330
1417
|
}
|
|
1331
1418
|
exports.S3Upload = {
|
|
1332
|
-
encode(message, writer =
|
|
1333
|
-
if (message.accessKey !== undefined && message.accessKey !==
|
|
1419
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1420
|
+
if (message.accessKey !== undefined && message.accessKey !== '') {
|
|
1334
1421
|
writer.uint32(10).string(message.accessKey);
|
|
1335
1422
|
}
|
|
1336
|
-
if (message.secret !== undefined && message.secret !==
|
|
1423
|
+
if (message.secret !== undefined && message.secret !== '') {
|
|
1337
1424
|
writer.uint32(18).string(message.secret);
|
|
1338
1425
|
}
|
|
1339
|
-
if (message.region !== undefined && message.region !==
|
|
1426
|
+
if (message.region !== undefined && message.region !== '') {
|
|
1340
1427
|
writer.uint32(26).string(message.region);
|
|
1341
1428
|
}
|
|
1342
|
-
if (message.endpoint !== undefined && message.endpoint !==
|
|
1429
|
+
if (message.endpoint !== undefined && message.endpoint !== '') {
|
|
1343
1430
|
writer.uint32(34).string(message.endpoint);
|
|
1344
1431
|
}
|
|
1345
|
-
if (message.bucket !== undefined && message.bucket !==
|
|
1432
|
+
if (message.bucket !== undefined && message.bucket !== '') {
|
|
1346
1433
|
writer.uint32(42).string(message.bucket);
|
|
1347
1434
|
}
|
|
1348
1435
|
if (message.forcePathStyle === true) {
|
|
@@ -1351,13 +1438,13 @@ exports.S3Upload = {
|
|
|
1351
1438
|
Object.entries(message.metadata || {}).forEach(([key, value]) => {
|
|
1352
1439
|
exports.S3Upload_MetadataEntry.encode({ key: key, value }, writer.uint32(58).fork()).ldelim();
|
|
1353
1440
|
});
|
|
1354
|
-
if (message.tagging !== undefined && message.tagging !==
|
|
1441
|
+
if (message.tagging !== undefined && message.tagging !== '') {
|
|
1355
1442
|
writer.uint32(66).string(message.tagging);
|
|
1356
1443
|
}
|
|
1357
1444
|
return writer;
|
|
1358
1445
|
},
|
|
1359
1446
|
decode(input, length) {
|
|
1360
|
-
const reader = input instanceof
|
|
1447
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1361
1448
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1362
1449
|
const message = createBaseS3Upload();
|
|
1363
1450
|
while (reader.pos < end) {
|
|
@@ -1399,11 +1486,11 @@ exports.S3Upload = {
|
|
|
1399
1486
|
},
|
|
1400
1487
|
fromJSON(object) {
|
|
1401
1488
|
return {
|
|
1402
|
-
accessKey: isSet(object.accessKey) ? String(object.accessKey) :
|
|
1403
|
-
secret: isSet(object.secret) ? String(object.secret) :
|
|
1404
|
-
region: isSet(object.region) ? String(object.region) :
|
|
1405
|
-
endpoint: isSet(object.endpoint) ? String(object.endpoint) :
|
|
1406
|
-
bucket: isSet(object.bucket) ? String(object.bucket) :
|
|
1489
|
+
accessKey: isSet(object.accessKey) ? String(object.accessKey) : '',
|
|
1490
|
+
secret: isSet(object.secret) ? String(object.secret) : '',
|
|
1491
|
+
region: isSet(object.region) ? String(object.region) : '',
|
|
1492
|
+
endpoint: isSet(object.endpoint) ? String(object.endpoint) : '',
|
|
1493
|
+
bucket: isSet(object.bucket) ? String(object.bucket) : '',
|
|
1407
1494
|
forcePathStyle: isSet(object.forcePathStyle) ? Boolean(object.forcePathStyle) : false,
|
|
1408
1495
|
metadata: isObject(object.metadata)
|
|
1409
1496
|
? Object.entries(object.metadata).reduce((acc, [key, value]) => {
|
|
@@ -1411,7 +1498,7 @@ exports.S3Upload = {
|
|
|
1411
1498
|
return acc;
|
|
1412
1499
|
}, {})
|
|
1413
1500
|
: {},
|
|
1414
|
-
tagging: isSet(object.tagging) ? String(object.tagging) :
|
|
1501
|
+
tagging: isSet(object.tagging) ? String(object.tagging) : '',
|
|
1415
1502
|
};
|
|
1416
1503
|
},
|
|
1417
1504
|
toJSON(message) {
|
|
@@ -1434,11 +1521,11 @@ exports.S3Upload = {
|
|
|
1434
1521
|
fromPartial(object) {
|
|
1435
1522
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1436
1523
|
const message = createBaseS3Upload();
|
|
1437
|
-
message.accessKey = (_a = object.accessKey) !== null && _a !== void 0 ? _a :
|
|
1438
|
-
message.secret = (_b = object.secret) !== null && _b !== void 0 ? _b :
|
|
1439
|
-
message.region = (_c = object.region) !== null && _c !== void 0 ? _c :
|
|
1440
|
-
message.endpoint = (_d = object.endpoint) !== null && _d !== void 0 ? _d :
|
|
1441
|
-
message.bucket = (_e = object.bucket) !== null && _e !== void 0 ? _e :
|
|
1524
|
+
message.accessKey = (_a = object.accessKey) !== null && _a !== void 0 ? _a : '';
|
|
1525
|
+
message.secret = (_b = object.secret) !== null && _b !== void 0 ? _b : '';
|
|
1526
|
+
message.region = (_c = object.region) !== null && _c !== void 0 ? _c : '';
|
|
1527
|
+
message.endpoint = (_d = object.endpoint) !== null && _d !== void 0 ? _d : '';
|
|
1528
|
+
message.bucket = (_e = object.bucket) !== null && _e !== void 0 ? _e : '';
|
|
1442
1529
|
message.forcePathStyle = (_f = object.forcePathStyle) !== null && _f !== void 0 ? _f : false;
|
|
1443
1530
|
message.metadata = Object.entries((_g = object.metadata) !== null && _g !== void 0 ? _g : {}).reduce((acc, [key, value]) => {
|
|
1444
1531
|
if (value !== undefined) {
|
|
@@ -1446,25 +1533,25 @@ exports.S3Upload = {
|
|
|
1446
1533
|
}
|
|
1447
1534
|
return acc;
|
|
1448
1535
|
}, {});
|
|
1449
|
-
message.tagging = (_h = object.tagging) !== null && _h !== void 0 ? _h :
|
|
1536
|
+
message.tagging = (_h = object.tagging) !== null && _h !== void 0 ? _h : '';
|
|
1450
1537
|
return message;
|
|
1451
1538
|
},
|
|
1452
1539
|
};
|
|
1453
1540
|
function createBaseS3Upload_MetadataEntry() {
|
|
1454
|
-
return { key:
|
|
1541
|
+
return { key: '', value: '' };
|
|
1455
1542
|
}
|
|
1456
1543
|
exports.S3Upload_MetadataEntry = {
|
|
1457
|
-
encode(message, writer =
|
|
1458
|
-
if (message.key !==
|
|
1544
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1545
|
+
if (message.key !== '') {
|
|
1459
1546
|
writer.uint32(10).string(message.key);
|
|
1460
1547
|
}
|
|
1461
|
-
if (message.value !==
|
|
1548
|
+
if (message.value !== '') {
|
|
1462
1549
|
writer.uint32(18).string(message.value);
|
|
1463
1550
|
}
|
|
1464
1551
|
return writer;
|
|
1465
1552
|
},
|
|
1466
1553
|
decode(input, length) {
|
|
1467
|
-
const reader = input instanceof
|
|
1554
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1468
1555
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1469
1556
|
const message = createBaseS3Upload_MetadataEntry();
|
|
1470
1557
|
while (reader.pos < end) {
|
|
@@ -1484,7 +1571,10 @@ exports.S3Upload_MetadataEntry = {
|
|
|
1484
1571
|
return message;
|
|
1485
1572
|
},
|
|
1486
1573
|
fromJSON(object) {
|
|
1487
|
-
return {
|
|
1574
|
+
return {
|
|
1575
|
+
key: isSet(object.key) ? String(object.key) : '',
|
|
1576
|
+
value: isSet(object.value) ? String(object.value) : '',
|
|
1577
|
+
};
|
|
1488
1578
|
},
|
|
1489
1579
|
toJSON(message) {
|
|
1490
1580
|
const obj = {};
|
|
@@ -1495,26 +1585,26 @@ exports.S3Upload_MetadataEntry = {
|
|
|
1495
1585
|
fromPartial(object) {
|
|
1496
1586
|
var _a, _b;
|
|
1497
1587
|
const message = createBaseS3Upload_MetadataEntry();
|
|
1498
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a :
|
|
1499
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b :
|
|
1588
|
+
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : '';
|
|
1589
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : '';
|
|
1500
1590
|
return message;
|
|
1501
1591
|
},
|
|
1502
1592
|
};
|
|
1503
1593
|
function createBaseGCPUpload() {
|
|
1504
|
-
return { credentials:
|
|
1594
|
+
return { credentials: '', bucket: '' };
|
|
1505
1595
|
}
|
|
1506
1596
|
exports.GCPUpload = {
|
|
1507
|
-
encode(message, writer =
|
|
1508
|
-
if (message.credentials !== undefined && message.credentials !==
|
|
1597
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1598
|
+
if (message.credentials !== undefined && message.credentials !== '') {
|
|
1509
1599
|
writer.uint32(10).string(message.credentials);
|
|
1510
1600
|
}
|
|
1511
|
-
if (message.bucket !== undefined && message.bucket !==
|
|
1601
|
+
if (message.bucket !== undefined && message.bucket !== '') {
|
|
1512
1602
|
writer.uint32(18).string(message.bucket);
|
|
1513
1603
|
}
|
|
1514
1604
|
return writer;
|
|
1515
1605
|
},
|
|
1516
1606
|
decode(input, length) {
|
|
1517
|
-
const reader = input instanceof
|
|
1607
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1518
1608
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1519
1609
|
const message = createBaseGCPUpload();
|
|
1520
1610
|
while (reader.pos < end) {
|
|
@@ -1535,8 +1625,8 @@ exports.GCPUpload = {
|
|
|
1535
1625
|
},
|
|
1536
1626
|
fromJSON(object) {
|
|
1537
1627
|
return {
|
|
1538
|
-
credentials: isSet(object.credentials) ? String(object.credentials) :
|
|
1539
|
-
bucket: isSet(object.bucket) ? String(object.bucket) :
|
|
1628
|
+
credentials: isSet(object.credentials) ? String(object.credentials) : '',
|
|
1629
|
+
bucket: isSet(object.bucket) ? String(object.bucket) : '',
|
|
1540
1630
|
};
|
|
1541
1631
|
},
|
|
1542
1632
|
toJSON(message) {
|
|
@@ -1548,29 +1638,29 @@ exports.GCPUpload = {
|
|
|
1548
1638
|
fromPartial(object) {
|
|
1549
1639
|
var _a, _b;
|
|
1550
1640
|
const message = createBaseGCPUpload();
|
|
1551
|
-
message.credentials = (_a = object.credentials) !== null && _a !== void 0 ? _a :
|
|
1552
|
-
message.bucket = (_b = object.bucket) !== null && _b !== void 0 ? _b :
|
|
1641
|
+
message.credentials = (_a = object.credentials) !== null && _a !== void 0 ? _a : '';
|
|
1642
|
+
message.bucket = (_b = object.bucket) !== null && _b !== void 0 ? _b : '';
|
|
1553
1643
|
return message;
|
|
1554
1644
|
},
|
|
1555
1645
|
};
|
|
1556
1646
|
function createBaseAzureBlobUpload() {
|
|
1557
|
-
return { accountName:
|
|
1647
|
+
return { accountName: '', accountKey: '', containerName: '' };
|
|
1558
1648
|
}
|
|
1559
1649
|
exports.AzureBlobUpload = {
|
|
1560
|
-
encode(message, writer =
|
|
1561
|
-
if (message.accountName !== undefined && message.accountName !==
|
|
1650
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1651
|
+
if (message.accountName !== undefined && message.accountName !== '') {
|
|
1562
1652
|
writer.uint32(10).string(message.accountName);
|
|
1563
1653
|
}
|
|
1564
|
-
if (message.accountKey !== undefined && message.accountKey !==
|
|
1654
|
+
if (message.accountKey !== undefined && message.accountKey !== '') {
|
|
1565
1655
|
writer.uint32(18).string(message.accountKey);
|
|
1566
1656
|
}
|
|
1567
|
-
if (message.containerName !== undefined && message.containerName !==
|
|
1657
|
+
if (message.containerName !== undefined && message.containerName !== '') {
|
|
1568
1658
|
writer.uint32(26).string(message.containerName);
|
|
1569
1659
|
}
|
|
1570
1660
|
return writer;
|
|
1571
1661
|
},
|
|
1572
1662
|
decode(input, length) {
|
|
1573
|
-
const reader = input instanceof
|
|
1663
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1574
1664
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1575
1665
|
const message = createBaseAzureBlobUpload();
|
|
1576
1666
|
while (reader.pos < end) {
|
|
@@ -1594,9 +1684,9 @@ exports.AzureBlobUpload = {
|
|
|
1594
1684
|
},
|
|
1595
1685
|
fromJSON(object) {
|
|
1596
1686
|
return {
|
|
1597
|
-
accountName: isSet(object.accountName) ? String(object.accountName) :
|
|
1598
|
-
accountKey: isSet(object.accountKey) ? String(object.accountKey) :
|
|
1599
|
-
containerName: isSet(object.containerName) ? String(object.containerName) :
|
|
1687
|
+
accountName: isSet(object.accountName) ? String(object.accountName) : '',
|
|
1688
|
+
accountKey: isSet(object.accountKey) ? String(object.accountKey) : '',
|
|
1689
|
+
containerName: isSet(object.containerName) ? String(object.containerName) : '',
|
|
1600
1690
|
};
|
|
1601
1691
|
},
|
|
1602
1692
|
toJSON(message) {
|
|
@@ -1609,36 +1699,36 @@ exports.AzureBlobUpload = {
|
|
|
1609
1699
|
fromPartial(object) {
|
|
1610
1700
|
var _a, _b, _c;
|
|
1611
1701
|
const message = createBaseAzureBlobUpload();
|
|
1612
|
-
message.accountName = (_a = object.accountName) !== null && _a !== void 0 ? _a :
|
|
1613
|
-
message.accountKey = (_b = object.accountKey) !== null && _b !== void 0 ? _b :
|
|
1614
|
-
message.containerName = (_c = object.containerName) !== null && _c !== void 0 ? _c :
|
|
1702
|
+
message.accountName = (_a = object.accountName) !== null && _a !== void 0 ? _a : '';
|
|
1703
|
+
message.accountKey = (_b = object.accountKey) !== null && _b !== void 0 ? _b : '';
|
|
1704
|
+
message.containerName = (_c = object.containerName) !== null && _c !== void 0 ? _c : '';
|
|
1615
1705
|
return message;
|
|
1616
1706
|
},
|
|
1617
1707
|
};
|
|
1618
1708
|
function createBaseAliOSSUpload() {
|
|
1619
|
-
return { accessKey:
|
|
1709
|
+
return { accessKey: '', secret: '', region: '', endpoint: '', bucket: '' };
|
|
1620
1710
|
}
|
|
1621
1711
|
exports.AliOSSUpload = {
|
|
1622
|
-
encode(message, writer =
|
|
1623
|
-
if (message.accessKey !== undefined && message.accessKey !==
|
|
1712
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1713
|
+
if (message.accessKey !== undefined && message.accessKey !== '') {
|
|
1624
1714
|
writer.uint32(10).string(message.accessKey);
|
|
1625
1715
|
}
|
|
1626
|
-
if (message.secret !== undefined && message.secret !==
|
|
1716
|
+
if (message.secret !== undefined && message.secret !== '') {
|
|
1627
1717
|
writer.uint32(18).string(message.secret);
|
|
1628
1718
|
}
|
|
1629
|
-
if (message.region !== undefined && message.region !==
|
|
1719
|
+
if (message.region !== undefined && message.region !== '') {
|
|
1630
1720
|
writer.uint32(26).string(message.region);
|
|
1631
1721
|
}
|
|
1632
|
-
if (message.endpoint !== undefined && message.endpoint !==
|
|
1722
|
+
if (message.endpoint !== undefined && message.endpoint !== '') {
|
|
1633
1723
|
writer.uint32(34).string(message.endpoint);
|
|
1634
1724
|
}
|
|
1635
|
-
if (message.bucket !== undefined && message.bucket !==
|
|
1725
|
+
if (message.bucket !== undefined && message.bucket !== '') {
|
|
1636
1726
|
writer.uint32(42).string(message.bucket);
|
|
1637
1727
|
}
|
|
1638
1728
|
return writer;
|
|
1639
1729
|
},
|
|
1640
1730
|
decode(input, length) {
|
|
1641
|
-
const reader = input instanceof
|
|
1731
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1642
1732
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1643
1733
|
const message = createBaseAliOSSUpload();
|
|
1644
1734
|
while (reader.pos < end) {
|
|
@@ -1668,11 +1758,11 @@ exports.AliOSSUpload = {
|
|
|
1668
1758
|
},
|
|
1669
1759
|
fromJSON(object) {
|
|
1670
1760
|
return {
|
|
1671
|
-
accessKey: isSet(object.accessKey) ? String(object.accessKey) :
|
|
1672
|
-
secret: isSet(object.secret) ? String(object.secret) :
|
|
1673
|
-
region: isSet(object.region) ? String(object.region) :
|
|
1674
|
-
endpoint: isSet(object.endpoint) ? String(object.endpoint) :
|
|
1675
|
-
bucket: isSet(object.bucket) ? String(object.bucket) :
|
|
1761
|
+
accessKey: isSet(object.accessKey) ? String(object.accessKey) : '',
|
|
1762
|
+
secret: isSet(object.secret) ? String(object.secret) : '',
|
|
1763
|
+
region: isSet(object.region) ? String(object.region) : '',
|
|
1764
|
+
endpoint: isSet(object.endpoint) ? String(object.endpoint) : '',
|
|
1765
|
+
bucket: isSet(object.bucket) ? String(object.bucket) : '',
|
|
1676
1766
|
};
|
|
1677
1767
|
},
|
|
1678
1768
|
toJSON(message) {
|
|
@@ -1687,11 +1777,11 @@ exports.AliOSSUpload = {
|
|
|
1687
1777
|
fromPartial(object) {
|
|
1688
1778
|
var _a, _b, _c, _d, _e;
|
|
1689
1779
|
const message = createBaseAliOSSUpload();
|
|
1690
|
-
message.accessKey = (_a = object.accessKey) !== null && _a !== void 0 ? _a :
|
|
1691
|
-
message.secret = (_b = object.secret) !== null && _b !== void 0 ? _b :
|
|
1692
|
-
message.region = (_c = object.region) !== null && _c !== void 0 ? _c :
|
|
1693
|
-
message.endpoint = (_d = object.endpoint) !== null && _d !== void 0 ? _d :
|
|
1694
|
-
message.bucket = (_e = object.bucket) !== null && _e !== void 0 ? _e :
|
|
1780
|
+
message.accessKey = (_a = object.accessKey) !== null && _a !== void 0 ? _a : '';
|
|
1781
|
+
message.secret = (_b = object.secret) !== null && _b !== void 0 ? _b : '';
|
|
1782
|
+
message.region = (_c = object.region) !== null && _c !== void 0 ? _c : '';
|
|
1783
|
+
message.endpoint = (_d = object.endpoint) !== null && _d !== void 0 ? _d : '';
|
|
1784
|
+
message.bucket = (_e = object.bucket) !== null && _e !== void 0 ? _e : '';
|
|
1695
1785
|
return message;
|
|
1696
1786
|
},
|
|
1697
1787
|
};
|
|
@@ -1699,7 +1789,7 @@ function createBaseStreamOutput() {
|
|
|
1699
1789
|
return { protocol: 0, urls: [] };
|
|
1700
1790
|
}
|
|
1701
1791
|
exports.StreamOutput = {
|
|
1702
|
-
encode(message, writer =
|
|
1792
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1703
1793
|
if (message.protocol !== undefined && message.protocol !== 0) {
|
|
1704
1794
|
writer.uint32(8).int32(message.protocol);
|
|
1705
1795
|
}
|
|
@@ -1711,7 +1801,7 @@ exports.StreamOutput = {
|
|
|
1711
1801
|
return writer;
|
|
1712
1802
|
},
|
|
1713
1803
|
decode(input, length) {
|
|
1714
|
-
const reader = input instanceof
|
|
1804
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1715
1805
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1716
1806
|
const message = createBaseStreamOutput();
|
|
1717
1807
|
while (reader.pos < end) {
|
|
@@ -1770,7 +1860,7 @@ function createBaseEncodingOptions() {
|
|
|
1770
1860
|
};
|
|
1771
1861
|
}
|
|
1772
1862
|
exports.EncodingOptions = {
|
|
1773
|
-
encode(message, writer =
|
|
1863
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1774
1864
|
if (message.width !== undefined && message.width !== 0) {
|
|
1775
1865
|
writer.uint32(8).int32(message.width);
|
|
1776
1866
|
}
|
|
@@ -1804,7 +1894,7 @@ exports.EncodingOptions = {
|
|
|
1804
1894
|
return writer;
|
|
1805
1895
|
},
|
|
1806
1896
|
decode(input, length) {
|
|
1807
|
-
const reader = input instanceof
|
|
1897
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1808
1898
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1809
1899
|
const message = createBaseEncodingOptions();
|
|
1810
1900
|
while (reader.pos < end) {
|
|
@@ -1869,7 +1959,8 @@ exports.EncodingOptions = {
|
|
|
1869
1959
|
message.framerate !== undefined && (obj.framerate = Math.round(message.framerate));
|
|
1870
1960
|
message.audioCodec !== undefined && (obj.audioCodec = livekit_models_1.audioCodecToJSON(message.audioCodec));
|
|
1871
1961
|
message.audioBitrate !== undefined && (obj.audioBitrate = Math.round(message.audioBitrate));
|
|
1872
|
-
message.audioFrequency !== undefined &&
|
|
1962
|
+
message.audioFrequency !== undefined &&
|
|
1963
|
+
(obj.audioFrequency = Math.round(message.audioFrequency));
|
|
1873
1964
|
message.videoCodec !== undefined && (obj.videoCodec = livekit_models_1.videoCodecToJSON(message.videoCodec));
|
|
1874
1965
|
message.videoBitrate !== undefined && (obj.videoBitrate = Math.round(message.videoBitrate));
|
|
1875
1966
|
message.keyFrameInterval !== undefined && (obj.keyFrameInterval = message.keyFrameInterval);
|
|
@@ -1892,20 +1983,20 @@ exports.EncodingOptions = {
|
|
|
1892
1983
|
},
|
|
1893
1984
|
};
|
|
1894
1985
|
function createBaseUpdateLayoutRequest() {
|
|
1895
|
-
return { egressId:
|
|
1986
|
+
return { egressId: '', layout: '' };
|
|
1896
1987
|
}
|
|
1897
1988
|
exports.UpdateLayoutRequest = {
|
|
1898
|
-
encode(message, writer =
|
|
1899
|
-
if (message.egressId !== undefined && message.egressId !==
|
|
1989
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1990
|
+
if (message.egressId !== undefined && message.egressId !== '') {
|
|
1900
1991
|
writer.uint32(10).string(message.egressId);
|
|
1901
1992
|
}
|
|
1902
|
-
if (message.layout !== undefined && message.layout !==
|
|
1993
|
+
if (message.layout !== undefined && message.layout !== '') {
|
|
1903
1994
|
writer.uint32(18).string(message.layout);
|
|
1904
1995
|
}
|
|
1905
1996
|
return writer;
|
|
1906
1997
|
},
|
|
1907
1998
|
decode(input, length) {
|
|
1908
|
-
const reader = input instanceof
|
|
1999
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1909
2000
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1910
2001
|
const message = createBaseUpdateLayoutRequest();
|
|
1911
2002
|
while (reader.pos < end) {
|
|
@@ -1926,8 +2017,8 @@ exports.UpdateLayoutRequest = {
|
|
|
1926
2017
|
},
|
|
1927
2018
|
fromJSON(object) {
|
|
1928
2019
|
return {
|
|
1929
|
-
egressId: isSet(object.egressId) ? String(object.egressId) :
|
|
1930
|
-
layout: isSet(object.layout) ? String(object.layout) :
|
|
2020
|
+
egressId: isSet(object.egressId) ? String(object.egressId) : '',
|
|
2021
|
+
layout: isSet(object.layout) ? String(object.layout) : '',
|
|
1931
2022
|
};
|
|
1932
2023
|
},
|
|
1933
2024
|
toJSON(message) {
|
|
@@ -1939,17 +2030,17 @@ exports.UpdateLayoutRequest = {
|
|
|
1939
2030
|
fromPartial(object) {
|
|
1940
2031
|
var _a, _b;
|
|
1941
2032
|
const message = createBaseUpdateLayoutRequest();
|
|
1942
|
-
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a :
|
|
1943
|
-
message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b :
|
|
2033
|
+
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : '';
|
|
2034
|
+
message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b : '';
|
|
1944
2035
|
return message;
|
|
1945
2036
|
},
|
|
1946
2037
|
};
|
|
1947
2038
|
function createBaseUpdateStreamRequest() {
|
|
1948
|
-
return { egressId:
|
|
2039
|
+
return { egressId: '', addOutputUrls: [], removeOutputUrls: [] };
|
|
1949
2040
|
}
|
|
1950
2041
|
exports.UpdateStreamRequest = {
|
|
1951
|
-
encode(message, writer =
|
|
1952
|
-
if (message.egressId !== undefined && message.egressId !==
|
|
2042
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2043
|
+
if (message.egressId !== undefined && message.egressId !== '') {
|
|
1953
2044
|
writer.uint32(10).string(message.egressId);
|
|
1954
2045
|
}
|
|
1955
2046
|
if (message.addOutputUrls !== undefined && message.addOutputUrls.length !== 0) {
|
|
@@ -1965,7 +2056,7 @@ exports.UpdateStreamRequest = {
|
|
|
1965
2056
|
return writer;
|
|
1966
2057
|
},
|
|
1967
2058
|
decode(input, length) {
|
|
1968
|
-
const reader = input instanceof
|
|
2059
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1969
2060
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1970
2061
|
const message = createBaseUpdateStreamRequest();
|
|
1971
2062
|
while (reader.pos < end) {
|
|
@@ -1989,8 +2080,10 @@ exports.UpdateStreamRequest = {
|
|
|
1989
2080
|
},
|
|
1990
2081
|
fromJSON(object) {
|
|
1991
2082
|
return {
|
|
1992
|
-
egressId: isSet(object.egressId) ? String(object.egressId) :
|
|
1993
|
-
addOutputUrls: Array.isArray(object === null || object === void 0 ? void 0 : object.addOutputUrls)
|
|
2083
|
+
egressId: isSet(object.egressId) ? String(object.egressId) : '',
|
|
2084
|
+
addOutputUrls: Array.isArray(object === null || object === void 0 ? void 0 : object.addOutputUrls)
|
|
2085
|
+
? object.addOutputUrls.map((e) => String(e))
|
|
2086
|
+
: [],
|
|
1994
2087
|
removeOutputUrls: Array.isArray(object === null || object === void 0 ? void 0 : object.removeOutputUrls)
|
|
1995
2088
|
? object.removeOutputUrls.map((e) => String(e))
|
|
1996
2089
|
: [],
|
|
@@ -2016,21 +2109,21 @@ exports.UpdateStreamRequest = {
|
|
|
2016
2109
|
fromPartial(object) {
|
|
2017
2110
|
var _a, _b, _c;
|
|
2018
2111
|
const message = createBaseUpdateStreamRequest();
|
|
2019
|
-
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a :
|
|
2112
|
+
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : '';
|
|
2020
2113
|
message.addOutputUrls = ((_b = object.addOutputUrls) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
2021
2114
|
message.removeOutputUrls = ((_c = object.removeOutputUrls) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
2022
2115
|
return message;
|
|
2023
2116
|
},
|
|
2024
2117
|
};
|
|
2025
2118
|
function createBaseListEgressRequest() {
|
|
2026
|
-
return { roomName:
|
|
2119
|
+
return { roomName: '', egressId: '', active: false };
|
|
2027
2120
|
}
|
|
2028
2121
|
exports.ListEgressRequest = {
|
|
2029
|
-
encode(message, writer =
|
|
2030
|
-
if (message.roomName !== undefined && message.roomName !==
|
|
2122
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2123
|
+
if (message.roomName !== undefined && message.roomName !== '') {
|
|
2031
2124
|
writer.uint32(10).string(message.roomName);
|
|
2032
2125
|
}
|
|
2033
|
-
if (message.egressId !== undefined && message.egressId !==
|
|
2126
|
+
if (message.egressId !== undefined && message.egressId !== '') {
|
|
2034
2127
|
writer.uint32(18).string(message.egressId);
|
|
2035
2128
|
}
|
|
2036
2129
|
if (message.active === true) {
|
|
@@ -2039,7 +2132,7 @@ exports.ListEgressRequest = {
|
|
|
2039
2132
|
return writer;
|
|
2040
2133
|
},
|
|
2041
2134
|
decode(input, length) {
|
|
2042
|
-
const reader = input instanceof
|
|
2135
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2043
2136
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2044
2137
|
const message = createBaseListEgressRequest();
|
|
2045
2138
|
while (reader.pos < end) {
|
|
@@ -2063,8 +2156,8 @@ exports.ListEgressRequest = {
|
|
|
2063
2156
|
},
|
|
2064
2157
|
fromJSON(object) {
|
|
2065
2158
|
return {
|
|
2066
|
-
roomName: isSet(object.roomName) ? String(object.roomName) :
|
|
2067
|
-
egressId: isSet(object.egressId) ? String(object.egressId) :
|
|
2159
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : '',
|
|
2160
|
+
egressId: isSet(object.egressId) ? String(object.egressId) : '',
|
|
2068
2161
|
active: isSet(object.active) ? Boolean(object.active) : false,
|
|
2069
2162
|
};
|
|
2070
2163
|
},
|
|
@@ -2078,8 +2171,8 @@ exports.ListEgressRequest = {
|
|
|
2078
2171
|
fromPartial(object) {
|
|
2079
2172
|
var _a, _b, _c;
|
|
2080
2173
|
const message = createBaseListEgressRequest();
|
|
2081
|
-
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a :
|
|
2082
|
-
message.egressId = (_b = object.egressId) !== null && _b !== void 0 ? _b :
|
|
2174
|
+
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : '';
|
|
2175
|
+
message.egressId = (_b = object.egressId) !== null && _b !== void 0 ? _b : '';
|
|
2083
2176
|
message.active = (_c = object.active) !== null && _c !== void 0 ? _c : false;
|
|
2084
2177
|
return message;
|
|
2085
2178
|
},
|
|
@@ -2088,7 +2181,7 @@ function createBaseListEgressResponse() {
|
|
|
2088
2181
|
return { items: [] };
|
|
2089
2182
|
}
|
|
2090
2183
|
exports.ListEgressResponse = {
|
|
2091
|
-
encode(message, writer =
|
|
2184
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2092
2185
|
if (message.items !== undefined && message.items.length !== 0) {
|
|
2093
2186
|
for (const v of message.items) {
|
|
2094
2187
|
exports.EgressInfo.encode(v, writer.uint32(10).fork()).ldelim();
|
|
@@ -2097,7 +2190,7 @@ exports.ListEgressResponse = {
|
|
|
2097
2190
|
return writer;
|
|
2098
2191
|
},
|
|
2099
2192
|
decode(input, length) {
|
|
2100
|
-
const reader = input instanceof
|
|
2193
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2101
2194
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2102
2195
|
const message = createBaseListEgressResponse();
|
|
2103
2196
|
while (reader.pos < end) {
|
|
@@ -2114,12 +2207,16 @@ exports.ListEgressResponse = {
|
|
|
2114
2207
|
return message;
|
|
2115
2208
|
},
|
|
2116
2209
|
fromJSON(object) {
|
|
2117
|
-
return {
|
|
2210
|
+
return {
|
|
2211
|
+
items: Array.isArray(object === null || object === void 0 ? void 0 : object.items)
|
|
2212
|
+
? object.items.map((e) => exports.EgressInfo.fromJSON(e))
|
|
2213
|
+
: [],
|
|
2214
|
+
};
|
|
2118
2215
|
},
|
|
2119
2216
|
toJSON(message) {
|
|
2120
2217
|
const obj = {};
|
|
2121
2218
|
if (message.items) {
|
|
2122
|
-
obj.items = message.items.map((e) => e ? exports.EgressInfo.toJSON(e) : undefined);
|
|
2219
|
+
obj.items = message.items.map((e) => (e ? exports.EgressInfo.toJSON(e) : undefined));
|
|
2123
2220
|
}
|
|
2124
2221
|
else {
|
|
2125
2222
|
obj.items = [];
|
|
@@ -2134,17 +2231,17 @@ exports.ListEgressResponse = {
|
|
|
2134
2231
|
},
|
|
2135
2232
|
};
|
|
2136
2233
|
function createBaseStopEgressRequest() {
|
|
2137
|
-
return { egressId:
|
|
2234
|
+
return { egressId: '' };
|
|
2138
2235
|
}
|
|
2139
2236
|
exports.StopEgressRequest = {
|
|
2140
|
-
encode(message, writer =
|
|
2141
|
-
if (message.egressId !== undefined && message.egressId !==
|
|
2237
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2238
|
+
if (message.egressId !== undefined && message.egressId !== '') {
|
|
2142
2239
|
writer.uint32(10).string(message.egressId);
|
|
2143
2240
|
}
|
|
2144
2241
|
return writer;
|
|
2145
2242
|
},
|
|
2146
2243
|
decode(input, length) {
|
|
2147
|
-
const reader = input instanceof
|
|
2244
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2148
2245
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2149
2246
|
const message = createBaseStopEgressRequest();
|
|
2150
2247
|
while (reader.pos < end) {
|
|
@@ -2161,7 +2258,9 @@ exports.StopEgressRequest = {
|
|
|
2161
2258
|
return message;
|
|
2162
2259
|
},
|
|
2163
2260
|
fromJSON(object) {
|
|
2164
|
-
return {
|
|
2261
|
+
return {
|
|
2262
|
+
egressId: isSet(object.egressId) ? String(object.egressId) : '',
|
|
2263
|
+
};
|
|
2165
2264
|
},
|
|
2166
2265
|
toJSON(message) {
|
|
2167
2266
|
const obj = {};
|
|
@@ -2171,19 +2270,19 @@ exports.StopEgressRequest = {
|
|
|
2171
2270
|
fromPartial(object) {
|
|
2172
2271
|
var _a;
|
|
2173
2272
|
const message = createBaseStopEgressRequest();
|
|
2174
|
-
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a :
|
|
2273
|
+
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : '';
|
|
2175
2274
|
return message;
|
|
2176
2275
|
},
|
|
2177
2276
|
};
|
|
2178
2277
|
function createBaseEgressInfo() {
|
|
2179
2278
|
return {
|
|
2180
|
-
egressId:
|
|
2181
|
-
roomId:
|
|
2182
|
-
roomName:
|
|
2279
|
+
egressId: '',
|
|
2280
|
+
roomId: '',
|
|
2281
|
+
roomName: '',
|
|
2183
2282
|
status: 0,
|
|
2184
2283
|
startedAt: 0,
|
|
2185
2284
|
endedAt: 0,
|
|
2186
|
-
error:
|
|
2285
|
+
error: '',
|
|
2187
2286
|
roomComposite: undefined,
|
|
2188
2287
|
trackComposite: undefined,
|
|
2189
2288
|
track: undefined,
|
|
@@ -2197,14 +2296,14 @@ function createBaseEgressInfo() {
|
|
|
2197
2296
|
};
|
|
2198
2297
|
}
|
|
2199
2298
|
exports.EgressInfo = {
|
|
2200
|
-
encode(message, writer =
|
|
2201
|
-
if (message.egressId !== undefined && message.egressId !==
|
|
2299
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2300
|
+
if (message.egressId !== undefined && message.egressId !== '') {
|
|
2202
2301
|
writer.uint32(10).string(message.egressId);
|
|
2203
2302
|
}
|
|
2204
|
-
if (message.roomId !== undefined && message.roomId !==
|
|
2303
|
+
if (message.roomId !== undefined && message.roomId !== '') {
|
|
2205
2304
|
writer.uint32(18).string(message.roomId);
|
|
2206
2305
|
}
|
|
2207
|
-
if (message.roomName !== undefined && message.roomName !==
|
|
2306
|
+
if (message.roomName !== undefined && message.roomName !== '') {
|
|
2208
2307
|
writer.uint32(106).string(message.roomName);
|
|
2209
2308
|
}
|
|
2210
2309
|
if (message.status !== undefined && message.status !== 0) {
|
|
@@ -2216,7 +2315,7 @@ exports.EgressInfo = {
|
|
|
2216
2315
|
if (message.endedAt !== undefined && message.endedAt !== 0) {
|
|
2217
2316
|
writer.uint32(88).int64(message.endedAt);
|
|
2218
2317
|
}
|
|
2219
|
-
if (message.error !== undefined && message.error !==
|
|
2318
|
+
if (message.error !== undefined && message.error !== '') {
|
|
2220
2319
|
writer.uint32(74).string(message.error);
|
|
2221
2320
|
}
|
|
2222
2321
|
if (message.roomComposite !== undefined) {
|
|
@@ -2258,7 +2357,7 @@ exports.EgressInfo = {
|
|
|
2258
2357
|
return writer;
|
|
2259
2358
|
},
|
|
2260
2359
|
decode(input, length) {
|
|
2261
|
-
const reader = input instanceof
|
|
2360
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2262
2361
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2263
2362
|
const message = createBaseEgressInfo();
|
|
2264
2363
|
while (reader.pos < end) {
|
|
@@ -2324,13 +2423,13 @@ exports.EgressInfo = {
|
|
|
2324
2423
|
},
|
|
2325
2424
|
fromJSON(object) {
|
|
2326
2425
|
return {
|
|
2327
|
-
egressId: isSet(object.egressId) ? String(object.egressId) :
|
|
2328
|
-
roomId: isSet(object.roomId) ? String(object.roomId) :
|
|
2329
|
-
roomName: isSet(object.roomName) ? String(object.roomName) :
|
|
2426
|
+
egressId: isSet(object.egressId) ? String(object.egressId) : '',
|
|
2427
|
+
roomId: isSet(object.roomId) ? String(object.roomId) : '',
|
|
2428
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : '',
|
|
2330
2429
|
status: isSet(object.status) ? egressStatusFromJSON(object.status) : 0,
|
|
2331
2430
|
startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
|
|
2332
2431
|
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
|
|
2333
|
-
error: isSet(object.error) ? String(object.error) :
|
|
2432
|
+
error: isSet(object.error) ? String(object.error) : '',
|
|
2334
2433
|
roomComposite: isSet(object.roomComposite)
|
|
2335
2434
|
? exports.RoomCompositeEgressRequest.fromJSON(object.roomComposite)
|
|
2336
2435
|
: undefined,
|
|
@@ -2345,7 +2444,9 @@ exports.EgressInfo = {
|
|
|
2345
2444
|
streamResults: Array.isArray(object === null || object === void 0 ? void 0 : object.streamResults)
|
|
2346
2445
|
? object.streamResults.map((e) => exports.StreamInfo.fromJSON(e))
|
|
2347
2446
|
: [],
|
|
2348
|
-
fileResults: Array.isArray(object === null || object === void 0 ? void 0 : object.fileResults)
|
|
2447
|
+
fileResults: Array.isArray(object === null || object === void 0 ? void 0 : object.fileResults)
|
|
2448
|
+
? object.fileResults.map((e) => exports.FileInfo.fromJSON(e))
|
|
2449
|
+
: [],
|
|
2349
2450
|
segmentResults: Array.isArray(object === null || object === void 0 ? void 0 : object.segmentResults)
|
|
2350
2451
|
? object.segmentResults.map((e) => exports.SegmentsInfo.fromJSON(e))
|
|
2351
2452
|
: [],
|
|
@@ -2364,23 +2465,28 @@ exports.EgressInfo = {
|
|
|
2364
2465
|
(obj.roomComposite = message.roomComposite
|
|
2365
2466
|
? exports.RoomCompositeEgressRequest.toJSON(message.roomComposite)
|
|
2366
2467
|
: undefined);
|
|
2367
|
-
message.trackComposite !== undefined &&
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
message.
|
|
2372
|
-
|
|
2373
|
-
message.
|
|
2468
|
+
message.trackComposite !== undefined &&
|
|
2469
|
+
(obj.trackComposite = message.trackComposite
|
|
2470
|
+
? exports.TrackCompositeEgressRequest.toJSON(message.trackComposite)
|
|
2471
|
+
: undefined);
|
|
2472
|
+
message.track !== undefined &&
|
|
2473
|
+
(obj.track = message.track ? exports.TrackEgressRequest.toJSON(message.track) : undefined);
|
|
2474
|
+
message.web !== undefined &&
|
|
2475
|
+
(obj.web = message.web ? exports.WebEgressRequest.toJSON(message.web) : undefined);
|
|
2476
|
+
message.stream !== undefined &&
|
|
2477
|
+
(obj.stream = message.stream ? exports.StreamInfoList.toJSON(message.stream) : undefined);
|
|
2478
|
+
message.file !== undefined &&
|
|
2479
|
+
(obj.file = message.file ? exports.FileInfo.toJSON(message.file) : undefined);
|
|
2374
2480
|
message.segments !== undefined &&
|
|
2375
2481
|
(obj.segments = message.segments ? exports.SegmentsInfo.toJSON(message.segments) : undefined);
|
|
2376
2482
|
if (message.streamResults) {
|
|
2377
|
-
obj.streamResults = message.streamResults.map((e) => e ? exports.StreamInfo.toJSON(e) : undefined);
|
|
2483
|
+
obj.streamResults = message.streamResults.map((e) => (e ? exports.StreamInfo.toJSON(e) : undefined));
|
|
2378
2484
|
}
|
|
2379
2485
|
else {
|
|
2380
2486
|
obj.streamResults = [];
|
|
2381
2487
|
}
|
|
2382
2488
|
if (message.fileResults) {
|
|
2383
|
-
obj.fileResults = message.fileResults.map((e) => e ? exports.FileInfo.toJSON(e) : undefined);
|
|
2489
|
+
obj.fileResults = message.fileResults.map((e) => (e ? exports.FileInfo.toJSON(e) : undefined));
|
|
2384
2490
|
}
|
|
2385
2491
|
else {
|
|
2386
2492
|
obj.fileResults = [];
|
|
@@ -2396,32 +2502,41 @@ exports.EgressInfo = {
|
|
|
2396
2502
|
fromPartial(object) {
|
|
2397
2503
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2398
2504
|
const message = createBaseEgressInfo();
|
|
2399
|
-
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a :
|
|
2400
|
-
message.roomId = (_b = object.roomId) !== null && _b !== void 0 ? _b :
|
|
2401
|
-
message.roomName = (_c = object.roomName) !== null && _c !== void 0 ? _c :
|
|
2505
|
+
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : '';
|
|
2506
|
+
message.roomId = (_b = object.roomId) !== null && _b !== void 0 ? _b : '';
|
|
2507
|
+
message.roomName = (_c = object.roomName) !== null && _c !== void 0 ? _c : '';
|
|
2402
2508
|
message.status = (_d = object.status) !== null && _d !== void 0 ? _d : 0;
|
|
2403
2509
|
message.startedAt = (_e = object.startedAt) !== null && _e !== void 0 ? _e : 0;
|
|
2404
2510
|
message.endedAt = (_f = object.endedAt) !== null && _f !== void 0 ? _f : 0;
|
|
2405
|
-
message.error = (_g = object.error) !== null && _g !== void 0 ? _g :
|
|
2406
|
-
message.roomComposite =
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
message.
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
message.
|
|
2423
|
-
|
|
2424
|
-
|
|
2511
|
+
message.error = (_g = object.error) !== null && _g !== void 0 ? _g : '';
|
|
2512
|
+
message.roomComposite =
|
|
2513
|
+
object.roomComposite !== undefined && object.roomComposite !== null
|
|
2514
|
+
? exports.RoomCompositeEgressRequest.fromPartial(object.roomComposite)
|
|
2515
|
+
: undefined;
|
|
2516
|
+
message.trackComposite =
|
|
2517
|
+
object.trackComposite !== undefined && object.trackComposite !== null
|
|
2518
|
+
? exports.TrackCompositeEgressRequest.fromPartial(object.trackComposite)
|
|
2519
|
+
: undefined;
|
|
2520
|
+
message.track =
|
|
2521
|
+
object.track !== undefined && object.track !== null
|
|
2522
|
+
? exports.TrackEgressRequest.fromPartial(object.track)
|
|
2523
|
+
: undefined;
|
|
2524
|
+
message.web =
|
|
2525
|
+
object.web !== undefined && object.web !== null
|
|
2526
|
+
? exports.WebEgressRequest.fromPartial(object.web)
|
|
2527
|
+
: undefined;
|
|
2528
|
+
message.stream =
|
|
2529
|
+
object.stream !== undefined && object.stream !== null
|
|
2530
|
+
? exports.StreamInfoList.fromPartial(object.stream)
|
|
2531
|
+
: undefined;
|
|
2532
|
+
message.file =
|
|
2533
|
+
object.file !== undefined && object.file !== null
|
|
2534
|
+
? exports.FileInfo.fromPartial(object.file)
|
|
2535
|
+
: undefined;
|
|
2536
|
+
message.segments =
|
|
2537
|
+
object.segments !== undefined && object.segments !== null
|
|
2538
|
+
? exports.SegmentsInfo.fromPartial(object.segments)
|
|
2539
|
+
: undefined;
|
|
2425
2540
|
message.streamResults = ((_h = object.streamResults) === null || _h === void 0 ? void 0 : _h.map((e) => exports.StreamInfo.fromPartial(e))) || [];
|
|
2426
2541
|
message.fileResults = ((_j = object.fileResults) === null || _j === void 0 ? void 0 : _j.map((e) => exports.FileInfo.fromPartial(e))) || [];
|
|
2427
2542
|
message.segmentResults = ((_k = object.segmentResults) === null || _k === void 0 ? void 0 : _k.map((e) => exports.SegmentsInfo.fromPartial(e))) || [];
|
|
@@ -2432,7 +2547,7 @@ function createBaseStreamInfoList() {
|
|
|
2432
2547
|
return { info: [] };
|
|
2433
2548
|
}
|
|
2434
2549
|
exports.StreamInfoList = {
|
|
2435
|
-
encode(message, writer =
|
|
2550
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2436
2551
|
if (message.info !== undefined && message.info.length !== 0) {
|
|
2437
2552
|
for (const v of message.info) {
|
|
2438
2553
|
exports.StreamInfo.encode(v, writer.uint32(10).fork()).ldelim();
|
|
@@ -2441,7 +2556,7 @@ exports.StreamInfoList = {
|
|
|
2441
2556
|
return writer;
|
|
2442
2557
|
},
|
|
2443
2558
|
decode(input, length) {
|
|
2444
|
-
const reader = input instanceof
|
|
2559
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2445
2560
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2446
2561
|
const message = createBaseStreamInfoList();
|
|
2447
2562
|
while (reader.pos < end) {
|
|
@@ -2458,12 +2573,14 @@ exports.StreamInfoList = {
|
|
|
2458
2573
|
return message;
|
|
2459
2574
|
},
|
|
2460
2575
|
fromJSON(object) {
|
|
2461
|
-
return {
|
|
2576
|
+
return {
|
|
2577
|
+
info: Array.isArray(object === null || object === void 0 ? void 0 : object.info) ? object.info.map((e) => exports.StreamInfo.fromJSON(e)) : [],
|
|
2578
|
+
};
|
|
2462
2579
|
},
|
|
2463
2580
|
toJSON(message) {
|
|
2464
2581
|
const obj = {};
|
|
2465
2582
|
if (message.info) {
|
|
2466
|
-
obj.info = message.info.map((e) => e ? exports.StreamInfo.toJSON(e) : undefined);
|
|
2583
|
+
obj.info = message.info.map((e) => (e ? exports.StreamInfo.toJSON(e) : undefined));
|
|
2467
2584
|
}
|
|
2468
2585
|
else {
|
|
2469
2586
|
obj.info = [];
|
|
@@ -2478,11 +2595,11 @@ exports.StreamInfoList = {
|
|
|
2478
2595
|
},
|
|
2479
2596
|
};
|
|
2480
2597
|
function createBaseStreamInfo() {
|
|
2481
|
-
return { url:
|
|
2598
|
+
return { url: '', startedAt: 0, endedAt: 0, duration: 0, status: 0, error: '' };
|
|
2482
2599
|
}
|
|
2483
2600
|
exports.StreamInfo = {
|
|
2484
|
-
encode(message, writer =
|
|
2485
|
-
if (message.url !== undefined && message.url !==
|
|
2601
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2602
|
+
if (message.url !== undefined && message.url !== '') {
|
|
2486
2603
|
writer.uint32(10).string(message.url);
|
|
2487
2604
|
}
|
|
2488
2605
|
if (message.startedAt !== undefined && message.startedAt !== 0) {
|
|
@@ -2497,13 +2614,13 @@ exports.StreamInfo = {
|
|
|
2497
2614
|
if (message.status !== undefined && message.status !== 0) {
|
|
2498
2615
|
writer.uint32(40).int32(message.status);
|
|
2499
2616
|
}
|
|
2500
|
-
if (message.error !== undefined && message.error !==
|
|
2617
|
+
if (message.error !== undefined && message.error !== '') {
|
|
2501
2618
|
writer.uint32(50).string(message.error);
|
|
2502
2619
|
}
|
|
2503
2620
|
return writer;
|
|
2504
2621
|
},
|
|
2505
2622
|
decode(input, length) {
|
|
2506
|
-
const reader = input instanceof
|
|
2623
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2507
2624
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2508
2625
|
const message = createBaseStreamInfo();
|
|
2509
2626
|
while (reader.pos < end) {
|
|
@@ -2536,12 +2653,12 @@ exports.StreamInfo = {
|
|
|
2536
2653
|
},
|
|
2537
2654
|
fromJSON(object) {
|
|
2538
2655
|
return {
|
|
2539
|
-
url: isSet(object.url) ? String(object.url) :
|
|
2656
|
+
url: isSet(object.url) ? String(object.url) : '',
|
|
2540
2657
|
startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
|
|
2541
2658
|
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
|
|
2542
2659
|
duration: isSet(object.duration) ? Number(object.duration) : 0,
|
|
2543
2660
|
status: isSet(object.status) ? streamInfo_StatusFromJSON(object.status) : 0,
|
|
2544
|
-
error: isSet(object.error) ? String(object.error) :
|
|
2661
|
+
error: isSet(object.error) ? String(object.error) : '',
|
|
2545
2662
|
};
|
|
2546
2663
|
},
|
|
2547
2664
|
toJSON(message) {
|
|
@@ -2557,21 +2674,21 @@ exports.StreamInfo = {
|
|
|
2557
2674
|
fromPartial(object) {
|
|
2558
2675
|
var _a, _b, _c, _d, _e, _f;
|
|
2559
2676
|
const message = createBaseStreamInfo();
|
|
2560
|
-
message.url = (_a = object.url) !== null && _a !== void 0 ? _a :
|
|
2677
|
+
message.url = (_a = object.url) !== null && _a !== void 0 ? _a : '';
|
|
2561
2678
|
message.startedAt = (_b = object.startedAt) !== null && _b !== void 0 ? _b : 0;
|
|
2562
2679
|
message.endedAt = (_c = object.endedAt) !== null && _c !== void 0 ? _c : 0;
|
|
2563
2680
|
message.duration = (_d = object.duration) !== null && _d !== void 0 ? _d : 0;
|
|
2564
2681
|
message.status = (_e = object.status) !== null && _e !== void 0 ? _e : 0;
|
|
2565
|
-
message.error = (_f = object.error) !== null && _f !== void 0 ? _f :
|
|
2682
|
+
message.error = (_f = object.error) !== null && _f !== void 0 ? _f : '';
|
|
2566
2683
|
return message;
|
|
2567
2684
|
},
|
|
2568
2685
|
};
|
|
2569
2686
|
function createBaseFileInfo() {
|
|
2570
|
-
return { filename:
|
|
2687
|
+
return { filename: '', startedAt: 0, endedAt: 0, duration: 0, size: 0, location: '' };
|
|
2571
2688
|
}
|
|
2572
2689
|
exports.FileInfo = {
|
|
2573
|
-
encode(message, writer =
|
|
2574
|
-
if (message.filename !== undefined && message.filename !==
|
|
2690
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2691
|
+
if (message.filename !== undefined && message.filename !== '') {
|
|
2575
2692
|
writer.uint32(10).string(message.filename);
|
|
2576
2693
|
}
|
|
2577
2694
|
if (message.startedAt !== undefined && message.startedAt !== 0) {
|
|
@@ -2586,13 +2703,13 @@ exports.FileInfo = {
|
|
|
2586
2703
|
if (message.size !== undefined && message.size !== 0) {
|
|
2587
2704
|
writer.uint32(32).int64(message.size);
|
|
2588
2705
|
}
|
|
2589
|
-
if (message.location !== undefined && message.location !==
|
|
2706
|
+
if (message.location !== undefined && message.location !== '') {
|
|
2590
2707
|
writer.uint32(42).string(message.location);
|
|
2591
2708
|
}
|
|
2592
2709
|
return writer;
|
|
2593
2710
|
},
|
|
2594
2711
|
decode(input, length) {
|
|
2595
|
-
const reader = input instanceof
|
|
2712
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2596
2713
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2597
2714
|
const message = createBaseFileInfo();
|
|
2598
2715
|
while (reader.pos < end) {
|
|
@@ -2625,12 +2742,12 @@ exports.FileInfo = {
|
|
|
2625
2742
|
},
|
|
2626
2743
|
fromJSON(object) {
|
|
2627
2744
|
return {
|
|
2628
|
-
filename: isSet(object.filename) ? String(object.filename) :
|
|
2745
|
+
filename: isSet(object.filename) ? String(object.filename) : '',
|
|
2629
2746
|
startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
|
|
2630
2747
|
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
|
|
2631
2748
|
duration: isSet(object.duration) ? Number(object.duration) : 0,
|
|
2632
2749
|
size: isSet(object.size) ? Number(object.size) : 0,
|
|
2633
|
-
location: isSet(object.location) ? String(object.location) :
|
|
2750
|
+
location: isSet(object.location) ? String(object.location) : '',
|
|
2634
2751
|
};
|
|
2635
2752
|
},
|
|
2636
2753
|
toJSON(message) {
|
|
@@ -2646,21 +2763,29 @@ exports.FileInfo = {
|
|
|
2646
2763
|
fromPartial(object) {
|
|
2647
2764
|
var _a, _b, _c, _d, _e, _f;
|
|
2648
2765
|
const message = createBaseFileInfo();
|
|
2649
|
-
message.filename = (_a = object.filename) !== null && _a !== void 0 ? _a :
|
|
2766
|
+
message.filename = (_a = object.filename) !== null && _a !== void 0 ? _a : '';
|
|
2650
2767
|
message.startedAt = (_b = object.startedAt) !== null && _b !== void 0 ? _b : 0;
|
|
2651
2768
|
message.endedAt = (_c = object.endedAt) !== null && _c !== void 0 ? _c : 0;
|
|
2652
2769
|
message.duration = (_d = object.duration) !== null && _d !== void 0 ? _d : 0;
|
|
2653
2770
|
message.size = (_e = object.size) !== null && _e !== void 0 ? _e : 0;
|
|
2654
|
-
message.location = (_f = object.location) !== null && _f !== void 0 ? _f :
|
|
2771
|
+
message.location = (_f = object.location) !== null && _f !== void 0 ? _f : '';
|
|
2655
2772
|
return message;
|
|
2656
2773
|
},
|
|
2657
2774
|
};
|
|
2658
2775
|
function createBaseSegmentsInfo() {
|
|
2659
|
-
return {
|
|
2776
|
+
return {
|
|
2777
|
+
playlistName: '',
|
|
2778
|
+
duration: 0,
|
|
2779
|
+
size: 0,
|
|
2780
|
+
playlistLocation: '',
|
|
2781
|
+
segmentCount: 0,
|
|
2782
|
+
startedAt: 0,
|
|
2783
|
+
endedAt: 0,
|
|
2784
|
+
};
|
|
2660
2785
|
}
|
|
2661
2786
|
exports.SegmentsInfo = {
|
|
2662
|
-
encode(message, writer =
|
|
2663
|
-
if (message.playlistName !== undefined && message.playlistName !==
|
|
2787
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2788
|
+
if (message.playlistName !== undefined && message.playlistName !== '') {
|
|
2664
2789
|
writer.uint32(10).string(message.playlistName);
|
|
2665
2790
|
}
|
|
2666
2791
|
if (message.duration !== undefined && message.duration !== 0) {
|
|
@@ -2669,7 +2794,7 @@ exports.SegmentsInfo = {
|
|
|
2669
2794
|
if (message.size !== undefined && message.size !== 0) {
|
|
2670
2795
|
writer.uint32(24).int64(message.size);
|
|
2671
2796
|
}
|
|
2672
|
-
if (message.playlistLocation !== undefined && message.playlistLocation !==
|
|
2797
|
+
if (message.playlistLocation !== undefined && message.playlistLocation !== '') {
|
|
2673
2798
|
writer.uint32(34).string(message.playlistLocation);
|
|
2674
2799
|
}
|
|
2675
2800
|
if (message.segmentCount !== undefined && message.segmentCount !== 0) {
|
|
@@ -2684,7 +2809,7 @@ exports.SegmentsInfo = {
|
|
|
2684
2809
|
return writer;
|
|
2685
2810
|
},
|
|
2686
2811
|
decode(input, length) {
|
|
2687
|
-
const reader = input instanceof
|
|
2812
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2688
2813
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2689
2814
|
const message = createBaseSegmentsInfo();
|
|
2690
2815
|
while (reader.pos < end) {
|
|
@@ -2720,10 +2845,10 @@ exports.SegmentsInfo = {
|
|
|
2720
2845
|
},
|
|
2721
2846
|
fromJSON(object) {
|
|
2722
2847
|
return {
|
|
2723
|
-
playlistName: isSet(object.playlistName) ? String(object.playlistName) :
|
|
2848
|
+
playlistName: isSet(object.playlistName) ? String(object.playlistName) : '',
|
|
2724
2849
|
duration: isSet(object.duration) ? Number(object.duration) : 0,
|
|
2725
2850
|
size: isSet(object.size) ? Number(object.size) : 0,
|
|
2726
|
-
playlistLocation: isSet(object.playlistLocation) ? String(object.playlistLocation) :
|
|
2851
|
+
playlistLocation: isSet(object.playlistLocation) ? String(object.playlistLocation) : '',
|
|
2727
2852
|
segmentCount: isSet(object.segmentCount) ? Number(object.segmentCount) : 0,
|
|
2728
2853
|
startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
|
|
2729
2854
|
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
|
|
@@ -2743,10 +2868,10 @@ exports.SegmentsInfo = {
|
|
|
2743
2868
|
fromPartial(object) {
|
|
2744
2869
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2745
2870
|
const message = createBaseSegmentsInfo();
|
|
2746
|
-
message.playlistName = (_a = object.playlistName) !== null && _a !== void 0 ? _a :
|
|
2871
|
+
message.playlistName = (_a = object.playlistName) !== null && _a !== void 0 ? _a : '';
|
|
2747
2872
|
message.duration = (_b = object.duration) !== null && _b !== void 0 ? _b : 0;
|
|
2748
2873
|
message.size = (_c = object.size) !== null && _c !== void 0 ? _c : 0;
|
|
2749
|
-
message.playlistLocation = (_d = object.playlistLocation) !== null && _d !== void 0 ? _d :
|
|
2874
|
+
message.playlistLocation = (_d = object.playlistLocation) !== null && _d !== void 0 ? _d : '';
|
|
2750
2875
|
message.segmentCount = (_e = object.segmentCount) !== null && _e !== void 0 ? _e : 0;
|
|
2751
2876
|
message.startedAt = (_f = object.startedAt) !== null && _f !== void 0 ? _f : 0;
|
|
2752
2877
|
message.endedAt = (_g = object.endedAt) !== null && _g !== void 0 ? _g : 0;
|
|
@@ -2754,11 +2879,11 @@ exports.SegmentsInfo = {
|
|
|
2754
2879
|
},
|
|
2755
2880
|
};
|
|
2756
2881
|
function createBaseAutoTrackEgress() {
|
|
2757
|
-
return { filepath:
|
|
2882
|
+
return { filepath: '', disableManifest: false, s3: undefined, gcp: undefined, azure: undefined };
|
|
2758
2883
|
}
|
|
2759
2884
|
exports.AutoTrackEgress = {
|
|
2760
|
-
encode(message, writer =
|
|
2761
|
-
if (message.filepath !== undefined && message.filepath !==
|
|
2885
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
2886
|
+
if (message.filepath !== undefined && message.filepath !== '') {
|
|
2762
2887
|
writer.uint32(10).string(message.filepath);
|
|
2763
2888
|
}
|
|
2764
2889
|
if (message.disableManifest === true) {
|
|
@@ -2776,7 +2901,7 @@ exports.AutoTrackEgress = {
|
|
|
2776
2901
|
return writer;
|
|
2777
2902
|
},
|
|
2778
2903
|
decode(input, length) {
|
|
2779
|
-
const reader = input instanceof
|
|
2904
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
2780
2905
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2781
2906
|
const message = createBaseAutoTrackEgress();
|
|
2782
2907
|
while (reader.pos < end) {
|
|
@@ -2806,7 +2931,7 @@ exports.AutoTrackEgress = {
|
|
|
2806
2931
|
},
|
|
2807
2932
|
fromJSON(object) {
|
|
2808
2933
|
return {
|
|
2809
|
-
filepath: isSet(object.filepath) ? String(object.filepath) :
|
|
2934
|
+
filepath: isSet(object.filepath) ? String(object.filepath) : '',
|
|
2810
2935
|
disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
|
|
2811
2936
|
s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
|
|
2812
2937
|
gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
|
|
@@ -2818,50 +2943,53 @@ exports.AutoTrackEgress = {
|
|
|
2818
2943
|
message.filepath !== undefined && (obj.filepath = message.filepath);
|
|
2819
2944
|
message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
|
|
2820
2945
|
message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
|
|
2821
|
-
message.gcp !== undefined &&
|
|
2822
|
-
|
|
2946
|
+
message.gcp !== undefined &&
|
|
2947
|
+
(obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
|
|
2948
|
+
message.azure !== undefined &&
|
|
2949
|
+
(obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
|
|
2823
2950
|
return obj;
|
|
2824
2951
|
},
|
|
2825
2952
|
fromPartial(object) {
|
|
2826
2953
|
var _a, _b;
|
|
2827
2954
|
const message = createBaseAutoTrackEgress();
|
|
2828
|
-
message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a :
|
|
2955
|
+
message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a : '';
|
|
2829
2956
|
message.disableManifest = (_b = object.disableManifest) !== null && _b !== void 0 ? _b : false;
|
|
2830
|
-
message.s3 =
|
|
2831
|
-
|
|
2832
|
-
message.
|
|
2833
|
-
|
|
2834
|
-
|
|
2957
|
+
message.s3 =
|
|
2958
|
+
object.s3 !== undefined && object.s3 !== null ? exports.S3Upload.fromPartial(object.s3) : undefined;
|
|
2959
|
+
message.gcp =
|
|
2960
|
+
object.gcp !== undefined && object.gcp !== null
|
|
2961
|
+
? exports.GCPUpload.fromPartial(object.gcp)
|
|
2962
|
+
: undefined;
|
|
2963
|
+
message.azure =
|
|
2964
|
+
object.azure !== undefined && object.azure !== null
|
|
2965
|
+
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
2966
|
+
: undefined;
|
|
2835
2967
|
return message;
|
|
2836
2968
|
},
|
|
2837
2969
|
};
|
|
2838
2970
|
var globalThis = (() => {
|
|
2839
|
-
if (typeof globalThis !==
|
|
2971
|
+
if (typeof globalThis !== 'undefined')
|
|
2840
2972
|
return globalThis;
|
|
2841
|
-
|
|
2842
|
-
if (typeof self !== "undefined") {
|
|
2973
|
+
if (typeof self !== 'undefined')
|
|
2843
2974
|
return self;
|
|
2844
|
-
|
|
2845
|
-
if (typeof window !== "undefined") {
|
|
2975
|
+
if (typeof window !== 'undefined')
|
|
2846
2976
|
return window;
|
|
2847
|
-
|
|
2848
|
-
if (typeof global !== "undefined") {
|
|
2977
|
+
if (typeof global !== 'undefined')
|
|
2849
2978
|
return global;
|
|
2850
|
-
|
|
2851
|
-
throw "Unable to locate global object";
|
|
2979
|
+
throw 'Unable to locate global object';
|
|
2852
2980
|
})();
|
|
2853
2981
|
function longToNumber(long) {
|
|
2854
2982
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
2855
|
-
throw new globalThis.Error(
|
|
2983
|
+
throw new globalThis.Error('Value is larger than Number.MAX_SAFE_INTEGER');
|
|
2856
2984
|
}
|
|
2857
2985
|
return long.toNumber();
|
|
2858
2986
|
}
|
|
2859
|
-
if (
|
|
2860
|
-
|
|
2861
|
-
|
|
2987
|
+
if (_m0.util.Long !== long_1.default) {
|
|
2988
|
+
_m0.util.Long = long_1.default;
|
|
2989
|
+
_m0.configure();
|
|
2862
2990
|
}
|
|
2863
2991
|
function isObject(value) {
|
|
2864
|
-
return typeof value ===
|
|
2992
|
+
return typeof value === 'object' && value !== null;
|
|
2865
2993
|
}
|
|
2866
2994
|
function isSet(value) {
|
|
2867
2995
|
return value !== null && value !== undefined;
|