livekit-server-sdk 1.0.3 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AccessToken.js +6 -0
- package/dist/AccessToken.js.map +1 -1
- package/dist/EgressClient.d.ts +38 -8
- package/dist/EgressClient.js +84 -21
- package/dist/EgressClient.js.map +1 -1
- package/dist/IngressClient.d.ts +84 -0
- package/dist/IngressClient.js +112 -0
- package/dist/IngressClient.js.map +1 -0
- package/dist/RoomServiceClient.d.ts +21 -6
- package/dist/RoomServiceClient.js +15 -22
- package/dist/RoomServiceClient.js.map +1 -1
- package/dist/ServiceBase.d.ts +16 -0
- package/dist/ServiceBase.js +27 -0
- package/dist/ServiceBase.js.map +1 -0
- package/dist/grants.d.ts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts +5 -5
- package/dist/proto/google/protobuf/timestamp.js +17 -32
- package/dist/proto/google/protobuf/timestamp.js.map +1 -1
- package/dist/proto/livekit_egress.d.ts +9725 -1848
- package/dist/proto/livekit_egress.js +1131 -597
- package/dist/proto/livekit_egress.js.map +1 -1
- package/dist/proto/livekit_ingress.d.ts +744 -384
- package/dist/proto/livekit_ingress.js +492 -323
- package/dist/proto/livekit_ingress.js.map +1 -1
- package/dist/proto/livekit_models.d.ts +154 -59
- package/dist/proto/livekit_models.js +682 -446
- package/dist/proto/livekit_models.js.map +1 -1
- package/dist/proto/livekit_room.d.ts +1746 -320
- package/dist/proto/livekit_room.js +198 -224
- package/dist/proto/livekit_room.js.map +1 -1
- package/dist/proto/livekit_webhook.d.ts +3277 -465
- package/dist/proto/livekit_webhook.js +43 -68
- package/dist/proto/livekit_webhook.js.map +1 -1
- package/generate-proto.sh +25 -0
- package/package.json +3 -3
- package/dist/proto/google/protobuf/empty.d.ts +0 -31
- package/dist/proto/google/protobuf/empty.js +0 -67
- package/dist/proto/google/protobuf/empty.js.map +0 -1
|
@@ -1,32 +1,14 @@
|
|
|
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
|
-
};
|
|
21
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
4
|
};
|
|
24
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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.AzureBlobUpload = exports.GCPUpload = exports.S3Upload = exports.DirectFileOutput = exports.SegmentedFileOutput = exports.EncodedFileOutput = exports.TrackEgressRequest = exports.TrackCompositeEgressRequest = exports.RoomCompositeEgressRequest = exports.streamInfo_StatusToJSON = exports.streamInfo_StatusFromJSON = exports.StreamInfo_Status = exports.egressStatusToJSON = exports.egressStatusFromJSON = exports.EgressStatus = exports.encodingOptionsPresetToJSON = exports.encodingOptionsPresetFromJSON = exports.EncodingOptionsPreset = exports.
|
|
6
|
+
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;
|
|
26
7
|
/* eslint-disable */
|
|
27
8
|
const long_1 = __importDefault(require("long"));
|
|
28
|
-
const
|
|
29
|
-
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const livekit_models_1 = require("./livekit_models");
|
|
11
|
+
exports.protobufPackage = "livekit";
|
|
30
12
|
var EncodedFileType;
|
|
31
13
|
(function (EncodedFileType) {
|
|
32
14
|
/** DEFAULT_FILETYPE - file type chosen based on codecs */
|
|
@@ -38,16 +20,16 @@ var EncodedFileType;
|
|
|
38
20
|
function encodedFileTypeFromJSON(object) {
|
|
39
21
|
switch (object) {
|
|
40
22
|
case 0:
|
|
41
|
-
case
|
|
23
|
+
case "DEFAULT_FILETYPE":
|
|
42
24
|
return EncodedFileType.DEFAULT_FILETYPE;
|
|
43
25
|
case 1:
|
|
44
|
-
case
|
|
26
|
+
case "MP4":
|
|
45
27
|
return EncodedFileType.MP4;
|
|
46
28
|
case 2:
|
|
47
|
-
case
|
|
29
|
+
case "OGG":
|
|
48
30
|
return EncodedFileType.OGG;
|
|
49
31
|
case -1:
|
|
50
|
-
case
|
|
32
|
+
case "UNRECOGNIZED":
|
|
51
33
|
default:
|
|
52
34
|
return EncodedFileType.UNRECOGNIZED;
|
|
53
35
|
}
|
|
@@ -56,49 +38,17 @@ exports.encodedFileTypeFromJSON = encodedFileTypeFromJSON;
|
|
|
56
38
|
function encodedFileTypeToJSON(object) {
|
|
57
39
|
switch (object) {
|
|
58
40
|
case EncodedFileType.DEFAULT_FILETYPE:
|
|
59
|
-
return
|
|
41
|
+
return "DEFAULT_FILETYPE";
|
|
60
42
|
case EncodedFileType.MP4:
|
|
61
|
-
return
|
|
43
|
+
return "MP4";
|
|
62
44
|
case EncodedFileType.OGG:
|
|
63
|
-
return
|
|
45
|
+
return "OGG";
|
|
46
|
+
case EncodedFileType.UNRECOGNIZED:
|
|
64
47
|
default:
|
|
65
|
-
return
|
|
48
|
+
return "UNRECOGNIZED";
|
|
66
49
|
}
|
|
67
50
|
}
|
|
68
51
|
exports.encodedFileTypeToJSON = encodedFileTypeToJSON;
|
|
69
|
-
var StreamProtocol;
|
|
70
|
-
(function (StreamProtocol) {
|
|
71
|
-
/** DEFAULT_PROTOCOL - protocol chosen based on urls */
|
|
72
|
-
StreamProtocol[StreamProtocol["DEFAULT_PROTOCOL"] = 0] = "DEFAULT_PROTOCOL";
|
|
73
|
-
StreamProtocol[StreamProtocol["RTMP"] = 1] = "RTMP";
|
|
74
|
-
StreamProtocol[StreamProtocol["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
75
|
-
})(StreamProtocol = exports.StreamProtocol || (exports.StreamProtocol = {}));
|
|
76
|
-
function streamProtocolFromJSON(object) {
|
|
77
|
-
switch (object) {
|
|
78
|
-
case 0:
|
|
79
|
-
case 'DEFAULT_PROTOCOL':
|
|
80
|
-
return StreamProtocol.DEFAULT_PROTOCOL;
|
|
81
|
-
case 1:
|
|
82
|
-
case 'RTMP':
|
|
83
|
-
return StreamProtocol.RTMP;
|
|
84
|
-
case -1:
|
|
85
|
-
case 'UNRECOGNIZED':
|
|
86
|
-
default:
|
|
87
|
-
return StreamProtocol.UNRECOGNIZED;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
exports.streamProtocolFromJSON = streamProtocolFromJSON;
|
|
91
|
-
function streamProtocolToJSON(object) {
|
|
92
|
-
switch (object) {
|
|
93
|
-
case StreamProtocol.DEFAULT_PROTOCOL:
|
|
94
|
-
return 'DEFAULT_PROTOCOL';
|
|
95
|
-
case StreamProtocol.RTMP:
|
|
96
|
-
return 'RTMP';
|
|
97
|
-
default:
|
|
98
|
-
return 'UNKNOWN';
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
exports.streamProtocolToJSON = streamProtocolToJSON;
|
|
102
52
|
var SegmentedFileProtocol;
|
|
103
53
|
(function (SegmentedFileProtocol) {
|
|
104
54
|
SegmentedFileProtocol[SegmentedFileProtocol["DEFAULT_SEGMENTED_FILE_PROTOCOL"] = 0] = "DEFAULT_SEGMENTED_FILE_PROTOCOL";
|
|
@@ -108,13 +58,13 @@ var SegmentedFileProtocol;
|
|
|
108
58
|
function segmentedFileProtocolFromJSON(object) {
|
|
109
59
|
switch (object) {
|
|
110
60
|
case 0:
|
|
111
|
-
case
|
|
61
|
+
case "DEFAULT_SEGMENTED_FILE_PROTOCOL":
|
|
112
62
|
return SegmentedFileProtocol.DEFAULT_SEGMENTED_FILE_PROTOCOL;
|
|
113
63
|
case 1:
|
|
114
|
-
case
|
|
64
|
+
case "HLS_PROTOCOL":
|
|
115
65
|
return SegmentedFileProtocol.HLS_PROTOCOL;
|
|
116
66
|
case -1:
|
|
117
|
-
case
|
|
67
|
+
case "UNRECOGNIZED":
|
|
118
68
|
default:
|
|
119
69
|
return SegmentedFileProtocol.UNRECOGNIZED;
|
|
120
70
|
}
|
|
@@ -123,96 +73,82 @@ exports.segmentedFileProtocolFromJSON = segmentedFileProtocolFromJSON;
|
|
|
123
73
|
function segmentedFileProtocolToJSON(object) {
|
|
124
74
|
switch (object) {
|
|
125
75
|
case SegmentedFileProtocol.DEFAULT_SEGMENTED_FILE_PROTOCOL:
|
|
126
|
-
return
|
|
76
|
+
return "DEFAULT_SEGMENTED_FILE_PROTOCOL";
|
|
127
77
|
case SegmentedFileProtocol.HLS_PROTOCOL:
|
|
128
|
-
return
|
|
78
|
+
return "HLS_PROTOCOL";
|
|
79
|
+
case SegmentedFileProtocol.UNRECOGNIZED:
|
|
129
80
|
default:
|
|
130
|
-
return
|
|
81
|
+
return "UNRECOGNIZED";
|
|
131
82
|
}
|
|
132
83
|
}
|
|
133
84
|
exports.segmentedFileProtocolToJSON = segmentedFileProtocolToJSON;
|
|
134
|
-
var
|
|
135
|
-
(function (
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
function audioCodecFromJSON(object) {
|
|
85
|
+
var SegmentedFileSuffix;
|
|
86
|
+
(function (SegmentedFileSuffix) {
|
|
87
|
+
SegmentedFileSuffix[SegmentedFileSuffix["INDEX"] = 0] = "INDEX";
|
|
88
|
+
SegmentedFileSuffix[SegmentedFileSuffix["TIMESTAMP"] = 1] = "TIMESTAMP";
|
|
89
|
+
SegmentedFileSuffix[SegmentedFileSuffix["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
90
|
+
})(SegmentedFileSuffix = exports.SegmentedFileSuffix || (exports.SegmentedFileSuffix = {}));
|
|
91
|
+
function segmentedFileSuffixFromJSON(object) {
|
|
142
92
|
switch (object) {
|
|
143
93
|
case 0:
|
|
144
|
-
case
|
|
145
|
-
return
|
|
94
|
+
case "INDEX":
|
|
95
|
+
return SegmentedFileSuffix.INDEX;
|
|
146
96
|
case 1:
|
|
147
|
-
case
|
|
148
|
-
return
|
|
149
|
-
case 2:
|
|
150
|
-
case 'AAC':
|
|
151
|
-
return AudioCodec.AAC;
|
|
97
|
+
case "TIMESTAMP":
|
|
98
|
+
return SegmentedFileSuffix.TIMESTAMP;
|
|
152
99
|
case -1:
|
|
153
|
-
case
|
|
100
|
+
case "UNRECOGNIZED":
|
|
154
101
|
default:
|
|
155
|
-
return
|
|
102
|
+
return SegmentedFileSuffix.UNRECOGNIZED;
|
|
156
103
|
}
|
|
157
104
|
}
|
|
158
|
-
exports.
|
|
159
|
-
function
|
|
105
|
+
exports.segmentedFileSuffixFromJSON = segmentedFileSuffixFromJSON;
|
|
106
|
+
function segmentedFileSuffixToJSON(object) {
|
|
160
107
|
switch (object) {
|
|
161
|
-
case
|
|
162
|
-
return
|
|
163
|
-
case
|
|
164
|
-
return
|
|
165
|
-
case
|
|
166
|
-
return 'AAC';
|
|
108
|
+
case SegmentedFileSuffix.INDEX:
|
|
109
|
+
return "INDEX";
|
|
110
|
+
case SegmentedFileSuffix.TIMESTAMP:
|
|
111
|
+
return "TIMESTAMP";
|
|
112
|
+
case SegmentedFileSuffix.UNRECOGNIZED:
|
|
167
113
|
default:
|
|
168
|
-
return
|
|
114
|
+
return "UNRECOGNIZED";
|
|
169
115
|
}
|
|
170
116
|
}
|
|
171
|
-
exports.
|
|
172
|
-
var
|
|
173
|
-
(function (
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
function videoCodecFromJSON(object) {
|
|
117
|
+
exports.segmentedFileSuffixToJSON = segmentedFileSuffixToJSON;
|
|
118
|
+
var StreamProtocol;
|
|
119
|
+
(function (StreamProtocol) {
|
|
120
|
+
/** DEFAULT_PROTOCOL - protocol chosen based on urls */
|
|
121
|
+
StreamProtocol[StreamProtocol["DEFAULT_PROTOCOL"] = 0] = "DEFAULT_PROTOCOL";
|
|
122
|
+
StreamProtocol[StreamProtocol["RTMP"] = 1] = "RTMP";
|
|
123
|
+
StreamProtocol[StreamProtocol["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
124
|
+
})(StreamProtocol = exports.StreamProtocol || (exports.StreamProtocol = {}));
|
|
125
|
+
function streamProtocolFromJSON(object) {
|
|
181
126
|
switch (object) {
|
|
182
127
|
case 0:
|
|
183
|
-
case
|
|
184
|
-
return
|
|
128
|
+
case "DEFAULT_PROTOCOL":
|
|
129
|
+
return StreamProtocol.DEFAULT_PROTOCOL;
|
|
185
130
|
case 1:
|
|
186
|
-
case
|
|
187
|
-
return
|
|
188
|
-
case 2:
|
|
189
|
-
case 'H264_MAIN':
|
|
190
|
-
return VideoCodec.H264_MAIN;
|
|
191
|
-
case 3:
|
|
192
|
-
case 'H264_HIGH':
|
|
193
|
-
return VideoCodec.H264_HIGH;
|
|
131
|
+
case "RTMP":
|
|
132
|
+
return StreamProtocol.RTMP;
|
|
194
133
|
case -1:
|
|
195
|
-
case
|
|
134
|
+
case "UNRECOGNIZED":
|
|
196
135
|
default:
|
|
197
|
-
return
|
|
136
|
+
return StreamProtocol.UNRECOGNIZED;
|
|
198
137
|
}
|
|
199
138
|
}
|
|
200
|
-
exports.
|
|
201
|
-
function
|
|
139
|
+
exports.streamProtocolFromJSON = streamProtocolFromJSON;
|
|
140
|
+
function streamProtocolToJSON(object) {
|
|
202
141
|
switch (object) {
|
|
203
|
-
case
|
|
204
|
-
return
|
|
205
|
-
case
|
|
206
|
-
return
|
|
207
|
-
case
|
|
208
|
-
return 'H264_MAIN';
|
|
209
|
-
case VideoCodec.H264_HIGH:
|
|
210
|
-
return 'H264_HIGH';
|
|
142
|
+
case StreamProtocol.DEFAULT_PROTOCOL:
|
|
143
|
+
return "DEFAULT_PROTOCOL";
|
|
144
|
+
case StreamProtocol.RTMP:
|
|
145
|
+
return "RTMP";
|
|
146
|
+
case StreamProtocol.UNRECOGNIZED:
|
|
211
147
|
default:
|
|
212
|
-
return
|
|
148
|
+
return "UNRECOGNIZED";
|
|
213
149
|
}
|
|
214
150
|
}
|
|
215
|
-
exports.
|
|
151
|
+
exports.streamProtocolToJSON = streamProtocolToJSON;
|
|
216
152
|
var EncodingOptionsPreset;
|
|
217
153
|
(function (EncodingOptionsPreset) {
|
|
218
154
|
/** H264_720P_30 - 1280x720, 30fps, 3000kpbs, H.264_MAIN / OPUS */
|
|
@@ -236,31 +172,31 @@ var EncodingOptionsPreset;
|
|
|
236
172
|
function encodingOptionsPresetFromJSON(object) {
|
|
237
173
|
switch (object) {
|
|
238
174
|
case 0:
|
|
239
|
-
case
|
|
175
|
+
case "H264_720P_30":
|
|
240
176
|
return EncodingOptionsPreset.H264_720P_30;
|
|
241
177
|
case 1:
|
|
242
|
-
case
|
|
178
|
+
case "H264_720P_60":
|
|
243
179
|
return EncodingOptionsPreset.H264_720P_60;
|
|
244
180
|
case 2:
|
|
245
|
-
case
|
|
181
|
+
case "H264_1080P_30":
|
|
246
182
|
return EncodingOptionsPreset.H264_1080P_30;
|
|
247
183
|
case 3:
|
|
248
|
-
case
|
|
184
|
+
case "H264_1080P_60":
|
|
249
185
|
return EncodingOptionsPreset.H264_1080P_60;
|
|
250
186
|
case 4:
|
|
251
|
-
case
|
|
187
|
+
case "PORTRAIT_H264_720P_30":
|
|
252
188
|
return EncodingOptionsPreset.PORTRAIT_H264_720P_30;
|
|
253
189
|
case 5:
|
|
254
|
-
case
|
|
190
|
+
case "PORTRAIT_H264_720P_60":
|
|
255
191
|
return EncodingOptionsPreset.PORTRAIT_H264_720P_60;
|
|
256
192
|
case 6:
|
|
257
|
-
case
|
|
193
|
+
case "PORTRAIT_H264_1080P_30":
|
|
258
194
|
return EncodingOptionsPreset.PORTRAIT_H264_1080P_30;
|
|
259
195
|
case 7:
|
|
260
|
-
case
|
|
196
|
+
case "PORTRAIT_H264_1080P_60":
|
|
261
197
|
return EncodingOptionsPreset.PORTRAIT_H264_1080P_60;
|
|
262
198
|
case -1:
|
|
263
|
-
case
|
|
199
|
+
case "UNRECOGNIZED":
|
|
264
200
|
default:
|
|
265
201
|
return EncodingOptionsPreset.UNRECOGNIZED;
|
|
266
202
|
}
|
|
@@ -269,23 +205,24 @@ exports.encodingOptionsPresetFromJSON = encodingOptionsPresetFromJSON;
|
|
|
269
205
|
function encodingOptionsPresetToJSON(object) {
|
|
270
206
|
switch (object) {
|
|
271
207
|
case EncodingOptionsPreset.H264_720P_30:
|
|
272
|
-
return
|
|
208
|
+
return "H264_720P_30";
|
|
273
209
|
case EncodingOptionsPreset.H264_720P_60:
|
|
274
|
-
return
|
|
210
|
+
return "H264_720P_60";
|
|
275
211
|
case EncodingOptionsPreset.H264_1080P_30:
|
|
276
|
-
return
|
|
212
|
+
return "H264_1080P_30";
|
|
277
213
|
case EncodingOptionsPreset.H264_1080P_60:
|
|
278
|
-
return
|
|
214
|
+
return "H264_1080P_60";
|
|
279
215
|
case EncodingOptionsPreset.PORTRAIT_H264_720P_30:
|
|
280
|
-
return
|
|
216
|
+
return "PORTRAIT_H264_720P_30";
|
|
281
217
|
case EncodingOptionsPreset.PORTRAIT_H264_720P_60:
|
|
282
|
-
return
|
|
218
|
+
return "PORTRAIT_H264_720P_60";
|
|
283
219
|
case EncodingOptionsPreset.PORTRAIT_H264_1080P_30:
|
|
284
|
-
return
|
|
220
|
+
return "PORTRAIT_H264_1080P_30";
|
|
285
221
|
case EncodingOptionsPreset.PORTRAIT_H264_1080P_60:
|
|
286
|
-
return
|
|
222
|
+
return "PORTRAIT_H264_1080P_60";
|
|
223
|
+
case EncodingOptionsPreset.UNRECOGNIZED:
|
|
287
224
|
default:
|
|
288
|
-
return
|
|
225
|
+
return "UNRECOGNIZED";
|
|
289
226
|
}
|
|
290
227
|
}
|
|
291
228
|
exports.encodingOptionsPresetToJSON = encodingOptionsPresetToJSON;
|
|
@@ -303,28 +240,28 @@ var EgressStatus;
|
|
|
303
240
|
function egressStatusFromJSON(object) {
|
|
304
241
|
switch (object) {
|
|
305
242
|
case 0:
|
|
306
|
-
case
|
|
243
|
+
case "EGRESS_STARTING":
|
|
307
244
|
return EgressStatus.EGRESS_STARTING;
|
|
308
245
|
case 1:
|
|
309
|
-
case
|
|
246
|
+
case "EGRESS_ACTIVE":
|
|
310
247
|
return EgressStatus.EGRESS_ACTIVE;
|
|
311
248
|
case 2:
|
|
312
|
-
case
|
|
249
|
+
case "EGRESS_ENDING":
|
|
313
250
|
return EgressStatus.EGRESS_ENDING;
|
|
314
251
|
case 3:
|
|
315
|
-
case
|
|
252
|
+
case "EGRESS_COMPLETE":
|
|
316
253
|
return EgressStatus.EGRESS_COMPLETE;
|
|
317
254
|
case 4:
|
|
318
|
-
case
|
|
255
|
+
case "EGRESS_FAILED":
|
|
319
256
|
return EgressStatus.EGRESS_FAILED;
|
|
320
257
|
case 5:
|
|
321
|
-
case
|
|
258
|
+
case "EGRESS_ABORTED":
|
|
322
259
|
return EgressStatus.EGRESS_ABORTED;
|
|
323
260
|
case 6:
|
|
324
|
-
case
|
|
261
|
+
case "EGRESS_LIMIT_REACHED":
|
|
325
262
|
return EgressStatus.EGRESS_LIMIT_REACHED;
|
|
326
263
|
case -1:
|
|
327
|
-
case
|
|
264
|
+
case "UNRECOGNIZED":
|
|
328
265
|
default:
|
|
329
266
|
return EgressStatus.UNRECOGNIZED;
|
|
330
267
|
}
|
|
@@ -333,21 +270,22 @@ exports.egressStatusFromJSON = egressStatusFromJSON;
|
|
|
333
270
|
function egressStatusToJSON(object) {
|
|
334
271
|
switch (object) {
|
|
335
272
|
case EgressStatus.EGRESS_STARTING:
|
|
336
|
-
return
|
|
273
|
+
return "EGRESS_STARTING";
|
|
337
274
|
case EgressStatus.EGRESS_ACTIVE:
|
|
338
|
-
return
|
|
275
|
+
return "EGRESS_ACTIVE";
|
|
339
276
|
case EgressStatus.EGRESS_ENDING:
|
|
340
|
-
return
|
|
277
|
+
return "EGRESS_ENDING";
|
|
341
278
|
case EgressStatus.EGRESS_COMPLETE:
|
|
342
|
-
return
|
|
279
|
+
return "EGRESS_COMPLETE";
|
|
343
280
|
case EgressStatus.EGRESS_FAILED:
|
|
344
|
-
return
|
|
281
|
+
return "EGRESS_FAILED";
|
|
345
282
|
case EgressStatus.EGRESS_ABORTED:
|
|
346
|
-
return
|
|
283
|
+
return "EGRESS_ABORTED";
|
|
347
284
|
case EgressStatus.EGRESS_LIMIT_REACHED:
|
|
348
|
-
return
|
|
285
|
+
return "EGRESS_LIMIT_REACHED";
|
|
286
|
+
case EgressStatus.UNRECOGNIZED:
|
|
349
287
|
default:
|
|
350
|
-
return
|
|
288
|
+
return "UNRECOGNIZED";
|
|
351
289
|
}
|
|
352
290
|
}
|
|
353
291
|
exports.egressStatusToJSON = egressStatusToJSON;
|
|
@@ -361,16 +299,16 @@ var StreamInfo_Status;
|
|
|
361
299
|
function streamInfo_StatusFromJSON(object) {
|
|
362
300
|
switch (object) {
|
|
363
301
|
case 0:
|
|
364
|
-
case
|
|
302
|
+
case "ACTIVE":
|
|
365
303
|
return StreamInfo_Status.ACTIVE;
|
|
366
304
|
case 1:
|
|
367
|
-
case
|
|
305
|
+
case "FINISHED":
|
|
368
306
|
return StreamInfo_Status.FINISHED;
|
|
369
307
|
case 2:
|
|
370
|
-
case
|
|
308
|
+
case "FAILED":
|
|
371
309
|
return StreamInfo_Status.FAILED;
|
|
372
310
|
case -1:
|
|
373
|
-
case
|
|
311
|
+
case "UNRECOGNIZED":
|
|
374
312
|
default:
|
|
375
313
|
return StreamInfo_Status.UNRECOGNIZED;
|
|
376
314
|
}
|
|
@@ -379,36 +317,40 @@ exports.streamInfo_StatusFromJSON = streamInfo_StatusFromJSON;
|
|
|
379
317
|
function streamInfo_StatusToJSON(object) {
|
|
380
318
|
switch (object) {
|
|
381
319
|
case StreamInfo_Status.ACTIVE:
|
|
382
|
-
return
|
|
320
|
+
return "ACTIVE";
|
|
383
321
|
case StreamInfo_Status.FINISHED:
|
|
384
|
-
return
|
|
322
|
+
return "FINISHED";
|
|
385
323
|
case StreamInfo_Status.FAILED:
|
|
386
|
-
return
|
|
324
|
+
return "FAILED";
|
|
325
|
+
case StreamInfo_Status.UNRECOGNIZED:
|
|
387
326
|
default:
|
|
388
|
-
return
|
|
327
|
+
return "UNRECOGNIZED";
|
|
389
328
|
}
|
|
390
329
|
}
|
|
391
330
|
exports.streamInfo_StatusToJSON = streamInfo_StatusToJSON;
|
|
392
331
|
function createBaseRoomCompositeEgressRequest() {
|
|
393
332
|
return {
|
|
394
|
-
roomName:
|
|
395
|
-
layout:
|
|
333
|
+
roomName: "",
|
|
334
|
+
layout: "",
|
|
396
335
|
audioOnly: false,
|
|
397
336
|
videoOnly: false,
|
|
398
|
-
customBaseUrl:
|
|
337
|
+
customBaseUrl: "",
|
|
399
338
|
file: undefined,
|
|
400
339
|
stream: undefined,
|
|
401
340
|
segments: undefined,
|
|
402
341
|
preset: undefined,
|
|
403
342
|
advanced: undefined,
|
|
343
|
+
fileOutputs: [],
|
|
344
|
+
streamOutputs: [],
|
|
345
|
+
segmentOutputs: [],
|
|
404
346
|
};
|
|
405
347
|
}
|
|
406
348
|
exports.RoomCompositeEgressRequest = {
|
|
407
|
-
encode(message, writer =
|
|
408
|
-
if (message.roomName !==
|
|
349
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
350
|
+
if (message.roomName !== undefined && message.roomName !== "") {
|
|
409
351
|
writer.uint32(10).string(message.roomName);
|
|
410
352
|
}
|
|
411
|
-
if (message.layout !==
|
|
353
|
+
if (message.layout !== undefined && message.layout !== "") {
|
|
412
354
|
writer.uint32(18).string(message.layout);
|
|
413
355
|
}
|
|
414
356
|
if (message.audioOnly === true) {
|
|
@@ -417,7 +359,7 @@ exports.RoomCompositeEgressRequest = {
|
|
|
417
359
|
if (message.videoOnly === true) {
|
|
418
360
|
writer.uint32(32).bool(message.videoOnly);
|
|
419
361
|
}
|
|
420
|
-
if (message.customBaseUrl !==
|
|
362
|
+
if (message.customBaseUrl !== undefined && message.customBaseUrl !== "") {
|
|
421
363
|
writer.uint32(42).string(message.customBaseUrl);
|
|
422
364
|
}
|
|
423
365
|
if (message.file !== undefined) {
|
|
@@ -435,10 +377,25 @@ exports.RoomCompositeEgressRequest = {
|
|
|
435
377
|
if (message.advanced !== undefined) {
|
|
436
378
|
exports.EncodingOptions.encode(message.advanced, writer.uint32(74).fork()).ldelim();
|
|
437
379
|
}
|
|
380
|
+
if (message.fileOutputs !== undefined && message.fileOutputs.length !== 0) {
|
|
381
|
+
for (const v of message.fileOutputs) {
|
|
382
|
+
exports.EncodedFileOutput.encode(v, writer.uint32(90).fork()).ldelim();
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
if (message.streamOutputs !== undefined && message.streamOutputs.length !== 0) {
|
|
386
|
+
for (const v of message.streamOutputs) {
|
|
387
|
+
exports.StreamOutput.encode(v, writer.uint32(98).fork()).ldelim();
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
if (message.segmentOutputs !== undefined && message.segmentOutputs.length !== 0) {
|
|
391
|
+
for (const v of message.segmentOutputs) {
|
|
392
|
+
exports.SegmentedFileOutput.encode(v, writer.uint32(106).fork()).ldelim();
|
|
393
|
+
}
|
|
394
|
+
}
|
|
438
395
|
return writer;
|
|
439
396
|
},
|
|
440
397
|
decode(input, length) {
|
|
441
|
-
const reader = input instanceof
|
|
398
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
442
399
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
443
400
|
const message = createBaseRoomCompositeEgressRequest();
|
|
444
401
|
while (reader.pos < end) {
|
|
@@ -474,6 +431,15 @@ exports.RoomCompositeEgressRequest = {
|
|
|
474
431
|
case 9:
|
|
475
432
|
message.advanced = exports.EncodingOptions.decode(reader, reader.uint32());
|
|
476
433
|
break;
|
|
434
|
+
case 11:
|
|
435
|
+
message.fileOutputs.push(exports.EncodedFileOutput.decode(reader, reader.uint32()));
|
|
436
|
+
break;
|
|
437
|
+
case 12:
|
|
438
|
+
message.streamOutputs.push(exports.StreamOutput.decode(reader, reader.uint32()));
|
|
439
|
+
break;
|
|
440
|
+
case 13:
|
|
441
|
+
message.segmentOutputs.push(exports.SegmentedFileOutput.decode(reader, reader.uint32()));
|
|
442
|
+
break;
|
|
477
443
|
default:
|
|
478
444
|
reader.skipType(tag & 7);
|
|
479
445
|
break;
|
|
@@ -483,16 +449,25 @@ exports.RoomCompositeEgressRequest = {
|
|
|
483
449
|
},
|
|
484
450
|
fromJSON(object) {
|
|
485
451
|
return {
|
|
486
|
-
roomName: isSet(object.roomName) ? String(object.roomName) :
|
|
487
|
-
layout: isSet(object.layout) ? String(object.layout) :
|
|
452
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : "",
|
|
453
|
+
layout: isSet(object.layout) ? String(object.layout) : "",
|
|
488
454
|
audioOnly: isSet(object.audioOnly) ? Boolean(object.audioOnly) : false,
|
|
489
455
|
videoOnly: isSet(object.videoOnly) ? Boolean(object.videoOnly) : false,
|
|
490
|
-
customBaseUrl: isSet(object.customBaseUrl) ? String(object.customBaseUrl) :
|
|
456
|
+
customBaseUrl: isSet(object.customBaseUrl) ? String(object.customBaseUrl) : "",
|
|
491
457
|
file: isSet(object.file) ? exports.EncodedFileOutput.fromJSON(object.file) : undefined,
|
|
492
458
|
stream: isSet(object.stream) ? exports.StreamOutput.fromJSON(object.stream) : undefined,
|
|
493
459
|
segments: isSet(object.segments) ? exports.SegmentedFileOutput.fromJSON(object.segments) : undefined,
|
|
494
460
|
preset: isSet(object.preset) ? encodingOptionsPresetFromJSON(object.preset) : undefined,
|
|
495
461
|
advanced: isSet(object.advanced) ? exports.EncodingOptions.fromJSON(object.advanced) : undefined,
|
|
462
|
+
fileOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.fileOutputs)
|
|
463
|
+
? object.fileOutputs.map((e) => exports.EncodedFileOutput.fromJSON(e))
|
|
464
|
+
: [],
|
|
465
|
+
streamOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.streamOutputs)
|
|
466
|
+
? object.streamOutputs.map((e) => exports.StreamOutput.fromJSON(e))
|
|
467
|
+
: [],
|
|
468
|
+
segmentOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.segmentOutputs)
|
|
469
|
+
? object.segmentOutputs.map((e) => exports.SegmentedFileOutput.fromJSON(e))
|
|
470
|
+
: [],
|
|
496
471
|
};
|
|
497
472
|
},
|
|
498
473
|
toJSON(message) {
|
|
@@ -502,68 +477,269 @@ exports.RoomCompositeEgressRequest = {
|
|
|
502
477
|
message.audioOnly !== undefined && (obj.audioOnly = message.audioOnly);
|
|
503
478
|
message.videoOnly !== undefined && (obj.videoOnly = message.videoOnly);
|
|
504
479
|
message.customBaseUrl !== undefined && (obj.customBaseUrl = message.customBaseUrl);
|
|
505
|
-
message.file !== undefined &&
|
|
506
|
-
|
|
507
|
-
message.stream !== undefined &&
|
|
508
|
-
(obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
|
|
480
|
+
message.file !== undefined && (obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
|
|
481
|
+
message.stream !== undefined && (obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
|
|
509
482
|
message.segments !== undefined &&
|
|
510
483
|
(obj.segments = message.segments ? exports.SegmentedFileOutput.toJSON(message.segments) : undefined);
|
|
511
484
|
message.preset !== undefined &&
|
|
512
|
-
(obj.preset =
|
|
513
|
-
message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
|
|
485
|
+
(obj.preset = message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
|
|
514
486
|
message.advanced !== undefined &&
|
|
515
487
|
(obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
|
|
488
|
+
if (message.fileOutputs) {
|
|
489
|
+
obj.fileOutputs = message.fileOutputs.map((e) => e ? exports.EncodedFileOutput.toJSON(e) : undefined);
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
obj.fileOutputs = [];
|
|
493
|
+
}
|
|
494
|
+
if (message.streamOutputs) {
|
|
495
|
+
obj.streamOutputs = message.streamOutputs.map((e) => e ? exports.StreamOutput.toJSON(e) : undefined);
|
|
496
|
+
}
|
|
497
|
+
else {
|
|
498
|
+
obj.streamOutputs = [];
|
|
499
|
+
}
|
|
500
|
+
if (message.segmentOutputs) {
|
|
501
|
+
obj.segmentOutputs = message.segmentOutputs.map((e) => e ? exports.SegmentedFileOutput.toJSON(e) : undefined);
|
|
502
|
+
}
|
|
503
|
+
else {
|
|
504
|
+
obj.segmentOutputs = [];
|
|
505
|
+
}
|
|
516
506
|
return obj;
|
|
517
507
|
},
|
|
518
508
|
fromPartial(object) {
|
|
519
|
-
var _a, _b, _c, _d, _e, _f;
|
|
509
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
520
510
|
const message = createBaseRoomCompositeEgressRequest();
|
|
521
|
-
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a :
|
|
522
|
-
message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b :
|
|
511
|
+
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : "";
|
|
512
|
+
message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b : "";
|
|
523
513
|
message.audioOnly = (_c = object.audioOnly) !== null && _c !== void 0 ? _c : false;
|
|
524
514
|
message.videoOnly = (_d = object.videoOnly) !== null && _d !== void 0 ? _d : false;
|
|
525
|
-
message.customBaseUrl = (_e = object.customBaseUrl) !== null && _e !== void 0 ? _e :
|
|
526
|
-
message.file =
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
object.segments !== undefined && object.segments !== null
|
|
536
|
-
? exports.SegmentedFileOutput.fromPartial(object.segments)
|
|
537
|
-
: undefined;
|
|
515
|
+
message.customBaseUrl = (_e = object.customBaseUrl) !== null && _e !== void 0 ? _e : "";
|
|
516
|
+
message.file = (object.file !== undefined && object.file !== null)
|
|
517
|
+
? exports.EncodedFileOutput.fromPartial(object.file)
|
|
518
|
+
: undefined;
|
|
519
|
+
message.stream = (object.stream !== undefined && object.stream !== null)
|
|
520
|
+
? exports.StreamOutput.fromPartial(object.stream)
|
|
521
|
+
: undefined;
|
|
522
|
+
message.segments = (object.segments !== undefined && object.segments !== null)
|
|
523
|
+
? exports.SegmentedFileOutput.fromPartial(object.segments)
|
|
524
|
+
: undefined;
|
|
538
525
|
message.preset = (_f = object.preset) !== null && _f !== void 0 ? _f : undefined;
|
|
539
|
-
message.advanced =
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
526
|
+
message.advanced = (object.advanced !== undefined && object.advanced !== null)
|
|
527
|
+
? exports.EncodingOptions.fromPartial(object.advanced)
|
|
528
|
+
: undefined;
|
|
529
|
+
message.fileOutputs = ((_g = object.fileOutputs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.EncodedFileOutput.fromPartial(e))) || [];
|
|
530
|
+
message.streamOutputs = ((_h = object.streamOutputs) === null || _h === void 0 ? void 0 : _h.map((e) => exports.StreamOutput.fromPartial(e))) || [];
|
|
531
|
+
message.segmentOutputs = ((_j = object.segmentOutputs) === null || _j === void 0 ? void 0 : _j.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
|
|
532
|
+
return message;
|
|
533
|
+
},
|
|
534
|
+
};
|
|
535
|
+
function createBaseWebEgressRequest() {
|
|
536
|
+
return {
|
|
537
|
+
url: "",
|
|
538
|
+
audioOnly: false,
|
|
539
|
+
videoOnly: false,
|
|
540
|
+
file: undefined,
|
|
541
|
+
stream: undefined,
|
|
542
|
+
segments: undefined,
|
|
543
|
+
preset: undefined,
|
|
544
|
+
advanced: undefined,
|
|
545
|
+
fileOutputs: [],
|
|
546
|
+
streamOutputs: [],
|
|
547
|
+
segmentOutputs: [],
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
exports.WebEgressRequest = {
|
|
551
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
552
|
+
if (message.url !== undefined && message.url !== "") {
|
|
553
|
+
writer.uint32(10).string(message.url);
|
|
554
|
+
}
|
|
555
|
+
if (message.audioOnly === true) {
|
|
556
|
+
writer.uint32(16).bool(message.audioOnly);
|
|
557
|
+
}
|
|
558
|
+
if (message.videoOnly === true) {
|
|
559
|
+
writer.uint32(24).bool(message.videoOnly);
|
|
560
|
+
}
|
|
561
|
+
if (message.file !== undefined) {
|
|
562
|
+
exports.EncodedFileOutput.encode(message.file, writer.uint32(34).fork()).ldelim();
|
|
563
|
+
}
|
|
564
|
+
if (message.stream !== undefined) {
|
|
565
|
+
exports.StreamOutput.encode(message.stream, writer.uint32(42).fork()).ldelim();
|
|
566
|
+
}
|
|
567
|
+
if (message.segments !== undefined) {
|
|
568
|
+
exports.SegmentedFileOutput.encode(message.segments, writer.uint32(50).fork()).ldelim();
|
|
569
|
+
}
|
|
570
|
+
if (message.preset !== undefined) {
|
|
571
|
+
writer.uint32(56).int32(message.preset);
|
|
572
|
+
}
|
|
573
|
+
if (message.advanced !== undefined) {
|
|
574
|
+
exports.EncodingOptions.encode(message.advanced, writer.uint32(66).fork()).ldelim();
|
|
575
|
+
}
|
|
576
|
+
if (message.fileOutputs !== undefined && message.fileOutputs.length !== 0) {
|
|
577
|
+
for (const v of message.fileOutputs) {
|
|
578
|
+
exports.EncodedFileOutput.encode(v, writer.uint32(74).fork()).ldelim();
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
if (message.streamOutputs !== undefined && message.streamOutputs.length !== 0) {
|
|
582
|
+
for (const v of message.streamOutputs) {
|
|
583
|
+
exports.StreamOutput.encode(v, writer.uint32(82).fork()).ldelim();
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
if (message.segmentOutputs !== undefined && message.segmentOutputs.length !== 0) {
|
|
587
|
+
for (const v of message.segmentOutputs) {
|
|
588
|
+
exports.SegmentedFileOutput.encode(v, writer.uint32(90).fork()).ldelim();
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
return writer;
|
|
592
|
+
},
|
|
593
|
+
decode(input, length) {
|
|
594
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
595
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
596
|
+
const message = createBaseWebEgressRequest();
|
|
597
|
+
while (reader.pos < end) {
|
|
598
|
+
const tag = reader.uint32();
|
|
599
|
+
switch (tag >>> 3) {
|
|
600
|
+
case 1:
|
|
601
|
+
message.url = reader.string();
|
|
602
|
+
break;
|
|
603
|
+
case 2:
|
|
604
|
+
message.audioOnly = reader.bool();
|
|
605
|
+
break;
|
|
606
|
+
case 3:
|
|
607
|
+
message.videoOnly = reader.bool();
|
|
608
|
+
break;
|
|
609
|
+
case 4:
|
|
610
|
+
message.file = exports.EncodedFileOutput.decode(reader, reader.uint32());
|
|
611
|
+
break;
|
|
612
|
+
case 5:
|
|
613
|
+
message.stream = exports.StreamOutput.decode(reader, reader.uint32());
|
|
614
|
+
break;
|
|
615
|
+
case 6:
|
|
616
|
+
message.segments = exports.SegmentedFileOutput.decode(reader, reader.uint32());
|
|
617
|
+
break;
|
|
618
|
+
case 7:
|
|
619
|
+
message.preset = reader.int32();
|
|
620
|
+
break;
|
|
621
|
+
case 8:
|
|
622
|
+
message.advanced = exports.EncodingOptions.decode(reader, reader.uint32());
|
|
623
|
+
break;
|
|
624
|
+
case 9:
|
|
625
|
+
message.fileOutputs.push(exports.EncodedFileOutput.decode(reader, reader.uint32()));
|
|
626
|
+
break;
|
|
627
|
+
case 10:
|
|
628
|
+
message.streamOutputs.push(exports.StreamOutput.decode(reader, reader.uint32()));
|
|
629
|
+
break;
|
|
630
|
+
case 11:
|
|
631
|
+
message.segmentOutputs.push(exports.SegmentedFileOutput.decode(reader, reader.uint32()));
|
|
632
|
+
break;
|
|
633
|
+
default:
|
|
634
|
+
reader.skipType(tag & 7);
|
|
635
|
+
break;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
return message;
|
|
639
|
+
},
|
|
640
|
+
fromJSON(object) {
|
|
641
|
+
return {
|
|
642
|
+
url: isSet(object.url) ? String(object.url) : "",
|
|
643
|
+
audioOnly: isSet(object.audioOnly) ? Boolean(object.audioOnly) : false,
|
|
644
|
+
videoOnly: isSet(object.videoOnly) ? Boolean(object.videoOnly) : false,
|
|
645
|
+
file: isSet(object.file) ? exports.EncodedFileOutput.fromJSON(object.file) : undefined,
|
|
646
|
+
stream: isSet(object.stream) ? exports.StreamOutput.fromJSON(object.stream) : undefined,
|
|
647
|
+
segments: isSet(object.segments) ? exports.SegmentedFileOutput.fromJSON(object.segments) : undefined,
|
|
648
|
+
preset: isSet(object.preset) ? encodingOptionsPresetFromJSON(object.preset) : undefined,
|
|
649
|
+
advanced: isSet(object.advanced) ? exports.EncodingOptions.fromJSON(object.advanced) : undefined,
|
|
650
|
+
fileOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.fileOutputs)
|
|
651
|
+
? object.fileOutputs.map((e) => exports.EncodedFileOutput.fromJSON(e))
|
|
652
|
+
: [],
|
|
653
|
+
streamOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.streamOutputs)
|
|
654
|
+
? object.streamOutputs.map((e) => exports.StreamOutput.fromJSON(e))
|
|
655
|
+
: [],
|
|
656
|
+
segmentOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.segmentOutputs)
|
|
657
|
+
? object.segmentOutputs.map((e) => exports.SegmentedFileOutput.fromJSON(e))
|
|
658
|
+
: [],
|
|
659
|
+
};
|
|
660
|
+
},
|
|
661
|
+
toJSON(message) {
|
|
662
|
+
const obj = {};
|
|
663
|
+
message.url !== undefined && (obj.url = message.url);
|
|
664
|
+
message.audioOnly !== undefined && (obj.audioOnly = message.audioOnly);
|
|
665
|
+
message.videoOnly !== undefined && (obj.videoOnly = message.videoOnly);
|
|
666
|
+
message.file !== undefined && (obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
|
|
667
|
+
message.stream !== undefined && (obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
|
|
668
|
+
message.segments !== undefined &&
|
|
669
|
+
(obj.segments = message.segments ? exports.SegmentedFileOutput.toJSON(message.segments) : undefined);
|
|
670
|
+
message.preset !== undefined &&
|
|
671
|
+
(obj.preset = message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
|
|
672
|
+
message.advanced !== undefined &&
|
|
673
|
+
(obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
|
|
674
|
+
if (message.fileOutputs) {
|
|
675
|
+
obj.fileOutputs = message.fileOutputs.map((e) => e ? exports.EncodedFileOutput.toJSON(e) : undefined);
|
|
676
|
+
}
|
|
677
|
+
else {
|
|
678
|
+
obj.fileOutputs = [];
|
|
679
|
+
}
|
|
680
|
+
if (message.streamOutputs) {
|
|
681
|
+
obj.streamOutputs = message.streamOutputs.map((e) => e ? exports.StreamOutput.toJSON(e) : undefined);
|
|
682
|
+
}
|
|
683
|
+
else {
|
|
684
|
+
obj.streamOutputs = [];
|
|
685
|
+
}
|
|
686
|
+
if (message.segmentOutputs) {
|
|
687
|
+
obj.segmentOutputs = message.segmentOutputs.map((e) => e ? exports.SegmentedFileOutput.toJSON(e) : undefined);
|
|
688
|
+
}
|
|
689
|
+
else {
|
|
690
|
+
obj.segmentOutputs = [];
|
|
691
|
+
}
|
|
692
|
+
return obj;
|
|
693
|
+
},
|
|
694
|
+
fromPartial(object) {
|
|
695
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
696
|
+
const message = createBaseWebEgressRequest();
|
|
697
|
+
message.url = (_a = object.url) !== null && _a !== void 0 ? _a : "";
|
|
698
|
+
message.audioOnly = (_b = object.audioOnly) !== null && _b !== void 0 ? _b : false;
|
|
699
|
+
message.videoOnly = (_c = object.videoOnly) !== null && _c !== void 0 ? _c : false;
|
|
700
|
+
message.file = (object.file !== undefined && object.file !== null)
|
|
701
|
+
? exports.EncodedFileOutput.fromPartial(object.file)
|
|
702
|
+
: undefined;
|
|
703
|
+
message.stream = (object.stream !== undefined && object.stream !== null)
|
|
704
|
+
? exports.StreamOutput.fromPartial(object.stream)
|
|
705
|
+
: undefined;
|
|
706
|
+
message.segments = (object.segments !== undefined && object.segments !== null)
|
|
707
|
+
? exports.SegmentedFileOutput.fromPartial(object.segments)
|
|
708
|
+
: undefined;
|
|
709
|
+
message.preset = (_d = object.preset) !== null && _d !== void 0 ? _d : undefined;
|
|
710
|
+
message.advanced = (object.advanced !== undefined && object.advanced !== null)
|
|
711
|
+
? exports.EncodingOptions.fromPartial(object.advanced)
|
|
712
|
+
: undefined;
|
|
713
|
+
message.fileOutputs = ((_e = object.fileOutputs) === null || _e === void 0 ? void 0 : _e.map((e) => exports.EncodedFileOutput.fromPartial(e))) || [];
|
|
714
|
+
message.streamOutputs = ((_f = object.streamOutputs) === null || _f === void 0 ? void 0 : _f.map((e) => exports.StreamOutput.fromPartial(e))) || [];
|
|
715
|
+
message.segmentOutputs = ((_g = object.segmentOutputs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
|
|
543
716
|
return message;
|
|
544
717
|
},
|
|
545
718
|
};
|
|
546
719
|
function createBaseTrackCompositeEgressRequest() {
|
|
547
720
|
return {
|
|
548
|
-
roomName:
|
|
549
|
-
audioTrackId:
|
|
550
|
-
videoTrackId:
|
|
721
|
+
roomName: "",
|
|
722
|
+
audioTrackId: "",
|
|
723
|
+
videoTrackId: "",
|
|
551
724
|
file: undefined,
|
|
552
725
|
stream: undefined,
|
|
553
726
|
segments: undefined,
|
|
554
727
|
preset: undefined,
|
|
555
728
|
advanced: undefined,
|
|
729
|
+
fileOutputs: [],
|
|
730
|
+
streamOutputs: [],
|
|
731
|
+
segmentOutputs: [],
|
|
556
732
|
};
|
|
557
733
|
}
|
|
558
734
|
exports.TrackCompositeEgressRequest = {
|
|
559
|
-
encode(message, writer =
|
|
560
|
-
if (message.roomName !==
|
|
735
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
736
|
+
if (message.roomName !== undefined && message.roomName !== "") {
|
|
561
737
|
writer.uint32(10).string(message.roomName);
|
|
562
738
|
}
|
|
563
|
-
if (message.audioTrackId !==
|
|
739
|
+
if (message.audioTrackId !== undefined && message.audioTrackId !== "") {
|
|
564
740
|
writer.uint32(18).string(message.audioTrackId);
|
|
565
741
|
}
|
|
566
|
-
if (message.videoTrackId !==
|
|
742
|
+
if (message.videoTrackId !== undefined && message.videoTrackId !== "") {
|
|
567
743
|
writer.uint32(26).string(message.videoTrackId);
|
|
568
744
|
}
|
|
569
745
|
if (message.file !== undefined) {
|
|
@@ -581,10 +757,25 @@ exports.TrackCompositeEgressRequest = {
|
|
|
581
757
|
if (message.advanced !== undefined) {
|
|
582
758
|
exports.EncodingOptions.encode(message.advanced, writer.uint32(58).fork()).ldelim();
|
|
583
759
|
}
|
|
760
|
+
if (message.fileOutputs !== undefined && message.fileOutputs.length !== 0) {
|
|
761
|
+
for (const v of message.fileOutputs) {
|
|
762
|
+
exports.EncodedFileOutput.encode(v, writer.uint32(90).fork()).ldelim();
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
if (message.streamOutputs !== undefined && message.streamOutputs.length !== 0) {
|
|
766
|
+
for (const v of message.streamOutputs) {
|
|
767
|
+
exports.StreamOutput.encode(v, writer.uint32(98).fork()).ldelim();
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
if (message.segmentOutputs !== undefined && message.segmentOutputs.length !== 0) {
|
|
771
|
+
for (const v of message.segmentOutputs) {
|
|
772
|
+
exports.SegmentedFileOutput.encode(v, writer.uint32(106).fork()).ldelim();
|
|
773
|
+
}
|
|
774
|
+
}
|
|
584
775
|
return writer;
|
|
585
776
|
},
|
|
586
777
|
decode(input, length) {
|
|
587
|
-
const reader = input instanceof
|
|
778
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
588
779
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
589
780
|
const message = createBaseTrackCompositeEgressRequest();
|
|
590
781
|
while (reader.pos < end) {
|
|
@@ -614,6 +805,15 @@ exports.TrackCompositeEgressRequest = {
|
|
|
614
805
|
case 7:
|
|
615
806
|
message.advanced = exports.EncodingOptions.decode(reader, reader.uint32());
|
|
616
807
|
break;
|
|
808
|
+
case 11:
|
|
809
|
+
message.fileOutputs.push(exports.EncodedFileOutput.decode(reader, reader.uint32()));
|
|
810
|
+
break;
|
|
811
|
+
case 12:
|
|
812
|
+
message.streamOutputs.push(exports.StreamOutput.decode(reader, reader.uint32()));
|
|
813
|
+
break;
|
|
814
|
+
case 13:
|
|
815
|
+
message.segmentOutputs.push(exports.SegmentedFileOutput.decode(reader, reader.uint32()));
|
|
816
|
+
break;
|
|
617
817
|
default:
|
|
618
818
|
reader.skipType(tag & 7);
|
|
619
819
|
break;
|
|
@@ -623,14 +823,23 @@ exports.TrackCompositeEgressRequest = {
|
|
|
623
823
|
},
|
|
624
824
|
fromJSON(object) {
|
|
625
825
|
return {
|
|
626
|
-
roomName: isSet(object.roomName) ? String(object.roomName) :
|
|
627
|
-
audioTrackId: isSet(object.audioTrackId) ? String(object.audioTrackId) :
|
|
628
|
-
videoTrackId: isSet(object.videoTrackId) ? String(object.videoTrackId) :
|
|
826
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : "",
|
|
827
|
+
audioTrackId: isSet(object.audioTrackId) ? String(object.audioTrackId) : "",
|
|
828
|
+
videoTrackId: isSet(object.videoTrackId) ? String(object.videoTrackId) : "",
|
|
629
829
|
file: isSet(object.file) ? exports.EncodedFileOutput.fromJSON(object.file) : undefined,
|
|
630
830
|
stream: isSet(object.stream) ? exports.StreamOutput.fromJSON(object.stream) : undefined,
|
|
631
831
|
segments: isSet(object.segments) ? exports.SegmentedFileOutput.fromJSON(object.segments) : undefined,
|
|
632
832
|
preset: isSet(object.preset) ? encodingOptionsPresetFromJSON(object.preset) : undefined,
|
|
633
833
|
advanced: isSet(object.advanced) ? exports.EncodingOptions.fromJSON(object.advanced) : undefined,
|
|
834
|
+
fileOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.fileOutputs)
|
|
835
|
+
? object.fileOutputs.map((e) => exports.EncodedFileOutput.fromJSON(e))
|
|
836
|
+
: [],
|
|
837
|
+
streamOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.streamOutputs)
|
|
838
|
+
? object.streamOutputs.map((e) => exports.StreamOutput.fromJSON(e))
|
|
839
|
+
: [],
|
|
840
|
+
segmentOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.segmentOutputs)
|
|
841
|
+
? object.segmentOutputs.map((e) => exports.SegmentedFileOutput.fromJSON(e))
|
|
842
|
+
: [],
|
|
634
843
|
};
|
|
635
844
|
},
|
|
636
845
|
toJSON(message) {
|
|
@@ -638,54 +847,68 @@ exports.TrackCompositeEgressRequest = {
|
|
|
638
847
|
message.roomName !== undefined && (obj.roomName = message.roomName);
|
|
639
848
|
message.audioTrackId !== undefined && (obj.audioTrackId = message.audioTrackId);
|
|
640
849
|
message.videoTrackId !== undefined && (obj.videoTrackId = message.videoTrackId);
|
|
641
|
-
message.file !== undefined &&
|
|
642
|
-
|
|
643
|
-
message.stream !== undefined &&
|
|
644
|
-
(obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
|
|
850
|
+
message.file !== undefined && (obj.file = message.file ? exports.EncodedFileOutput.toJSON(message.file) : undefined);
|
|
851
|
+
message.stream !== undefined && (obj.stream = message.stream ? exports.StreamOutput.toJSON(message.stream) : undefined);
|
|
645
852
|
message.segments !== undefined &&
|
|
646
853
|
(obj.segments = message.segments ? exports.SegmentedFileOutput.toJSON(message.segments) : undefined);
|
|
647
854
|
message.preset !== undefined &&
|
|
648
|
-
(obj.preset =
|
|
649
|
-
message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
|
|
855
|
+
(obj.preset = message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
|
|
650
856
|
message.advanced !== undefined &&
|
|
651
857
|
(obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
|
|
858
|
+
if (message.fileOutputs) {
|
|
859
|
+
obj.fileOutputs = message.fileOutputs.map((e) => e ? exports.EncodedFileOutput.toJSON(e) : undefined);
|
|
860
|
+
}
|
|
861
|
+
else {
|
|
862
|
+
obj.fileOutputs = [];
|
|
863
|
+
}
|
|
864
|
+
if (message.streamOutputs) {
|
|
865
|
+
obj.streamOutputs = message.streamOutputs.map((e) => e ? exports.StreamOutput.toJSON(e) : undefined);
|
|
866
|
+
}
|
|
867
|
+
else {
|
|
868
|
+
obj.streamOutputs = [];
|
|
869
|
+
}
|
|
870
|
+
if (message.segmentOutputs) {
|
|
871
|
+
obj.segmentOutputs = message.segmentOutputs.map((e) => e ? exports.SegmentedFileOutput.toJSON(e) : undefined);
|
|
872
|
+
}
|
|
873
|
+
else {
|
|
874
|
+
obj.segmentOutputs = [];
|
|
875
|
+
}
|
|
652
876
|
return obj;
|
|
653
877
|
},
|
|
654
878
|
fromPartial(object) {
|
|
655
|
-
var _a, _b, _c, _d;
|
|
879
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
656
880
|
const message = createBaseTrackCompositeEgressRequest();
|
|
657
|
-
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a :
|
|
658
|
-
message.audioTrackId = (_b = object.audioTrackId) !== null && _b !== void 0 ? _b :
|
|
659
|
-
message.videoTrackId = (_c = object.videoTrackId) !== null && _c !== void 0 ? _c :
|
|
660
|
-
message.file =
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
object.segments !== undefined && object.segments !== null
|
|
670
|
-
? exports.SegmentedFileOutput.fromPartial(object.segments)
|
|
671
|
-
: undefined;
|
|
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 = (object.file !== undefined && object.file !== null)
|
|
885
|
+
? exports.EncodedFileOutput.fromPartial(object.file)
|
|
886
|
+
: undefined;
|
|
887
|
+
message.stream = (object.stream !== undefined && object.stream !== null)
|
|
888
|
+
? exports.StreamOutput.fromPartial(object.stream)
|
|
889
|
+
: undefined;
|
|
890
|
+
message.segments = (object.segments !== undefined && object.segments !== null)
|
|
891
|
+
? exports.SegmentedFileOutput.fromPartial(object.segments)
|
|
892
|
+
: undefined;
|
|
672
893
|
message.preset = (_d = object.preset) !== null && _d !== void 0 ? _d : undefined;
|
|
673
|
-
message.advanced =
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
894
|
+
message.advanced = (object.advanced !== undefined && object.advanced !== null)
|
|
895
|
+
? exports.EncodingOptions.fromPartial(object.advanced)
|
|
896
|
+
: undefined;
|
|
897
|
+
message.fileOutputs = ((_e = object.fileOutputs) === null || _e === void 0 ? void 0 : _e.map((e) => exports.EncodedFileOutput.fromPartial(e))) || [];
|
|
898
|
+
message.streamOutputs = ((_f = object.streamOutputs) === null || _f === void 0 ? void 0 : _f.map((e) => exports.StreamOutput.fromPartial(e))) || [];
|
|
899
|
+
message.segmentOutputs = ((_g = object.segmentOutputs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
|
|
677
900
|
return message;
|
|
678
901
|
},
|
|
679
902
|
};
|
|
680
903
|
function createBaseTrackEgressRequest() {
|
|
681
|
-
return { roomName:
|
|
904
|
+
return { roomName: "", trackId: "", file: undefined, websocketUrl: undefined };
|
|
682
905
|
}
|
|
683
906
|
exports.TrackEgressRequest = {
|
|
684
|
-
encode(message, writer =
|
|
685
|
-
if (message.roomName !==
|
|
907
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
908
|
+
if (message.roomName !== undefined && message.roomName !== "") {
|
|
686
909
|
writer.uint32(10).string(message.roomName);
|
|
687
910
|
}
|
|
688
|
-
if (message.trackId !==
|
|
911
|
+
if (message.trackId !== undefined && message.trackId !== "") {
|
|
689
912
|
writer.uint32(18).string(message.trackId);
|
|
690
913
|
}
|
|
691
914
|
if (message.file !== undefined) {
|
|
@@ -697,7 +920,7 @@ exports.TrackEgressRequest = {
|
|
|
697
920
|
return writer;
|
|
698
921
|
},
|
|
699
922
|
decode(input, length) {
|
|
700
|
-
const reader = input instanceof
|
|
923
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
701
924
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
702
925
|
const message = createBaseTrackEgressRequest();
|
|
703
926
|
while (reader.pos < end) {
|
|
@@ -724,8 +947,8 @@ exports.TrackEgressRequest = {
|
|
|
724
947
|
},
|
|
725
948
|
fromJSON(object) {
|
|
726
949
|
return {
|
|
727
|
-
roomName: isSet(object.roomName) ? String(object.roomName) :
|
|
728
|
-
trackId: isSet(object.trackId) ? String(object.trackId) :
|
|
950
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : "",
|
|
951
|
+
trackId: isSet(object.trackId) ? String(object.trackId) : "",
|
|
729
952
|
file: isSet(object.file) ? exports.DirectFileOutput.fromJSON(object.file) : undefined,
|
|
730
953
|
websocketUrl: isSet(object.websocketUrl) ? String(object.websocketUrl) : undefined,
|
|
731
954
|
};
|
|
@@ -734,20 +957,18 @@ exports.TrackEgressRequest = {
|
|
|
734
957
|
const obj = {};
|
|
735
958
|
message.roomName !== undefined && (obj.roomName = message.roomName);
|
|
736
959
|
message.trackId !== undefined && (obj.trackId = message.trackId);
|
|
737
|
-
message.file !== undefined &&
|
|
738
|
-
(obj.file = message.file ? exports.DirectFileOutput.toJSON(message.file) : undefined);
|
|
960
|
+
message.file !== undefined && (obj.file = message.file ? exports.DirectFileOutput.toJSON(message.file) : undefined);
|
|
739
961
|
message.websocketUrl !== undefined && (obj.websocketUrl = message.websocketUrl);
|
|
740
962
|
return obj;
|
|
741
963
|
},
|
|
742
964
|
fromPartial(object) {
|
|
743
965
|
var _a, _b, _c;
|
|
744
966
|
const message = createBaseTrackEgressRequest();
|
|
745
|
-
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a :
|
|
746
|
-
message.trackId = (_b = object.trackId) !== null && _b !== void 0 ? _b :
|
|
747
|
-
message.file =
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
: undefined;
|
|
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 = (object.file !== undefined && object.file !== null)
|
|
970
|
+
? exports.DirectFileOutput.fromPartial(object.file)
|
|
971
|
+
: undefined;
|
|
751
972
|
message.websocketUrl = (_c = object.websocketUrl) !== null && _c !== void 0 ? _c : undefined;
|
|
752
973
|
return message;
|
|
753
974
|
},
|
|
@@ -755,19 +976,20 @@ exports.TrackEgressRequest = {
|
|
|
755
976
|
function createBaseEncodedFileOutput() {
|
|
756
977
|
return {
|
|
757
978
|
fileType: 0,
|
|
758
|
-
filepath:
|
|
979
|
+
filepath: "",
|
|
759
980
|
disableManifest: false,
|
|
760
981
|
s3: undefined,
|
|
761
982
|
gcp: undefined,
|
|
762
983
|
azure: undefined,
|
|
984
|
+
aliOSS: undefined,
|
|
763
985
|
};
|
|
764
986
|
}
|
|
765
987
|
exports.EncodedFileOutput = {
|
|
766
|
-
encode(message, writer =
|
|
767
|
-
if (message.fileType !== 0) {
|
|
988
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
989
|
+
if (message.fileType !== undefined && message.fileType !== 0) {
|
|
768
990
|
writer.uint32(8).int32(message.fileType);
|
|
769
991
|
}
|
|
770
|
-
if (message.filepath !==
|
|
992
|
+
if (message.filepath !== undefined && message.filepath !== "") {
|
|
771
993
|
writer.uint32(18).string(message.filepath);
|
|
772
994
|
}
|
|
773
995
|
if (message.disableManifest === true) {
|
|
@@ -782,10 +1004,13 @@ exports.EncodedFileOutput = {
|
|
|
782
1004
|
if (message.azure !== undefined) {
|
|
783
1005
|
exports.AzureBlobUpload.encode(message.azure, writer.uint32(42).fork()).ldelim();
|
|
784
1006
|
}
|
|
1007
|
+
if (message.aliOSS !== undefined) {
|
|
1008
|
+
exports.AliOSSUpload.encode(message.aliOSS, writer.uint32(58).fork()).ldelim();
|
|
1009
|
+
}
|
|
785
1010
|
return writer;
|
|
786
1011
|
},
|
|
787
1012
|
decode(input, length) {
|
|
788
|
-
const reader = input instanceof
|
|
1013
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
789
1014
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
790
1015
|
const message = createBaseEncodedFileOutput();
|
|
791
1016
|
while (reader.pos < end) {
|
|
@@ -809,6 +1034,9 @@ exports.EncodedFileOutput = {
|
|
|
809
1034
|
case 5:
|
|
810
1035
|
message.azure = exports.AzureBlobUpload.decode(reader, reader.uint32());
|
|
811
1036
|
break;
|
|
1037
|
+
case 7:
|
|
1038
|
+
message.aliOSS = exports.AliOSSUpload.decode(reader, reader.uint32());
|
|
1039
|
+
break;
|
|
812
1040
|
default:
|
|
813
1041
|
reader.skipType(tag & 7);
|
|
814
1042
|
break;
|
|
@@ -819,11 +1047,12 @@ exports.EncodedFileOutput = {
|
|
|
819
1047
|
fromJSON(object) {
|
|
820
1048
|
return {
|
|
821
1049
|
fileType: isSet(object.fileType) ? encodedFileTypeFromJSON(object.fileType) : 0,
|
|
822
|
-
filepath: isSet(object.filepath) ? String(object.filepath) :
|
|
1050
|
+
filepath: isSet(object.filepath) ? String(object.filepath) : "",
|
|
823
1051
|
disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
|
|
824
1052
|
s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
|
|
825
1053
|
gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
|
|
826
1054
|
azure: isSet(object.azure) ? exports.AzureBlobUpload.fromJSON(object.azure) : undefined,
|
|
1055
|
+
aliOSS: isSet(object.aliOSS) ? exports.AliOSSUpload.fromJSON(object.aliOSS) : undefined,
|
|
827
1056
|
};
|
|
828
1057
|
},
|
|
829
1058
|
toJSON(message) {
|
|
@@ -832,57 +1061,59 @@ exports.EncodedFileOutput = {
|
|
|
832
1061
|
message.filepath !== undefined && (obj.filepath = message.filepath);
|
|
833
1062
|
message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
|
|
834
1063
|
message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
|
|
835
|
-
message.gcp !== undefined &&
|
|
836
|
-
|
|
837
|
-
message.
|
|
838
|
-
(obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
|
|
1064
|
+
message.gcp !== undefined && (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
|
|
1065
|
+
message.azure !== undefined && (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
|
|
1066
|
+
message.aliOSS !== undefined && (obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
|
|
839
1067
|
return obj;
|
|
840
1068
|
},
|
|
841
1069
|
fromPartial(object) {
|
|
842
1070
|
var _a, _b, _c;
|
|
843
1071
|
const message = createBaseEncodedFileOutput();
|
|
844
1072
|
message.fileType = (_a = object.fileType) !== null && _a !== void 0 ? _a : 0;
|
|
845
|
-
message.filepath = (_b = object.filepath) !== null && _b !== void 0 ? _b :
|
|
1073
|
+
message.filepath = (_b = object.filepath) !== null && _b !== void 0 ? _b : "";
|
|
846
1074
|
message.disableManifest = (_c = object.disableManifest) !== null && _c !== void 0 ? _c : false;
|
|
847
|
-
message.s3 =
|
|
848
|
-
|
|
849
|
-
message.
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
856
|
-
: undefined;
|
|
1075
|
+
message.s3 = (object.s3 !== undefined && object.s3 !== null) ? exports.S3Upload.fromPartial(object.s3) : undefined;
|
|
1076
|
+
message.gcp = (object.gcp !== undefined && object.gcp !== null) ? exports.GCPUpload.fromPartial(object.gcp) : undefined;
|
|
1077
|
+
message.azure = (object.azure !== undefined && object.azure !== null)
|
|
1078
|
+
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
1079
|
+
: undefined;
|
|
1080
|
+
message.aliOSS = (object.aliOSS !== undefined && object.aliOSS !== null)
|
|
1081
|
+
? exports.AliOSSUpload.fromPartial(object.aliOSS)
|
|
1082
|
+
: undefined;
|
|
857
1083
|
return message;
|
|
858
1084
|
},
|
|
859
1085
|
};
|
|
860
1086
|
function createBaseSegmentedFileOutput() {
|
|
861
1087
|
return {
|
|
862
1088
|
protocol: 0,
|
|
863
|
-
filenamePrefix:
|
|
864
|
-
playlistName:
|
|
1089
|
+
filenamePrefix: "",
|
|
1090
|
+
playlistName: "",
|
|
865
1091
|
segmentDuration: 0,
|
|
1092
|
+
filenameSuffix: 0,
|
|
866
1093
|
disableManifest: false,
|
|
867
1094
|
s3: undefined,
|
|
868
1095
|
gcp: undefined,
|
|
869
1096
|
azure: undefined,
|
|
1097
|
+
aliOSS: undefined,
|
|
870
1098
|
};
|
|
871
1099
|
}
|
|
872
1100
|
exports.SegmentedFileOutput = {
|
|
873
|
-
encode(message, writer =
|
|
874
|
-
if (message.protocol !== 0) {
|
|
1101
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1102
|
+
if (message.protocol !== undefined && message.protocol !== 0) {
|
|
875
1103
|
writer.uint32(8).int32(message.protocol);
|
|
876
1104
|
}
|
|
877
|
-
if (message.filenamePrefix !==
|
|
1105
|
+
if (message.filenamePrefix !== undefined && message.filenamePrefix !== "") {
|
|
878
1106
|
writer.uint32(18).string(message.filenamePrefix);
|
|
879
1107
|
}
|
|
880
|
-
if (message.playlistName !==
|
|
1108
|
+
if (message.playlistName !== undefined && message.playlistName !== "") {
|
|
881
1109
|
writer.uint32(26).string(message.playlistName);
|
|
882
1110
|
}
|
|
883
|
-
if (message.segmentDuration !== 0) {
|
|
1111
|
+
if (message.segmentDuration !== undefined && message.segmentDuration !== 0) {
|
|
884
1112
|
writer.uint32(32).uint32(message.segmentDuration);
|
|
885
1113
|
}
|
|
1114
|
+
if (message.filenameSuffix !== undefined && message.filenameSuffix !== 0) {
|
|
1115
|
+
writer.uint32(80).int32(message.filenameSuffix);
|
|
1116
|
+
}
|
|
886
1117
|
if (message.disableManifest === true) {
|
|
887
1118
|
writer.uint32(64).bool(message.disableManifest);
|
|
888
1119
|
}
|
|
@@ -895,10 +1126,13 @@ exports.SegmentedFileOutput = {
|
|
|
895
1126
|
if (message.azure !== undefined) {
|
|
896
1127
|
exports.AzureBlobUpload.encode(message.azure, writer.uint32(58).fork()).ldelim();
|
|
897
1128
|
}
|
|
1129
|
+
if (message.aliOSS !== undefined) {
|
|
1130
|
+
exports.AliOSSUpload.encode(message.aliOSS, writer.uint32(74).fork()).ldelim();
|
|
1131
|
+
}
|
|
898
1132
|
return writer;
|
|
899
1133
|
},
|
|
900
1134
|
decode(input, length) {
|
|
901
|
-
const reader = input instanceof
|
|
1135
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
902
1136
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
903
1137
|
const message = createBaseSegmentedFileOutput();
|
|
904
1138
|
while (reader.pos < end) {
|
|
@@ -916,6 +1150,9 @@ exports.SegmentedFileOutput = {
|
|
|
916
1150
|
case 4:
|
|
917
1151
|
message.segmentDuration = reader.uint32();
|
|
918
1152
|
break;
|
|
1153
|
+
case 10:
|
|
1154
|
+
message.filenameSuffix = reader.int32();
|
|
1155
|
+
break;
|
|
919
1156
|
case 8:
|
|
920
1157
|
message.disableManifest = reader.bool();
|
|
921
1158
|
break;
|
|
@@ -928,6 +1165,9 @@ exports.SegmentedFileOutput = {
|
|
|
928
1165
|
case 7:
|
|
929
1166
|
message.azure = exports.AzureBlobUpload.decode(reader, reader.uint32());
|
|
930
1167
|
break;
|
|
1168
|
+
case 9:
|
|
1169
|
+
message.aliOSS = exports.AliOSSUpload.decode(reader, reader.uint32());
|
|
1170
|
+
break;
|
|
931
1171
|
default:
|
|
932
1172
|
reader.skipType(tag & 7);
|
|
933
1173
|
break;
|
|
@@ -938,58 +1178,57 @@ exports.SegmentedFileOutput = {
|
|
|
938
1178
|
fromJSON(object) {
|
|
939
1179
|
return {
|
|
940
1180
|
protocol: isSet(object.protocol) ? segmentedFileProtocolFromJSON(object.protocol) : 0,
|
|
941
|
-
filenamePrefix: isSet(object.filenamePrefix) ? String(object.filenamePrefix) :
|
|
942
|
-
playlistName: isSet(object.playlistName) ? String(object.playlistName) :
|
|
1181
|
+
filenamePrefix: isSet(object.filenamePrefix) ? String(object.filenamePrefix) : "",
|
|
1182
|
+
playlistName: isSet(object.playlistName) ? String(object.playlistName) : "",
|
|
943
1183
|
segmentDuration: isSet(object.segmentDuration) ? Number(object.segmentDuration) : 0,
|
|
1184
|
+
filenameSuffix: isSet(object.filenameSuffix) ? segmentedFileSuffixFromJSON(object.filenameSuffix) : 0,
|
|
944
1185
|
disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
|
|
945
1186
|
s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
|
|
946
1187
|
gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
|
|
947
1188
|
azure: isSet(object.azure) ? exports.AzureBlobUpload.fromJSON(object.azure) : undefined,
|
|
1189
|
+
aliOSS: isSet(object.aliOSS) ? exports.AliOSSUpload.fromJSON(object.aliOSS) : undefined,
|
|
948
1190
|
};
|
|
949
1191
|
},
|
|
950
1192
|
toJSON(message) {
|
|
951
1193
|
const obj = {};
|
|
952
|
-
message.protocol !== undefined &&
|
|
953
|
-
(obj.protocol = segmentedFileProtocolToJSON(message.protocol));
|
|
1194
|
+
message.protocol !== undefined && (obj.protocol = segmentedFileProtocolToJSON(message.protocol));
|
|
954
1195
|
message.filenamePrefix !== undefined && (obj.filenamePrefix = message.filenamePrefix);
|
|
955
1196
|
message.playlistName !== undefined && (obj.playlistName = message.playlistName);
|
|
956
|
-
message.segmentDuration !== undefined &&
|
|
957
|
-
|
|
1197
|
+
message.segmentDuration !== undefined && (obj.segmentDuration = Math.round(message.segmentDuration));
|
|
1198
|
+
message.filenameSuffix !== undefined && (obj.filenameSuffix = segmentedFileSuffixToJSON(message.filenameSuffix));
|
|
958
1199
|
message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
|
|
959
1200
|
message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
|
|
960
|
-
message.gcp !== undefined &&
|
|
961
|
-
|
|
962
|
-
message.
|
|
963
|
-
(obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
|
|
1201
|
+
message.gcp !== undefined && (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
|
|
1202
|
+
message.azure !== undefined && (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
|
|
1203
|
+
message.aliOSS !== undefined && (obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
|
|
964
1204
|
return obj;
|
|
965
1205
|
},
|
|
966
1206
|
fromPartial(object) {
|
|
967
|
-
var _a, _b, _c, _d, _e;
|
|
1207
|
+
var _a, _b, _c, _d, _e, _f;
|
|
968
1208
|
const message = createBaseSegmentedFileOutput();
|
|
969
1209
|
message.protocol = (_a = object.protocol) !== null && _a !== void 0 ? _a : 0;
|
|
970
|
-
message.filenamePrefix = (_b = object.filenamePrefix) !== null && _b !== void 0 ? _b :
|
|
971
|
-
message.playlistName = (_c = object.playlistName) !== null && _c !== void 0 ? _c :
|
|
1210
|
+
message.filenamePrefix = (_b = object.filenamePrefix) !== null && _b !== void 0 ? _b : "";
|
|
1211
|
+
message.playlistName = (_c = object.playlistName) !== null && _c !== void 0 ? _c : "";
|
|
972
1212
|
message.segmentDuration = (_d = object.segmentDuration) !== null && _d !== void 0 ? _d : 0;
|
|
973
|
-
message.
|
|
974
|
-
message.
|
|
975
|
-
|
|
976
|
-
message.gcp =
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
message.
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
: undefined;
|
|
1213
|
+
message.filenameSuffix = (_e = object.filenameSuffix) !== null && _e !== void 0 ? _e : 0;
|
|
1214
|
+
message.disableManifest = (_f = object.disableManifest) !== null && _f !== void 0 ? _f : false;
|
|
1215
|
+
message.s3 = (object.s3 !== undefined && object.s3 !== null) ? exports.S3Upload.fromPartial(object.s3) : undefined;
|
|
1216
|
+
message.gcp = (object.gcp !== undefined && object.gcp !== null) ? exports.GCPUpload.fromPartial(object.gcp) : undefined;
|
|
1217
|
+
message.azure = (object.azure !== undefined && object.azure !== null)
|
|
1218
|
+
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
1219
|
+
: undefined;
|
|
1220
|
+
message.aliOSS = (object.aliOSS !== undefined && object.aliOSS !== null)
|
|
1221
|
+
? exports.AliOSSUpload.fromPartial(object.aliOSS)
|
|
1222
|
+
: undefined;
|
|
984
1223
|
return message;
|
|
985
1224
|
},
|
|
986
1225
|
};
|
|
987
1226
|
function createBaseDirectFileOutput() {
|
|
988
|
-
return { filepath:
|
|
1227
|
+
return { filepath: "", disableManifest: false, s3: undefined, gcp: undefined, azure: undefined, aliOSS: undefined };
|
|
989
1228
|
}
|
|
990
1229
|
exports.DirectFileOutput = {
|
|
991
|
-
encode(message, writer =
|
|
992
|
-
if (message.filepath !==
|
|
1230
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1231
|
+
if (message.filepath !== undefined && message.filepath !== "") {
|
|
993
1232
|
writer.uint32(10).string(message.filepath);
|
|
994
1233
|
}
|
|
995
1234
|
if (message.disableManifest === true) {
|
|
@@ -1004,10 +1243,13 @@ exports.DirectFileOutput = {
|
|
|
1004
1243
|
if (message.azure !== undefined) {
|
|
1005
1244
|
exports.AzureBlobUpload.encode(message.azure, writer.uint32(34).fork()).ldelim();
|
|
1006
1245
|
}
|
|
1246
|
+
if (message.aliOSS !== undefined) {
|
|
1247
|
+
exports.AliOSSUpload.encode(message.aliOSS, writer.uint32(50).fork()).ldelim();
|
|
1248
|
+
}
|
|
1007
1249
|
return writer;
|
|
1008
1250
|
},
|
|
1009
1251
|
decode(input, length) {
|
|
1010
|
-
const reader = input instanceof
|
|
1252
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1011
1253
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1012
1254
|
const message = createBaseDirectFileOutput();
|
|
1013
1255
|
while (reader.pos < end) {
|
|
@@ -1028,6 +1270,9 @@ exports.DirectFileOutput = {
|
|
|
1028
1270
|
case 4:
|
|
1029
1271
|
message.azure = exports.AzureBlobUpload.decode(reader, reader.uint32());
|
|
1030
1272
|
break;
|
|
1273
|
+
case 6:
|
|
1274
|
+
message.aliOSS = exports.AliOSSUpload.decode(reader, reader.uint32());
|
|
1275
|
+
break;
|
|
1031
1276
|
default:
|
|
1032
1277
|
reader.skipType(tag & 7);
|
|
1033
1278
|
break;
|
|
@@ -1037,11 +1282,12 @@ exports.DirectFileOutput = {
|
|
|
1037
1282
|
},
|
|
1038
1283
|
fromJSON(object) {
|
|
1039
1284
|
return {
|
|
1040
|
-
filepath: isSet(object.filepath) ? String(object.filepath) :
|
|
1285
|
+
filepath: isSet(object.filepath) ? String(object.filepath) : "",
|
|
1041
1286
|
disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
|
|
1042
1287
|
s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
|
|
1043
1288
|
gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
|
|
1044
1289
|
azure: isSet(object.azure) ? exports.AzureBlobUpload.fromJSON(object.azure) : undefined,
|
|
1290
|
+
aliOSS: isSet(object.aliOSS) ? exports.AliOSSUpload.fromJSON(object.aliOSS) : undefined,
|
|
1045
1291
|
};
|
|
1046
1292
|
},
|
|
1047
1293
|
toJSON(message) {
|
|
@@ -1049,54 +1295,69 @@ exports.DirectFileOutput = {
|
|
|
1049
1295
|
message.filepath !== undefined && (obj.filepath = message.filepath);
|
|
1050
1296
|
message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
|
|
1051
1297
|
message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
|
|
1052
|
-
message.gcp !== undefined &&
|
|
1053
|
-
|
|
1054
|
-
message.
|
|
1055
|
-
(obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
|
|
1298
|
+
message.gcp !== undefined && (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
|
|
1299
|
+
message.azure !== undefined && (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
|
|
1300
|
+
message.aliOSS !== undefined && (obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
|
|
1056
1301
|
return obj;
|
|
1057
1302
|
},
|
|
1058
1303
|
fromPartial(object) {
|
|
1059
1304
|
var _a, _b;
|
|
1060
1305
|
const message = createBaseDirectFileOutput();
|
|
1061
|
-
message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a :
|
|
1306
|
+
message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a : "";
|
|
1062
1307
|
message.disableManifest = (_b = object.disableManifest) !== null && _b !== void 0 ? _b : false;
|
|
1063
|
-
message.s3 =
|
|
1064
|
-
|
|
1065
|
-
message.
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
1072
|
-
: undefined;
|
|
1308
|
+
message.s3 = (object.s3 !== undefined && object.s3 !== null) ? exports.S3Upload.fromPartial(object.s3) : undefined;
|
|
1309
|
+
message.gcp = (object.gcp !== undefined && object.gcp !== null) ? exports.GCPUpload.fromPartial(object.gcp) : undefined;
|
|
1310
|
+
message.azure = (object.azure !== undefined && object.azure !== null)
|
|
1311
|
+
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
1312
|
+
: undefined;
|
|
1313
|
+
message.aliOSS = (object.aliOSS !== undefined && object.aliOSS !== null)
|
|
1314
|
+
? exports.AliOSSUpload.fromPartial(object.aliOSS)
|
|
1315
|
+
: undefined;
|
|
1073
1316
|
return message;
|
|
1074
1317
|
},
|
|
1075
1318
|
};
|
|
1076
1319
|
function createBaseS3Upload() {
|
|
1077
|
-
return {
|
|
1320
|
+
return {
|
|
1321
|
+
accessKey: "",
|
|
1322
|
+
secret: "",
|
|
1323
|
+
region: "",
|
|
1324
|
+
endpoint: "",
|
|
1325
|
+
bucket: "",
|
|
1326
|
+
forcePathStyle: false,
|
|
1327
|
+
metadata: {},
|
|
1328
|
+
tagging: "",
|
|
1329
|
+
};
|
|
1078
1330
|
}
|
|
1079
1331
|
exports.S3Upload = {
|
|
1080
|
-
encode(message, writer =
|
|
1081
|
-
if (message.accessKey !==
|
|
1332
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1333
|
+
if (message.accessKey !== undefined && message.accessKey !== "") {
|
|
1082
1334
|
writer.uint32(10).string(message.accessKey);
|
|
1083
1335
|
}
|
|
1084
|
-
if (message.secret !==
|
|
1336
|
+
if (message.secret !== undefined && message.secret !== "") {
|
|
1085
1337
|
writer.uint32(18).string(message.secret);
|
|
1086
1338
|
}
|
|
1087
|
-
if (message.region !==
|
|
1339
|
+
if (message.region !== undefined && message.region !== "") {
|
|
1088
1340
|
writer.uint32(26).string(message.region);
|
|
1089
1341
|
}
|
|
1090
|
-
if (message.endpoint !==
|
|
1342
|
+
if (message.endpoint !== undefined && message.endpoint !== "") {
|
|
1091
1343
|
writer.uint32(34).string(message.endpoint);
|
|
1092
1344
|
}
|
|
1093
|
-
if (message.bucket !==
|
|
1345
|
+
if (message.bucket !== undefined && message.bucket !== "") {
|
|
1094
1346
|
writer.uint32(42).string(message.bucket);
|
|
1095
1347
|
}
|
|
1348
|
+
if (message.forcePathStyle === true) {
|
|
1349
|
+
writer.uint32(48).bool(message.forcePathStyle);
|
|
1350
|
+
}
|
|
1351
|
+
Object.entries(message.metadata || {}).forEach(([key, value]) => {
|
|
1352
|
+
exports.S3Upload_MetadataEntry.encode({ key: key, value }, writer.uint32(58).fork()).ldelim();
|
|
1353
|
+
});
|
|
1354
|
+
if (message.tagging !== undefined && message.tagging !== "") {
|
|
1355
|
+
writer.uint32(66).string(message.tagging);
|
|
1356
|
+
}
|
|
1096
1357
|
return writer;
|
|
1097
1358
|
},
|
|
1098
1359
|
decode(input, length) {
|
|
1099
|
-
const reader = input instanceof
|
|
1360
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1100
1361
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1101
1362
|
const message = createBaseS3Upload();
|
|
1102
1363
|
while (reader.pos < end) {
|
|
@@ -1117,6 +1378,18 @@ exports.S3Upload = {
|
|
|
1117
1378
|
case 5:
|
|
1118
1379
|
message.bucket = reader.string();
|
|
1119
1380
|
break;
|
|
1381
|
+
case 6:
|
|
1382
|
+
message.forcePathStyle = reader.bool();
|
|
1383
|
+
break;
|
|
1384
|
+
case 7:
|
|
1385
|
+
const entry7 = exports.S3Upload_MetadataEntry.decode(reader, reader.uint32());
|
|
1386
|
+
if (entry7.value !== undefined) {
|
|
1387
|
+
message.metadata[entry7.key] = entry7.value;
|
|
1388
|
+
}
|
|
1389
|
+
break;
|
|
1390
|
+
case 8:
|
|
1391
|
+
message.tagging = reader.string();
|
|
1392
|
+
break;
|
|
1120
1393
|
default:
|
|
1121
1394
|
reader.skipType(tag & 7);
|
|
1122
1395
|
break;
|
|
@@ -1126,11 +1399,19 @@ exports.S3Upload = {
|
|
|
1126
1399
|
},
|
|
1127
1400
|
fromJSON(object) {
|
|
1128
1401
|
return {
|
|
1129
|
-
accessKey: isSet(object.accessKey) ? String(object.accessKey) :
|
|
1130
|
-
secret: isSet(object.secret) ? String(object.secret) :
|
|
1131
|
-
region: isSet(object.region) ? String(object.region) :
|
|
1132
|
-
endpoint: isSet(object.endpoint) ? String(object.endpoint) :
|
|
1133
|
-
bucket: isSet(object.bucket) ? String(object.bucket) :
|
|
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) : "",
|
|
1407
|
+
forcePathStyle: isSet(object.forcePathStyle) ? Boolean(object.forcePathStyle) : false,
|
|
1408
|
+
metadata: isObject(object.metadata)
|
|
1409
|
+
? Object.entries(object.metadata).reduce((acc, [key, value]) => {
|
|
1410
|
+
acc[key] = String(value);
|
|
1411
|
+
return acc;
|
|
1412
|
+
}, {})
|
|
1413
|
+
: {},
|
|
1414
|
+
tagging: isSet(object.tagging) ? String(object.tagging) : "",
|
|
1134
1415
|
};
|
|
1135
1416
|
},
|
|
1136
1417
|
toJSON(message) {
|
|
@@ -1140,41 +1421,107 @@ exports.S3Upload = {
|
|
|
1140
1421
|
message.region !== undefined && (obj.region = message.region);
|
|
1141
1422
|
message.endpoint !== undefined && (obj.endpoint = message.endpoint);
|
|
1142
1423
|
message.bucket !== undefined && (obj.bucket = message.bucket);
|
|
1424
|
+
message.forcePathStyle !== undefined && (obj.forcePathStyle = message.forcePathStyle);
|
|
1425
|
+
obj.metadata = {};
|
|
1426
|
+
if (message.metadata) {
|
|
1427
|
+
Object.entries(message.metadata).forEach(([k, v]) => {
|
|
1428
|
+
obj.metadata[k] = v;
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1431
|
+
message.tagging !== undefined && (obj.tagging = message.tagging);
|
|
1143
1432
|
return obj;
|
|
1144
1433
|
},
|
|
1145
1434
|
fromPartial(object) {
|
|
1146
|
-
var _a, _b, _c, _d, _e;
|
|
1435
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1147
1436
|
const message = createBaseS3Upload();
|
|
1148
|
-
message.accessKey = (_a = object.accessKey) !== null && _a !== void 0 ? _a :
|
|
1149
|
-
message.secret = (_b = object.secret) !== null && _b !== void 0 ? _b :
|
|
1150
|
-
message.region = (_c = object.region) !== null && _c !== void 0 ? _c :
|
|
1151
|
-
message.endpoint = (_d = object.endpoint) !== null && _d !== void 0 ? _d :
|
|
1152
|
-
message.bucket = (_e = object.bucket) !== null && _e !== void 0 ? _e :
|
|
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 : "";
|
|
1442
|
+
message.forcePathStyle = (_f = object.forcePathStyle) !== null && _f !== void 0 ? _f : false;
|
|
1443
|
+
message.metadata = Object.entries((_g = object.metadata) !== null && _g !== void 0 ? _g : {}).reduce((acc, [key, value]) => {
|
|
1444
|
+
if (value !== undefined) {
|
|
1445
|
+
acc[key] = String(value);
|
|
1446
|
+
}
|
|
1447
|
+
return acc;
|
|
1448
|
+
}, {});
|
|
1449
|
+
message.tagging = (_h = object.tagging) !== null && _h !== void 0 ? _h : "";
|
|
1450
|
+
return message;
|
|
1451
|
+
},
|
|
1452
|
+
};
|
|
1453
|
+
function createBaseS3Upload_MetadataEntry() {
|
|
1454
|
+
return { key: "", value: "" };
|
|
1455
|
+
}
|
|
1456
|
+
exports.S3Upload_MetadataEntry = {
|
|
1457
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1458
|
+
if (message.key !== "") {
|
|
1459
|
+
writer.uint32(10).string(message.key);
|
|
1460
|
+
}
|
|
1461
|
+
if (message.value !== "") {
|
|
1462
|
+
writer.uint32(18).string(message.value);
|
|
1463
|
+
}
|
|
1464
|
+
return writer;
|
|
1465
|
+
},
|
|
1466
|
+
decode(input, length) {
|
|
1467
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1468
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1469
|
+
const message = createBaseS3Upload_MetadataEntry();
|
|
1470
|
+
while (reader.pos < end) {
|
|
1471
|
+
const tag = reader.uint32();
|
|
1472
|
+
switch (tag >>> 3) {
|
|
1473
|
+
case 1:
|
|
1474
|
+
message.key = reader.string();
|
|
1475
|
+
break;
|
|
1476
|
+
case 2:
|
|
1477
|
+
message.value = reader.string();
|
|
1478
|
+
break;
|
|
1479
|
+
default:
|
|
1480
|
+
reader.skipType(tag & 7);
|
|
1481
|
+
break;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
return message;
|
|
1485
|
+
},
|
|
1486
|
+
fromJSON(object) {
|
|
1487
|
+
return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
|
|
1488
|
+
},
|
|
1489
|
+
toJSON(message) {
|
|
1490
|
+
const obj = {};
|
|
1491
|
+
message.key !== undefined && (obj.key = message.key);
|
|
1492
|
+
message.value !== undefined && (obj.value = message.value);
|
|
1493
|
+
return obj;
|
|
1494
|
+
},
|
|
1495
|
+
fromPartial(object) {
|
|
1496
|
+
var _a, _b;
|
|
1497
|
+
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 : "";
|
|
1153
1500
|
return message;
|
|
1154
1501
|
},
|
|
1155
1502
|
};
|
|
1156
1503
|
function createBaseGCPUpload() {
|
|
1157
|
-
return { credentials:
|
|
1504
|
+
return { credentials: "", bucket: "" };
|
|
1158
1505
|
}
|
|
1159
1506
|
exports.GCPUpload = {
|
|
1160
|
-
encode(message, writer =
|
|
1161
|
-
if (message.credentials.
|
|
1162
|
-
writer.uint32(10).
|
|
1507
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1508
|
+
if (message.credentials !== undefined && message.credentials !== "") {
|
|
1509
|
+
writer.uint32(10).string(message.credentials);
|
|
1163
1510
|
}
|
|
1164
|
-
if (message.bucket !==
|
|
1511
|
+
if (message.bucket !== undefined && message.bucket !== "") {
|
|
1165
1512
|
writer.uint32(18).string(message.bucket);
|
|
1166
1513
|
}
|
|
1167
1514
|
return writer;
|
|
1168
1515
|
},
|
|
1169
1516
|
decode(input, length) {
|
|
1170
|
-
const reader = input instanceof
|
|
1517
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1171
1518
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1172
1519
|
const message = createBaseGCPUpload();
|
|
1173
1520
|
while (reader.pos < end) {
|
|
1174
1521
|
const tag = reader.uint32();
|
|
1175
1522
|
switch (tag >>> 3) {
|
|
1176
1523
|
case 1:
|
|
1177
|
-
message.credentials = reader.
|
|
1524
|
+
message.credentials = reader.string();
|
|
1178
1525
|
break;
|
|
1179
1526
|
case 2:
|
|
1180
1527
|
message.bucket = reader.string();
|
|
@@ -1188,45 +1535,42 @@ exports.GCPUpload = {
|
|
|
1188
1535
|
},
|
|
1189
1536
|
fromJSON(object) {
|
|
1190
1537
|
return {
|
|
1191
|
-
credentials: isSet(object.credentials)
|
|
1192
|
-
|
|
1193
|
-
: new Uint8Array(),
|
|
1194
|
-
bucket: isSet(object.bucket) ? String(object.bucket) : '',
|
|
1538
|
+
credentials: isSet(object.credentials) ? String(object.credentials) : "",
|
|
1539
|
+
bucket: isSet(object.bucket) ? String(object.bucket) : "",
|
|
1195
1540
|
};
|
|
1196
1541
|
},
|
|
1197
1542
|
toJSON(message) {
|
|
1198
1543
|
const obj = {};
|
|
1199
|
-
message.credentials !== undefined &&
|
|
1200
|
-
(obj.credentials = base64FromBytes(message.credentials !== undefined ? message.credentials : new Uint8Array()));
|
|
1544
|
+
message.credentials !== undefined && (obj.credentials = message.credentials);
|
|
1201
1545
|
message.bucket !== undefined && (obj.bucket = message.bucket);
|
|
1202
1546
|
return obj;
|
|
1203
1547
|
},
|
|
1204
1548
|
fromPartial(object) {
|
|
1205
1549
|
var _a, _b;
|
|
1206
1550
|
const message = createBaseGCPUpload();
|
|
1207
|
-
message.credentials = (_a = object.credentials) !== null && _a !== void 0 ? _a :
|
|
1208
|
-
message.bucket = (_b = object.bucket) !== null && _b !== void 0 ? _b :
|
|
1551
|
+
message.credentials = (_a = object.credentials) !== null && _a !== void 0 ? _a : "";
|
|
1552
|
+
message.bucket = (_b = object.bucket) !== null && _b !== void 0 ? _b : "";
|
|
1209
1553
|
return message;
|
|
1210
1554
|
},
|
|
1211
1555
|
};
|
|
1212
1556
|
function createBaseAzureBlobUpload() {
|
|
1213
|
-
return { accountName:
|
|
1557
|
+
return { accountName: "", accountKey: "", containerName: "" };
|
|
1214
1558
|
}
|
|
1215
1559
|
exports.AzureBlobUpload = {
|
|
1216
|
-
encode(message, writer =
|
|
1217
|
-
if (message.accountName !==
|
|
1560
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1561
|
+
if (message.accountName !== undefined && message.accountName !== "") {
|
|
1218
1562
|
writer.uint32(10).string(message.accountName);
|
|
1219
1563
|
}
|
|
1220
|
-
if (message.accountKey !==
|
|
1564
|
+
if (message.accountKey !== undefined && message.accountKey !== "") {
|
|
1221
1565
|
writer.uint32(18).string(message.accountKey);
|
|
1222
1566
|
}
|
|
1223
|
-
if (message.containerName !==
|
|
1567
|
+
if (message.containerName !== undefined && message.containerName !== "") {
|
|
1224
1568
|
writer.uint32(26).string(message.containerName);
|
|
1225
1569
|
}
|
|
1226
1570
|
return writer;
|
|
1227
1571
|
},
|
|
1228
1572
|
decode(input, length) {
|
|
1229
|
-
const reader = input instanceof
|
|
1573
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1230
1574
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1231
1575
|
const message = createBaseAzureBlobUpload();
|
|
1232
1576
|
while (reader.pos < end) {
|
|
@@ -1250,9 +1594,9 @@ exports.AzureBlobUpload = {
|
|
|
1250
1594
|
},
|
|
1251
1595
|
fromJSON(object) {
|
|
1252
1596
|
return {
|
|
1253
|
-
accountName: isSet(object.accountName) ? String(object.accountName) :
|
|
1254
|
-
accountKey: isSet(object.accountKey) ? String(object.accountKey) :
|
|
1255
|
-
containerName: isSet(object.containerName) ? String(object.containerName) :
|
|
1597
|
+
accountName: isSet(object.accountName) ? String(object.accountName) : "",
|
|
1598
|
+
accountKey: isSet(object.accountKey) ? String(object.accountKey) : "",
|
|
1599
|
+
containerName: isSet(object.containerName) ? String(object.containerName) : "",
|
|
1256
1600
|
};
|
|
1257
1601
|
},
|
|
1258
1602
|
toJSON(message) {
|
|
@@ -1265,9 +1609,89 @@ exports.AzureBlobUpload = {
|
|
|
1265
1609
|
fromPartial(object) {
|
|
1266
1610
|
var _a, _b, _c;
|
|
1267
1611
|
const message = createBaseAzureBlobUpload();
|
|
1268
|
-
message.accountName = (_a = object.accountName) !== null && _a !== void 0 ? _a :
|
|
1269
|
-
message.accountKey = (_b = object.accountKey) !== null && _b !== void 0 ? _b :
|
|
1270
|
-
message.containerName = (_c = object.containerName) !== null && _c !== void 0 ? _c :
|
|
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 : "";
|
|
1615
|
+
return message;
|
|
1616
|
+
},
|
|
1617
|
+
};
|
|
1618
|
+
function createBaseAliOSSUpload() {
|
|
1619
|
+
return { accessKey: "", secret: "", region: "", endpoint: "", bucket: "" };
|
|
1620
|
+
}
|
|
1621
|
+
exports.AliOSSUpload = {
|
|
1622
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1623
|
+
if (message.accessKey !== undefined && message.accessKey !== "") {
|
|
1624
|
+
writer.uint32(10).string(message.accessKey);
|
|
1625
|
+
}
|
|
1626
|
+
if (message.secret !== undefined && message.secret !== "") {
|
|
1627
|
+
writer.uint32(18).string(message.secret);
|
|
1628
|
+
}
|
|
1629
|
+
if (message.region !== undefined && message.region !== "") {
|
|
1630
|
+
writer.uint32(26).string(message.region);
|
|
1631
|
+
}
|
|
1632
|
+
if (message.endpoint !== undefined && message.endpoint !== "") {
|
|
1633
|
+
writer.uint32(34).string(message.endpoint);
|
|
1634
|
+
}
|
|
1635
|
+
if (message.bucket !== undefined && message.bucket !== "") {
|
|
1636
|
+
writer.uint32(42).string(message.bucket);
|
|
1637
|
+
}
|
|
1638
|
+
return writer;
|
|
1639
|
+
},
|
|
1640
|
+
decode(input, length) {
|
|
1641
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1642
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1643
|
+
const message = createBaseAliOSSUpload();
|
|
1644
|
+
while (reader.pos < end) {
|
|
1645
|
+
const tag = reader.uint32();
|
|
1646
|
+
switch (tag >>> 3) {
|
|
1647
|
+
case 1:
|
|
1648
|
+
message.accessKey = reader.string();
|
|
1649
|
+
break;
|
|
1650
|
+
case 2:
|
|
1651
|
+
message.secret = reader.string();
|
|
1652
|
+
break;
|
|
1653
|
+
case 3:
|
|
1654
|
+
message.region = reader.string();
|
|
1655
|
+
break;
|
|
1656
|
+
case 4:
|
|
1657
|
+
message.endpoint = reader.string();
|
|
1658
|
+
break;
|
|
1659
|
+
case 5:
|
|
1660
|
+
message.bucket = reader.string();
|
|
1661
|
+
break;
|
|
1662
|
+
default:
|
|
1663
|
+
reader.skipType(tag & 7);
|
|
1664
|
+
break;
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
return message;
|
|
1668
|
+
},
|
|
1669
|
+
fromJSON(object) {
|
|
1670
|
+
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) : "",
|
|
1676
|
+
};
|
|
1677
|
+
},
|
|
1678
|
+
toJSON(message) {
|
|
1679
|
+
const obj = {};
|
|
1680
|
+
message.accessKey !== undefined && (obj.accessKey = message.accessKey);
|
|
1681
|
+
message.secret !== undefined && (obj.secret = message.secret);
|
|
1682
|
+
message.region !== undefined && (obj.region = message.region);
|
|
1683
|
+
message.endpoint !== undefined && (obj.endpoint = message.endpoint);
|
|
1684
|
+
message.bucket !== undefined && (obj.bucket = message.bucket);
|
|
1685
|
+
return obj;
|
|
1686
|
+
},
|
|
1687
|
+
fromPartial(object) {
|
|
1688
|
+
var _a, _b, _c, _d, _e;
|
|
1689
|
+
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 : "";
|
|
1271
1695
|
return message;
|
|
1272
1696
|
},
|
|
1273
1697
|
};
|
|
@@ -1275,17 +1699,19 @@ function createBaseStreamOutput() {
|
|
|
1275
1699
|
return { protocol: 0, urls: [] };
|
|
1276
1700
|
}
|
|
1277
1701
|
exports.StreamOutput = {
|
|
1278
|
-
encode(message, writer =
|
|
1279
|
-
if (message.protocol !== 0) {
|
|
1702
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1703
|
+
if (message.protocol !== undefined && message.protocol !== 0) {
|
|
1280
1704
|
writer.uint32(8).int32(message.protocol);
|
|
1281
1705
|
}
|
|
1282
|
-
|
|
1283
|
-
|
|
1706
|
+
if (message.urls !== undefined && message.urls.length !== 0) {
|
|
1707
|
+
for (const v of message.urls) {
|
|
1708
|
+
writer.uint32(18).string(v);
|
|
1709
|
+
}
|
|
1284
1710
|
}
|
|
1285
1711
|
return writer;
|
|
1286
1712
|
},
|
|
1287
1713
|
decode(input, length) {
|
|
1288
|
-
const reader = input instanceof
|
|
1714
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1289
1715
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1290
1716
|
const message = createBaseStreamOutput();
|
|
1291
1717
|
while (reader.pos < end) {
|
|
@@ -1340,41 +1766,45 @@ function createBaseEncodingOptions() {
|
|
|
1340
1766
|
audioFrequency: 0,
|
|
1341
1767
|
videoCodec: 0,
|
|
1342
1768
|
videoBitrate: 0,
|
|
1769
|
+
keyFrameInterval: 0,
|
|
1343
1770
|
};
|
|
1344
1771
|
}
|
|
1345
1772
|
exports.EncodingOptions = {
|
|
1346
|
-
encode(message, writer =
|
|
1347
|
-
if (message.width !== 0) {
|
|
1773
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1774
|
+
if (message.width !== undefined && message.width !== 0) {
|
|
1348
1775
|
writer.uint32(8).int32(message.width);
|
|
1349
1776
|
}
|
|
1350
|
-
if (message.height !== 0) {
|
|
1777
|
+
if (message.height !== undefined && message.height !== 0) {
|
|
1351
1778
|
writer.uint32(16).int32(message.height);
|
|
1352
1779
|
}
|
|
1353
|
-
if (message.depth !== 0) {
|
|
1780
|
+
if (message.depth !== undefined && message.depth !== 0) {
|
|
1354
1781
|
writer.uint32(24).int32(message.depth);
|
|
1355
1782
|
}
|
|
1356
|
-
if (message.framerate !== 0) {
|
|
1783
|
+
if (message.framerate !== undefined && message.framerate !== 0) {
|
|
1357
1784
|
writer.uint32(32).int32(message.framerate);
|
|
1358
1785
|
}
|
|
1359
|
-
if (message.audioCodec !== 0) {
|
|
1786
|
+
if (message.audioCodec !== undefined && message.audioCodec !== 0) {
|
|
1360
1787
|
writer.uint32(40).int32(message.audioCodec);
|
|
1361
1788
|
}
|
|
1362
|
-
if (message.audioBitrate !== 0) {
|
|
1789
|
+
if (message.audioBitrate !== undefined && message.audioBitrate !== 0) {
|
|
1363
1790
|
writer.uint32(48).int32(message.audioBitrate);
|
|
1364
1791
|
}
|
|
1365
|
-
if (message.audioFrequency !== 0) {
|
|
1792
|
+
if (message.audioFrequency !== undefined && message.audioFrequency !== 0) {
|
|
1366
1793
|
writer.uint32(56).int32(message.audioFrequency);
|
|
1367
1794
|
}
|
|
1368
|
-
if (message.videoCodec !== 0) {
|
|
1795
|
+
if (message.videoCodec !== undefined && message.videoCodec !== 0) {
|
|
1369
1796
|
writer.uint32(64).int32(message.videoCodec);
|
|
1370
1797
|
}
|
|
1371
|
-
if (message.videoBitrate !== 0) {
|
|
1798
|
+
if (message.videoBitrate !== undefined && message.videoBitrate !== 0) {
|
|
1372
1799
|
writer.uint32(72).int32(message.videoBitrate);
|
|
1373
1800
|
}
|
|
1801
|
+
if (message.keyFrameInterval !== undefined && message.keyFrameInterval !== 0) {
|
|
1802
|
+
writer.uint32(81).double(message.keyFrameInterval);
|
|
1803
|
+
}
|
|
1374
1804
|
return writer;
|
|
1375
1805
|
},
|
|
1376
1806
|
decode(input, length) {
|
|
1377
|
-
const reader = input instanceof
|
|
1807
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1378
1808
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1379
1809
|
const message = createBaseEncodingOptions();
|
|
1380
1810
|
while (reader.pos < end) {
|
|
@@ -1407,6 +1837,9 @@ exports.EncodingOptions = {
|
|
|
1407
1837
|
case 9:
|
|
1408
1838
|
message.videoBitrate = reader.int32();
|
|
1409
1839
|
break;
|
|
1840
|
+
case 10:
|
|
1841
|
+
message.keyFrameInterval = reader.double();
|
|
1842
|
+
break;
|
|
1410
1843
|
default:
|
|
1411
1844
|
reader.skipType(tag & 7);
|
|
1412
1845
|
break;
|
|
@@ -1420,11 +1853,12 @@ exports.EncodingOptions = {
|
|
|
1420
1853
|
height: isSet(object.height) ? Number(object.height) : 0,
|
|
1421
1854
|
depth: isSet(object.depth) ? Number(object.depth) : 0,
|
|
1422
1855
|
framerate: isSet(object.framerate) ? Number(object.framerate) : 0,
|
|
1423
|
-
audioCodec: isSet(object.audioCodec) ? audioCodecFromJSON(object.audioCodec) : 0,
|
|
1856
|
+
audioCodec: isSet(object.audioCodec) ? livekit_models_1.audioCodecFromJSON(object.audioCodec) : 0,
|
|
1424
1857
|
audioBitrate: isSet(object.audioBitrate) ? Number(object.audioBitrate) : 0,
|
|
1425
1858
|
audioFrequency: isSet(object.audioFrequency) ? Number(object.audioFrequency) : 0,
|
|
1426
|
-
videoCodec: isSet(object.videoCodec) ? videoCodecFromJSON(object.videoCodec) : 0,
|
|
1859
|
+
videoCodec: isSet(object.videoCodec) ? livekit_models_1.videoCodecFromJSON(object.videoCodec) : 0,
|
|
1427
1860
|
videoBitrate: isSet(object.videoBitrate) ? Number(object.videoBitrate) : 0,
|
|
1861
|
+
keyFrameInterval: isSet(object.keyFrameInterval) ? Number(object.keyFrameInterval) : 0,
|
|
1428
1862
|
};
|
|
1429
1863
|
},
|
|
1430
1864
|
toJSON(message) {
|
|
@@ -1433,16 +1867,16 @@ exports.EncodingOptions = {
|
|
|
1433
1867
|
message.height !== undefined && (obj.height = Math.round(message.height));
|
|
1434
1868
|
message.depth !== undefined && (obj.depth = Math.round(message.depth));
|
|
1435
1869
|
message.framerate !== undefined && (obj.framerate = Math.round(message.framerate));
|
|
1436
|
-
message.audioCodec !== undefined && (obj.audioCodec = audioCodecToJSON(message.audioCodec));
|
|
1870
|
+
message.audioCodec !== undefined && (obj.audioCodec = livekit_models_1.audioCodecToJSON(message.audioCodec));
|
|
1437
1871
|
message.audioBitrate !== undefined && (obj.audioBitrate = Math.round(message.audioBitrate));
|
|
1438
|
-
message.audioFrequency !== undefined &&
|
|
1439
|
-
|
|
1440
|
-
message.videoCodec !== undefined && (obj.videoCodec = videoCodecToJSON(message.videoCodec));
|
|
1872
|
+
message.audioFrequency !== undefined && (obj.audioFrequency = Math.round(message.audioFrequency));
|
|
1873
|
+
message.videoCodec !== undefined && (obj.videoCodec = livekit_models_1.videoCodecToJSON(message.videoCodec));
|
|
1441
1874
|
message.videoBitrate !== undefined && (obj.videoBitrate = Math.round(message.videoBitrate));
|
|
1875
|
+
message.keyFrameInterval !== undefined && (obj.keyFrameInterval = message.keyFrameInterval);
|
|
1442
1876
|
return obj;
|
|
1443
1877
|
},
|
|
1444
1878
|
fromPartial(object) {
|
|
1445
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
1879
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1446
1880
|
const message = createBaseEncodingOptions();
|
|
1447
1881
|
message.width = (_a = object.width) !== null && _a !== void 0 ? _a : 0;
|
|
1448
1882
|
message.height = (_b = object.height) !== null && _b !== void 0 ? _b : 0;
|
|
@@ -1453,24 +1887,25 @@ exports.EncodingOptions = {
|
|
|
1453
1887
|
message.audioFrequency = (_g = object.audioFrequency) !== null && _g !== void 0 ? _g : 0;
|
|
1454
1888
|
message.videoCodec = (_h = object.videoCodec) !== null && _h !== void 0 ? _h : 0;
|
|
1455
1889
|
message.videoBitrate = (_j = object.videoBitrate) !== null && _j !== void 0 ? _j : 0;
|
|
1890
|
+
message.keyFrameInterval = (_k = object.keyFrameInterval) !== null && _k !== void 0 ? _k : 0;
|
|
1456
1891
|
return message;
|
|
1457
1892
|
},
|
|
1458
1893
|
};
|
|
1459
1894
|
function createBaseUpdateLayoutRequest() {
|
|
1460
|
-
return { egressId:
|
|
1895
|
+
return { egressId: "", layout: "" };
|
|
1461
1896
|
}
|
|
1462
1897
|
exports.UpdateLayoutRequest = {
|
|
1463
|
-
encode(message, writer =
|
|
1464
|
-
if (message.egressId !==
|
|
1898
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1899
|
+
if (message.egressId !== undefined && message.egressId !== "") {
|
|
1465
1900
|
writer.uint32(10).string(message.egressId);
|
|
1466
1901
|
}
|
|
1467
|
-
if (message.layout !==
|
|
1902
|
+
if (message.layout !== undefined && message.layout !== "") {
|
|
1468
1903
|
writer.uint32(18).string(message.layout);
|
|
1469
1904
|
}
|
|
1470
1905
|
return writer;
|
|
1471
1906
|
},
|
|
1472
1907
|
decode(input, length) {
|
|
1473
|
-
const reader = input instanceof
|
|
1908
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1474
1909
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1475
1910
|
const message = createBaseUpdateLayoutRequest();
|
|
1476
1911
|
while (reader.pos < end) {
|
|
@@ -1491,8 +1926,8 @@ exports.UpdateLayoutRequest = {
|
|
|
1491
1926
|
},
|
|
1492
1927
|
fromJSON(object) {
|
|
1493
1928
|
return {
|
|
1494
|
-
egressId: isSet(object.egressId) ? String(object.egressId) :
|
|
1495
|
-
layout: isSet(object.layout) ? String(object.layout) :
|
|
1929
|
+
egressId: isSet(object.egressId) ? String(object.egressId) : "",
|
|
1930
|
+
layout: isSet(object.layout) ? String(object.layout) : "",
|
|
1496
1931
|
};
|
|
1497
1932
|
},
|
|
1498
1933
|
toJSON(message) {
|
|
@@ -1504,29 +1939,33 @@ exports.UpdateLayoutRequest = {
|
|
|
1504
1939
|
fromPartial(object) {
|
|
1505
1940
|
var _a, _b;
|
|
1506
1941
|
const message = createBaseUpdateLayoutRequest();
|
|
1507
|
-
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a :
|
|
1508
|
-
message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b :
|
|
1942
|
+
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : "";
|
|
1943
|
+
message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b : "";
|
|
1509
1944
|
return message;
|
|
1510
1945
|
},
|
|
1511
1946
|
};
|
|
1512
1947
|
function createBaseUpdateStreamRequest() {
|
|
1513
|
-
return { egressId:
|
|
1948
|
+
return { egressId: "", addOutputUrls: [], removeOutputUrls: [] };
|
|
1514
1949
|
}
|
|
1515
1950
|
exports.UpdateStreamRequest = {
|
|
1516
|
-
encode(message, writer =
|
|
1517
|
-
if (message.egressId !==
|
|
1951
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1952
|
+
if (message.egressId !== undefined && message.egressId !== "") {
|
|
1518
1953
|
writer.uint32(10).string(message.egressId);
|
|
1519
1954
|
}
|
|
1520
|
-
|
|
1521
|
-
|
|
1955
|
+
if (message.addOutputUrls !== undefined && message.addOutputUrls.length !== 0) {
|
|
1956
|
+
for (const v of message.addOutputUrls) {
|
|
1957
|
+
writer.uint32(18).string(v);
|
|
1958
|
+
}
|
|
1522
1959
|
}
|
|
1523
|
-
|
|
1524
|
-
|
|
1960
|
+
if (message.removeOutputUrls !== undefined && message.removeOutputUrls.length !== 0) {
|
|
1961
|
+
for (const v of message.removeOutputUrls) {
|
|
1962
|
+
writer.uint32(26).string(v);
|
|
1963
|
+
}
|
|
1525
1964
|
}
|
|
1526
1965
|
return writer;
|
|
1527
1966
|
},
|
|
1528
1967
|
decode(input, length) {
|
|
1529
|
-
const reader = input instanceof
|
|
1968
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1530
1969
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1531
1970
|
const message = createBaseUpdateStreamRequest();
|
|
1532
1971
|
while (reader.pos < end) {
|
|
@@ -1550,10 +1989,8 @@ exports.UpdateStreamRequest = {
|
|
|
1550
1989
|
},
|
|
1551
1990
|
fromJSON(object) {
|
|
1552
1991
|
return {
|
|
1553
|
-
egressId: isSet(object.egressId) ? String(object.egressId) :
|
|
1554
|
-
addOutputUrls: Array.isArray(object === null || object === void 0 ? void 0 : object.addOutputUrls)
|
|
1555
|
-
? object.addOutputUrls.map((e) => String(e))
|
|
1556
|
-
: [],
|
|
1992
|
+
egressId: isSet(object.egressId) ? String(object.egressId) : "",
|
|
1993
|
+
addOutputUrls: Array.isArray(object === null || object === void 0 ? void 0 : object.addOutputUrls) ? object.addOutputUrls.map((e) => String(e)) : [],
|
|
1557
1994
|
removeOutputUrls: Array.isArray(object === null || object === void 0 ? void 0 : object.removeOutputUrls)
|
|
1558
1995
|
? object.removeOutputUrls.map((e) => String(e))
|
|
1559
1996
|
: [],
|
|
@@ -1579,24 +2016,30 @@ exports.UpdateStreamRequest = {
|
|
|
1579
2016
|
fromPartial(object) {
|
|
1580
2017
|
var _a, _b, _c;
|
|
1581
2018
|
const message = createBaseUpdateStreamRequest();
|
|
1582
|
-
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a :
|
|
2019
|
+
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : "";
|
|
1583
2020
|
message.addOutputUrls = ((_b = object.addOutputUrls) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
1584
2021
|
message.removeOutputUrls = ((_c = object.removeOutputUrls) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
1585
2022
|
return message;
|
|
1586
2023
|
},
|
|
1587
2024
|
};
|
|
1588
2025
|
function createBaseListEgressRequest() {
|
|
1589
|
-
return { roomName:
|
|
2026
|
+
return { roomName: "", egressId: "", active: false };
|
|
1590
2027
|
}
|
|
1591
2028
|
exports.ListEgressRequest = {
|
|
1592
|
-
encode(message, writer =
|
|
1593
|
-
if (message.roomName !==
|
|
2029
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2030
|
+
if (message.roomName !== undefined && message.roomName !== "") {
|
|
1594
2031
|
writer.uint32(10).string(message.roomName);
|
|
1595
2032
|
}
|
|
2033
|
+
if (message.egressId !== undefined && message.egressId !== "") {
|
|
2034
|
+
writer.uint32(18).string(message.egressId);
|
|
2035
|
+
}
|
|
2036
|
+
if (message.active === true) {
|
|
2037
|
+
writer.uint32(24).bool(message.active);
|
|
2038
|
+
}
|
|
1596
2039
|
return writer;
|
|
1597
2040
|
},
|
|
1598
2041
|
decode(input, length) {
|
|
1599
|
-
const reader = input instanceof
|
|
2042
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1600
2043
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1601
2044
|
const message = createBaseListEgressRequest();
|
|
1602
2045
|
while (reader.pos < end) {
|
|
@@ -1605,6 +2048,12 @@ exports.ListEgressRequest = {
|
|
|
1605
2048
|
case 1:
|
|
1606
2049
|
message.roomName = reader.string();
|
|
1607
2050
|
break;
|
|
2051
|
+
case 2:
|
|
2052
|
+
message.egressId = reader.string();
|
|
2053
|
+
break;
|
|
2054
|
+
case 3:
|
|
2055
|
+
message.active = reader.bool();
|
|
2056
|
+
break;
|
|
1608
2057
|
default:
|
|
1609
2058
|
reader.skipType(tag & 7);
|
|
1610
2059
|
break;
|
|
@@ -1614,18 +2063,24 @@ exports.ListEgressRequest = {
|
|
|
1614
2063
|
},
|
|
1615
2064
|
fromJSON(object) {
|
|
1616
2065
|
return {
|
|
1617
|
-
roomName: isSet(object.roomName) ? String(object.roomName) :
|
|
2066
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : "",
|
|
2067
|
+
egressId: isSet(object.egressId) ? String(object.egressId) : "",
|
|
2068
|
+
active: isSet(object.active) ? Boolean(object.active) : false,
|
|
1618
2069
|
};
|
|
1619
2070
|
},
|
|
1620
2071
|
toJSON(message) {
|
|
1621
2072
|
const obj = {};
|
|
1622
2073
|
message.roomName !== undefined && (obj.roomName = message.roomName);
|
|
2074
|
+
message.egressId !== undefined && (obj.egressId = message.egressId);
|
|
2075
|
+
message.active !== undefined && (obj.active = message.active);
|
|
1623
2076
|
return obj;
|
|
1624
2077
|
},
|
|
1625
2078
|
fromPartial(object) {
|
|
1626
|
-
var _a;
|
|
2079
|
+
var _a, _b, _c;
|
|
1627
2080
|
const message = createBaseListEgressRequest();
|
|
1628
|
-
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a :
|
|
2081
|
+
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : "";
|
|
2082
|
+
message.egressId = (_b = object.egressId) !== null && _b !== void 0 ? _b : "";
|
|
2083
|
+
message.active = (_c = object.active) !== null && _c !== void 0 ? _c : false;
|
|
1629
2084
|
return message;
|
|
1630
2085
|
},
|
|
1631
2086
|
};
|
|
@@ -1633,14 +2088,16 @@ function createBaseListEgressResponse() {
|
|
|
1633
2088
|
return { items: [] };
|
|
1634
2089
|
}
|
|
1635
2090
|
exports.ListEgressResponse = {
|
|
1636
|
-
encode(message, writer =
|
|
1637
|
-
|
|
1638
|
-
|
|
2091
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2092
|
+
if (message.items !== undefined && message.items.length !== 0) {
|
|
2093
|
+
for (const v of message.items) {
|
|
2094
|
+
exports.EgressInfo.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2095
|
+
}
|
|
1639
2096
|
}
|
|
1640
2097
|
return writer;
|
|
1641
2098
|
},
|
|
1642
2099
|
decode(input, length) {
|
|
1643
|
-
const reader = input instanceof
|
|
2100
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1644
2101
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1645
2102
|
const message = createBaseListEgressResponse();
|
|
1646
2103
|
while (reader.pos < end) {
|
|
@@ -1657,16 +2114,12 @@ exports.ListEgressResponse = {
|
|
|
1657
2114
|
return message;
|
|
1658
2115
|
},
|
|
1659
2116
|
fromJSON(object) {
|
|
1660
|
-
return {
|
|
1661
|
-
items: Array.isArray(object === null || object === void 0 ? void 0 : object.items)
|
|
1662
|
-
? object.items.map((e) => exports.EgressInfo.fromJSON(e))
|
|
1663
|
-
: [],
|
|
1664
|
-
};
|
|
2117
|
+
return { items: Array.isArray(object === null || object === void 0 ? void 0 : object.items) ? object.items.map((e) => exports.EgressInfo.fromJSON(e)) : [] };
|
|
1665
2118
|
},
|
|
1666
2119
|
toJSON(message) {
|
|
1667
2120
|
const obj = {};
|
|
1668
2121
|
if (message.items) {
|
|
1669
|
-
obj.items = message.items.map((e) =>
|
|
2122
|
+
obj.items = message.items.map((e) => e ? exports.EgressInfo.toJSON(e) : undefined);
|
|
1670
2123
|
}
|
|
1671
2124
|
else {
|
|
1672
2125
|
obj.items = [];
|
|
@@ -1681,17 +2134,17 @@ exports.ListEgressResponse = {
|
|
|
1681
2134
|
},
|
|
1682
2135
|
};
|
|
1683
2136
|
function createBaseStopEgressRequest() {
|
|
1684
|
-
return { egressId:
|
|
2137
|
+
return { egressId: "" };
|
|
1685
2138
|
}
|
|
1686
2139
|
exports.StopEgressRequest = {
|
|
1687
|
-
encode(message, writer =
|
|
1688
|
-
if (message.egressId !==
|
|
2140
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2141
|
+
if (message.egressId !== undefined && message.egressId !== "") {
|
|
1689
2142
|
writer.uint32(10).string(message.egressId);
|
|
1690
2143
|
}
|
|
1691
2144
|
return writer;
|
|
1692
2145
|
},
|
|
1693
2146
|
decode(input, length) {
|
|
1694
|
-
const reader = input instanceof
|
|
2147
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1695
2148
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1696
2149
|
const message = createBaseStopEgressRequest();
|
|
1697
2150
|
while (reader.pos < end) {
|
|
@@ -1708,9 +2161,7 @@ exports.StopEgressRequest = {
|
|
|
1708
2161
|
return message;
|
|
1709
2162
|
},
|
|
1710
2163
|
fromJSON(object) {
|
|
1711
|
-
return {
|
|
1712
|
-
egressId: isSet(object.egressId) ? String(object.egressId) : '',
|
|
1713
|
-
};
|
|
2164
|
+
return { egressId: isSet(object.egressId) ? String(object.egressId) : "" };
|
|
1714
2165
|
},
|
|
1715
2166
|
toJSON(message) {
|
|
1716
2167
|
const obj = {};
|
|
@@ -1720,48 +2171,52 @@ exports.StopEgressRequest = {
|
|
|
1720
2171
|
fromPartial(object) {
|
|
1721
2172
|
var _a;
|
|
1722
2173
|
const message = createBaseStopEgressRequest();
|
|
1723
|
-
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a :
|
|
2174
|
+
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : "";
|
|
1724
2175
|
return message;
|
|
1725
2176
|
},
|
|
1726
2177
|
};
|
|
1727
2178
|
function createBaseEgressInfo() {
|
|
1728
2179
|
return {
|
|
1729
|
-
egressId:
|
|
1730
|
-
roomId:
|
|
1731
|
-
roomName:
|
|
2180
|
+
egressId: "",
|
|
2181
|
+
roomId: "",
|
|
2182
|
+
roomName: "",
|
|
1732
2183
|
status: 0,
|
|
1733
2184
|
startedAt: 0,
|
|
1734
2185
|
endedAt: 0,
|
|
1735
|
-
error:
|
|
2186
|
+
error: "",
|
|
1736
2187
|
roomComposite: undefined,
|
|
1737
2188
|
trackComposite: undefined,
|
|
1738
2189
|
track: undefined,
|
|
2190
|
+
web: undefined,
|
|
1739
2191
|
stream: undefined,
|
|
1740
2192
|
file: undefined,
|
|
1741
2193
|
segments: undefined,
|
|
2194
|
+
streamResults: [],
|
|
2195
|
+
fileResults: [],
|
|
2196
|
+
segmentResults: [],
|
|
1742
2197
|
};
|
|
1743
2198
|
}
|
|
1744
2199
|
exports.EgressInfo = {
|
|
1745
|
-
encode(message, writer =
|
|
1746
|
-
if (message.egressId !==
|
|
2200
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2201
|
+
if (message.egressId !== undefined && message.egressId !== "") {
|
|
1747
2202
|
writer.uint32(10).string(message.egressId);
|
|
1748
2203
|
}
|
|
1749
|
-
if (message.roomId !==
|
|
2204
|
+
if (message.roomId !== undefined && message.roomId !== "") {
|
|
1750
2205
|
writer.uint32(18).string(message.roomId);
|
|
1751
2206
|
}
|
|
1752
|
-
if (message.roomName !==
|
|
2207
|
+
if (message.roomName !== undefined && message.roomName !== "") {
|
|
1753
2208
|
writer.uint32(106).string(message.roomName);
|
|
1754
2209
|
}
|
|
1755
|
-
if (message.status !== 0) {
|
|
2210
|
+
if (message.status !== undefined && message.status !== 0) {
|
|
1756
2211
|
writer.uint32(24).int32(message.status);
|
|
1757
2212
|
}
|
|
1758
|
-
if (message.startedAt !== 0) {
|
|
2213
|
+
if (message.startedAt !== undefined && message.startedAt !== 0) {
|
|
1759
2214
|
writer.uint32(80).int64(message.startedAt);
|
|
1760
2215
|
}
|
|
1761
|
-
if (message.endedAt !== 0) {
|
|
2216
|
+
if (message.endedAt !== undefined && message.endedAt !== 0) {
|
|
1762
2217
|
writer.uint32(88).int64(message.endedAt);
|
|
1763
2218
|
}
|
|
1764
|
-
if (message.error !==
|
|
2219
|
+
if (message.error !== undefined && message.error !== "") {
|
|
1765
2220
|
writer.uint32(74).string(message.error);
|
|
1766
2221
|
}
|
|
1767
2222
|
if (message.roomComposite !== undefined) {
|
|
@@ -1773,6 +2228,9 @@ exports.EgressInfo = {
|
|
|
1773
2228
|
if (message.track !== undefined) {
|
|
1774
2229
|
exports.TrackEgressRequest.encode(message.track, writer.uint32(50).fork()).ldelim();
|
|
1775
2230
|
}
|
|
2231
|
+
if (message.web !== undefined) {
|
|
2232
|
+
exports.WebEgressRequest.encode(message.web, writer.uint32(114).fork()).ldelim();
|
|
2233
|
+
}
|
|
1776
2234
|
if (message.stream !== undefined) {
|
|
1777
2235
|
exports.StreamInfoList.encode(message.stream, writer.uint32(58).fork()).ldelim();
|
|
1778
2236
|
}
|
|
@@ -1782,10 +2240,25 @@ exports.EgressInfo = {
|
|
|
1782
2240
|
if (message.segments !== undefined) {
|
|
1783
2241
|
exports.SegmentsInfo.encode(message.segments, writer.uint32(98).fork()).ldelim();
|
|
1784
2242
|
}
|
|
2243
|
+
if (message.streamResults !== undefined && message.streamResults.length !== 0) {
|
|
2244
|
+
for (const v of message.streamResults) {
|
|
2245
|
+
exports.StreamInfo.encode(v, writer.uint32(122).fork()).ldelim();
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
if (message.fileResults !== undefined && message.fileResults.length !== 0) {
|
|
2249
|
+
for (const v of message.fileResults) {
|
|
2250
|
+
exports.FileInfo.encode(v, writer.uint32(130).fork()).ldelim();
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
if (message.segmentResults !== undefined && message.segmentResults.length !== 0) {
|
|
2254
|
+
for (const v of message.segmentResults) {
|
|
2255
|
+
exports.SegmentsInfo.encode(v, writer.uint32(138).fork()).ldelim();
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
1785
2258
|
return writer;
|
|
1786
2259
|
},
|
|
1787
2260
|
decode(input, length) {
|
|
1788
|
-
const reader = input instanceof
|
|
2261
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1789
2262
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1790
2263
|
const message = createBaseEgressInfo();
|
|
1791
2264
|
while (reader.pos < end) {
|
|
@@ -1821,6 +2294,9 @@ exports.EgressInfo = {
|
|
|
1821
2294
|
case 6:
|
|
1822
2295
|
message.track = exports.TrackEgressRequest.decode(reader, reader.uint32());
|
|
1823
2296
|
break;
|
|
2297
|
+
case 14:
|
|
2298
|
+
message.web = exports.WebEgressRequest.decode(reader, reader.uint32());
|
|
2299
|
+
break;
|
|
1824
2300
|
case 7:
|
|
1825
2301
|
message.stream = exports.StreamInfoList.decode(reader, reader.uint32());
|
|
1826
2302
|
break;
|
|
@@ -1830,6 +2306,15 @@ exports.EgressInfo = {
|
|
|
1830
2306
|
case 12:
|
|
1831
2307
|
message.segments = exports.SegmentsInfo.decode(reader, reader.uint32());
|
|
1832
2308
|
break;
|
|
2309
|
+
case 15:
|
|
2310
|
+
message.streamResults.push(exports.StreamInfo.decode(reader, reader.uint32()));
|
|
2311
|
+
break;
|
|
2312
|
+
case 16:
|
|
2313
|
+
message.fileResults.push(exports.FileInfo.decode(reader, reader.uint32()));
|
|
2314
|
+
break;
|
|
2315
|
+
case 17:
|
|
2316
|
+
message.segmentResults.push(exports.SegmentsInfo.decode(reader, reader.uint32()));
|
|
2317
|
+
break;
|
|
1833
2318
|
default:
|
|
1834
2319
|
reader.skipType(tag & 7);
|
|
1835
2320
|
break;
|
|
@@ -1839,13 +2324,13 @@ exports.EgressInfo = {
|
|
|
1839
2324
|
},
|
|
1840
2325
|
fromJSON(object) {
|
|
1841
2326
|
return {
|
|
1842
|
-
egressId: isSet(object.egressId) ? String(object.egressId) :
|
|
1843
|
-
roomId: isSet(object.roomId) ? String(object.roomId) :
|
|
1844
|
-
roomName: isSet(object.roomName) ? String(object.roomName) :
|
|
2327
|
+
egressId: isSet(object.egressId) ? String(object.egressId) : "",
|
|
2328
|
+
roomId: isSet(object.roomId) ? String(object.roomId) : "",
|
|
2329
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : "",
|
|
1845
2330
|
status: isSet(object.status) ? egressStatusFromJSON(object.status) : 0,
|
|
1846
2331
|
startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
|
|
1847
2332
|
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
|
|
1848
|
-
error: isSet(object.error) ? String(object.error) :
|
|
2333
|
+
error: isSet(object.error) ? String(object.error) : "",
|
|
1849
2334
|
roomComposite: isSet(object.roomComposite)
|
|
1850
2335
|
? exports.RoomCompositeEgressRequest.fromJSON(object.roomComposite)
|
|
1851
2336
|
: undefined,
|
|
@@ -1853,9 +2338,17 @@ exports.EgressInfo = {
|
|
|
1853
2338
|
? exports.TrackCompositeEgressRequest.fromJSON(object.trackComposite)
|
|
1854
2339
|
: undefined,
|
|
1855
2340
|
track: isSet(object.track) ? exports.TrackEgressRequest.fromJSON(object.track) : undefined,
|
|
2341
|
+
web: isSet(object.web) ? exports.WebEgressRequest.fromJSON(object.web) : undefined,
|
|
1856
2342
|
stream: isSet(object.stream) ? exports.StreamInfoList.fromJSON(object.stream) : undefined,
|
|
1857
2343
|
file: isSet(object.file) ? exports.FileInfo.fromJSON(object.file) : undefined,
|
|
1858
2344
|
segments: isSet(object.segments) ? exports.SegmentsInfo.fromJSON(object.segments) : undefined,
|
|
2345
|
+
streamResults: Array.isArray(object === null || object === void 0 ? void 0 : object.streamResults)
|
|
2346
|
+
? object.streamResults.map((e) => exports.StreamInfo.fromJSON(e))
|
|
2347
|
+
: [],
|
|
2348
|
+
fileResults: Array.isArray(object === null || object === void 0 ? void 0 : object.fileResults) ? object.fileResults.map((e) => exports.FileInfo.fromJSON(e)) : [],
|
|
2349
|
+
segmentResults: Array.isArray(object === null || object === void 0 ? void 0 : object.segmentResults)
|
|
2350
|
+
? object.segmentResults.map((e) => exports.SegmentsInfo.fromJSON(e))
|
|
2351
|
+
: [],
|
|
1859
2352
|
};
|
|
1860
2353
|
},
|
|
1861
2354
|
toJSON(message) {
|
|
@@ -1871,54 +2364,67 @@ exports.EgressInfo = {
|
|
|
1871
2364
|
(obj.roomComposite = message.roomComposite
|
|
1872
2365
|
? exports.RoomCompositeEgressRequest.toJSON(message.roomComposite)
|
|
1873
2366
|
: undefined);
|
|
1874
|
-
message.trackComposite !== undefined &&
|
|
1875
|
-
(
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
message.
|
|
1879
|
-
|
|
1880
|
-
message.
|
|
1881
|
-
(obj.stream = message.stream ? exports.StreamInfoList.toJSON(message.stream) : undefined);
|
|
1882
|
-
message.file !== undefined &&
|
|
1883
|
-
(obj.file = message.file ? exports.FileInfo.toJSON(message.file) : undefined);
|
|
2367
|
+
message.trackComposite !== undefined && (obj.trackComposite = message.trackComposite
|
|
2368
|
+
? exports.TrackCompositeEgressRequest.toJSON(message.trackComposite)
|
|
2369
|
+
: undefined);
|
|
2370
|
+
message.track !== undefined && (obj.track = message.track ? exports.TrackEgressRequest.toJSON(message.track) : undefined);
|
|
2371
|
+
message.web !== undefined && (obj.web = message.web ? exports.WebEgressRequest.toJSON(message.web) : undefined);
|
|
2372
|
+
message.stream !== undefined && (obj.stream = message.stream ? exports.StreamInfoList.toJSON(message.stream) : undefined);
|
|
2373
|
+
message.file !== undefined && (obj.file = message.file ? exports.FileInfo.toJSON(message.file) : undefined);
|
|
1884
2374
|
message.segments !== undefined &&
|
|
1885
2375
|
(obj.segments = message.segments ? exports.SegmentsInfo.toJSON(message.segments) : undefined);
|
|
2376
|
+
if (message.streamResults) {
|
|
2377
|
+
obj.streamResults = message.streamResults.map((e) => e ? exports.StreamInfo.toJSON(e) : undefined);
|
|
2378
|
+
}
|
|
2379
|
+
else {
|
|
2380
|
+
obj.streamResults = [];
|
|
2381
|
+
}
|
|
2382
|
+
if (message.fileResults) {
|
|
2383
|
+
obj.fileResults = message.fileResults.map((e) => e ? exports.FileInfo.toJSON(e) : undefined);
|
|
2384
|
+
}
|
|
2385
|
+
else {
|
|
2386
|
+
obj.fileResults = [];
|
|
2387
|
+
}
|
|
2388
|
+
if (message.segmentResults) {
|
|
2389
|
+
obj.segmentResults = message.segmentResults.map((e) => e ? exports.SegmentsInfo.toJSON(e) : undefined);
|
|
2390
|
+
}
|
|
2391
|
+
else {
|
|
2392
|
+
obj.segmentResults = [];
|
|
2393
|
+
}
|
|
1886
2394
|
return obj;
|
|
1887
2395
|
},
|
|
1888
2396
|
fromPartial(object) {
|
|
1889
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
2397
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1890
2398
|
const message = createBaseEgressInfo();
|
|
1891
|
-
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a :
|
|
1892
|
-
message.roomId = (_b = object.roomId) !== null && _b !== void 0 ? _b :
|
|
1893
|
-
message.roomName = (_c = object.roomName) !== null && _c !== void 0 ? _c :
|
|
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 : "";
|
|
1894
2402
|
message.status = (_d = object.status) !== null && _d !== void 0 ? _d : 0;
|
|
1895
2403
|
message.startedAt = (_e = object.startedAt) !== null && _e !== void 0 ? _e : 0;
|
|
1896
2404
|
message.endedAt = (_f = object.endedAt) !== null && _f !== void 0 ? _f : 0;
|
|
1897
|
-
message.error = (_g = object.error) !== null && _g !== void 0 ? _g :
|
|
1898
|
-
message.roomComposite =
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
message.stream =
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
message.
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
message.
|
|
1919
|
-
|
|
1920
|
-
? exports.SegmentsInfo.fromPartial(object.segments)
|
|
1921
|
-
: undefined;
|
|
2405
|
+
message.error = (_g = object.error) !== null && _g !== void 0 ? _g : "";
|
|
2406
|
+
message.roomComposite = (object.roomComposite !== undefined && object.roomComposite !== null)
|
|
2407
|
+
? exports.RoomCompositeEgressRequest.fromPartial(object.roomComposite)
|
|
2408
|
+
: undefined;
|
|
2409
|
+
message.trackComposite = (object.trackComposite !== undefined && object.trackComposite !== null)
|
|
2410
|
+
? exports.TrackCompositeEgressRequest.fromPartial(object.trackComposite)
|
|
2411
|
+
: undefined;
|
|
2412
|
+
message.track = (object.track !== undefined && object.track !== null)
|
|
2413
|
+
? exports.TrackEgressRequest.fromPartial(object.track)
|
|
2414
|
+
: undefined;
|
|
2415
|
+
message.web = (object.web !== undefined && object.web !== null)
|
|
2416
|
+
? exports.WebEgressRequest.fromPartial(object.web)
|
|
2417
|
+
: undefined;
|
|
2418
|
+
message.stream = (object.stream !== undefined && object.stream !== null)
|
|
2419
|
+
? exports.StreamInfoList.fromPartial(object.stream)
|
|
2420
|
+
: undefined;
|
|
2421
|
+
message.file = (object.file !== undefined && object.file !== null) ? exports.FileInfo.fromPartial(object.file) : undefined;
|
|
2422
|
+
message.segments = (object.segments !== undefined && object.segments !== null)
|
|
2423
|
+
? exports.SegmentsInfo.fromPartial(object.segments)
|
|
2424
|
+
: undefined;
|
|
2425
|
+
message.streamResults = ((_h = object.streamResults) === null || _h === void 0 ? void 0 : _h.map((e) => exports.StreamInfo.fromPartial(e))) || [];
|
|
2426
|
+
message.fileResults = ((_j = object.fileResults) === null || _j === void 0 ? void 0 : _j.map((e) => exports.FileInfo.fromPartial(e))) || [];
|
|
2427
|
+
message.segmentResults = ((_k = object.segmentResults) === null || _k === void 0 ? void 0 : _k.map((e) => exports.SegmentsInfo.fromPartial(e))) || [];
|
|
1922
2428
|
return message;
|
|
1923
2429
|
},
|
|
1924
2430
|
};
|
|
@@ -1926,14 +2432,16 @@ function createBaseStreamInfoList() {
|
|
|
1926
2432
|
return { info: [] };
|
|
1927
2433
|
}
|
|
1928
2434
|
exports.StreamInfoList = {
|
|
1929
|
-
encode(message, writer =
|
|
1930
|
-
|
|
1931
|
-
|
|
2435
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2436
|
+
if (message.info !== undefined && message.info.length !== 0) {
|
|
2437
|
+
for (const v of message.info) {
|
|
2438
|
+
exports.StreamInfo.encode(v, writer.uint32(10).fork()).ldelim();
|
|
2439
|
+
}
|
|
1932
2440
|
}
|
|
1933
2441
|
return writer;
|
|
1934
2442
|
},
|
|
1935
2443
|
decode(input, length) {
|
|
1936
|
-
const reader = input instanceof
|
|
2444
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1937
2445
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1938
2446
|
const message = createBaseStreamInfoList();
|
|
1939
2447
|
while (reader.pos < end) {
|
|
@@ -1950,14 +2458,12 @@ exports.StreamInfoList = {
|
|
|
1950
2458
|
return message;
|
|
1951
2459
|
},
|
|
1952
2460
|
fromJSON(object) {
|
|
1953
|
-
return {
|
|
1954
|
-
info: Array.isArray(object === null || object === void 0 ? void 0 : object.info) ? object.info.map((e) => exports.StreamInfo.fromJSON(e)) : [],
|
|
1955
|
-
};
|
|
2461
|
+
return { info: Array.isArray(object === null || object === void 0 ? void 0 : object.info) ? object.info.map((e) => exports.StreamInfo.fromJSON(e)) : [] };
|
|
1956
2462
|
},
|
|
1957
2463
|
toJSON(message) {
|
|
1958
2464
|
const obj = {};
|
|
1959
2465
|
if (message.info) {
|
|
1960
|
-
obj.info = message.info.map((e) =>
|
|
2466
|
+
obj.info = message.info.map((e) => e ? exports.StreamInfo.toJSON(e) : undefined);
|
|
1961
2467
|
}
|
|
1962
2468
|
else {
|
|
1963
2469
|
obj.info = [];
|
|
@@ -1972,29 +2478,32 @@ exports.StreamInfoList = {
|
|
|
1972
2478
|
},
|
|
1973
2479
|
};
|
|
1974
2480
|
function createBaseStreamInfo() {
|
|
1975
|
-
return { url:
|
|
2481
|
+
return { url: "", startedAt: 0, endedAt: 0, duration: 0, status: 0, error: "" };
|
|
1976
2482
|
}
|
|
1977
2483
|
exports.StreamInfo = {
|
|
1978
|
-
encode(message, writer =
|
|
1979
|
-
if (message.url !==
|
|
2484
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2485
|
+
if (message.url !== undefined && message.url !== "") {
|
|
1980
2486
|
writer.uint32(10).string(message.url);
|
|
1981
2487
|
}
|
|
1982
|
-
if (message.startedAt !== 0) {
|
|
2488
|
+
if (message.startedAt !== undefined && message.startedAt !== 0) {
|
|
1983
2489
|
writer.uint32(16).int64(message.startedAt);
|
|
1984
2490
|
}
|
|
1985
|
-
if (message.endedAt !== 0) {
|
|
2491
|
+
if (message.endedAt !== undefined && message.endedAt !== 0) {
|
|
1986
2492
|
writer.uint32(24).int64(message.endedAt);
|
|
1987
2493
|
}
|
|
1988
|
-
if (message.duration !== 0) {
|
|
2494
|
+
if (message.duration !== undefined && message.duration !== 0) {
|
|
1989
2495
|
writer.uint32(32).int64(message.duration);
|
|
1990
2496
|
}
|
|
1991
|
-
if (message.status !== 0) {
|
|
2497
|
+
if (message.status !== undefined && message.status !== 0) {
|
|
1992
2498
|
writer.uint32(40).int32(message.status);
|
|
1993
2499
|
}
|
|
2500
|
+
if (message.error !== undefined && message.error !== "") {
|
|
2501
|
+
writer.uint32(50).string(message.error);
|
|
2502
|
+
}
|
|
1994
2503
|
return writer;
|
|
1995
2504
|
},
|
|
1996
2505
|
decode(input, length) {
|
|
1997
|
-
const reader = input instanceof
|
|
2506
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1998
2507
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1999
2508
|
const message = createBaseStreamInfo();
|
|
2000
2509
|
while (reader.pos < end) {
|
|
@@ -2015,6 +2524,9 @@ exports.StreamInfo = {
|
|
|
2015
2524
|
case 5:
|
|
2016
2525
|
message.status = reader.int32();
|
|
2017
2526
|
break;
|
|
2527
|
+
case 6:
|
|
2528
|
+
message.error = reader.string();
|
|
2529
|
+
break;
|
|
2018
2530
|
default:
|
|
2019
2531
|
reader.skipType(tag & 7);
|
|
2020
2532
|
break;
|
|
@@ -2024,11 +2536,12 @@ exports.StreamInfo = {
|
|
|
2024
2536
|
},
|
|
2025
2537
|
fromJSON(object) {
|
|
2026
2538
|
return {
|
|
2027
|
-
url: isSet(object.url) ? String(object.url) :
|
|
2539
|
+
url: isSet(object.url) ? String(object.url) : "",
|
|
2028
2540
|
startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
|
|
2029
2541
|
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
|
|
2030
2542
|
duration: isSet(object.duration) ? Number(object.duration) : 0,
|
|
2031
2543
|
status: isSet(object.status) ? streamInfo_StatusFromJSON(object.status) : 0,
|
|
2544
|
+
error: isSet(object.error) ? String(object.error) : "",
|
|
2032
2545
|
};
|
|
2033
2546
|
},
|
|
2034
2547
|
toJSON(message) {
|
|
@@ -2038,40 +2551,48 @@ exports.StreamInfo = {
|
|
|
2038
2551
|
message.endedAt !== undefined && (obj.endedAt = Math.round(message.endedAt));
|
|
2039
2552
|
message.duration !== undefined && (obj.duration = Math.round(message.duration));
|
|
2040
2553
|
message.status !== undefined && (obj.status = streamInfo_StatusToJSON(message.status));
|
|
2554
|
+
message.error !== undefined && (obj.error = message.error);
|
|
2041
2555
|
return obj;
|
|
2042
2556
|
},
|
|
2043
2557
|
fromPartial(object) {
|
|
2044
|
-
var _a, _b, _c, _d, _e;
|
|
2558
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2045
2559
|
const message = createBaseStreamInfo();
|
|
2046
|
-
message.url = (_a = object.url) !== null && _a !== void 0 ? _a :
|
|
2560
|
+
message.url = (_a = object.url) !== null && _a !== void 0 ? _a : "";
|
|
2047
2561
|
message.startedAt = (_b = object.startedAt) !== null && _b !== void 0 ? _b : 0;
|
|
2048
2562
|
message.endedAt = (_c = object.endedAt) !== null && _c !== void 0 ? _c : 0;
|
|
2049
2563
|
message.duration = (_d = object.duration) !== null && _d !== void 0 ? _d : 0;
|
|
2050
2564
|
message.status = (_e = object.status) !== null && _e !== void 0 ? _e : 0;
|
|
2565
|
+
message.error = (_f = object.error) !== null && _f !== void 0 ? _f : "";
|
|
2051
2566
|
return message;
|
|
2052
2567
|
},
|
|
2053
2568
|
};
|
|
2054
2569
|
function createBaseFileInfo() {
|
|
2055
|
-
return { filename:
|
|
2570
|
+
return { filename: "", startedAt: 0, endedAt: 0, duration: 0, size: 0, location: "" };
|
|
2056
2571
|
}
|
|
2057
2572
|
exports.FileInfo = {
|
|
2058
|
-
encode(message, writer =
|
|
2059
|
-
if (message.filename !==
|
|
2573
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2574
|
+
if (message.filename !== undefined && message.filename !== "") {
|
|
2060
2575
|
writer.uint32(10).string(message.filename);
|
|
2061
2576
|
}
|
|
2062
|
-
if (message.
|
|
2577
|
+
if (message.startedAt !== undefined && message.startedAt !== 0) {
|
|
2578
|
+
writer.uint32(16).int64(message.startedAt);
|
|
2579
|
+
}
|
|
2580
|
+
if (message.endedAt !== undefined && message.endedAt !== 0) {
|
|
2581
|
+
writer.uint32(24).int64(message.endedAt);
|
|
2582
|
+
}
|
|
2583
|
+
if (message.duration !== undefined && message.duration !== 0) {
|
|
2063
2584
|
writer.uint32(48).int64(message.duration);
|
|
2064
2585
|
}
|
|
2065
|
-
if (message.size !== 0) {
|
|
2586
|
+
if (message.size !== undefined && message.size !== 0) {
|
|
2066
2587
|
writer.uint32(32).int64(message.size);
|
|
2067
2588
|
}
|
|
2068
|
-
if (message.location !==
|
|
2589
|
+
if (message.location !== undefined && message.location !== "") {
|
|
2069
2590
|
writer.uint32(42).string(message.location);
|
|
2070
2591
|
}
|
|
2071
2592
|
return writer;
|
|
2072
2593
|
},
|
|
2073
2594
|
decode(input, length) {
|
|
2074
|
-
const reader = input instanceof
|
|
2595
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2075
2596
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2076
2597
|
const message = createBaseFileInfo();
|
|
2077
2598
|
while (reader.pos < end) {
|
|
@@ -2080,6 +2601,12 @@ exports.FileInfo = {
|
|
|
2080
2601
|
case 1:
|
|
2081
2602
|
message.filename = reader.string();
|
|
2082
2603
|
break;
|
|
2604
|
+
case 2:
|
|
2605
|
+
message.startedAt = longToNumber(reader.int64());
|
|
2606
|
+
break;
|
|
2607
|
+
case 3:
|
|
2608
|
+
message.endedAt = longToNumber(reader.int64());
|
|
2609
|
+
break;
|
|
2083
2610
|
case 6:
|
|
2084
2611
|
message.duration = longToNumber(reader.int64());
|
|
2085
2612
|
break;
|
|
@@ -2098,54 +2625,66 @@ exports.FileInfo = {
|
|
|
2098
2625
|
},
|
|
2099
2626
|
fromJSON(object) {
|
|
2100
2627
|
return {
|
|
2101
|
-
filename: isSet(object.filename) ? String(object.filename) :
|
|
2628
|
+
filename: isSet(object.filename) ? String(object.filename) : "",
|
|
2629
|
+
startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
|
|
2630
|
+
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
|
|
2102
2631
|
duration: isSet(object.duration) ? Number(object.duration) : 0,
|
|
2103
2632
|
size: isSet(object.size) ? Number(object.size) : 0,
|
|
2104
|
-
location: isSet(object.location) ? String(object.location) :
|
|
2633
|
+
location: isSet(object.location) ? String(object.location) : "",
|
|
2105
2634
|
};
|
|
2106
2635
|
},
|
|
2107
2636
|
toJSON(message) {
|
|
2108
2637
|
const obj = {};
|
|
2109
2638
|
message.filename !== undefined && (obj.filename = message.filename);
|
|
2639
|
+
message.startedAt !== undefined && (obj.startedAt = Math.round(message.startedAt));
|
|
2640
|
+
message.endedAt !== undefined && (obj.endedAt = Math.round(message.endedAt));
|
|
2110
2641
|
message.duration !== undefined && (obj.duration = Math.round(message.duration));
|
|
2111
2642
|
message.size !== undefined && (obj.size = Math.round(message.size));
|
|
2112
2643
|
message.location !== undefined && (obj.location = message.location);
|
|
2113
2644
|
return obj;
|
|
2114
2645
|
},
|
|
2115
2646
|
fromPartial(object) {
|
|
2116
|
-
var _a, _b, _c, _d;
|
|
2647
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2117
2648
|
const message = createBaseFileInfo();
|
|
2118
|
-
message.filename = (_a = object.filename) !== null && _a !== void 0 ? _a :
|
|
2119
|
-
message.
|
|
2120
|
-
message.
|
|
2121
|
-
message.
|
|
2649
|
+
message.filename = (_a = object.filename) !== null && _a !== void 0 ? _a : "";
|
|
2650
|
+
message.startedAt = (_b = object.startedAt) !== null && _b !== void 0 ? _b : 0;
|
|
2651
|
+
message.endedAt = (_c = object.endedAt) !== null && _c !== void 0 ? _c : 0;
|
|
2652
|
+
message.duration = (_d = object.duration) !== null && _d !== void 0 ? _d : 0;
|
|
2653
|
+
message.size = (_e = object.size) !== null && _e !== void 0 ? _e : 0;
|
|
2654
|
+
message.location = (_f = object.location) !== null && _f !== void 0 ? _f : "";
|
|
2122
2655
|
return message;
|
|
2123
2656
|
},
|
|
2124
2657
|
};
|
|
2125
2658
|
function createBaseSegmentsInfo() {
|
|
2126
|
-
return { playlistName:
|
|
2659
|
+
return { playlistName: "", duration: 0, size: 0, playlistLocation: "", segmentCount: 0, startedAt: 0, endedAt: 0 };
|
|
2127
2660
|
}
|
|
2128
2661
|
exports.SegmentsInfo = {
|
|
2129
|
-
encode(message, writer =
|
|
2130
|
-
if (message.playlistName !==
|
|
2662
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2663
|
+
if (message.playlistName !== undefined && message.playlistName !== "") {
|
|
2131
2664
|
writer.uint32(10).string(message.playlistName);
|
|
2132
2665
|
}
|
|
2133
|
-
if (message.duration !== 0) {
|
|
2666
|
+
if (message.duration !== undefined && message.duration !== 0) {
|
|
2134
2667
|
writer.uint32(16).int64(message.duration);
|
|
2135
2668
|
}
|
|
2136
|
-
if (message.size !== 0) {
|
|
2669
|
+
if (message.size !== undefined && message.size !== 0) {
|
|
2137
2670
|
writer.uint32(24).int64(message.size);
|
|
2138
2671
|
}
|
|
2139
|
-
if (message.playlistLocation !==
|
|
2672
|
+
if (message.playlistLocation !== undefined && message.playlistLocation !== "") {
|
|
2140
2673
|
writer.uint32(34).string(message.playlistLocation);
|
|
2141
2674
|
}
|
|
2142
|
-
if (message.segmentCount !== 0) {
|
|
2675
|
+
if (message.segmentCount !== undefined && message.segmentCount !== 0) {
|
|
2143
2676
|
writer.uint32(40).int64(message.segmentCount);
|
|
2144
2677
|
}
|
|
2678
|
+
if (message.startedAt !== undefined && message.startedAt !== 0) {
|
|
2679
|
+
writer.uint32(48).int64(message.startedAt);
|
|
2680
|
+
}
|
|
2681
|
+
if (message.endedAt !== undefined && message.endedAt !== 0) {
|
|
2682
|
+
writer.uint32(56).int64(message.endedAt);
|
|
2683
|
+
}
|
|
2145
2684
|
return writer;
|
|
2146
2685
|
},
|
|
2147
2686
|
decode(input, length) {
|
|
2148
|
-
const reader = input instanceof
|
|
2687
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2149
2688
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2150
2689
|
const message = createBaseSegmentsInfo();
|
|
2151
2690
|
while (reader.pos < end) {
|
|
@@ -2166,6 +2705,12 @@ exports.SegmentsInfo = {
|
|
|
2166
2705
|
case 5:
|
|
2167
2706
|
message.segmentCount = longToNumber(reader.int64());
|
|
2168
2707
|
break;
|
|
2708
|
+
case 6:
|
|
2709
|
+
message.startedAt = longToNumber(reader.int64());
|
|
2710
|
+
break;
|
|
2711
|
+
case 7:
|
|
2712
|
+
message.endedAt = longToNumber(reader.int64());
|
|
2713
|
+
break;
|
|
2169
2714
|
default:
|
|
2170
2715
|
reader.skipType(tag & 7);
|
|
2171
2716
|
break;
|
|
@@ -2175,11 +2720,13 @@ exports.SegmentsInfo = {
|
|
|
2175
2720
|
},
|
|
2176
2721
|
fromJSON(object) {
|
|
2177
2722
|
return {
|
|
2178
|
-
playlistName: isSet(object.playlistName) ? String(object.playlistName) :
|
|
2723
|
+
playlistName: isSet(object.playlistName) ? String(object.playlistName) : "",
|
|
2179
2724
|
duration: isSet(object.duration) ? Number(object.duration) : 0,
|
|
2180
2725
|
size: isSet(object.size) ? Number(object.size) : 0,
|
|
2181
|
-
playlistLocation: isSet(object.playlistLocation) ? String(object.playlistLocation) :
|
|
2726
|
+
playlistLocation: isSet(object.playlistLocation) ? String(object.playlistLocation) : "",
|
|
2182
2727
|
segmentCount: isSet(object.segmentCount) ? Number(object.segmentCount) : 0,
|
|
2728
|
+
startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
|
|
2729
|
+
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
|
|
2183
2730
|
};
|
|
2184
2731
|
},
|
|
2185
2732
|
toJSON(message) {
|
|
@@ -2189,25 +2736,29 @@ exports.SegmentsInfo = {
|
|
|
2189
2736
|
message.size !== undefined && (obj.size = Math.round(message.size));
|
|
2190
2737
|
message.playlistLocation !== undefined && (obj.playlistLocation = message.playlistLocation);
|
|
2191
2738
|
message.segmentCount !== undefined && (obj.segmentCount = Math.round(message.segmentCount));
|
|
2739
|
+
message.startedAt !== undefined && (obj.startedAt = Math.round(message.startedAt));
|
|
2740
|
+
message.endedAt !== undefined && (obj.endedAt = Math.round(message.endedAt));
|
|
2192
2741
|
return obj;
|
|
2193
2742
|
},
|
|
2194
2743
|
fromPartial(object) {
|
|
2195
|
-
var _a, _b, _c, _d, _e;
|
|
2744
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2196
2745
|
const message = createBaseSegmentsInfo();
|
|
2197
|
-
message.playlistName = (_a = object.playlistName) !== null && _a !== void 0 ? _a :
|
|
2746
|
+
message.playlistName = (_a = object.playlistName) !== null && _a !== void 0 ? _a : "";
|
|
2198
2747
|
message.duration = (_b = object.duration) !== null && _b !== void 0 ? _b : 0;
|
|
2199
2748
|
message.size = (_c = object.size) !== null && _c !== void 0 ? _c : 0;
|
|
2200
|
-
message.playlistLocation = (_d = object.playlistLocation) !== null && _d !== void 0 ? _d :
|
|
2749
|
+
message.playlistLocation = (_d = object.playlistLocation) !== null && _d !== void 0 ? _d : "";
|
|
2201
2750
|
message.segmentCount = (_e = object.segmentCount) !== null && _e !== void 0 ? _e : 0;
|
|
2751
|
+
message.startedAt = (_f = object.startedAt) !== null && _f !== void 0 ? _f : 0;
|
|
2752
|
+
message.endedAt = (_g = object.endedAt) !== null && _g !== void 0 ? _g : 0;
|
|
2202
2753
|
return message;
|
|
2203
2754
|
},
|
|
2204
2755
|
};
|
|
2205
2756
|
function createBaseAutoTrackEgress() {
|
|
2206
|
-
return { filepath:
|
|
2757
|
+
return { filepath: "", disableManifest: false, s3: undefined, gcp: undefined, azure: undefined };
|
|
2207
2758
|
}
|
|
2208
2759
|
exports.AutoTrackEgress = {
|
|
2209
|
-
encode(message, writer =
|
|
2210
|
-
if (message.filepath !==
|
|
2760
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2761
|
+
if (message.filepath !== undefined && message.filepath !== "") {
|
|
2211
2762
|
writer.uint32(10).string(message.filepath);
|
|
2212
2763
|
}
|
|
2213
2764
|
if (message.disableManifest === true) {
|
|
@@ -2225,7 +2776,7 @@ exports.AutoTrackEgress = {
|
|
|
2225
2776
|
return writer;
|
|
2226
2777
|
},
|
|
2227
2778
|
decode(input, length) {
|
|
2228
|
-
const reader = input instanceof
|
|
2779
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2229
2780
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2230
2781
|
const message = createBaseAutoTrackEgress();
|
|
2231
2782
|
while (reader.pos < end) {
|
|
@@ -2255,7 +2806,7 @@ exports.AutoTrackEgress = {
|
|
|
2255
2806
|
},
|
|
2256
2807
|
fromJSON(object) {
|
|
2257
2808
|
return {
|
|
2258
|
-
filepath: isSet(object.filepath) ? String(object.filepath) :
|
|
2809
|
+
filepath: isSet(object.filepath) ? String(object.filepath) : "",
|
|
2259
2810
|
disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
|
|
2260
2811
|
s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
|
|
2261
2812
|
gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
|
|
@@ -2267,67 +2818,50 @@ exports.AutoTrackEgress = {
|
|
|
2267
2818
|
message.filepath !== undefined && (obj.filepath = message.filepath);
|
|
2268
2819
|
message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
|
|
2269
2820
|
message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
|
|
2270
|
-
message.gcp !== undefined &&
|
|
2271
|
-
|
|
2272
|
-
message.azure !== undefined &&
|
|
2273
|
-
(obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
|
|
2821
|
+
message.gcp !== undefined && (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
|
|
2822
|
+
message.azure !== undefined && (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
|
|
2274
2823
|
return obj;
|
|
2275
2824
|
},
|
|
2276
2825
|
fromPartial(object) {
|
|
2277
2826
|
var _a, _b;
|
|
2278
2827
|
const message = createBaseAutoTrackEgress();
|
|
2279
|
-
message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a :
|
|
2828
|
+
message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a : "";
|
|
2280
2829
|
message.disableManifest = (_b = object.disableManifest) !== null && _b !== void 0 ? _b : false;
|
|
2281
|
-
message.s3 =
|
|
2282
|
-
|
|
2283
|
-
message.
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
: undefined;
|
|
2287
|
-
message.azure =
|
|
2288
|
-
object.azure !== undefined && object.azure !== null
|
|
2289
|
-
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
2290
|
-
: undefined;
|
|
2830
|
+
message.s3 = (object.s3 !== undefined && object.s3 !== null) ? exports.S3Upload.fromPartial(object.s3) : undefined;
|
|
2831
|
+
message.gcp = (object.gcp !== undefined && object.gcp !== null) ? exports.GCPUpload.fromPartial(object.gcp) : undefined;
|
|
2832
|
+
message.azure = (object.azure !== undefined && object.azure !== null)
|
|
2833
|
+
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
2834
|
+
: undefined;
|
|
2291
2835
|
return message;
|
|
2292
2836
|
},
|
|
2293
2837
|
};
|
|
2294
2838
|
var globalThis = (() => {
|
|
2295
|
-
if (typeof globalThis !==
|
|
2839
|
+
if (typeof globalThis !== "undefined") {
|
|
2296
2840
|
return globalThis;
|
|
2297
|
-
|
|
2841
|
+
}
|
|
2842
|
+
if (typeof self !== "undefined") {
|
|
2298
2843
|
return self;
|
|
2299
|
-
|
|
2844
|
+
}
|
|
2845
|
+
if (typeof window !== "undefined") {
|
|
2300
2846
|
return window;
|
|
2301
|
-
if (typeof global !== 'undefined')
|
|
2302
|
-
return global;
|
|
2303
|
-
throw 'Unable to locate global object';
|
|
2304
|
-
})();
|
|
2305
|
-
const atob = globalThis.atob || ((b64) => globalThis.Buffer.from(b64, 'base64').toString('binary'));
|
|
2306
|
-
function bytesFromBase64(b64) {
|
|
2307
|
-
const bin = atob(b64);
|
|
2308
|
-
const arr = new Uint8Array(bin.length);
|
|
2309
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
2310
|
-
arr[i] = bin.charCodeAt(i);
|
|
2311
2847
|
}
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
const btoa = globalThis.btoa || ((bin) => globalThis.Buffer.from(bin, 'binary').toString('base64'));
|
|
2315
|
-
function base64FromBytes(arr) {
|
|
2316
|
-
const bin = [];
|
|
2317
|
-
for (const byte of arr) {
|
|
2318
|
-
bin.push(String.fromCharCode(byte));
|
|
2848
|
+
if (typeof global !== "undefined") {
|
|
2849
|
+
return global;
|
|
2319
2850
|
}
|
|
2320
|
-
|
|
2321
|
-
}
|
|
2851
|
+
throw "Unable to locate global object";
|
|
2852
|
+
})();
|
|
2322
2853
|
function longToNumber(long) {
|
|
2323
2854
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
2324
|
-
throw new globalThis.Error(
|
|
2855
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
2325
2856
|
}
|
|
2326
2857
|
return long.toNumber();
|
|
2327
2858
|
}
|
|
2328
|
-
if (
|
|
2329
|
-
|
|
2330
|
-
|
|
2859
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
2860
|
+
minimal_1.default.util.Long = long_1.default;
|
|
2861
|
+
minimal_1.default.configure();
|
|
2862
|
+
}
|
|
2863
|
+
function isObject(value) {
|
|
2864
|
+
return typeof value === "object" && value !== null;
|
|
2331
2865
|
}
|
|
2332
2866
|
function isSet(value) {
|
|
2333
2867
|
return value !== null && value !== undefined;
|