livekit-server-sdk 1.2.6 → 1.2.7
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/NOTICE +13 -0
- package/dist/EgressClient.d.ts +19 -0
- package/dist/EgressClient.js +23 -0
- package/dist/EgressClient.js.map +1 -1
- package/dist/IngressClient.d.ts +15 -0
- package/dist/IngressClient.js +9 -6
- package/dist/IngressClient.js.map +1 -1
- package/dist/RoomServiceClient.d.ts +17 -0
- package/dist/RoomServiceClient.js +6 -3
- package/dist/RoomServiceClient.js.map +1 -1
- package/dist/proto/google/protobuf/timestamp.d.ts +1 -1
- package/dist/proto/livekit_egress.d.ts +10291 -3938
- package/dist/proto/livekit_egress.js +751 -39
- package/dist/proto/livekit_egress.js.map +1 -1
- package/dist/proto/livekit_ingress.d.ts +16 -5
- package/dist/proto/livekit_ingress.js +46 -5
- package/dist/proto/livekit_ingress.js.map +1 -1
- package/dist/proto/livekit_models.d.ts +136 -27
- package/dist/proto/livekit_models.js +232 -39
- package/dist/proto/livekit_models.js.map +1 -1
- package/dist/proto/livekit_room.d.ts +2090 -417
- package/dist/proto/livekit_room.js +62 -5
- package/dist/proto/livekit_room.js.map +1 -1
- package/dist/proto/livekit_webhook.d.ts +2167 -328
- package/package.json +1 -1
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.StreamInfo = exports.StreamInfoList = exports.EgressInfo = exports.StopEgressRequest = exports.ListEgressResponse = exports.ListEgressRequest = exports.UpdateOutputsRequest = exports.UpdateStreamRequest = exports.UpdateLayoutRequest = exports.EncodingOptions = exports.StreamOutput = exports.AliOSSUpload = exports.AzureBlobUpload = exports.GCPUpload = exports.S3Upload_MetadataEntry = exports.S3Upload = exports.ImageOutput = exports.DirectFileOutput = exports.SegmentedFileOutput = exports.EncodedFileOutput = exports.TrackEgressRequest = exports.TrackCompositeEgressRequest = exports.ParticipantEgressRequest = 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.imageFileSuffixToJSON = exports.imageFileSuffixFromJSON = exports.ImageFileSuffix = exports.segmentedFileSuffixToJSON = exports.segmentedFileSuffixFromJSON = exports.SegmentedFileSuffix = exports.segmentedFileProtocolToJSON = exports.segmentedFileProtocolFromJSON = exports.SegmentedFileProtocol = exports.encodedFileTypeToJSON = exports.encodedFileTypeFromJSON = exports.EncodedFileType = exports.protobufPackage = void 0;
|
|
7
|
+
exports.AutoTrackEgress = exports.AutoParticipantEgress = exports.ImagesInfo = exports.SegmentsInfo = exports.FileInfo = void 0;
|
|
7
8
|
/* eslint-disable */
|
|
8
9
|
const long_1 = __importDefault(require("long"));
|
|
9
10
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -115,6 +116,39 @@ function segmentedFileSuffixToJSON(object) {
|
|
|
115
116
|
}
|
|
116
117
|
}
|
|
117
118
|
exports.segmentedFileSuffixToJSON = segmentedFileSuffixToJSON;
|
|
119
|
+
var ImageFileSuffix;
|
|
120
|
+
(function (ImageFileSuffix) {
|
|
121
|
+
ImageFileSuffix[ImageFileSuffix["IMAGE_SUFFIX_INDEX"] = 0] = "IMAGE_SUFFIX_INDEX";
|
|
122
|
+
ImageFileSuffix[ImageFileSuffix["IMAGE_SUFFIX_TIMESTAMP"] = 1] = "IMAGE_SUFFIX_TIMESTAMP";
|
|
123
|
+
ImageFileSuffix[ImageFileSuffix["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
124
|
+
})(ImageFileSuffix = exports.ImageFileSuffix || (exports.ImageFileSuffix = {}));
|
|
125
|
+
function imageFileSuffixFromJSON(object) {
|
|
126
|
+
switch (object) {
|
|
127
|
+
case 0:
|
|
128
|
+
case "IMAGE_SUFFIX_INDEX":
|
|
129
|
+
return ImageFileSuffix.IMAGE_SUFFIX_INDEX;
|
|
130
|
+
case 1:
|
|
131
|
+
case "IMAGE_SUFFIX_TIMESTAMP":
|
|
132
|
+
return ImageFileSuffix.IMAGE_SUFFIX_TIMESTAMP;
|
|
133
|
+
case -1:
|
|
134
|
+
case "UNRECOGNIZED":
|
|
135
|
+
default:
|
|
136
|
+
return ImageFileSuffix.UNRECOGNIZED;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
exports.imageFileSuffixFromJSON = imageFileSuffixFromJSON;
|
|
140
|
+
function imageFileSuffixToJSON(object) {
|
|
141
|
+
switch (object) {
|
|
142
|
+
case ImageFileSuffix.IMAGE_SUFFIX_INDEX:
|
|
143
|
+
return "IMAGE_SUFFIX_INDEX";
|
|
144
|
+
case ImageFileSuffix.IMAGE_SUFFIX_TIMESTAMP:
|
|
145
|
+
return "IMAGE_SUFFIX_TIMESTAMP";
|
|
146
|
+
case ImageFileSuffix.UNRECOGNIZED:
|
|
147
|
+
default:
|
|
148
|
+
return "UNRECOGNIZED";
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
exports.imageFileSuffixToJSON = imageFileSuffixToJSON;
|
|
118
152
|
var StreamProtocol;
|
|
119
153
|
(function (StreamProtocol) {
|
|
120
154
|
/** DEFAULT_PROTOCOL - protocol chosen based on urls */
|
|
@@ -343,6 +377,7 @@ function createBaseRoomCompositeEgressRequest() {
|
|
|
343
377
|
fileOutputs: [],
|
|
344
378
|
streamOutputs: [],
|
|
345
379
|
segmentOutputs: [],
|
|
380
|
+
imageOutputs: [],
|
|
346
381
|
};
|
|
347
382
|
}
|
|
348
383
|
exports.RoomCompositeEgressRequest = {
|
|
@@ -392,6 +427,11 @@ exports.RoomCompositeEgressRequest = {
|
|
|
392
427
|
exports.SegmentedFileOutput.encode(v, writer.uint32(106).fork()).ldelim();
|
|
393
428
|
}
|
|
394
429
|
}
|
|
430
|
+
if (message.imageOutputs !== undefined && message.imageOutputs.length !== 0) {
|
|
431
|
+
for (const v of message.imageOutputs) {
|
|
432
|
+
exports.ImageOutput.encode(v, writer.uint32(114).fork()).ldelim();
|
|
433
|
+
}
|
|
434
|
+
}
|
|
395
435
|
return writer;
|
|
396
436
|
},
|
|
397
437
|
decode(input, length) {
|
|
@@ -440,6 +480,9 @@ exports.RoomCompositeEgressRequest = {
|
|
|
440
480
|
case 13:
|
|
441
481
|
message.segmentOutputs.push(exports.SegmentedFileOutput.decode(reader, reader.uint32()));
|
|
442
482
|
break;
|
|
483
|
+
case 14:
|
|
484
|
+
message.imageOutputs.push(exports.ImageOutput.decode(reader, reader.uint32()));
|
|
485
|
+
break;
|
|
443
486
|
default:
|
|
444
487
|
reader.skipType(tag & 7);
|
|
445
488
|
break;
|
|
@@ -468,6 +511,9 @@ exports.RoomCompositeEgressRequest = {
|
|
|
468
511
|
segmentOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.segmentOutputs)
|
|
469
512
|
? object.segmentOutputs.map((e) => exports.SegmentedFileOutput.fromJSON(e))
|
|
470
513
|
: [],
|
|
514
|
+
imageOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.imageOutputs)
|
|
515
|
+
? object.imageOutputs.map((e) => exports.ImageOutput.fromJSON(e))
|
|
516
|
+
: [],
|
|
471
517
|
};
|
|
472
518
|
},
|
|
473
519
|
toJSON(message) {
|
|
@@ -503,10 +549,16 @@ exports.RoomCompositeEgressRequest = {
|
|
|
503
549
|
else {
|
|
504
550
|
obj.segmentOutputs = [];
|
|
505
551
|
}
|
|
552
|
+
if (message.imageOutputs) {
|
|
553
|
+
obj.imageOutputs = message.imageOutputs.map((e) => e ? exports.ImageOutput.toJSON(e) : undefined);
|
|
554
|
+
}
|
|
555
|
+
else {
|
|
556
|
+
obj.imageOutputs = [];
|
|
557
|
+
}
|
|
506
558
|
return obj;
|
|
507
559
|
},
|
|
508
560
|
fromPartial(object) {
|
|
509
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
561
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
510
562
|
const message = createBaseRoomCompositeEgressRequest();
|
|
511
563
|
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : "";
|
|
512
564
|
message.layout = (_b = object.layout) !== null && _b !== void 0 ? _b : "";
|
|
@@ -529,6 +581,7 @@ exports.RoomCompositeEgressRequest = {
|
|
|
529
581
|
message.fileOutputs = ((_g = object.fileOutputs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.EncodedFileOutput.fromPartial(e))) || [];
|
|
530
582
|
message.streamOutputs = ((_h = object.streamOutputs) === null || _h === void 0 ? void 0 : _h.map((e) => exports.StreamOutput.fromPartial(e))) || [];
|
|
531
583
|
message.segmentOutputs = ((_j = object.segmentOutputs) === null || _j === void 0 ? void 0 : _j.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
|
|
584
|
+
message.imageOutputs = ((_k = object.imageOutputs) === null || _k === void 0 ? void 0 : _k.map((e) => exports.ImageOutput.fromPartial(e))) || [];
|
|
532
585
|
return message;
|
|
533
586
|
},
|
|
534
587
|
};
|
|
@@ -546,6 +599,7 @@ function createBaseWebEgressRequest() {
|
|
|
546
599
|
fileOutputs: [],
|
|
547
600
|
streamOutputs: [],
|
|
548
601
|
segmentOutputs: [],
|
|
602
|
+
imageOutputs: [],
|
|
549
603
|
};
|
|
550
604
|
}
|
|
551
605
|
exports.WebEgressRequest = {
|
|
@@ -592,6 +646,11 @@ exports.WebEgressRequest = {
|
|
|
592
646
|
exports.SegmentedFileOutput.encode(v, writer.uint32(90).fork()).ldelim();
|
|
593
647
|
}
|
|
594
648
|
}
|
|
649
|
+
if (message.imageOutputs !== undefined && message.imageOutputs.length !== 0) {
|
|
650
|
+
for (const v of message.imageOutputs) {
|
|
651
|
+
exports.ImageOutput.encode(v, writer.uint32(106).fork()).ldelim();
|
|
652
|
+
}
|
|
653
|
+
}
|
|
595
654
|
return writer;
|
|
596
655
|
},
|
|
597
656
|
decode(input, length) {
|
|
@@ -637,6 +696,9 @@ exports.WebEgressRequest = {
|
|
|
637
696
|
case 11:
|
|
638
697
|
message.segmentOutputs.push(exports.SegmentedFileOutput.decode(reader, reader.uint32()));
|
|
639
698
|
break;
|
|
699
|
+
case 13:
|
|
700
|
+
message.imageOutputs.push(exports.ImageOutput.decode(reader, reader.uint32()));
|
|
701
|
+
break;
|
|
640
702
|
default:
|
|
641
703
|
reader.skipType(tag & 7);
|
|
642
704
|
break;
|
|
@@ -664,6 +726,9 @@ exports.WebEgressRequest = {
|
|
|
664
726
|
segmentOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.segmentOutputs)
|
|
665
727
|
? object.segmentOutputs.map((e) => exports.SegmentedFileOutput.fromJSON(e))
|
|
666
728
|
: [],
|
|
729
|
+
imageOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.imageOutputs)
|
|
730
|
+
? object.imageOutputs.map((e) => exports.ImageOutput.fromJSON(e))
|
|
731
|
+
: [],
|
|
667
732
|
};
|
|
668
733
|
},
|
|
669
734
|
toJSON(message) {
|
|
@@ -698,10 +763,16 @@ exports.WebEgressRequest = {
|
|
|
698
763
|
else {
|
|
699
764
|
obj.segmentOutputs = [];
|
|
700
765
|
}
|
|
766
|
+
if (message.imageOutputs) {
|
|
767
|
+
obj.imageOutputs = message.imageOutputs.map((e) => e ? exports.ImageOutput.toJSON(e) : undefined);
|
|
768
|
+
}
|
|
769
|
+
else {
|
|
770
|
+
obj.imageOutputs = [];
|
|
771
|
+
}
|
|
701
772
|
return obj;
|
|
702
773
|
},
|
|
703
774
|
fromPartial(object) {
|
|
704
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
775
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
705
776
|
const message = createBaseWebEgressRequest();
|
|
706
777
|
message.url = (_a = object.url) !== null && _a !== void 0 ? _a : "";
|
|
707
778
|
message.audioOnly = (_b = object.audioOnly) !== null && _b !== void 0 ? _b : false;
|
|
@@ -723,6 +794,173 @@ exports.WebEgressRequest = {
|
|
|
723
794
|
message.fileOutputs = ((_f = object.fileOutputs) === null || _f === void 0 ? void 0 : _f.map((e) => exports.EncodedFileOutput.fromPartial(e))) || [];
|
|
724
795
|
message.streamOutputs = ((_g = object.streamOutputs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.StreamOutput.fromPartial(e))) || [];
|
|
725
796
|
message.segmentOutputs = ((_h = object.segmentOutputs) === null || _h === void 0 ? void 0 : _h.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
|
|
797
|
+
message.imageOutputs = ((_j = object.imageOutputs) === null || _j === void 0 ? void 0 : _j.map((e) => exports.ImageOutput.fromPartial(e))) || [];
|
|
798
|
+
return message;
|
|
799
|
+
},
|
|
800
|
+
};
|
|
801
|
+
function createBaseParticipantEgressRequest() {
|
|
802
|
+
return {
|
|
803
|
+
roomName: "",
|
|
804
|
+
identity: "",
|
|
805
|
+
screenShare: false,
|
|
806
|
+
preset: undefined,
|
|
807
|
+
advanced: undefined,
|
|
808
|
+
fileOutputs: [],
|
|
809
|
+
streamOutputs: [],
|
|
810
|
+
segmentOutputs: [],
|
|
811
|
+
imageOutputs: [],
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
exports.ParticipantEgressRequest = {
|
|
815
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
816
|
+
if (message.roomName !== undefined && message.roomName !== "") {
|
|
817
|
+
writer.uint32(10).string(message.roomName);
|
|
818
|
+
}
|
|
819
|
+
if (message.identity !== undefined && message.identity !== "") {
|
|
820
|
+
writer.uint32(18).string(message.identity);
|
|
821
|
+
}
|
|
822
|
+
if (message.screenShare === true) {
|
|
823
|
+
writer.uint32(24).bool(message.screenShare);
|
|
824
|
+
}
|
|
825
|
+
if (message.preset !== undefined) {
|
|
826
|
+
writer.uint32(32).int32(message.preset);
|
|
827
|
+
}
|
|
828
|
+
if (message.advanced !== undefined) {
|
|
829
|
+
exports.EncodingOptions.encode(message.advanced, writer.uint32(42).fork()).ldelim();
|
|
830
|
+
}
|
|
831
|
+
if (message.fileOutputs !== undefined && message.fileOutputs.length !== 0) {
|
|
832
|
+
for (const v of message.fileOutputs) {
|
|
833
|
+
exports.EncodedFileOutput.encode(v, writer.uint32(50).fork()).ldelim();
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
if (message.streamOutputs !== undefined && message.streamOutputs.length !== 0) {
|
|
837
|
+
for (const v of message.streamOutputs) {
|
|
838
|
+
exports.StreamOutput.encode(v, writer.uint32(58).fork()).ldelim();
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
if (message.segmentOutputs !== undefined && message.segmentOutputs.length !== 0) {
|
|
842
|
+
for (const v of message.segmentOutputs) {
|
|
843
|
+
exports.SegmentedFileOutput.encode(v, writer.uint32(66).fork()).ldelim();
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
if (message.imageOutputs !== undefined && message.imageOutputs.length !== 0) {
|
|
847
|
+
for (const v of message.imageOutputs) {
|
|
848
|
+
exports.ImageOutput.encode(v, writer.uint32(74).fork()).ldelim();
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
return writer;
|
|
852
|
+
},
|
|
853
|
+
decode(input, length) {
|
|
854
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
855
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
856
|
+
const message = createBaseParticipantEgressRequest();
|
|
857
|
+
while (reader.pos < end) {
|
|
858
|
+
const tag = reader.uint32();
|
|
859
|
+
switch (tag >>> 3) {
|
|
860
|
+
case 1:
|
|
861
|
+
message.roomName = reader.string();
|
|
862
|
+
break;
|
|
863
|
+
case 2:
|
|
864
|
+
message.identity = reader.string();
|
|
865
|
+
break;
|
|
866
|
+
case 3:
|
|
867
|
+
message.screenShare = reader.bool();
|
|
868
|
+
break;
|
|
869
|
+
case 4:
|
|
870
|
+
message.preset = reader.int32();
|
|
871
|
+
break;
|
|
872
|
+
case 5:
|
|
873
|
+
message.advanced = exports.EncodingOptions.decode(reader, reader.uint32());
|
|
874
|
+
break;
|
|
875
|
+
case 6:
|
|
876
|
+
message.fileOutputs.push(exports.EncodedFileOutput.decode(reader, reader.uint32()));
|
|
877
|
+
break;
|
|
878
|
+
case 7:
|
|
879
|
+
message.streamOutputs.push(exports.StreamOutput.decode(reader, reader.uint32()));
|
|
880
|
+
break;
|
|
881
|
+
case 8:
|
|
882
|
+
message.segmentOutputs.push(exports.SegmentedFileOutput.decode(reader, reader.uint32()));
|
|
883
|
+
break;
|
|
884
|
+
case 9:
|
|
885
|
+
message.imageOutputs.push(exports.ImageOutput.decode(reader, reader.uint32()));
|
|
886
|
+
break;
|
|
887
|
+
default:
|
|
888
|
+
reader.skipType(tag & 7);
|
|
889
|
+
break;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
return message;
|
|
893
|
+
},
|
|
894
|
+
fromJSON(object) {
|
|
895
|
+
return {
|
|
896
|
+
roomName: isSet(object.roomName) ? String(object.roomName) : "",
|
|
897
|
+
identity: isSet(object.identity) ? String(object.identity) : "",
|
|
898
|
+
screenShare: isSet(object.screenShare) ? Boolean(object.screenShare) : false,
|
|
899
|
+
preset: isSet(object.preset) ? encodingOptionsPresetFromJSON(object.preset) : undefined,
|
|
900
|
+
advanced: isSet(object.advanced) ? exports.EncodingOptions.fromJSON(object.advanced) : undefined,
|
|
901
|
+
fileOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.fileOutputs)
|
|
902
|
+
? object.fileOutputs.map((e) => exports.EncodedFileOutput.fromJSON(e))
|
|
903
|
+
: [],
|
|
904
|
+
streamOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.streamOutputs)
|
|
905
|
+
? object.streamOutputs.map((e) => exports.StreamOutput.fromJSON(e))
|
|
906
|
+
: [],
|
|
907
|
+
segmentOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.segmentOutputs)
|
|
908
|
+
? object.segmentOutputs.map((e) => exports.SegmentedFileOutput.fromJSON(e))
|
|
909
|
+
: [],
|
|
910
|
+
imageOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.imageOutputs)
|
|
911
|
+
? object.imageOutputs.map((e) => exports.ImageOutput.fromJSON(e))
|
|
912
|
+
: [],
|
|
913
|
+
};
|
|
914
|
+
},
|
|
915
|
+
toJSON(message) {
|
|
916
|
+
const obj = {};
|
|
917
|
+
message.roomName !== undefined && (obj.roomName = message.roomName);
|
|
918
|
+
message.identity !== undefined && (obj.identity = message.identity);
|
|
919
|
+
message.screenShare !== undefined && (obj.screenShare = message.screenShare);
|
|
920
|
+
message.preset !== undefined &&
|
|
921
|
+
(obj.preset = message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
|
|
922
|
+
message.advanced !== undefined &&
|
|
923
|
+
(obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
|
|
924
|
+
if (message.fileOutputs) {
|
|
925
|
+
obj.fileOutputs = message.fileOutputs.map((e) => e ? exports.EncodedFileOutput.toJSON(e) : undefined);
|
|
926
|
+
}
|
|
927
|
+
else {
|
|
928
|
+
obj.fileOutputs = [];
|
|
929
|
+
}
|
|
930
|
+
if (message.streamOutputs) {
|
|
931
|
+
obj.streamOutputs = message.streamOutputs.map((e) => e ? exports.StreamOutput.toJSON(e) : undefined);
|
|
932
|
+
}
|
|
933
|
+
else {
|
|
934
|
+
obj.streamOutputs = [];
|
|
935
|
+
}
|
|
936
|
+
if (message.segmentOutputs) {
|
|
937
|
+
obj.segmentOutputs = message.segmentOutputs.map((e) => e ? exports.SegmentedFileOutput.toJSON(e) : undefined);
|
|
938
|
+
}
|
|
939
|
+
else {
|
|
940
|
+
obj.segmentOutputs = [];
|
|
941
|
+
}
|
|
942
|
+
if (message.imageOutputs) {
|
|
943
|
+
obj.imageOutputs = message.imageOutputs.map((e) => e ? exports.ImageOutput.toJSON(e) : undefined);
|
|
944
|
+
}
|
|
945
|
+
else {
|
|
946
|
+
obj.imageOutputs = [];
|
|
947
|
+
}
|
|
948
|
+
return obj;
|
|
949
|
+
},
|
|
950
|
+
fromPartial(object) {
|
|
951
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
952
|
+
const message = createBaseParticipantEgressRequest();
|
|
953
|
+
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : "";
|
|
954
|
+
message.identity = (_b = object.identity) !== null && _b !== void 0 ? _b : "";
|
|
955
|
+
message.screenShare = (_c = object.screenShare) !== null && _c !== void 0 ? _c : false;
|
|
956
|
+
message.preset = (_d = object.preset) !== null && _d !== void 0 ? _d : undefined;
|
|
957
|
+
message.advanced = (object.advanced !== undefined && object.advanced !== null)
|
|
958
|
+
? exports.EncodingOptions.fromPartial(object.advanced)
|
|
959
|
+
: undefined;
|
|
960
|
+
message.fileOutputs = ((_e = object.fileOutputs) === null || _e === void 0 ? void 0 : _e.map((e) => exports.EncodedFileOutput.fromPartial(e))) || [];
|
|
961
|
+
message.streamOutputs = ((_f = object.streamOutputs) === null || _f === void 0 ? void 0 : _f.map((e) => exports.StreamOutput.fromPartial(e))) || [];
|
|
962
|
+
message.segmentOutputs = ((_g = object.segmentOutputs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
|
|
963
|
+
message.imageOutputs = ((_h = object.imageOutputs) === null || _h === void 0 ? void 0 : _h.map((e) => exports.ImageOutput.fromPartial(e))) || [];
|
|
726
964
|
return message;
|
|
727
965
|
},
|
|
728
966
|
};
|
|
@@ -739,6 +977,7 @@ function createBaseTrackCompositeEgressRequest() {
|
|
|
739
977
|
fileOutputs: [],
|
|
740
978
|
streamOutputs: [],
|
|
741
979
|
segmentOutputs: [],
|
|
980
|
+
imageOutputs: [],
|
|
742
981
|
};
|
|
743
982
|
}
|
|
744
983
|
exports.TrackCompositeEgressRequest = {
|
|
@@ -782,6 +1021,11 @@ exports.TrackCompositeEgressRequest = {
|
|
|
782
1021
|
exports.SegmentedFileOutput.encode(v, writer.uint32(106).fork()).ldelim();
|
|
783
1022
|
}
|
|
784
1023
|
}
|
|
1024
|
+
if (message.imageOutputs !== undefined && message.imageOutputs.length !== 0) {
|
|
1025
|
+
for (const v of message.imageOutputs) {
|
|
1026
|
+
exports.ImageOutput.encode(v, writer.uint32(114).fork()).ldelim();
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
785
1029
|
return writer;
|
|
786
1030
|
},
|
|
787
1031
|
decode(input, length) {
|
|
@@ -824,6 +1068,9 @@ exports.TrackCompositeEgressRequest = {
|
|
|
824
1068
|
case 13:
|
|
825
1069
|
message.segmentOutputs.push(exports.SegmentedFileOutput.decode(reader, reader.uint32()));
|
|
826
1070
|
break;
|
|
1071
|
+
case 14:
|
|
1072
|
+
message.imageOutputs.push(exports.ImageOutput.decode(reader, reader.uint32()));
|
|
1073
|
+
break;
|
|
827
1074
|
default:
|
|
828
1075
|
reader.skipType(tag & 7);
|
|
829
1076
|
break;
|
|
@@ -850,6 +1097,9 @@ exports.TrackCompositeEgressRequest = {
|
|
|
850
1097
|
segmentOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.segmentOutputs)
|
|
851
1098
|
? object.segmentOutputs.map((e) => exports.SegmentedFileOutput.fromJSON(e))
|
|
852
1099
|
: [],
|
|
1100
|
+
imageOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.imageOutputs)
|
|
1101
|
+
? object.imageOutputs.map((e) => exports.ImageOutput.fromJSON(e))
|
|
1102
|
+
: [],
|
|
853
1103
|
};
|
|
854
1104
|
},
|
|
855
1105
|
toJSON(message) {
|
|
@@ -883,10 +1133,16 @@ exports.TrackCompositeEgressRequest = {
|
|
|
883
1133
|
else {
|
|
884
1134
|
obj.segmentOutputs = [];
|
|
885
1135
|
}
|
|
1136
|
+
if (message.imageOutputs) {
|
|
1137
|
+
obj.imageOutputs = message.imageOutputs.map((e) => e ? exports.ImageOutput.toJSON(e) : undefined);
|
|
1138
|
+
}
|
|
1139
|
+
else {
|
|
1140
|
+
obj.imageOutputs = [];
|
|
1141
|
+
}
|
|
886
1142
|
return obj;
|
|
887
1143
|
},
|
|
888
1144
|
fromPartial(object) {
|
|
889
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
1145
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
890
1146
|
const message = createBaseTrackCompositeEgressRequest();
|
|
891
1147
|
message.roomName = (_a = object.roomName) !== null && _a !== void 0 ? _a : "";
|
|
892
1148
|
message.audioTrackId = (_b = object.audioTrackId) !== null && _b !== void 0 ? _b : "";
|
|
@@ -907,6 +1163,7 @@ exports.TrackCompositeEgressRequest = {
|
|
|
907
1163
|
message.fileOutputs = ((_e = object.fileOutputs) === null || _e === void 0 ? void 0 : _e.map((e) => exports.EncodedFileOutput.fromPartial(e))) || [];
|
|
908
1164
|
message.streamOutputs = ((_f = object.streamOutputs) === null || _f === void 0 ? void 0 : _f.map((e) => exports.StreamOutput.fromPartial(e))) || [];
|
|
909
1165
|
message.segmentOutputs = ((_g = object.segmentOutputs) === null || _g === void 0 ? void 0 : _g.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
|
|
1166
|
+
message.imageOutputs = ((_h = object.imageOutputs) === null || _h === void 0 ? void 0 : _h.map((e) => exports.ImageOutput.fromPartial(e))) || [];
|
|
910
1167
|
return message;
|
|
911
1168
|
},
|
|
912
1169
|
};
|
|
@@ -1098,6 +1355,7 @@ function createBaseSegmentedFileOutput() {
|
|
|
1098
1355
|
protocol: 0,
|
|
1099
1356
|
filenamePrefix: "",
|
|
1100
1357
|
playlistName: "",
|
|
1358
|
+
livePlaylistName: "",
|
|
1101
1359
|
segmentDuration: 0,
|
|
1102
1360
|
filenameSuffix: 0,
|
|
1103
1361
|
disableManifest: false,
|
|
@@ -1118,6 +1376,9 @@ exports.SegmentedFileOutput = {
|
|
|
1118
1376
|
if (message.playlistName !== undefined && message.playlistName !== "") {
|
|
1119
1377
|
writer.uint32(26).string(message.playlistName);
|
|
1120
1378
|
}
|
|
1379
|
+
if (message.livePlaylistName !== undefined && message.livePlaylistName !== "") {
|
|
1380
|
+
writer.uint32(90).string(message.livePlaylistName);
|
|
1381
|
+
}
|
|
1121
1382
|
if (message.segmentDuration !== undefined && message.segmentDuration !== 0) {
|
|
1122
1383
|
writer.uint32(32).uint32(message.segmentDuration);
|
|
1123
1384
|
}
|
|
@@ -1157,6 +1418,9 @@ exports.SegmentedFileOutput = {
|
|
|
1157
1418
|
case 3:
|
|
1158
1419
|
message.playlistName = reader.string();
|
|
1159
1420
|
break;
|
|
1421
|
+
case 11:
|
|
1422
|
+
message.livePlaylistName = reader.string();
|
|
1423
|
+
break;
|
|
1160
1424
|
case 4:
|
|
1161
1425
|
message.segmentDuration = reader.uint32();
|
|
1162
1426
|
break;
|
|
@@ -1190,6 +1454,7 @@ exports.SegmentedFileOutput = {
|
|
|
1190
1454
|
protocol: isSet(object.protocol) ? segmentedFileProtocolFromJSON(object.protocol) : 0,
|
|
1191
1455
|
filenamePrefix: isSet(object.filenamePrefix) ? String(object.filenamePrefix) : "",
|
|
1192
1456
|
playlistName: isSet(object.playlistName) ? String(object.playlistName) : "",
|
|
1457
|
+
livePlaylistName: isSet(object.livePlaylistName) ? String(object.livePlaylistName) : "",
|
|
1193
1458
|
segmentDuration: isSet(object.segmentDuration) ? Number(object.segmentDuration) : 0,
|
|
1194
1459
|
filenameSuffix: isSet(object.filenameSuffix) ? segmentedFileSuffixFromJSON(object.filenameSuffix) : 0,
|
|
1195
1460
|
disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
|
|
@@ -1204,6 +1469,7 @@ exports.SegmentedFileOutput = {
|
|
|
1204
1469
|
message.protocol !== undefined && (obj.protocol = segmentedFileProtocolToJSON(message.protocol));
|
|
1205
1470
|
message.filenamePrefix !== undefined && (obj.filenamePrefix = message.filenamePrefix);
|
|
1206
1471
|
message.playlistName !== undefined && (obj.playlistName = message.playlistName);
|
|
1472
|
+
message.livePlaylistName !== undefined && (obj.livePlaylistName = message.livePlaylistName);
|
|
1207
1473
|
message.segmentDuration !== undefined && (obj.segmentDuration = Math.round(message.segmentDuration));
|
|
1208
1474
|
message.filenameSuffix !== undefined && (obj.filenameSuffix = segmentedFileSuffixToJSON(message.filenameSuffix));
|
|
1209
1475
|
message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
|
|
@@ -1214,14 +1480,15 @@ exports.SegmentedFileOutput = {
|
|
|
1214
1480
|
return obj;
|
|
1215
1481
|
},
|
|
1216
1482
|
fromPartial(object) {
|
|
1217
|
-
var _a, _b, _c, _d, _e, _f;
|
|
1483
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1218
1484
|
const message = createBaseSegmentedFileOutput();
|
|
1219
1485
|
message.protocol = (_a = object.protocol) !== null && _a !== void 0 ? _a : 0;
|
|
1220
1486
|
message.filenamePrefix = (_b = object.filenamePrefix) !== null && _b !== void 0 ? _b : "";
|
|
1221
1487
|
message.playlistName = (_c = object.playlistName) !== null && _c !== void 0 ? _c : "";
|
|
1222
|
-
message.
|
|
1223
|
-
message.
|
|
1224
|
-
message.
|
|
1488
|
+
message.livePlaylistName = (_d = object.livePlaylistName) !== null && _d !== void 0 ? _d : "";
|
|
1489
|
+
message.segmentDuration = (_e = object.segmentDuration) !== null && _e !== void 0 ? _e : 0;
|
|
1490
|
+
message.filenameSuffix = (_f = object.filenameSuffix) !== null && _f !== void 0 ? _f : 0;
|
|
1491
|
+
message.disableManifest = (_g = object.disableManifest) !== null && _g !== void 0 ? _g : false;
|
|
1225
1492
|
message.s3 = (object.s3 !== undefined && object.s3 !== null) ? exports.S3Upload.fromPartial(object.s3) : undefined;
|
|
1226
1493
|
message.gcp = (object.gcp !== undefined && object.gcp !== null) ? exports.GCPUpload.fromPartial(object.gcp) : undefined;
|
|
1227
1494
|
message.azure = (object.azure !== undefined && object.azure !== null)
|
|
@@ -1271,16 +1538,151 @@ exports.DirectFileOutput = {
|
|
|
1271
1538
|
case 5:
|
|
1272
1539
|
message.disableManifest = reader.bool();
|
|
1273
1540
|
break;
|
|
1274
|
-
case 2:
|
|
1541
|
+
case 2:
|
|
1542
|
+
message.s3 = exports.S3Upload.decode(reader, reader.uint32());
|
|
1543
|
+
break;
|
|
1544
|
+
case 3:
|
|
1545
|
+
message.gcp = exports.GCPUpload.decode(reader, reader.uint32());
|
|
1546
|
+
break;
|
|
1547
|
+
case 4:
|
|
1548
|
+
message.azure = exports.AzureBlobUpload.decode(reader, reader.uint32());
|
|
1549
|
+
break;
|
|
1550
|
+
case 6:
|
|
1551
|
+
message.aliOSS = exports.AliOSSUpload.decode(reader, reader.uint32());
|
|
1552
|
+
break;
|
|
1553
|
+
default:
|
|
1554
|
+
reader.skipType(tag & 7);
|
|
1555
|
+
break;
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
return message;
|
|
1559
|
+
},
|
|
1560
|
+
fromJSON(object) {
|
|
1561
|
+
return {
|
|
1562
|
+
filepath: isSet(object.filepath) ? String(object.filepath) : "",
|
|
1563
|
+
disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
|
|
1564
|
+
s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
|
|
1565
|
+
gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
|
|
1566
|
+
azure: isSet(object.azure) ? exports.AzureBlobUpload.fromJSON(object.azure) : undefined,
|
|
1567
|
+
aliOSS: isSet(object.aliOSS) ? exports.AliOSSUpload.fromJSON(object.aliOSS) : undefined,
|
|
1568
|
+
};
|
|
1569
|
+
},
|
|
1570
|
+
toJSON(message) {
|
|
1571
|
+
const obj = {};
|
|
1572
|
+
message.filepath !== undefined && (obj.filepath = message.filepath);
|
|
1573
|
+
message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
|
|
1574
|
+
message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
|
|
1575
|
+
message.gcp !== undefined && (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
|
|
1576
|
+
message.azure !== undefined && (obj.azure = message.azure ? exports.AzureBlobUpload.toJSON(message.azure) : undefined);
|
|
1577
|
+
message.aliOSS !== undefined && (obj.aliOSS = message.aliOSS ? exports.AliOSSUpload.toJSON(message.aliOSS) : undefined);
|
|
1578
|
+
return obj;
|
|
1579
|
+
},
|
|
1580
|
+
fromPartial(object) {
|
|
1581
|
+
var _a, _b;
|
|
1582
|
+
const message = createBaseDirectFileOutput();
|
|
1583
|
+
message.filepath = (_a = object.filepath) !== null && _a !== void 0 ? _a : "";
|
|
1584
|
+
message.disableManifest = (_b = object.disableManifest) !== null && _b !== void 0 ? _b : false;
|
|
1585
|
+
message.s3 = (object.s3 !== undefined && object.s3 !== null) ? exports.S3Upload.fromPartial(object.s3) : undefined;
|
|
1586
|
+
message.gcp = (object.gcp !== undefined && object.gcp !== null) ? exports.GCPUpload.fromPartial(object.gcp) : undefined;
|
|
1587
|
+
message.azure = (object.azure !== undefined && object.azure !== null)
|
|
1588
|
+
? exports.AzureBlobUpload.fromPartial(object.azure)
|
|
1589
|
+
: undefined;
|
|
1590
|
+
message.aliOSS = (object.aliOSS !== undefined && object.aliOSS !== null)
|
|
1591
|
+
? exports.AliOSSUpload.fromPartial(object.aliOSS)
|
|
1592
|
+
: undefined;
|
|
1593
|
+
return message;
|
|
1594
|
+
},
|
|
1595
|
+
};
|
|
1596
|
+
function createBaseImageOutput() {
|
|
1597
|
+
return {
|
|
1598
|
+
captureInterval: 0,
|
|
1599
|
+
width: 0,
|
|
1600
|
+
height: 0,
|
|
1601
|
+
filenamePrefix: "",
|
|
1602
|
+
filenameSuffix: 0,
|
|
1603
|
+
imageCodec: 0,
|
|
1604
|
+
disableManifest: false,
|
|
1605
|
+
s3: undefined,
|
|
1606
|
+
gcp: undefined,
|
|
1607
|
+
azure: undefined,
|
|
1608
|
+
aliOSS: undefined,
|
|
1609
|
+
};
|
|
1610
|
+
}
|
|
1611
|
+
exports.ImageOutput = {
|
|
1612
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1613
|
+
if (message.captureInterval !== undefined && message.captureInterval !== 0) {
|
|
1614
|
+
writer.uint32(8).uint32(message.captureInterval);
|
|
1615
|
+
}
|
|
1616
|
+
if (message.width !== undefined && message.width !== 0) {
|
|
1617
|
+
writer.uint32(16).int32(message.width);
|
|
1618
|
+
}
|
|
1619
|
+
if (message.height !== undefined && message.height !== 0) {
|
|
1620
|
+
writer.uint32(24).int32(message.height);
|
|
1621
|
+
}
|
|
1622
|
+
if (message.filenamePrefix !== undefined && message.filenamePrefix !== "") {
|
|
1623
|
+
writer.uint32(34).string(message.filenamePrefix);
|
|
1624
|
+
}
|
|
1625
|
+
if (message.filenameSuffix !== undefined && message.filenameSuffix !== 0) {
|
|
1626
|
+
writer.uint32(40).int32(message.filenameSuffix);
|
|
1627
|
+
}
|
|
1628
|
+
if (message.imageCodec !== undefined && message.imageCodec !== 0) {
|
|
1629
|
+
writer.uint32(48).int32(message.imageCodec);
|
|
1630
|
+
}
|
|
1631
|
+
if (message.disableManifest === true) {
|
|
1632
|
+
writer.uint32(56).bool(message.disableManifest);
|
|
1633
|
+
}
|
|
1634
|
+
if (message.s3 !== undefined) {
|
|
1635
|
+
exports.S3Upload.encode(message.s3, writer.uint32(66).fork()).ldelim();
|
|
1636
|
+
}
|
|
1637
|
+
if (message.gcp !== undefined) {
|
|
1638
|
+
exports.GCPUpload.encode(message.gcp, writer.uint32(74).fork()).ldelim();
|
|
1639
|
+
}
|
|
1640
|
+
if (message.azure !== undefined) {
|
|
1641
|
+
exports.AzureBlobUpload.encode(message.azure, writer.uint32(82).fork()).ldelim();
|
|
1642
|
+
}
|
|
1643
|
+
if (message.aliOSS !== undefined) {
|
|
1644
|
+
exports.AliOSSUpload.encode(message.aliOSS, writer.uint32(90).fork()).ldelim();
|
|
1645
|
+
}
|
|
1646
|
+
return writer;
|
|
1647
|
+
},
|
|
1648
|
+
decode(input, length) {
|
|
1649
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
1650
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1651
|
+
const message = createBaseImageOutput();
|
|
1652
|
+
while (reader.pos < end) {
|
|
1653
|
+
const tag = reader.uint32();
|
|
1654
|
+
switch (tag >>> 3) {
|
|
1655
|
+
case 1:
|
|
1656
|
+
message.captureInterval = reader.uint32();
|
|
1657
|
+
break;
|
|
1658
|
+
case 2:
|
|
1659
|
+
message.width = reader.int32();
|
|
1660
|
+
break;
|
|
1661
|
+
case 3:
|
|
1662
|
+
message.height = reader.int32();
|
|
1663
|
+
break;
|
|
1664
|
+
case 4:
|
|
1665
|
+
message.filenamePrefix = reader.string();
|
|
1666
|
+
break;
|
|
1667
|
+
case 5:
|
|
1668
|
+
message.filenameSuffix = reader.int32();
|
|
1669
|
+
break;
|
|
1670
|
+
case 6:
|
|
1671
|
+
message.imageCodec = reader.int32();
|
|
1672
|
+
break;
|
|
1673
|
+
case 7:
|
|
1674
|
+
message.disableManifest = reader.bool();
|
|
1675
|
+
break;
|
|
1676
|
+
case 8:
|
|
1275
1677
|
message.s3 = exports.S3Upload.decode(reader, reader.uint32());
|
|
1276
1678
|
break;
|
|
1277
|
-
case
|
|
1679
|
+
case 9:
|
|
1278
1680
|
message.gcp = exports.GCPUpload.decode(reader, reader.uint32());
|
|
1279
1681
|
break;
|
|
1280
|
-
case
|
|
1682
|
+
case 10:
|
|
1281
1683
|
message.azure = exports.AzureBlobUpload.decode(reader, reader.uint32());
|
|
1282
1684
|
break;
|
|
1283
|
-
case
|
|
1685
|
+
case 11:
|
|
1284
1686
|
message.aliOSS = exports.AliOSSUpload.decode(reader, reader.uint32());
|
|
1285
1687
|
break;
|
|
1286
1688
|
default:
|
|
@@ -1292,7 +1694,12 @@ exports.DirectFileOutput = {
|
|
|
1292
1694
|
},
|
|
1293
1695
|
fromJSON(object) {
|
|
1294
1696
|
return {
|
|
1295
|
-
|
|
1697
|
+
captureInterval: isSet(object.captureInterval) ? Number(object.captureInterval) : 0,
|
|
1698
|
+
width: isSet(object.width) ? Number(object.width) : 0,
|
|
1699
|
+
height: isSet(object.height) ? Number(object.height) : 0,
|
|
1700
|
+
filenamePrefix: isSet(object.filenamePrefix) ? String(object.filenamePrefix) : "",
|
|
1701
|
+
filenameSuffix: isSet(object.filenameSuffix) ? imageFileSuffixFromJSON(object.filenameSuffix) : 0,
|
|
1702
|
+
imageCodec: isSet(object.imageCodec) ? livekit_models_1.imageCodecFromJSON(object.imageCodec) : 0,
|
|
1296
1703
|
disableManifest: isSet(object.disableManifest) ? Boolean(object.disableManifest) : false,
|
|
1297
1704
|
s3: isSet(object.s3) ? exports.S3Upload.fromJSON(object.s3) : undefined,
|
|
1298
1705
|
gcp: isSet(object.gcp) ? exports.GCPUpload.fromJSON(object.gcp) : undefined,
|
|
@@ -1302,7 +1709,12 @@ exports.DirectFileOutput = {
|
|
|
1302
1709
|
},
|
|
1303
1710
|
toJSON(message) {
|
|
1304
1711
|
const obj = {};
|
|
1305
|
-
message.
|
|
1712
|
+
message.captureInterval !== undefined && (obj.captureInterval = Math.round(message.captureInterval));
|
|
1713
|
+
message.width !== undefined && (obj.width = Math.round(message.width));
|
|
1714
|
+
message.height !== undefined && (obj.height = Math.round(message.height));
|
|
1715
|
+
message.filenamePrefix !== undefined && (obj.filenamePrefix = message.filenamePrefix);
|
|
1716
|
+
message.filenameSuffix !== undefined && (obj.filenameSuffix = imageFileSuffixToJSON(message.filenameSuffix));
|
|
1717
|
+
message.imageCodec !== undefined && (obj.imageCodec = livekit_models_1.imageCodecToJSON(message.imageCodec));
|
|
1306
1718
|
message.disableManifest !== undefined && (obj.disableManifest = message.disableManifest);
|
|
1307
1719
|
message.s3 !== undefined && (obj.s3 = message.s3 ? exports.S3Upload.toJSON(message.s3) : undefined);
|
|
1308
1720
|
message.gcp !== undefined && (obj.gcp = message.gcp ? exports.GCPUpload.toJSON(message.gcp) : undefined);
|
|
@@ -1311,10 +1723,15 @@ exports.DirectFileOutput = {
|
|
|
1311
1723
|
return obj;
|
|
1312
1724
|
},
|
|
1313
1725
|
fromPartial(object) {
|
|
1314
|
-
var _a, _b;
|
|
1315
|
-
const message =
|
|
1316
|
-
message.
|
|
1317
|
-
message.
|
|
1726
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
1727
|
+
const message = createBaseImageOutput();
|
|
1728
|
+
message.captureInterval = (_a = object.captureInterval) !== null && _a !== void 0 ? _a : 0;
|
|
1729
|
+
message.width = (_b = object.width) !== null && _b !== void 0 ? _b : 0;
|
|
1730
|
+
message.height = (_c = object.height) !== null && _c !== void 0 ? _c : 0;
|
|
1731
|
+
message.filenamePrefix = (_d = object.filenamePrefix) !== null && _d !== void 0 ? _d : "";
|
|
1732
|
+
message.filenameSuffix = (_e = object.filenameSuffix) !== null && _e !== void 0 ? _e : 0;
|
|
1733
|
+
message.imageCodec = (_f = object.imageCodec) !== null && _f !== void 0 ? _f : 0;
|
|
1734
|
+
message.disableManifest = (_g = object.disableManifest) !== null && _g !== void 0 ? _g : false;
|
|
1318
1735
|
message.s3 = (object.s3 !== undefined && object.s3 !== null) ? exports.S3Upload.fromPartial(object.s3) : undefined;
|
|
1319
1736
|
message.gcp = (object.gcp !== undefined && object.gcp !== null) ? exports.GCPUpload.fromPartial(object.gcp) : undefined;
|
|
1320
1737
|
message.azure = (object.azure !== undefined && object.azure !== null)
|
|
@@ -2032,6 +2449,86 @@ exports.UpdateStreamRequest = {
|
|
|
2032
2449
|
return message;
|
|
2033
2450
|
},
|
|
2034
2451
|
};
|
|
2452
|
+
function createBaseUpdateOutputsRequest() {
|
|
2453
|
+
return { egressId: "", addImageOutputs: [], removeImageOutputs: [] };
|
|
2454
|
+
}
|
|
2455
|
+
exports.UpdateOutputsRequest = {
|
|
2456
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2457
|
+
if (message.egressId !== undefined && message.egressId !== "") {
|
|
2458
|
+
writer.uint32(10).string(message.egressId);
|
|
2459
|
+
}
|
|
2460
|
+
if (message.addImageOutputs !== undefined && message.addImageOutputs.length !== 0) {
|
|
2461
|
+
for (const v of message.addImageOutputs) {
|
|
2462
|
+
exports.ImageOutput.encode(v, writer.uint32(18).fork()).ldelim();
|
|
2463
|
+
}
|
|
2464
|
+
}
|
|
2465
|
+
if (message.removeImageOutputs !== undefined && message.removeImageOutputs.length !== 0) {
|
|
2466
|
+
for (const v of message.removeImageOutputs) {
|
|
2467
|
+
exports.ImageOutput.encode(v, writer.uint32(26).fork()).ldelim();
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2470
|
+
return writer;
|
|
2471
|
+
},
|
|
2472
|
+
decode(input, length) {
|
|
2473
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
2474
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
2475
|
+
const message = createBaseUpdateOutputsRequest();
|
|
2476
|
+
while (reader.pos < end) {
|
|
2477
|
+
const tag = reader.uint32();
|
|
2478
|
+
switch (tag >>> 3) {
|
|
2479
|
+
case 1:
|
|
2480
|
+
message.egressId = reader.string();
|
|
2481
|
+
break;
|
|
2482
|
+
case 2:
|
|
2483
|
+
message.addImageOutputs.push(exports.ImageOutput.decode(reader, reader.uint32()));
|
|
2484
|
+
break;
|
|
2485
|
+
case 3:
|
|
2486
|
+
message.removeImageOutputs.push(exports.ImageOutput.decode(reader, reader.uint32()));
|
|
2487
|
+
break;
|
|
2488
|
+
default:
|
|
2489
|
+
reader.skipType(tag & 7);
|
|
2490
|
+
break;
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
return message;
|
|
2494
|
+
},
|
|
2495
|
+
fromJSON(object) {
|
|
2496
|
+
return {
|
|
2497
|
+
egressId: isSet(object.egressId) ? String(object.egressId) : "",
|
|
2498
|
+
addImageOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.addImageOutputs)
|
|
2499
|
+
? object.addImageOutputs.map((e) => exports.ImageOutput.fromJSON(e))
|
|
2500
|
+
: [],
|
|
2501
|
+
removeImageOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.removeImageOutputs)
|
|
2502
|
+
? object.removeImageOutputs.map((e) => exports.ImageOutput.fromJSON(e))
|
|
2503
|
+
: [],
|
|
2504
|
+
};
|
|
2505
|
+
},
|
|
2506
|
+
toJSON(message) {
|
|
2507
|
+
const obj = {};
|
|
2508
|
+
message.egressId !== undefined && (obj.egressId = message.egressId);
|
|
2509
|
+
if (message.addImageOutputs) {
|
|
2510
|
+
obj.addImageOutputs = message.addImageOutputs.map((e) => e ? exports.ImageOutput.toJSON(e) : undefined);
|
|
2511
|
+
}
|
|
2512
|
+
else {
|
|
2513
|
+
obj.addImageOutputs = [];
|
|
2514
|
+
}
|
|
2515
|
+
if (message.removeImageOutputs) {
|
|
2516
|
+
obj.removeImageOutputs = message.removeImageOutputs.map((e) => e ? exports.ImageOutput.toJSON(e) : undefined);
|
|
2517
|
+
}
|
|
2518
|
+
else {
|
|
2519
|
+
obj.removeImageOutputs = [];
|
|
2520
|
+
}
|
|
2521
|
+
return obj;
|
|
2522
|
+
},
|
|
2523
|
+
fromPartial(object) {
|
|
2524
|
+
var _a, _b, _c;
|
|
2525
|
+
const message = createBaseUpdateOutputsRequest();
|
|
2526
|
+
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : "";
|
|
2527
|
+
message.addImageOutputs = ((_b = object.addImageOutputs) === null || _b === void 0 ? void 0 : _b.map((e) => exports.ImageOutput.fromPartial(e))) || [];
|
|
2528
|
+
message.removeImageOutputs = ((_c = object.removeImageOutputs) === null || _c === void 0 ? void 0 : _c.map((e) => exports.ImageOutput.fromPartial(e))) || [];
|
|
2529
|
+
return message;
|
|
2530
|
+
},
|
|
2531
|
+
};
|
|
2035
2532
|
function createBaseListEgressRequest() {
|
|
2036
2533
|
return { roomName: "", egressId: "", active: false };
|
|
2037
2534
|
}
|
|
@@ -2196,15 +2693,17 @@ function createBaseEgressInfo() {
|
|
|
2196
2693
|
updatedAt: 0,
|
|
2197
2694
|
error: "",
|
|
2198
2695
|
roomComposite: undefined,
|
|
2696
|
+
web: undefined,
|
|
2697
|
+
participant: undefined,
|
|
2199
2698
|
trackComposite: undefined,
|
|
2200
2699
|
track: undefined,
|
|
2201
|
-
web: undefined,
|
|
2202
2700
|
stream: undefined,
|
|
2203
2701
|
file: undefined,
|
|
2204
2702
|
segments: undefined,
|
|
2205
2703
|
streamResults: [],
|
|
2206
2704
|
fileResults: [],
|
|
2207
2705
|
segmentResults: [],
|
|
2706
|
+
imageResults: [],
|
|
2208
2707
|
};
|
|
2209
2708
|
}
|
|
2210
2709
|
exports.EgressInfo = {
|
|
@@ -2236,15 +2735,18 @@ exports.EgressInfo = {
|
|
|
2236
2735
|
if (message.roomComposite !== undefined) {
|
|
2237
2736
|
exports.RoomCompositeEgressRequest.encode(message.roomComposite, writer.uint32(34).fork()).ldelim();
|
|
2238
2737
|
}
|
|
2738
|
+
if (message.web !== undefined) {
|
|
2739
|
+
exports.WebEgressRequest.encode(message.web, writer.uint32(114).fork()).ldelim();
|
|
2740
|
+
}
|
|
2741
|
+
if (message.participant !== undefined) {
|
|
2742
|
+
exports.ParticipantEgressRequest.encode(message.participant, writer.uint32(154).fork()).ldelim();
|
|
2743
|
+
}
|
|
2239
2744
|
if (message.trackComposite !== undefined) {
|
|
2240
2745
|
exports.TrackCompositeEgressRequest.encode(message.trackComposite, writer.uint32(42).fork()).ldelim();
|
|
2241
2746
|
}
|
|
2242
2747
|
if (message.track !== undefined) {
|
|
2243
2748
|
exports.TrackEgressRequest.encode(message.track, writer.uint32(50).fork()).ldelim();
|
|
2244
2749
|
}
|
|
2245
|
-
if (message.web !== undefined) {
|
|
2246
|
-
exports.WebEgressRequest.encode(message.web, writer.uint32(114).fork()).ldelim();
|
|
2247
|
-
}
|
|
2248
2750
|
if (message.stream !== undefined) {
|
|
2249
2751
|
exports.StreamInfoList.encode(message.stream, writer.uint32(58).fork()).ldelim();
|
|
2250
2752
|
}
|
|
@@ -2269,6 +2771,11 @@ exports.EgressInfo = {
|
|
|
2269
2771
|
exports.SegmentsInfo.encode(v, writer.uint32(138).fork()).ldelim();
|
|
2270
2772
|
}
|
|
2271
2773
|
}
|
|
2774
|
+
if (message.imageResults !== undefined && message.imageResults.length !== 0) {
|
|
2775
|
+
for (const v of message.imageResults) {
|
|
2776
|
+
exports.ImagesInfo.encode(v, writer.uint32(162).fork()).ldelim();
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2272
2779
|
return writer;
|
|
2273
2780
|
},
|
|
2274
2781
|
decode(input, length) {
|
|
@@ -2305,15 +2812,18 @@ exports.EgressInfo = {
|
|
|
2305
2812
|
case 4:
|
|
2306
2813
|
message.roomComposite = exports.RoomCompositeEgressRequest.decode(reader, reader.uint32());
|
|
2307
2814
|
break;
|
|
2815
|
+
case 14:
|
|
2816
|
+
message.web = exports.WebEgressRequest.decode(reader, reader.uint32());
|
|
2817
|
+
break;
|
|
2818
|
+
case 19:
|
|
2819
|
+
message.participant = exports.ParticipantEgressRequest.decode(reader, reader.uint32());
|
|
2820
|
+
break;
|
|
2308
2821
|
case 5:
|
|
2309
2822
|
message.trackComposite = exports.TrackCompositeEgressRequest.decode(reader, reader.uint32());
|
|
2310
2823
|
break;
|
|
2311
2824
|
case 6:
|
|
2312
2825
|
message.track = exports.TrackEgressRequest.decode(reader, reader.uint32());
|
|
2313
2826
|
break;
|
|
2314
|
-
case 14:
|
|
2315
|
-
message.web = exports.WebEgressRequest.decode(reader, reader.uint32());
|
|
2316
|
-
break;
|
|
2317
2827
|
case 7:
|
|
2318
2828
|
message.stream = exports.StreamInfoList.decode(reader, reader.uint32());
|
|
2319
2829
|
break;
|
|
@@ -2332,6 +2842,9 @@ exports.EgressInfo = {
|
|
|
2332
2842
|
case 17:
|
|
2333
2843
|
message.segmentResults.push(exports.SegmentsInfo.decode(reader, reader.uint32()));
|
|
2334
2844
|
break;
|
|
2845
|
+
case 20:
|
|
2846
|
+
message.imageResults.push(exports.ImagesInfo.decode(reader, reader.uint32()));
|
|
2847
|
+
break;
|
|
2335
2848
|
default:
|
|
2336
2849
|
reader.skipType(tag & 7);
|
|
2337
2850
|
break;
|
|
@@ -2352,11 +2865,12 @@ exports.EgressInfo = {
|
|
|
2352
2865
|
roomComposite: isSet(object.roomComposite)
|
|
2353
2866
|
? exports.RoomCompositeEgressRequest.fromJSON(object.roomComposite)
|
|
2354
2867
|
: undefined,
|
|
2868
|
+
web: isSet(object.web) ? exports.WebEgressRequest.fromJSON(object.web) : undefined,
|
|
2869
|
+
participant: isSet(object.participant) ? exports.ParticipantEgressRequest.fromJSON(object.participant) : undefined,
|
|
2355
2870
|
trackComposite: isSet(object.trackComposite)
|
|
2356
2871
|
? exports.TrackCompositeEgressRequest.fromJSON(object.trackComposite)
|
|
2357
2872
|
: undefined,
|
|
2358
2873
|
track: isSet(object.track) ? exports.TrackEgressRequest.fromJSON(object.track) : undefined,
|
|
2359
|
-
web: isSet(object.web) ? exports.WebEgressRequest.fromJSON(object.web) : undefined,
|
|
2360
2874
|
stream: isSet(object.stream) ? exports.StreamInfoList.fromJSON(object.stream) : undefined,
|
|
2361
2875
|
file: isSet(object.file) ? exports.FileInfo.fromJSON(object.file) : undefined,
|
|
2362
2876
|
segments: isSet(object.segments) ? exports.SegmentsInfo.fromJSON(object.segments) : undefined,
|
|
@@ -2367,6 +2881,9 @@ exports.EgressInfo = {
|
|
|
2367
2881
|
segmentResults: Array.isArray(object === null || object === void 0 ? void 0 : object.segmentResults)
|
|
2368
2882
|
? object.segmentResults.map((e) => exports.SegmentsInfo.fromJSON(e))
|
|
2369
2883
|
: [],
|
|
2884
|
+
imageResults: Array.isArray(object === null || object === void 0 ? void 0 : object.imageResults)
|
|
2885
|
+
? object.imageResults.map((e) => exports.ImagesInfo.fromJSON(e))
|
|
2886
|
+
: [],
|
|
2370
2887
|
};
|
|
2371
2888
|
},
|
|
2372
2889
|
toJSON(message) {
|
|
@@ -2383,11 +2900,13 @@ exports.EgressInfo = {
|
|
|
2383
2900
|
(obj.roomComposite = message.roomComposite
|
|
2384
2901
|
? exports.RoomCompositeEgressRequest.toJSON(message.roomComposite)
|
|
2385
2902
|
: undefined);
|
|
2903
|
+
message.web !== undefined && (obj.web = message.web ? exports.WebEgressRequest.toJSON(message.web) : undefined);
|
|
2904
|
+
message.participant !== undefined &&
|
|
2905
|
+
(obj.participant = message.participant ? exports.ParticipantEgressRequest.toJSON(message.participant) : undefined);
|
|
2386
2906
|
message.trackComposite !== undefined && (obj.trackComposite = message.trackComposite
|
|
2387
2907
|
? exports.TrackCompositeEgressRequest.toJSON(message.trackComposite)
|
|
2388
2908
|
: undefined);
|
|
2389
2909
|
message.track !== undefined && (obj.track = message.track ? exports.TrackEgressRequest.toJSON(message.track) : undefined);
|
|
2390
|
-
message.web !== undefined && (obj.web = message.web ? exports.WebEgressRequest.toJSON(message.web) : undefined);
|
|
2391
2910
|
message.stream !== undefined && (obj.stream = message.stream ? exports.StreamInfoList.toJSON(message.stream) : undefined);
|
|
2392
2911
|
message.file !== undefined && (obj.file = message.file ? exports.FileInfo.toJSON(message.file) : undefined);
|
|
2393
2912
|
message.segments !== undefined &&
|
|
@@ -2410,10 +2929,16 @@ exports.EgressInfo = {
|
|
|
2410
2929
|
else {
|
|
2411
2930
|
obj.segmentResults = [];
|
|
2412
2931
|
}
|
|
2932
|
+
if (message.imageResults) {
|
|
2933
|
+
obj.imageResults = message.imageResults.map((e) => e ? exports.ImagesInfo.toJSON(e) : undefined);
|
|
2934
|
+
}
|
|
2935
|
+
else {
|
|
2936
|
+
obj.imageResults = [];
|
|
2937
|
+
}
|
|
2413
2938
|
return obj;
|
|
2414
2939
|
},
|
|
2415
2940
|
fromPartial(object) {
|
|
2416
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
2941
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2417
2942
|
const message = createBaseEgressInfo();
|
|
2418
2943
|
message.egressId = (_a = object.egressId) !== null && _a !== void 0 ? _a : "";
|
|
2419
2944
|
message.roomId = (_b = object.roomId) !== null && _b !== void 0 ? _b : "";
|
|
@@ -2426,15 +2951,18 @@ exports.EgressInfo = {
|
|
|
2426
2951
|
message.roomComposite = (object.roomComposite !== undefined && object.roomComposite !== null)
|
|
2427
2952
|
? exports.RoomCompositeEgressRequest.fromPartial(object.roomComposite)
|
|
2428
2953
|
: undefined;
|
|
2954
|
+
message.web = (object.web !== undefined && object.web !== null)
|
|
2955
|
+
? exports.WebEgressRequest.fromPartial(object.web)
|
|
2956
|
+
: undefined;
|
|
2957
|
+
message.participant = (object.participant !== undefined && object.participant !== null)
|
|
2958
|
+
? exports.ParticipantEgressRequest.fromPartial(object.participant)
|
|
2959
|
+
: undefined;
|
|
2429
2960
|
message.trackComposite = (object.trackComposite !== undefined && object.trackComposite !== null)
|
|
2430
2961
|
? exports.TrackCompositeEgressRequest.fromPartial(object.trackComposite)
|
|
2431
2962
|
: undefined;
|
|
2432
2963
|
message.track = (object.track !== undefined && object.track !== null)
|
|
2433
2964
|
? exports.TrackEgressRequest.fromPartial(object.track)
|
|
2434
2965
|
: undefined;
|
|
2435
|
-
message.web = (object.web !== undefined && object.web !== null)
|
|
2436
|
-
? exports.WebEgressRequest.fromPartial(object.web)
|
|
2437
|
-
: undefined;
|
|
2438
2966
|
message.stream = (object.stream !== undefined && object.stream !== null)
|
|
2439
2967
|
? exports.StreamInfoList.fromPartial(object.stream)
|
|
2440
2968
|
: undefined;
|
|
@@ -2445,6 +2973,7 @@ exports.EgressInfo = {
|
|
|
2445
2973
|
message.streamResults = ((_j = object.streamResults) === null || _j === void 0 ? void 0 : _j.map((e) => exports.StreamInfo.fromPartial(e))) || [];
|
|
2446
2974
|
message.fileResults = ((_k = object.fileResults) === null || _k === void 0 ? void 0 : _k.map((e) => exports.FileInfo.fromPartial(e))) || [];
|
|
2447
2975
|
message.segmentResults = ((_l = object.segmentResults) === null || _l === void 0 ? void 0 : _l.map((e) => exports.SegmentsInfo.fromPartial(e))) || [];
|
|
2976
|
+
message.imageResults = ((_m = object.imageResults) === null || _m === void 0 ? void 0 : _m.map((e) => exports.ImagesInfo.fromPartial(e))) || [];
|
|
2448
2977
|
return message;
|
|
2449
2978
|
},
|
|
2450
2979
|
};
|
|
@@ -2676,13 +3205,26 @@ exports.FileInfo = {
|
|
|
2676
3205
|
},
|
|
2677
3206
|
};
|
|
2678
3207
|
function createBaseSegmentsInfo() {
|
|
2679
|
-
return {
|
|
3208
|
+
return {
|
|
3209
|
+
playlistName: "",
|
|
3210
|
+
livePlaylistName: "",
|
|
3211
|
+
duration: 0,
|
|
3212
|
+
size: 0,
|
|
3213
|
+
playlistLocation: "",
|
|
3214
|
+
livePlaylistLocation: "",
|
|
3215
|
+
segmentCount: 0,
|
|
3216
|
+
startedAt: 0,
|
|
3217
|
+
endedAt: 0,
|
|
3218
|
+
};
|
|
2680
3219
|
}
|
|
2681
3220
|
exports.SegmentsInfo = {
|
|
2682
3221
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
2683
3222
|
if (message.playlistName !== undefined && message.playlistName !== "") {
|
|
2684
3223
|
writer.uint32(10).string(message.playlistName);
|
|
2685
3224
|
}
|
|
3225
|
+
if (message.livePlaylistName !== undefined && message.livePlaylistName !== "") {
|
|
3226
|
+
writer.uint32(66).string(message.livePlaylistName);
|
|
3227
|
+
}
|
|
2686
3228
|
if (message.duration !== undefined && message.duration !== 0) {
|
|
2687
3229
|
writer.uint32(16).int64(message.duration);
|
|
2688
3230
|
}
|
|
@@ -2692,6 +3234,9 @@ exports.SegmentsInfo = {
|
|
|
2692
3234
|
if (message.playlistLocation !== undefined && message.playlistLocation !== "") {
|
|
2693
3235
|
writer.uint32(34).string(message.playlistLocation);
|
|
2694
3236
|
}
|
|
3237
|
+
if (message.livePlaylistLocation !== undefined && message.livePlaylistLocation !== "") {
|
|
3238
|
+
writer.uint32(74).string(message.livePlaylistLocation);
|
|
3239
|
+
}
|
|
2695
3240
|
if (message.segmentCount !== undefined && message.segmentCount !== 0) {
|
|
2696
3241
|
writer.uint32(40).int64(message.segmentCount);
|
|
2697
3242
|
}
|
|
@@ -2713,6 +3258,9 @@ exports.SegmentsInfo = {
|
|
|
2713
3258
|
case 1:
|
|
2714
3259
|
message.playlistName = reader.string();
|
|
2715
3260
|
break;
|
|
3261
|
+
case 8:
|
|
3262
|
+
message.livePlaylistName = reader.string();
|
|
3263
|
+
break;
|
|
2716
3264
|
case 2:
|
|
2717
3265
|
message.duration = longToNumber(reader.int64());
|
|
2718
3266
|
break;
|
|
@@ -2722,6 +3270,9 @@ exports.SegmentsInfo = {
|
|
|
2722
3270
|
case 4:
|
|
2723
3271
|
message.playlistLocation = reader.string();
|
|
2724
3272
|
break;
|
|
3273
|
+
case 9:
|
|
3274
|
+
message.livePlaylistLocation = reader.string();
|
|
3275
|
+
break;
|
|
2725
3276
|
case 5:
|
|
2726
3277
|
message.segmentCount = longToNumber(reader.int64());
|
|
2727
3278
|
break;
|
|
@@ -2741,9 +3292,11 @@ exports.SegmentsInfo = {
|
|
|
2741
3292
|
fromJSON(object) {
|
|
2742
3293
|
return {
|
|
2743
3294
|
playlistName: isSet(object.playlistName) ? String(object.playlistName) : "",
|
|
3295
|
+
livePlaylistName: isSet(object.livePlaylistName) ? String(object.livePlaylistName) : "",
|
|
2744
3296
|
duration: isSet(object.duration) ? Number(object.duration) : 0,
|
|
2745
3297
|
size: isSet(object.size) ? Number(object.size) : 0,
|
|
2746
3298
|
playlistLocation: isSet(object.playlistLocation) ? String(object.playlistLocation) : "",
|
|
3299
|
+
livePlaylistLocation: isSet(object.livePlaylistLocation) ? String(object.livePlaylistLocation) : "",
|
|
2747
3300
|
segmentCount: isSet(object.segmentCount) ? Number(object.segmentCount) : 0,
|
|
2748
3301
|
startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
|
|
2749
3302
|
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
|
|
@@ -2752,24 +3305,183 @@ exports.SegmentsInfo = {
|
|
|
2752
3305
|
toJSON(message) {
|
|
2753
3306
|
const obj = {};
|
|
2754
3307
|
message.playlistName !== undefined && (obj.playlistName = message.playlistName);
|
|
3308
|
+
message.livePlaylistName !== undefined && (obj.livePlaylistName = message.livePlaylistName);
|
|
2755
3309
|
message.duration !== undefined && (obj.duration = Math.round(message.duration));
|
|
2756
3310
|
message.size !== undefined && (obj.size = Math.round(message.size));
|
|
2757
3311
|
message.playlistLocation !== undefined && (obj.playlistLocation = message.playlistLocation);
|
|
3312
|
+
message.livePlaylistLocation !== undefined && (obj.livePlaylistLocation = message.livePlaylistLocation);
|
|
2758
3313
|
message.segmentCount !== undefined && (obj.segmentCount = Math.round(message.segmentCount));
|
|
2759
3314
|
message.startedAt !== undefined && (obj.startedAt = Math.round(message.startedAt));
|
|
2760
3315
|
message.endedAt !== undefined && (obj.endedAt = Math.round(message.endedAt));
|
|
2761
3316
|
return obj;
|
|
2762
3317
|
},
|
|
2763
3318
|
fromPartial(object) {
|
|
2764
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
3319
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
2765
3320
|
const message = createBaseSegmentsInfo();
|
|
2766
3321
|
message.playlistName = (_a = object.playlistName) !== null && _a !== void 0 ? _a : "";
|
|
2767
|
-
message.
|
|
2768
|
-
message.
|
|
2769
|
-
message.
|
|
2770
|
-
message.
|
|
2771
|
-
message.
|
|
2772
|
-
message.
|
|
3322
|
+
message.livePlaylistName = (_b = object.livePlaylistName) !== null && _b !== void 0 ? _b : "";
|
|
3323
|
+
message.duration = (_c = object.duration) !== null && _c !== void 0 ? _c : 0;
|
|
3324
|
+
message.size = (_d = object.size) !== null && _d !== void 0 ? _d : 0;
|
|
3325
|
+
message.playlistLocation = (_e = object.playlistLocation) !== null && _e !== void 0 ? _e : "";
|
|
3326
|
+
message.livePlaylistLocation = (_f = object.livePlaylistLocation) !== null && _f !== void 0 ? _f : "";
|
|
3327
|
+
message.segmentCount = (_g = object.segmentCount) !== null && _g !== void 0 ? _g : 0;
|
|
3328
|
+
message.startedAt = (_h = object.startedAt) !== null && _h !== void 0 ? _h : 0;
|
|
3329
|
+
message.endedAt = (_j = object.endedAt) !== null && _j !== void 0 ? _j : 0;
|
|
3330
|
+
return message;
|
|
3331
|
+
},
|
|
3332
|
+
};
|
|
3333
|
+
function createBaseImagesInfo() {
|
|
3334
|
+
return { imageCount: 0, startedAt: 0, endedAt: 0 };
|
|
3335
|
+
}
|
|
3336
|
+
exports.ImagesInfo = {
|
|
3337
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3338
|
+
if (message.imageCount !== undefined && message.imageCount !== 0) {
|
|
3339
|
+
writer.uint32(8).int64(message.imageCount);
|
|
3340
|
+
}
|
|
3341
|
+
if (message.startedAt !== undefined && message.startedAt !== 0) {
|
|
3342
|
+
writer.uint32(16).int64(message.startedAt);
|
|
3343
|
+
}
|
|
3344
|
+
if (message.endedAt !== undefined && message.endedAt !== 0) {
|
|
3345
|
+
writer.uint32(24).int64(message.endedAt);
|
|
3346
|
+
}
|
|
3347
|
+
return writer;
|
|
3348
|
+
},
|
|
3349
|
+
decode(input, length) {
|
|
3350
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
3351
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3352
|
+
const message = createBaseImagesInfo();
|
|
3353
|
+
while (reader.pos < end) {
|
|
3354
|
+
const tag = reader.uint32();
|
|
3355
|
+
switch (tag >>> 3) {
|
|
3356
|
+
case 1:
|
|
3357
|
+
message.imageCount = longToNumber(reader.int64());
|
|
3358
|
+
break;
|
|
3359
|
+
case 2:
|
|
3360
|
+
message.startedAt = longToNumber(reader.int64());
|
|
3361
|
+
break;
|
|
3362
|
+
case 3:
|
|
3363
|
+
message.endedAt = longToNumber(reader.int64());
|
|
3364
|
+
break;
|
|
3365
|
+
default:
|
|
3366
|
+
reader.skipType(tag & 7);
|
|
3367
|
+
break;
|
|
3368
|
+
}
|
|
3369
|
+
}
|
|
3370
|
+
return message;
|
|
3371
|
+
},
|
|
3372
|
+
fromJSON(object) {
|
|
3373
|
+
return {
|
|
3374
|
+
imageCount: isSet(object.imageCount) ? Number(object.imageCount) : 0,
|
|
3375
|
+
startedAt: isSet(object.startedAt) ? Number(object.startedAt) : 0,
|
|
3376
|
+
endedAt: isSet(object.endedAt) ? Number(object.endedAt) : 0,
|
|
3377
|
+
};
|
|
3378
|
+
},
|
|
3379
|
+
toJSON(message) {
|
|
3380
|
+
const obj = {};
|
|
3381
|
+
message.imageCount !== undefined && (obj.imageCount = Math.round(message.imageCount));
|
|
3382
|
+
message.startedAt !== undefined && (obj.startedAt = Math.round(message.startedAt));
|
|
3383
|
+
message.endedAt !== undefined && (obj.endedAt = Math.round(message.endedAt));
|
|
3384
|
+
return obj;
|
|
3385
|
+
},
|
|
3386
|
+
fromPartial(object) {
|
|
3387
|
+
var _a, _b, _c;
|
|
3388
|
+
const message = createBaseImagesInfo();
|
|
3389
|
+
message.imageCount = (_a = object.imageCount) !== null && _a !== void 0 ? _a : 0;
|
|
3390
|
+
message.startedAt = (_b = object.startedAt) !== null && _b !== void 0 ? _b : 0;
|
|
3391
|
+
message.endedAt = (_c = object.endedAt) !== null && _c !== void 0 ? _c : 0;
|
|
3392
|
+
return message;
|
|
3393
|
+
},
|
|
3394
|
+
};
|
|
3395
|
+
function createBaseAutoParticipantEgress() {
|
|
3396
|
+
return { preset: undefined, advanced: undefined, fileOutputs: [], segmentOutputs: [] };
|
|
3397
|
+
}
|
|
3398
|
+
exports.AutoParticipantEgress = {
|
|
3399
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
3400
|
+
if (message.preset !== undefined) {
|
|
3401
|
+
writer.uint32(8).int32(message.preset);
|
|
3402
|
+
}
|
|
3403
|
+
if (message.advanced !== undefined) {
|
|
3404
|
+
exports.EncodingOptions.encode(message.advanced, writer.uint32(18).fork()).ldelim();
|
|
3405
|
+
}
|
|
3406
|
+
if (message.fileOutputs !== undefined && message.fileOutputs.length !== 0) {
|
|
3407
|
+
for (const v of message.fileOutputs) {
|
|
3408
|
+
exports.EncodedFileOutput.encode(v, writer.uint32(26).fork()).ldelim();
|
|
3409
|
+
}
|
|
3410
|
+
}
|
|
3411
|
+
if (message.segmentOutputs !== undefined && message.segmentOutputs.length !== 0) {
|
|
3412
|
+
for (const v of message.segmentOutputs) {
|
|
3413
|
+
exports.SegmentedFileOutput.encode(v, writer.uint32(34).fork()).ldelim();
|
|
3414
|
+
}
|
|
3415
|
+
}
|
|
3416
|
+
return writer;
|
|
3417
|
+
},
|
|
3418
|
+
decode(input, length) {
|
|
3419
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
3420
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
3421
|
+
const message = createBaseAutoParticipantEgress();
|
|
3422
|
+
while (reader.pos < end) {
|
|
3423
|
+
const tag = reader.uint32();
|
|
3424
|
+
switch (tag >>> 3) {
|
|
3425
|
+
case 1:
|
|
3426
|
+
message.preset = reader.int32();
|
|
3427
|
+
break;
|
|
3428
|
+
case 2:
|
|
3429
|
+
message.advanced = exports.EncodingOptions.decode(reader, reader.uint32());
|
|
3430
|
+
break;
|
|
3431
|
+
case 3:
|
|
3432
|
+
message.fileOutputs.push(exports.EncodedFileOutput.decode(reader, reader.uint32()));
|
|
3433
|
+
break;
|
|
3434
|
+
case 4:
|
|
3435
|
+
message.segmentOutputs.push(exports.SegmentedFileOutput.decode(reader, reader.uint32()));
|
|
3436
|
+
break;
|
|
3437
|
+
default:
|
|
3438
|
+
reader.skipType(tag & 7);
|
|
3439
|
+
break;
|
|
3440
|
+
}
|
|
3441
|
+
}
|
|
3442
|
+
return message;
|
|
3443
|
+
},
|
|
3444
|
+
fromJSON(object) {
|
|
3445
|
+
return {
|
|
3446
|
+
preset: isSet(object.preset) ? encodingOptionsPresetFromJSON(object.preset) : undefined,
|
|
3447
|
+
advanced: isSet(object.advanced) ? exports.EncodingOptions.fromJSON(object.advanced) : undefined,
|
|
3448
|
+
fileOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.fileOutputs)
|
|
3449
|
+
? object.fileOutputs.map((e) => exports.EncodedFileOutput.fromJSON(e))
|
|
3450
|
+
: [],
|
|
3451
|
+
segmentOutputs: Array.isArray(object === null || object === void 0 ? void 0 : object.segmentOutputs)
|
|
3452
|
+
? object.segmentOutputs.map((e) => exports.SegmentedFileOutput.fromJSON(e))
|
|
3453
|
+
: [],
|
|
3454
|
+
};
|
|
3455
|
+
},
|
|
3456
|
+
toJSON(message) {
|
|
3457
|
+
const obj = {};
|
|
3458
|
+
message.preset !== undefined &&
|
|
3459
|
+
(obj.preset = message.preset !== undefined ? encodingOptionsPresetToJSON(message.preset) : undefined);
|
|
3460
|
+
message.advanced !== undefined &&
|
|
3461
|
+
(obj.advanced = message.advanced ? exports.EncodingOptions.toJSON(message.advanced) : undefined);
|
|
3462
|
+
if (message.fileOutputs) {
|
|
3463
|
+
obj.fileOutputs = message.fileOutputs.map((e) => e ? exports.EncodedFileOutput.toJSON(e) : undefined);
|
|
3464
|
+
}
|
|
3465
|
+
else {
|
|
3466
|
+
obj.fileOutputs = [];
|
|
3467
|
+
}
|
|
3468
|
+
if (message.segmentOutputs) {
|
|
3469
|
+
obj.segmentOutputs = message.segmentOutputs.map((e) => e ? exports.SegmentedFileOutput.toJSON(e) : undefined);
|
|
3470
|
+
}
|
|
3471
|
+
else {
|
|
3472
|
+
obj.segmentOutputs = [];
|
|
3473
|
+
}
|
|
3474
|
+
return obj;
|
|
3475
|
+
},
|
|
3476
|
+
fromPartial(object) {
|
|
3477
|
+
var _a, _b, _c;
|
|
3478
|
+
const message = createBaseAutoParticipantEgress();
|
|
3479
|
+
message.preset = (_a = object.preset) !== null && _a !== void 0 ? _a : undefined;
|
|
3480
|
+
message.advanced = (object.advanced !== undefined && object.advanced !== null)
|
|
3481
|
+
? exports.EncodingOptions.fromPartial(object.advanced)
|
|
3482
|
+
: undefined;
|
|
3483
|
+
message.fileOutputs = ((_b = object.fileOutputs) === null || _b === void 0 ? void 0 : _b.map((e) => exports.EncodedFileOutput.fromPartial(e))) || [];
|
|
3484
|
+
message.segmentOutputs = ((_c = object.segmentOutputs) === null || _c === void 0 ? void 0 : _c.map((e) => exports.SegmentedFileOutput.fromPartial(e))) || [];
|
|
2773
3485
|
return message;
|
|
2774
3486
|
},
|
|
2775
3487
|
};
|