livekit-server-sdk 1.0.1 → 1.0.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/EgressClient.d.ts +3 -3
- package/dist/EgressClient.js +9 -3
- package/dist/EgressClient.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/proto/livekit_egress.d.ts +86 -0
- package/dist/proto/livekit_egress.js +90 -9
- package/dist/proto/livekit_egress.js.map +1 -1
- package/dist/proto/livekit_ingress.d.ts +1803 -0
- package/dist/proto/livekit_ingress.js +1095 -0
- package/dist/proto/livekit_ingress.js.map +1 -0
- package/dist/proto/livekit_models.d.ts +84 -0
- package/dist/proto/livekit_models.js +340 -37
- package/dist/proto/livekit_models.js.map +1 -1
- package/dist/proto/livekit_webhook.d.ts +523 -58
- package/dist/proto/livekit_webhook.js +15 -19
- package/dist/proto/livekit_webhook.js.map +1 -1
- package/package.json +2 -2
- package/dist/RecordingServiceClient.d.ts +0 -25
- package/dist/RecordingServiceClient.js +0 -91
- package/dist/RecordingServiceClient.js.map +0 -1
- package/dist/proto/livekit_recording.d.ts +0 -361
- package/dist/proto/livekit_recording.js +0 -843
- package/dist/proto/livekit_recording.js.map +0 -1
package/dist/EgressClient.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DirectFileOutput, EgressInfo, EncodedFileOutput, EncodingOptions, EncodingOptionsPreset, StreamOutput } from './proto/livekit_egress';
|
|
1
|
+
import { DirectFileOutput, EgressInfo, EncodedFileOutput, EncodingOptions, EncodingOptionsPreset, SegmentedFileOutput, StreamOutput } from './proto/livekit_egress';
|
|
2
2
|
/**
|
|
3
3
|
* Client to access Egress APIs
|
|
4
4
|
*/
|
|
@@ -21,7 +21,7 @@ export default class EgressClient {
|
|
|
21
21
|
* @param videoOnly record video only
|
|
22
22
|
* @param customBaseUrl custom template url
|
|
23
23
|
*/
|
|
24
|
-
startRoomCompositeEgress(roomName: string, output: EncodedFileOutput | StreamOutput, layout?: string, options?: EncodingOptionsPreset | EncodingOptions, audioOnly?: boolean, videoOnly?: boolean, customBaseUrl?: string): Promise<EgressInfo>;
|
|
24
|
+
startRoomCompositeEgress(roomName: string, output: EncodedFileOutput | SegmentedFileOutput | StreamOutput, layout?: string, options?: EncodingOptionsPreset | EncodingOptions, audioOnly?: boolean, videoOnly?: boolean, customBaseUrl?: string): Promise<EgressInfo>;
|
|
25
25
|
/**
|
|
26
26
|
* @param roomName room name
|
|
27
27
|
* @param output file or stream output
|
|
@@ -29,7 +29,7 @@ export default class EgressClient {
|
|
|
29
29
|
* @param videoTrackId video track Id
|
|
30
30
|
* @param options encoding options or preset
|
|
31
31
|
*/
|
|
32
|
-
startTrackCompositeEgress(roomName: string, output: EncodedFileOutput | StreamOutput, audioTrackId?: string, videoTrackId?: string, options?: EncodingOptionsPreset | EncodingOptions): Promise<EgressInfo>;
|
|
32
|
+
startTrackCompositeEgress(roomName: string, output: EncodedFileOutput | SegmentedFileOutput | StreamOutput, audioTrackId?: string, videoTrackId?: string, options?: EncodingOptionsPreset | EncodingOptions): Promise<EgressInfo>;
|
|
33
33
|
private getOutputParams;
|
|
34
34
|
/**
|
|
35
35
|
* @param roomName room name
|
package/dist/EgressClient.js
CHANGED
|
@@ -42,7 +42,7 @@ class EgressClient {
|
|
|
42
42
|
audioOnly !== null && audioOnly !== void 0 ? audioOnly : (audioOnly = false);
|
|
43
43
|
videoOnly !== null && videoOnly !== void 0 ? videoOnly : (videoOnly = false);
|
|
44
44
|
customBaseUrl !== null && customBaseUrl !== void 0 ? customBaseUrl : (customBaseUrl = '');
|
|
45
|
-
const { file, stream, preset, advanced } = this.getOutputParams(output, options);
|
|
45
|
+
const { file, segments, stream, preset, advanced } = this.getOutputParams(output, options);
|
|
46
46
|
const req = livekit_egress_1.RoomCompositeEgressRequest.toJSON({
|
|
47
47
|
roomName,
|
|
48
48
|
layout,
|
|
@@ -51,6 +51,7 @@ class EgressClient {
|
|
|
51
51
|
customBaseUrl,
|
|
52
52
|
file,
|
|
53
53
|
stream,
|
|
54
|
+
segments,
|
|
54
55
|
preset,
|
|
55
56
|
advanced,
|
|
56
57
|
});
|
|
@@ -69,13 +70,14 @@ class EgressClient {
|
|
|
69
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
71
|
audioTrackId !== null && audioTrackId !== void 0 ? audioTrackId : (audioTrackId = '');
|
|
71
72
|
videoTrackId !== null && videoTrackId !== void 0 ? videoTrackId : (videoTrackId = '');
|
|
72
|
-
const { file, stream, preset, advanced } = this.getOutputParams(output, options);
|
|
73
|
+
const { file, segments, stream, preset, advanced } = this.getOutputParams(output, options);
|
|
73
74
|
const req = livekit_egress_1.TrackCompositeEgressRequest.toJSON({
|
|
74
75
|
roomName,
|
|
75
76
|
audioTrackId,
|
|
76
77
|
videoTrackId,
|
|
77
78
|
file,
|
|
78
79
|
stream,
|
|
80
|
+
segments,
|
|
79
81
|
preset,
|
|
80
82
|
advanced,
|
|
81
83
|
});
|
|
@@ -86,11 +88,15 @@ class EgressClient {
|
|
|
86
88
|
getOutputParams(output, options) {
|
|
87
89
|
let file;
|
|
88
90
|
let stream;
|
|
91
|
+
let segments;
|
|
89
92
|
let preset;
|
|
90
93
|
let advanced;
|
|
91
94
|
if (output.filepath !== undefined) {
|
|
92
95
|
file = output;
|
|
93
96
|
}
|
|
97
|
+
else if (output.filenamePrefix !== undefined) {
|
|
98
|
+
segments = output;
|
|
99
|
+
}
|
|
94
100
|
else {
|
|
95
101
|
stream = output;
|
|
96
102
|
}
|
|
@@ -102,7 +108,7 @@ class EgressClient {
|
|
|
102
108
|
advanced = options;
|
|
103
109
|
}
|
|
104
110
|
}
|
|
105
|
-
return { file, stream, preset, advanced };
|
|
111
|
+
return { file, segments, stream, preset, advanced };
|
|
106
112
|
}
|
|
107
113
|
/**
|
|
108
114
|
* @param roomName room name
|
package/dist/EgressClient.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EgressClient.js","sourceRoot":"","sources":["../src/EgressClient.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+CAA4C;AAE5C,
|
|
1
|
+
{"version":3,"file":"EgressClient.js","sourceRoot":"","sources":["../src/EgressClient.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+CAA4C;AAE5C,2DAgBgC;AAChC,yCAA2D;AAE3D,MAAM,GAAG,GAAG,QAAQ,CAAC;AAErB;;GAEG;AACH,MAAqB,YAAY;IAO/B;;;;OAIG;IACH,YAAY,IAAY,EAAE,MAAe,EAAE,MAAe;QACxD,IAAI,CAAC,GAAG,GAAG,IAAI,mBAAQ,CAAC,IAAI,EAAE,yBAAc,CAAC,CAAC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACG,wBAAwB,CAC5B,QAAgB,EAChB,MAA8D,EAC9D,MAAe,EACf,OAAiD,EACjD,SAAmB,EACnB,SAAmB,EACnB,aAAsB;;YAEtB,MAAM,aAAN,MAAM,cAAN,MAAM,IAAN,MAAM,GAAK,EAAE,EAAC;YACd,SAAS,aAAT,SAAS,cAAT,SAAS,IAAT,SAAS,GAAK,KAAK,EAAC;YACpB,SAAS,aAAT,SAAS,cAAT,SAAS,IAAT,SAAS,GAAK,KAAK,EAAC;YACpB,aAAa,aAAb,aAAa,cAAb,aAAa,IAAb,aAAa,GAAK,EAAE,EAAC;YAErB,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YAC3F,MAAM,GAAG,GAAG,2CAA0B,CAAC,MAAM,CAAC;gBAC5C,QAAQ;gBACR,MAAM;gBACN,SAAS;gBACT,SAAS;gBACT,aAAa;gBACb,IAAI;gBACJ,MAAM;gB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,QAAgB;;YAC/B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,OAAO,CACjC,GAAG,EACH,YAAY,EACZ,kCAAiB,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,EACtC,IAAI,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CACtC,CAAC;YACF,OAAO,2BAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACnC,CAAC;KAAA;IAEO,UAAU,CAAC,KAAiB;QAClC,MAAM,EAAE,GAAG,IAAI,yBAAW,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;QACrE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACnB,OAAO;YACL,aAAa,EAAE,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;SACtC,CAAC;IACJ,CAAC;CACF;AA7OD,+BA6OC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export * from './AccessToken';
|
|
2
2
|
export { default as EgressClient } from './EgressClient';
|
|
3
3
|
export * from './grants';
|
|
4
|
-
export { DirectFileOutput, EgressInfo, EncodedFileOutput, EncodingOptions, EncodingOptionsPreset, StreamOutput, } from './proto/livekit_egress';
|
|
4
|
+
export { DirectFileOutput, EgressInfo, EncodedFileOutput, EncodedFileType, EncodingOptions, EncodingOptionsPreset, SegmentedFileOutput, SegmentedFileProtocol, StreamOutput, StreamProtocol, } from './proto/livekit_egress';
|
|
5
5
|
export { DataPacket_Kind, ParticipantInfo, ParticipantInfo_State, ParticipantPermission, Room, TrackInfo, TrackType, } from './proto/livekit_models';
|
|
6
|
-
export { default as RecordingServiceClient } from './RecordingServiceClient';
|
|
7
6
|
export * from './RoomServiceClient';
|
|
8
7
|
export * from './WebhookReceiver';
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
14
|
};
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.TrackType = exports.TrackInfo = exports.Room = exports.ParticipantPermission = exports.ParticipantInfo_State = exports.ParticipantInfo = exports.DataPacket_Kind = exports.StreamProtocol = exports.StreamOutput = exports.SegmentedFileProtocol = exports.SegmentedFileOutput = exports.EncodingOptionsPreset = exports.EncodingOptions = exports.EncodedFileType = exports.EncodedFileOutput = exports.EgressInfo = exports.DirectFileOutput = exports.EgressClient = void 0;
|
|
17
17
|
__exportStar(require("./AccessToken"), exports);
|
|
18
18
|
var EgressClient_1 = require("./EgressClient");
|
|
19
19
|
Object.defineProperty(exports, "EgressClient", { enumerable: true, get: function () { return __importDefault(EgressClient_1).default; } });
|
|
@@ -22,9 +22,13 @@ var livekit_egress_1 = require("./proto/livekit_egress");
|
|
|
22
22
|
Object.defineProperty(exports, "DirectFileOutput", { enumerable: true, get: function () { return livekit_egress_1.DirectFileOutput; } });
|
|
23
23
|
Object.defineProperty(exports, "EgressInfo", { enumerable: true, get: function () { return livekit_egress_1.EgressInfo; } });
|
|
24
24
|
Object.defineProperty(exports, "EncodedFileOutput", { enumerable: true, get: function () { return livekit_egress_1.EncodedFileOutput; } });
|
|
25
|
+
Object.defineProperty(exports, "EncodedFileType", { enumerable: true, get: function () { return livekit_egress_1.EncodedFileType; } });
|
|
25
26
|
Object.defineProperty(exports, "EncodingOptions", { enumerable: true, get: function () { return livekit_egress_1.EncodingOptions; } });
|
|
26
27
|
Object.defineProperty(exports, "EncodingOptionsPreset", { enumerable: true, get: function () { return livekit_egress_1.EncodingOptionsPreset; } });
|
|
28
|
+
Object.defineProperty(exports, "SegmentedFileOutput", { enumerable: true, get: function () { return livekit_egress_1.SegmentedFileOutput; } });
|
|
29
|
+
Object.defineProperty(exports, "SegmentedFileProtocol", { enumerable: true, get: function () { return livekit_egress_1.SegmentedFileProtocol; } });
|
|
27
30
|
Object.defineProperty(exports, "StreamOutput", { enumerable: true, get: function () { return livekit_egress_1.StreamOutput; } });
|
|
31
|
+
Object.defineProperty(exports, "StreamProtocol", { enumerable: true, get: function () { return livekit_egress_1.StreamProtocol; } });
|
|
28
32
|
var livekit_models_1 = require("./proto/livekit_models");
|
|
29
33
|
Object.defineProperty(exports, "DataPacket_Kind", { enumerable: true, get: function () { return livekit_models_1.DataPacket_Kind; } });
|
|
30
34
|
Object.defineProperty(exports, "ParticipantInfo", { enumerable: true, get: function () { return livekit_models_1.ParticipantInfo; } });
|
|
@@ -33,8 +37,6 @@ Object.defineProperty(exports, "ParticipantPermission", { enumerable: true, get:
|
|
|
33
37
|
Object.defineProperty(exports, "Room", { enumerable: true, get: function () { return livekit_models_1.Room; } });
|
|
34
38
|
Object.defineProperty(exports, "TrackInfo", { enumerable: true, get: function () { return livekit_models_1.TrackInfo; } });
|
|
35
39
|
Object.defineProperty(exports, "TrackType", { enumerable: true, get: function () { return livekit_models_1.TrackType; } });
|
|
36
|
-
var RecordingServiceClient_1 = require("./RecordingServiceClient");
|
|
37
|
-
Object.defineProperty(exports, "RecordingServiceClient", { enumerable: true, get: function () { return __importDefault(RecordingServiceClient_1).default; } });
|
|
38
40
|
__exportStar(require("./RoomServiceClient"), exports);
|
|
39
41
|
__exportStar(require("./WebhookReceiver"), exports);
|
|
40
42
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,+CAAyD;AAAhD,6HAAA,OAAO,OAAgB;AAChC,2CAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,+CAAyD;AAAhD,6HAAA,OAAO,OAAgB;AAChC,2CAAyB;AACzB,yDAWgC;AAV9B,kHAAA,gBAAgB,OAAA;AAChB,4GAAA,UAAU,OAAA;AACV,mHAAA,iBAAiB,OAAA;AACjB,iHAAA,eAAe,OAAA;AACf,iHAAA,eAAe,OAAA;AACf,uHAAA,qBAAqB,OAAA;AACrB,qHAAA,mBAAmB,OAAA;AACnB,uHAAA,qBAAqB,OAAA;AACrB,8GAAA,YAAY,OAAA;AACZ,gHAAA,cAAc,OAAA;AAEhB,yDAQgC;AAP9B,iHAAA,eAAe,OAAA;AACf,iHAAA,eAAe,OAAA;AACf,uHAAA,qBAAqB,OAAA;AACrB,uHAAA,qBAAqB,OAAA;AACrB,sGAAA,IAAI,OAAA;AACJ,2GAAA,SAAS,OAAA;AACT,2GAAA,SAAS,OAAA;AAEX,sDAAoC;AACpC,oDAAkC"}
|
|
@@ -61,6 +61,7 @@ export declare enum EgressStatus {
|
|
|
61
61
|
EGRESS_COMPLETE = 3,
|
|
62
62
|
EGRESS_FAILED = 4,
|
|
63
63
|
EGRESS_ABORTED = 5,
|
|
64
|
+
EGRESS_LIMIT_REACHED = 6,
|
|
64
65
|
UNRECOGNIZED = -1
|
|
65
66
|
}
|
|
66
67
|
export declare function egressStatusFromJSON(object: any): EgressStatus;
|
|
@@ -204,6 +205,7 @@ export interface StopEgressRequest {
|
|
|
204
205
|
export interface EgressInfo {
|
|
205
206
|
egressId: string;
|
|
206
207
|
roomId: string;
|
|
208
|
+
roomName: string;
|
|
207
209
|
status: EgressStatus;
|
|
208
210
|
startedAt: number;
|
|
209
211
|
endedAt: number;
|
|
@@ -220,8 +222,19 @@ export interface StreamInfoList {
|
|
|
220
222
|
}
|
|
221
223
|
export interface StreamInfo {
|
|
222
224
|
url: string;
|
|
225
|
+
startedAt: number;
|
|
226
|
+
endedAt: number;
|
|
223
227
|
duration: number;
|
|
228
|
+
status: StreamInfo_Status;
|
|
224
229
|
}
|
|
230
|
+
export declare enum StreamInfo_Status {
|
|
231
|
+
ACTIVE = 0,
|
|
232
|
+
FINISHED = 1,
|
|
233
|
+
FAILED = 2,
|
|
234
|
+
UNRECOGNIZED = -1
|
|
235
|
+
}
|
|
236
|
+
export declare function streamInfo_StatusFromJSON(object: any): StreamInfo_Status;
|
|
237
|
+
export declare function streamInfo_StatusToJSON(object: StreamInfo_Status): string;
|
|
225
238
|
export interface FileInfo {
|
|
226
239
|
filename: string;
|
|
227
240
|
duration: number;
|
|
@@ -1054,6 +1067,7 @@ export declare const ListEgressResponse: {
|
|
|
1054
1067
|
items?: {
|
|
1055
1068
|
egressId?: string | undefined;
|
|
1056
1069
|
roomId?: string | undefined;
|
|
1070
|
+
roomName?: string | undefined;
|
|
1057
1071
|
status?: EgressStatus | undefined;
|
|
1058
1072
|
startedAt?: number | undefined;
|
|
1059
1073
|
endedAt?: number | undefined;
|
|
@@ -1213,7 +1227,10 @@ export declare const ListEgressResponse: {
|
|
|
1213
1227
|
stream?: {
|
|
1214
1228
|
info?: {
|
|
1215
1229
|
url?: string | undefined;
|
|
1230
|
+
startedAt?: number | undefined;
|
|
1231
|
+
endedAt?: number | undefined;
|
|
1216
1232
|
duration?: number | undefined;
|
|
1233
|
+
status?: StreamInfo_Status | undefined;
|
|
1217
1234
|
}[] | undefined;
|
|
1218
1235
|
} | undefined;
|
|
1219
1236
|
file?: {
|
|
@@ -1234,6 +1251,7 @@ export declare const ListEgressResponse: {
|
|
|
1234
1251
|
items?: ({
|
|
1235
1252
|
egressId?: string | undefined;
|
|
1236
1253
|
roomId?: string | undefined;
|
|
1254
|
+
roomName?: string | undefined;
|
|
1237
1255
|
status?: EgressStatus | undefined;
|
|
1238
1256
|
startedAt?: number | undefined;
|
|
1239
1257
|
endedAt?: number | undefined;
|
|
@@ -1393,7 +1411,10 @@ export declare const ListEgressResponse: {
|
|
|
1393
1411
|
stream?: {
|
|
1394
1412
|
info?: {
|
|
1395
1413
|
url?: string | undefined;
|
|
1414
|
+
startedAt?: number | undefined;
|
|
1415
|
+
endedAt?: number | undefined;
|
|
1396
1416
|
duration?: number | undefined;
|
|
1417
|
+
status?: StreamInfo_Status | undefined;
|
|
1397
1418
|
}[] | undefined;
|
|
1398
1419
|
} | undefined;
|
|
1399
1420
|
file?: {
|
|
@@ -1412,6 +1433,7 @@ export declare const ListEgressResponse: {
|
|
|
1412
1433
|
}[] & ({
|
|
1413
1434
|
egressId?: string | undefined;
|
|
1414
1435
|
roomId?: string | undefined;
|
|
1436
|
+
roomName?: string | undefined;
|
|
1415
1437
|
status?: EgressStatus | undefined;
|
|
1416
1438
|
startedAt?: number | undefined;
|
|
1417
1439
|
endedAt?: number | undefined;
|
|
@@ -1571,7 +1593,10 @@ export declare const ListEgressResponse: {
|
|
|
1571
1593
|
stream?: {
|
|
1572
1594
|
info?: {
|
|
1573
1595
|
url?: string | undefined;
|
|
1596
|
+
startedAt?: number | undefined;
|
|
1597
|
+
endedAt?: number | undefined;
|
|
1574
1598
|
duration?: number | undefined;
|
|
1599
|
+
status?: StreamInfo_Status | undefined;
|
|
1575
1600
|
}[] | undefined;
|
|
1576
1601
|
} | undefined;
|
|
1577
1602
|
file?: {
|
|
@@ -1590,6 +1615,7 @@ export declare const ListEgressResponse: {
|
|
|
1590
1615
|
} & {
|
|
1591
1616
|
egressId?: string | undefined;
|
|
1592
1617
|
roomId?: string | undefined;
|
|
1618
|
+
roomName?: string | undefined;
|
|
1593
1619
|
status?: EgressStatus | undefined;
|
|
1594
1620
|
startedAt?: number | undefined;
|
|
1595
1621
|
endedAt?: number | undefined;
|
|
@@ -2087,21 +2113,36 @@ export declare const ListEgressResponse: {
|
|
|
2087
2113
|
stream?: ({
|
|
2088
2114
|
info?: {
|
|
2089
2115
|
url?: string | undefined;
|
|
2116
|
+
startedAt?: number | undefined;
|
|
2117
|
+
endedAt?: number | undefined;
|
|
2090
2118
|
duration?: number | undefined;
|
|
2119
|
+
status?: StreamInfo_Status | undefined;
|
|
2091
2120
|
}[] | undefined;
|
|
2092
2121
|
} & {
|
|
2093
2122
|
info?: ({
|
|
2094
2123
|
url?: string | undefined;
|
|
2124
|
+
startedAt?: number | undefined;
|
|
2125
|
+
endedAt?: number | undefined;
|
|
2095
2126
|
duration?: number | undefined;
|
|
2127
|
+
status?: StreamInfo_Status | undefined;
|
|
2096
2128
|
}[] & ({
|
|
2097
2129
|
url?: string | undefined;
|
|
2130
|
+
startedAt?: number | undefined;
|
|
2131
|
+
endedAt?: number | undefined;
|
|
2098
2132
|
duration?: number | undefined;
|
|
2133
|
+
status?: StreamInfo_Status | undefined;
|
|
2099
2134
|
} & {
|
|
2100
2135
|
url?: string | undefined;
|
|
2136
|
+
startedAt?: number | undefined;
|
|
2137
|
+
endedAt?: number | undefined;
|
|
2101
2138
|
duration?: number | undefined;
|
|
2139
|
+
status?: StreamInfo_Status | undefined;
|
|
2102
2140
|
} & Record<Exclude<keyof I["items"][number]["stream"]["info"][number], keyof StreamInfo>, never>)[] & Record<Exclude<keyof I["items"][number]["stream"]["info"], number | keyof {
|
|
2103
2141
|
url?: string | undefined;
|
|
2142
|
+
startedAt?: number | undefined;
|
|
2143
|
+
endedAt?: number | undefined;
|
|
2104
2144
|
duration?: number | undefined;
|
|
2145
|
+
status?: StreamInfo_Status | undefined;
|
|
2105
2146
|
}[]>, never>) | undefined;
|
|
2106
2147
|
} & Record<Exclude<keyof I["items"][number]["stream"], "info">, never>) | undefined;
|
|
2107
2148
|
file?: ({
|
|
@@ -2131,6 +2172,7 @@ export declare const ListEgressResponse: {
|
|
|
2131
2172
|
} & Record<Exclude<keyof I["items"][number], keyof EgressInfo>, never>)[] & Record<Exclude<keyof I["items"], number | keyof {
|
|
2132
2173
|
egressId?: string | undefined;
|
|
2133
2174
|
roomId?: string | undefined;
|
|
2175
|
+
roomName?: string | undefined;
|
|
2134
2176
|
status?: EgressStatus | undefined;
|
|
2135
2177
|
startedAt?: number | undefined;
|
|
2136
2178
|
endedAt?: number | undefined;
|
|
@@ -2290,7 +2332,10 @@ export declare const ListEgressResponse: {
|
|
|
2290
2332
|
stream?: {
|
|
2291
2333
|
info?: {
|
|
2292
2334
|
url?: string | undefined;
|
|
2335
|
+
startedAt?: number | undefined;
|
|
2336
|
+
endedAt?: number | undefined;
|
|
2293
2337
|
duration?: number | undefined;
|
|
2338
|
+
status?: StreamInfo_Status | undefined;
|
|
2294
2339
|
}[] | undefined;
|
|
2295
2340
|
} | undefined;
|
|
2296
2341
|
file?: {
|
|
@@ -2328,6 +2373,7 @@ export declare const EgressInfo: {
|
|
|
2328
2373
|
fromPartial<I extends {
|
|
2329
2374
|
egressId?: string | undefined;
|
|
2330
2375
|
roomId?: string | undefined;
|
|
2376
|
+
roomName?: string | undefined;
|
|
2331
2377
|
status?: EgressStatus | undefined;
|
|
2332
2378
|
startedAt?: number | undefined;
|
|
2333
2379
|
endedAt?: number | undefined;
|
|
@@ -2487,7 +2533,10 @@ export declare const EgressInfo: {
|
|
|
2487
2533
|
stream?: {
|
|
2488
2534
|
info?: {
|
|
2489
2535
|
url?: string | undefined;
|
|
2536
|
+
startedAt?: number | undefined;
|
|
2537
|
+
endedAt?: number | undefined;
|
|
2490
2538
|
duration?: number | undefined;
|
|
2539
|
+
status?: StreamInfo_Status | undefined;
|
|
2491
2540
|
}[] | undefined;
|
|
2492
2541
|
} | undefined;
|
|
2493
2542
|
file?: {
|
|
@@ -2506,6 +2555,7 @@ export declare const EgressInfo: {
|
|
|
2506
2555
|
} & {
|
|
2507
2556
|
egressId?: string | undefined;
|
|
2508
2557
|
roomId?: string | undefined;
|
|
2558
|
+
roomName?: string | undefined;
|
|
2509
2559
|
status?: EgressStatus | undefined;
|
|
2510
2560
|
startedAt?: number | undefined;
|
|
2511
2561
|
endedAt?: number | undefined;
|
|
@@ -3003,21 +3053,36 @@ export declare const EgressInfo: {
|
|
|
3003
3053
|
stream?: ({
|
|
3004
3054
|
info?: {
|
|
3005
3055
|
url?: string | undefined;
|
|
3056
|
+
startedAt?: number | undefined;
|
|
3057
|
+
endedAt?: number | undefined;
|
|
3006
3058
|
duration?: number | undefined;
|
|
3059
|
+
status?: StreamInfo_Status | undefined;
|
|
3007
3060
|
}[] | undefined;
|
|
3008
3061
|
} & {
|
|
3009
3062
|
info?: ({
|
|
3010
3063
|
url?: string | undefined;
|
|
3064
|
+
startedAt?: number | undefined;
|
|
3065
|
+
endedAt?: number | undefined;
|
|
3011
3066
|
duration?: number | undefined;
|
|
3067
|
+
status?: StreamInfo_Status | undefined;
|
|
3012
3068
|
}[] & ({
|
|
3013
3069
|
url?: string | undefined;
|
|
3070
|
+
startedAt?: number | undefined;
|
|
3071
|
+
endedAt?: number | undefined;
|
|
3014
3072
|
duration?: number | undefined;
|
|
3073
|
+
status?: StreamInfo_Status | undefined;
|
|
3015
3074
|
} & {
|
|
3016
3075
|
url?: string | undefined;
|
|
3076
|
+
startedAt?: number | undefined;
|
|
3077
|
+
endedAt?: number | undefined;
|
|
3017
3078
|
duration?: number | undefined;
|
|
3079
|
+
status?: StreamInfo_Status | undefined;
|
|
3018
3080
|
} & Record<Exclude<keyof I["stream"]["info"][number], keyof StreamInfo>, never>)[] & Record<Exclude<keyof I["stream"]["info"], number | keyof {
|
|
3019
3081
|
url?: string | undefined;
|
|
3082
|
+
startedAt?: number | undefined;
|
|
3083
|
+
endedAt?: number | undefined;
|
|
3020
3084
|
duration?: number | undefined;
|
|
3085
|
+
status?: StreamInfo_Status | undefined;
|
|
3021
3086
|
}[]>, never>) | undefined;
|
|
3022
3087
|
} & Record<Exclude<keyof I["stream"], "info">, never>) | undefined;
|
|
3023
3088
|
file?: ({
|
|
@@ -3054,21 +3119,36 @@ export declare const StreamInfoList: {
|
|
|
3054
3119
|
fromPartial<I extends {
|
|
3055
3120
|
info?: {
|
|
3056
3121
|
url?: string | undefined;
|
|
3122
|
+
startedAt?: number | undefined;
|
|
3123
|
+
endedAt?: number | undefined;
|
|
3057
3124
|
duration?: number | undefined;
|
|
3125
|
+
status?: StreamInfo_Status | undefined;
|
|
3058
3126
|
}[] | undefined;
|
|
3059
3127
|
} & {
|
|
3060
3128
|
info?: ({
|
|
3061
3129
|
url?: string | undefined;
|
|
3130
|
+
startedAt?: number | undefined;
|
|
3131
|
+
endedAt?: number | undefined;
|
|
3062
3132
|
duration?: number | undefined;
|
|
3133
|
+
status?: StreamInfo_Status | undefined;
|
|
3063
3134
|
}[] & ({
|
|
3064
3135
|
url?: string | undefined;
|
|
3136
|
+
startedAt?: number | undefined;
|
|
3137
|
+
endedAt?: number | undefined;
|
|
3065
3138
|
duration?: number | undefined;
|
|
3139
|
+
status?: StreamInfo_Status | undefined;
|
|
3066
3140
|
} & {
|
|
3067
3141
|
url?: string | undefined;
|
|
3142
|
+
startedAt?: number | undefined;
|
|
3143
|
+
endedAt?: number | undefined;
|
|
3068
3144
|
duration?: number | undefined;
|
|
3145
|
+
status?: StreamInfo_Status | undefined;
|
|
3069
3146
|
} & Record<Exclude<keyof I["info"][number], keyof StreamInfo>, never>)[] & Record<Exclude<keyof I["info"], number | keyof {
|
|
3070
3147
|
url?: string | undefined;
|
|
3148
|
+
startedAt?: number | undefined;
|
|
3149
|
+
endedAt?: number | undefined;
|
|
3071
3150
|
duration?: number | undefined;
|
|
3151
|
+
status?: StreamInfo_Status | undefined;
|
|
3072
3152
|
}[]>, never>) | undefined;
|
|
3073
3153
|
} & Record<Exclude<keyof I, "info">, never>>(object: I): StreamInfoList;
|
|
3074
3154
|
};
|
|
@@ -3079,10 +3159,16 @@ export declare const StreamInfo: {
|
|
|
3079
3159
|
toJSON(message: StreamInfo): unknown;
|
|
3080
3160
|
fromPartial<I extends {
|
|
3081
3161
|
url?: string | undefined;
|
|
3162
|
+
startedAt?: number | undefined;
|
|
3163
|
+
endedAt?: number | undefined;
|
|
3082
3164
|
duration?: number | undefined;
|
|
3165
|
+
status?: StreamInfo_Status | undefined;
|
|
3083
3166
|
} & {
|
|
3084
3167
|
url?: string | undefined;
|
|
3168
|
+
startedAt?: number | undefined;
|
|
3169
|
+
endedAt?: number | undefined;
|
|
3085
3170
|
duration?: number | undefined;
|
|
3171
|
+
status?: StreamInfo_Status | undefined;
|
|
3086
3172
|
} & Record<Exclude<keyof I, keyof StreamInfo>, never>>(object: I): StreamInfo;
|
|
3087
3173
|
};
|
|
3088
3174
|
export declare const FileInfo: {
|
|
@@ -22,7 +22,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
22
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
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.egressStatusToJSON = exports.egressStatusFromJSON = exports.EgressStatus = exports.encodingOptionsPresetToJSON = exports.encodingOptionsPresetFromJSON = exports.EncodingOptionsPreset = exports.videoCodecToJSON = exports.videoCodecFromJSON = exports.VideoCodec = exports.audioCodecToJSON = exports.audioCodecFromJSON = exports.AudioCodec = exports.segmentedFileProtocolToJSON = exports.segmentedFileProtocolFromJSON = exports.SegmentedFileProtocol = exports.streamProtocolToJSON = exports.streamProtocolFromJSON = exports.StreamProtocol = exports.encodedFileTypeToJSON = exports.encodedFileTypeFromJSON = exports.EncodedFileType = exports.protobufPackage = void 0;
|
|
25
|
+
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.videoCodecToJSON = exports.videoCodecFromJSON = exports.VideoCodec = exports.audioCodecToJSON = exports.audioCodecFromJSON = exports.AudioCodec = exports.segmentedFileProtocolToJSON = exports.segmentedFileProtocolFromJSON = exports.SegmentedFileProtocol = exports.streamProtocolToJSON = exports.streamProtocolFromJSON = exports.StreamProtocol = exports.encodedFileTypeToJSON = exports.encodedFileTypeFromJSON = exports.EncodedFileType = exports.protobufPackage = void 0;
|
|
26
26
|
/* eslint-disable */
|
|
27
27
|
const long_1 = __importDefault(require("long"));
|
|
28
28
|
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
@@ -269,6 +269,7 @@ var EgressStatus;
|
|
|
269
269
|
EgressStatus[EgressStatus["EGRESS_COMPLETE"] = 3] = "EGRESS_COMPLETE";
|
|
270
270
|
EgressStatus[EgressStatus["EGRESS_FAILED"] = 4] = "EGRESS_FAILED";
|
|
271
271
|
EgressStatus[EgressStatus["EGRESS_ABORTED"] = 5] = "EGRESS_ABORTED";
|
|
272
|
+
EgressStatus[EgressStatus["EGRESS_LIMIT_REACHED"] = 6] = "EGRESS_LIMIT_REACHED";
|
|
272
273
|
EgressStatus[EgressStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
273
274
|
})(EgressStatus = exports.EgressStatus || (exports.EgressStatus = {}));
|
|
274
275
|
function egressStatusFromJSON(object) {
|
|
@@ -291,6 +292,9 @@ function egressStatusFromJSON(object) {
|
|
|
291
292
|
case 5:
|
|
292
293
|
case 'EGRESS_ABORTED':
|
|
293
294
|
return EgressStatus.EGRESS_ABORTED;
|
|
295
|
+
case 6:
|
|
296
|
+
case 'EGRESS_LIMIT_REACHED':
|
|
297
|
+
return EgressStatus.EGRESS_LIMIT_REACHED;
|
|
294
298
|
case -1:
|
|
295
299
|
case 'UNRECOGNIZED':
|
|
296
300
|
default:
|
|
@@ -312,11 +316,51 @@ function egressStatusToJSON(object) {
|
|
|
312
316
|
return 'EGRESS_FAILED';
|
|
313
317
|
case EgressStatus.EGRESS_ABORTED:
|
|
314
318
|
return 'EGRESS_ABORTED';
|
|
319
|
+
case EgressStatus.EGRESS_LIMIT_REACHED:
|
|
320
|
+
return 'EGRESS_LIMIT_REACHED';
|
|
315
321
|
default:
|
|
316
322
|
return 'UNKNOWN';
|
|
317
323
|
}
|
|
318
324
|
}
|
|
319
325
|
exports.egressStatusToJSON = egressStatusToJSON;
|
|
326
|
+
var StreamInfo_Status;
|
|
327
|
+
(function (StreamInfo_Status) {
|
|
328
|
+
StreamInfo_Status[StreamInfo_Status["ACTIVE"] = 0] = "ACTIVE";
|
|
329
|
+
StreamInfo_Status[StreamInfo_Status["FINISHED"] = 1] = "FINISHED";
|
|
330
|
+
StreamInfo_Status[StreamInfo_Status["FAILED"] = 2] = "FAILED";
|
|
331
|
+
StreamInfo_Status[StreamInfo_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
332
|
+
})(StreamInfo_Status = exports.StreamInfo_Status || (exports.StreamInfo_Status = {}));
|
|
333
|
+
function streamInfo_StatusFromJSON(object) {
|
|
334
|
+
switch (object) {
|
|
335
|
+
case 0:
|
|
336
|
+
case 'ACTIVE':
|
|
337
|
+
return StreamInfo_Status.ACTIVE;
|
|
338
|
+
case 1:
|
|
339
|
+
case 'FINISHED':
|
|
340
|
+
return StreamInfo_Status.FINISHED;
|
|
341
|
+
case 2:
|
|
342
|
+
case 'FAILED':
|
|
343
|
+
return StreamInfo_Status.FAILED;
|
|
344
|
+
case -1:
|
|
345
|
+
case 'UNRECOGNIZED':
|
|
346
|
+
default:
|
|
347
|
+
return StreamInfo_Status.UNRECOGNIZED;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
exports.streamInfo_StatusFromJSON = streamInfo_StatusFromJSON;
|
|
351
|
+
function streamInfo_StatusToJSON(object) {
|
|
352
|
+
switch (object) {
|
|
353
|
+
case StreamInfo_Status.ACTIVE:
|
|
354
|
+
return 'ACTIVE';
|
|
355
|
+
case StreamInfo_Status.FINISHED:
|
|
356
|
+
return 'FINISHED';
|
|
357
|
+
case StreamInfo_Status.FAILED:
|
|
358
|
+
return 'FAILED';
|
|
359
|
+
default:
|
|
360
|
+
return 'UNKNOWN';
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
exports.streamInfo_StatusToJSON = streamInfo_StatusToJSON;
|
|
320
364
|
function createBaseRoomCompositeEgressRequest() {
|
|
321
365
|
return {
|
|
322
366
|
roomName: '',
|
|
@@ -1621,6 +1665,7 @@ function createBaseEgressInfo() {
|
|
|
1621
1665
|
return {
|
|
1622
1666
|
egressId: '',
|
|
1623
1667
|
roomId: '',
|
|
1668
|
+
roomName: '',
|
|
1624
1669
|
status: 0,
|
|
1625
1670
|
startedAt: 0,
|
|
1626
1671
|
endedAt: 0,
|
|
@@ -1641,6 +1686,9 @@ exports.EgressInfo = {
|
|
|
1641
1686
|
if (message.roomId !== '') {
|
|
1642
1687
|
writer.uint32(18).string(message.roomId);
|
|
1643
1688
|
}
|
|
1689
|
+
if (message.roomName !== '') {
|
|
1690
|
+
writer.uint32(106).string(message.roomName);
|
|
1691
|
+
}
|
|
1644
1692
|
if (message.status !== 0) {
|
|
1645
1693
|
writer.uint32(24).int32(message.status);
|
|
1646
1694
|
}
|
|
@@ -1686,6 +1734,9 @@ exports.EgressInfo = {
|
|
|
1686
1734
|
case 2:
|
|
1687
1735
|
message.roomId = reader.string();
|
|
1688
1736
|
break;
|
|
1737
|
+
case 13:
|
|
1738
|
+
message.roomName = reader.string();
|
|
1739
|
+
break;
|
|
1689
1740
|
case 3:
|
|
1690
1741
|
message.status = reader.int32();
|
|
1691
1742
|
break;
|
|
@@ -1727,6 +1778,7 @@ exports.EgressInfo = {
|
|
|
1727
1778
|
return {
|
|
1728
1779
|
egressId: isSet(object.egressId) ? String(object.egressId) : '',
|
|
1729
1780
|
roomId: isSet(object.roomId) ? String(object.roomId) : '',
|
|
1781
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : '',
|
|
1730
1782
|
status: isSet(object.status) ? egressStatusFromJSON(object.status) : 0,
|
|
1731
1783
|
startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
|
|
1732
1784
|
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
|
|
@@ -1747,6 +1799,7 @@ exports.EgressInfo = {
|
|
|
1747
1799
|
const obj = {};
|
|
1748
1800
|
message.egressId !== undefined && (obj.egressId = message.egressId);
|
|
1749
1801
|
message.roomId !== undefined && (obj.roomId = message.roomId);
|
|
1802
|
+
message.roomName !== undefined && (obj.roomName = message.roomName);
|
|
1750
1803
|
message.status !== undefined && (obj.status = egressStatusToJSON(message.status));
|
|
1751
1804
|
message.startedAt !== undefined && (obj.startedAt = Math.round(message.startedAt));
|
|
1752
1805
|
message.endedAt !== undefined && (obj.endedAt = Math.round(message.endedAt));
|
|
@@ -1770,14 +1823,15 @@ exports.EgressInfo = {
|
|
|
1770
1823
|
return obj;
|
|
1771
1824
|
},
|
|
1772
1825
|
fromPartial(object) {
|
|
1773
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1826
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1774
1827
|
const message = createBaseEgressInfo();
|
|
1775
1828
|
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : '';
|
|
1776
1829
|
message.roomId = (_b = object.roomId) !== null && _b !== void 0 ? _b : '';
|
|
1777
|
-
message.
|
|
1778
|
-
message.
|
|
1779
|
-
message.
|
|
1780
|
-
message.
|
|
1830
|
+
message.roomName = (_c = object.roomName) !== null && _c !== void 0 ? _c : '';
|
|
1831
|
+
message.status = (_d = object.status) !== null && _d !== void 0 ? _d : 0;
|
|
1832
|
+
message.startedAt = (_e = object.startedAt) !== null && _e !== void 0 ? _e : 0;
|
|
1833
|
+
message.endedAt = (_f = object.endedAt) !== null && _f !== void 0 ? _f : 0;
|
|
1834
|
+
message.error = (_g = object.error) !== null && _g !== void 0 ? _g : '';
|
|
1781
1835
|
message.roomComposite =
|
|
1782
1836
|
object.roomComposite !== undefined && object.roomComposite !== null
|
|
1783
1837
|
? exports.RoomCompositeEgressRequest.fromPartial(object.roomComposite)
|
|
@@ -1855,16 +1909,25 @@ exports.StreamInfoList = {
|
|
|
1855
1909
|
},
|
|
1856
1910
|
};
|
|
1857
1911
|
function createBaseStreamInfo() {
|
|
1858
|
-
return { url: '', duration: 0 };
|
|
1912
|
+
return { url: '', startedAt: 0, endedAt: 0, duration: 0, status: 0 };
|
|
1859
1913
|
}
|
|
1860
1914
|
exports.StreamInfo = {
|
|
1861
1915
|
encode(message, writer = _m0.Writer.create()) {
|
|
1862
1916
|
if (message.url !== '') {
|
|
1863
1917
|
writer.uint32(10).string(message.url);
|
|
1864
1918
|
}
|
|
1919
|
+
if (message.startedAt !== 0) {
|
|
1920
|
+
writer.uint32(16).int64(message.startedAt);
|
|
1921
|
+
}
|
|
1922
|
+
if (message.endedAt !== 0) {
|
|
1923
|
+
writer.uint32(24).int64(message.endedAt);
|
|
1924
|
+
}
|
|
1865
1925
|
if (message.duration !== 0) {
|
|
1866
1926
|
writer.uint32(32).int64(message.duration);
|
|
1867
1927
|
}
|
|
1928
|
+
if (message.status !== 0) {
|
|
1929
|
+
writer.uint32(40).int32(message.status);
|
|
1930
|
+
}
|
|
1868
1931
|
return writer;
|
|
1869
1932
|
},
|
|
1870
1933
|
decode(input, length) {
|
|
@@ -1877,9 +1940,18 @@ exports.StreamInfo = {
|
|
|
1877
1940
|
case 1:
|
|
1878
1941
|
message.url = reader.string();
|
|
1879
1942
|
break;
|
|
1943
|
+
case 2:
|
|
1944
|
+
message.startedAt = longToNumber(reader.int64());
|
|
1945
|
+
break;
|
|
1946
|
+
case 3:
|
|
1947
|
+
message.endedAt = longToNumber(reader.int64());
|
|
1948
|
+
break;
|
|
1880
1949
|
case 4:
|
|
1881
1950
|
message.duration = longToNumber(reader.int64());
|
|
1882
1951
|
break;
|
|
1952
|
+
case 5:
|
|
1953
|
+
message.status = reader.int32();
|
|
1954
|
+
break;
|
|
1883
1955
|
default:
|
|
1884
1956
|
reader.skipType(tag & 7);
|
|
1885
1957
|
break;
|
|
@@ -1890,20 +1962,29 @@ exports.StreamInfo = {
|
|
|
1890
1962
|
fromJSON(object) {
|
|
1891
1963
|
return {
|
|
1892
1964
|
url: isSet(object.url) ? String(object.url) : '',
|
|
1965
|
+
startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
|
|
1966
|
+
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
|
|
1893
1967
|
duration: isSet(object.duration) ? Number(object.duration) : 0,
|
|
1968
|
+
status: isSet(object.status) ? streamInfo_StatusFromJSON(object.status) : 0,
|
|
1894
1969
|
};
|
|
1895
1970
|
},
|
|
1896
1971
|
toJSON(message) {
|
|
1897
1972
|
const obj = {};
|
|
1898
1973
|
message.url !== undefined && (obj.url = message.url);
|
|
1974
|
+
message.startedAt !== undefined && (obj.startedAt = Math.round(message.startedAt));
|
|
1975
|
+
message.endedAt !== undefined && (obj.endedAt = Math.round(message.endedAt));
|
|
1899
1976
|
message.duration !== undefined && (obj.duration = Math.round(message.duration));
|
|
1977
|
+
message.status !== undefined && (obj.status = streamInfo_StatusToJSON(message.status));
|
|
1900
1978
|
return obj;
|
|
1901
1979
|
},
|
|
1902
1980
|
fromPartial(object) {
|
|
1903
|
-
var _a, _b;
|
|
1981
|
+
var _a, _b, _c, _d, _e;
|
|
1904
1982
|
const message = createBaseStreamInfo();
|
|
1905
1983
|
message.url = (_a = object.url) !== null && _a !== void 0 ? _a : '';
|
|
1906
|
-
message.
|
|
1984
|
+
message.startedAt = (_b = object.startedAt) !== null && _b !== void 0 ? _b : 0;
|
|
1985
|
+
message.endedAt = (_c = object.endedAt) !== null && _c !== void 0 ? _c : 0;
|
|
1986
|
+
message.duration = (_d = object.duration) !== null && _d !== void 0 ? _d : 0;
|
|
1987
|
+
message.status = (_e = object.status) !== null && _e !== void 0 ? _e : 0;
|
|
1907
1988
|
return message;
|
|
1908
1989
|
},
|
|
1909
1990
|
};
|