@fatehan/tsrp 1.6.22 → 1.6.24
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/fatehan/activities/workshift.d.ts +0 -53
- package/dist/fatehan/activities/workshift.d.ts.map +1 -1
- package/dist/fatehan/activities/workshift.js +0 -574
- package/dist/fatehan/packets/dataModel.d.ts +52 -0
- package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModel.js +586 -0
- package/dist/fatehan/services/api.d.ts +70 -0
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +732 -0
- package/dist/fatehan/stream/stream.d.ts +39 -14
- package/dist/fatehan/stream/stream.d.ts.map +1 -1
- package/dist/fatehan/stream/stream.js +420 -24
- package/package.json +1 -1
|
@@ -442,7 +442,7 @@ export const Server = {
|
|
|
442
442
|
},
|
|
443
443
|
};
|
|
444
444
|
function createBaseLiveRequest() {
|
|
445
|
-
return { cameraId: 0, server: undefined, jtt: undefined };
|
|
445
|
+
return { cameraId: 0, server: undefined, jtt: undefined, jimi: undefined };
|
|
446
446
|
}
|
|
447
447
|
export const LiveRequest = {
|
|
448
448
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -455,6 +455,9 @@ export const LiveRequest = {
|
|
|
455
455
|
if (message.jtt !== undefined) {
|
|
456
456
|
LiveRequest_JTT.encode(message.jtt, writer.uint32(90).fork()).join();
|
|
457
457
|
}
|
|
458
|
+
if (message.jimi !== undefined) {
|
|
459
|
+
LiveRequest_Jimi.encode(message.jimi, writer.uint32(98).fork()).join();
|
|
460
|
+
}
|
|
458
461
|
return writer;
|
|
459
462
|
},
|
|
460
463
|
decode(input, length) {
|
|
@@ -485,6 +488,13 @@ export const LiveRequest = {
|
|
|
485
488
|
message.jtt = LiveRequest_JTT.decode(reader, reader.uint32());
|
|
486
489
|
continue;
|
|
487
490
|
}
|
|
491
|
+
case 12: {
|
|
492
|
+
if (tag !== 98) {
|
|
493
|
+
break;
|
|
494
|
+
}
|
|
495
|
+
message.jimi = LiveRequest_Jimi.decode(reader, reader.uint32());
|
|
496
|
+
continue;
|
|
497
|
+
}
|
|
488
498
|
}
|
|
489
499
|
if ((tag & 7) === 4 || tag === 0) {
|
|
490
500
|
break;
|
|
@@ -505,6 +515,9 @@ export const LiveRequest = {
|
|
|
505
515
|
message.jtt = (object.jtt !== undefined && object.jtt !== null)
|
|
506
516
|
? LiveRequest_JTT.fromPartial(object.jtt)
|
|
507
517
|
: undefined;
|
|
518
|
+
message.jimi = (object.jimi !== undefined && object.jimi !== null)
|
|
519
|
+
? LiveRequest_Jimi.fromPartial(object.jimi)
|
|
520
|
+
: undefined;
|
|
508
521
|
return message;
|
|
509
522
|
},
|
|
510
523
|
};
|
|
@@ -560,8 +573,60 @@ export const LiveRequest_JTT = {
|
|
|
560
573
|
return message;
|
|
561
574
|
},
|
|
562
575
|
};
|
|
576
|
+
function createBaseLiveRequest_Jimi() {
|
|
577
|
+
return { typeOfData: 0, streamType: 0 };
|
|
578
|
+
}
|
|
579
|
+
export const LiveRequest_Jimi = {
|
|
580
|
+
encode(message, writer = new BinaryWriter()) {
|
|
581
|
+
if (message.typeOfData !== 0) {
|
|
582
|
+
writer.uint32(8).int32(message.typeOfData);
|
|
583
|
+
}
|
|
584
|
+
if (message.streamType !== 0) {
|
|
585
|
+
writer.uint32(16).int32(message.streamType);
|
|
586
|
+
}
|
|
587
|
+
return writer;
|
|
588
|
+
},
|
|
589
|
+
decode(input, length) {
|
|
590
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
591
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
592
|
+
const message = createBaseLiveRequest_Jimi();
|
|
593
|
+
while (reader.pos < end) {
|
|
594
|
+
const tag = reader.uint32();
|
|
595
|
+
switch (tag >>> 3) {
|
|
596
|
+
case 1: {
|
|
597
|
+
if (tag !== 8) {
|
|
598
|
+
break;
|
|
599
|
+
}
|
|
600
|
+
message.typeOfData = reader.int32();
|
|
601
|
+
continue;
|
|
602
|
+
}
|
|
603
|
+
case 2: {
|
|
604
|
+
if (tag !== 16) {
|
|
605
|
+
break;
|
|
606
|
+
}
|
|
607
|
+
message.streamType = reader.int32();
|
|
608
|
+
continue;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
612
|
+
break;
|
|
613
|
+
}
|
|
614
|
+
reader.skip(tag & 7);
|
|
615
|
+
}
|
|
616
|
+
return message;
|
|
617
|
+
},
|
|
618
|
+
create(base) {
|
|
619
|
+
return LiveRequest_Jimi.fromPartial(base ?? {});
|
|
620
|
+
},
|
|
621
|
+
fromPartial(object) {
|
|
622
|
+
const message = createBaseLiveRequest_Jimi();
|
|
623
|
+
message.typeOfData = object.typeOfData ?? 0;
|
|
624
|
+
message.streamType = object.streamType ?? 0;
|
|
625
|
+
return message;
|
|
626
|
+
},
|
|
627
|
+
};
|
|
563
628
|
function createBaseLiveUpdateRequest() {
|
|
564
|
-
return { cameraId: 0, jtt: undefined };
|
|
629
|
+
return { cameraId: 0, jtt: undefined, jimi: undefined };
|
|
565
630
|
}
|
|
566
631
|
export const LiveUpdateRequest = {
|
|
567
632
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -571,6 +636,9 @@ export const LiveUpdateRequest = {
|
|
|
571
636
|
if (message.jtt !== undefined) {
|
|
572
637
|
LiveUpdateRequest_JTT.encode(message.jtt, writer.uint32(90).fork()).join();
|
|
573
638
|
}
|
|
639
|
+
if (message.jimi !== undefined) {
|
|
640
|
+
LiveUpdateRequest_Jimi.encode(message.jimi, writer.uint32(98).fork()).join();
|
|
641
|
+
}
|
|
574
642
|
return writer;
|
|
575
643
|
},
|
|
576
644
|
decode(input, length) {
|
|
@@ -594,6 +662,13 @@ export const LiveUpdateRequest = {
|
|
|
594
662
|
message.jtt = LiveUpdateRequest_JTT.decode(reader, reader.uint32());
|
|
595
663
|
continue;
|
|
596
664
|
}
|
|
665
|
+
case 12: {
|
|
666
|
+
if (tag !== 98) {
|
|
667
|
+
break;
|
|
668
|
+
}
|
|
669
|
+
message.jimi = LiveUpdateRequest_Jimi.decode(reader, reader.uint32());
|
|
670
|
+
continue;
|
|
671
|
+
}
|
|
597
672
|
}
|
|
598
673
|
if ((tag & 7) === 4 || tag === 0) {
|
|
599
674
|
break;
|
|
@@ -611,6 +686,9 @@ export const LiveUpdateRequest = {
|
|
|
611
686
|
message.jtt = (object.jtt !== undefined && object.jtt !== null)
|
|
612
687
|
? LiveUpdateRequest_JTT.fromPartial(object.jtt)
|
|
613
688
|
: undefined;
|
|
689
|
+
message.jimi = (object.jimi !== undefined && object.jimi !== null)
|
|
690
|
+
? LiveUpdateRequest_Jimi.fromPartial(object.jimi)
|
|
691
|
+
: undefined;
|
|
614
692
|
return message;
|
|
615
693
|
},
|
|
616
694
|
};
|
|
@@ -666,6 +744,69 @@ export const LiveUpdateRequest_JTT = {
|
|
|
666
744
|
return message;
|
|
667
745
|
},
|
|
668
746
|
};
|
|
747
|
+
function createBaseLiveUpdateRequest_Jimi() {
|
|
748
|
+
return { controlCommand: 0, closeAudioVideoType: 0, streamType: 0 };
|
|
749
|
+
}
|
|
750
|
+
export const LiveUpdateRequest_Jimi = {
|
|
751
|
+
encode(message, writer = new BinaryWriter()) {
|
|
752
|
+
if (message.controlCommand !== 0) {
|
|
753
|
+
writer.uint32(8).sint32(message.controlCommand);
|
|
754
|
+
}
|
|
755
|
+
if (message.closeAudioVideoType !== 0) {
|
|
756
|
+
writer.uint32(16).sint32(message.closeAudioVideoType);
|
|
757
|
+
}
|
|
758
|
+
if (message.streamType !== 0) {
|
|
759
|
+
writer.uint32(24).sint32(message.streamType);
|
|
760
|
+
}
|
|
761
|
+
return writer;
|
|
762
|
+
},
|
|
763
|
+
decode(input, length) {
|
|
764
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
765
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
766
|
+
const message = createBaseLiveUpdateRequest_Jimi();
|
|
767
|
+
while (reader.pos < end) {
|
|
768
|
+
const tag = reader.uint32();
|
|
769
|
+
switch (tag >>> 3) {
|
|
770
|
+
case 1: {
|
|
771
|
+
if (tag !== 8) {
|
|
772
|
+
break;
|
|
773
|
+
}
|
|
774
|
+
message.controlCommand = reader.sint32();
|
|
775
|
+
continue;
|
|
776
|
+
}
|
|
777
|
+
case 2: {
|
|
778
|
+
if (tag !== 16) {
|
|
779
|
+
break;
|
|
780
|
+
}
|
|
781
|
+
message.closeAudioVideoType = reader.sint32();
|
|
782
|
+
continue;
|
|
783
|
+
}
|
|
784
|
+
case 3: {
|
|
785
|
+
if (tag !== 24) {
|
|
786
|
+
break;
|
|
787
|
+
}
|
|
788
|
+
message.streamType = reader.sint32();
|
|
789
|
+
continue;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
793
|
+
break;
|
|
794
|
+
}
|
|
795
|
+
reader.skip(tag & 7);
|
|
796
|
+
}
|
|
797
|
+
return message;
|
|
798
|
+
},
|
|
799
|
+
create(base) {
|
|
800
|
+
return LiveUpdateRequest_Jimi.fromPartial(base ?? {});
|
|
801
|
+
},
|
|
802
|
+
fromPartial(object) {
|
|
803
|
+
const message = createBaseLiveUpdateRequest_Jimi();
|
|
804
|
+
message.controlCommand = object.controlCommand ?? 0;
|
|
805
|
+
message.closeAudioVideoType = object.closeAudioVideoType ?? 0;
|
|
806
|
+
message.streamType = object.streamType ?? 0;
|
|
807
|
+
return message;
|
|
808
|
+
},
|
|
809
|
+
};
|
|
669
810
|
function createBaseLiveStatusResponse() {
|
|
670
811
|
return { jtt: undefined };
|
|
671
812
|
}
|
|
@@ -762,7 +903,7 @@ export const LiveStatusResponse_JTT = {
|
|
|
762
903
|
},
|
|
763
904
|
};
|
|
764
905
|
function createBaseFileListQueryRequest() {
|
|
765
|
-
return { cameraId: 0, startedAt: undefined, finishedAt: undefined, jtt: undefined };
|
|
906
|
+
return { cameraId: 0, startedAt: undefined, finishedAt: undefined, jtt: undefined, jimi: undefined };
|
|
766
907
|
}
|
|
767
908
|
export const FileListQueryRequest = {
|
|
768
909
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -778,6 +919,9 @@ export const FileListQueryRequest = {
|
|
|
778
919
|
if (message.jtt !== undefined) {
|
|
779
920
|
FileListQueryRequest_JTT.encode(message.jtt, writer.uint32(90).fork()).join();
|
|
780
921
|
}
|
|
922
|
+
if (message.jimi !== undefined) {
|
|
923
|
+
FileListQueryRequest_Jimi.encode(message.jimi, writer.uint32(98).fork()).join();
|
|
924
|
+
}
|
|
781
925
|
return writer;
|
|
782
926
|
},
|
|
783
927
|
decode(input, length) {
|
|
@@ -815,6 +959,13 @@ export const FileListQueryRequest = {
|
|
|
815
959
|
message.jtt = FileListQueryRequest_JTT.decode(reader, reader.uint32());
|
|
816
960
|
continue;
|
|
817
961
|
}
|
|
962
|
+
case 12: {
|
|
963
|
+
if (tag !== 98) {
|
|
964
|
+
break;
|
|
965
|
+
}
|
|
966
|
+
message.jimi = FileListQueryRequest_Jimi.decode(reader, reader.uint32());
|
|
967
|
+
continue;
|
|
968
|
+
}
|
|
818
969
|
}
|
|
819
970
|
if ((tag & 7) === 4 || tag === 0) {
|
|
820
971
|
break;
|
|
@@ -834,6 +985,9 @@ export const FileListQueryRequest = {
|
|
|
834
985
|
message.jtt = (object.jtt !== undefined && object.jtt !== null)
|
|
835
986
|
? FileListQueryRequest_JTT.fromPartial(object.jtt)
|
|
836
987
|
: undefined;
|
|
988
|
+
message.jimi = (object.jimi !== undefined && object.jimi !== null)
|
|
989
|
+
? FileListQueryRequest_Jimi.fromPartial(object.jimi)
|
|
990
|
+
: undefined;
|
|
837
991
|
return message;
|
|
838
992
|
},
|
|
839
993
|
};
|
|
@@ -913,6 +1067,82 @@ export const FileListQueryRequest_JTT = {
|
|
|
913
1067
|
return message;
|
|
914
1068
|
},
|
|
915
1069
|
};
|
|
1070
|
+
function createBaseFileListQueryRequest_Jimi() {
|
|
1071
|
+
return { alarmType: Long.ZERO, dataType: 0, streamType: 0, memoryType: 0 };
|
|
1072
|
+
}
|
|
1073
|
+
export const FileListQueryRequest_Jimi = {
|
|
1074
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1075
|
+
if (!message.alarmType.equals(Long.ZERO)) {
|
|
1076
|
+
writer.uint32(8).sint64(message.alarmType.toString());
|
|
1077
|
+
}
|
|
1078
|
+
if (message.dataType !== 0) {
|
|
1079
|
+
writer.uint32(16).sint32(message.dataType);
|
|
1080
|
+
}
|
|
1081
|
+
if (message.streamType !== 0) {
|
|
1082
|
+
writer.uint32(24).sint32(message.streamType);
|
|
1083
|
+
}
|
|
1084
|
+
if (message.memoryType !== 0) {
|
|
1085
|
+
writer.uint32(32).sint32(message.memoryType);
|
|
1086
|
+
}
|
|
1087
|
+
return writer;
|
|
1088
|
+
},
|
|
1089
|
+
decode(input, length) {
|
|
1090
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1091
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1092
|
+
const message = createBaseFileListQueryRequest_Jimi();
|
|
1093
|
+
while (reader.pos < end) {
|
|
1094
|
+
const tag = reader.uint32();
|
|
1095
|
+
switch (tag >>> 3) {
|
|
1096
|
+
case 1: {
|
|
1097
|
+
if (tag !== 8) {
|
|
1098
|
+
break;
|
|
1099
|
+
}
|
|
1100
|
+
message.alarmType = Long.fromString(reader.sint64().toString());
|
|
1101
|
+
continue;
|
|
1102
|
+
}
|
|
1103
|
+
case 2: {
|
|
1104
|
+
if (tag !== 16) {
|
|
1105
|
+
break;
|
|
1106
|
+
}
|
|
1107
|
+
message.dataType = reader.sint32();
|
|
1108
|
+
continue;
|
|
1109
|
+
}
|
|
1110
|
+
case 3: {
|
|
1111
|
+
if (tag !== 24) {
|
|
1112
|
+
break;
|
|
1113
|
+
}
|
|
1114
|
+
message.streamType = reader.sint32();
|
|
1115
|
+
continue;
|
|
1116
|
+
}
|
|
1117
|
+
case 4: {
|
|
1118
|
+
if (tag !== 32) {
|
|
1119
|
+
break;
|
|
1120
|
+
}
|
|
1121
|
+
message.memoryType = reader.sint32();
|
|
1122
|
+
continue;
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1126
|
+
break;
|
|
1127
|
+
}
|
|
1128
|
+
reader.skip(tag & 7);
|
|
1129
|
+
}
|
|
1130
|
+
return message;
|
|
1131
|
+
},
|
|
1132
|
+
create(base) {
|
|
1133
|
+
return FileListQueryRequest_Jimi.fromPartial(base ?? {});
|
|
1134
|
+
},
|
|
1135
|
+
fromPartial(object) {
|
|
1136
|
+
const message = createBaseFileListQueryRequest_Jimi();
|
|
1137
|
+
message.alarmType = (object.alarmType !== undefined && object.alarmType !== null)
|
|
1138
|
+
? Long.fromValue(object.alarmType)
|
|
1139
|
+
: Long.ZERO;
|
|
1140
|
+
message.dataType = object.dataType ?? 0;
|
|
1141
|
+
message.streamType = object.streamType ?? 0;
|
|
1142
|
+
message.memoryType = object.memoryType ?? 0;
|
|
1143
|
+
return message;
|
|
1144
|
+
},
|
|
1145
|
+
};
|
|
916
1146
|
function createBaseFileListQueryResponse() {
|
|
917
1147
|
return { serialNo: 0, files: [] };
|
|
918
1148
|
}
|
|
@@ -1118,12 +1348,19 @@ export const FileListQueryResponse_File = {
|
|
|
1118
1348
|
},
|
|
1119
1349
|
};
|
|
1120
1350
|
function createBasePlaybackRequest() {
|
|
1121
|
-
return {
|
|
1351
|
+
return {
|
|
1352
|
+
cameraId: 0,
|
|
1353
|
+
startedAt: undefined,
|
|
1354
|
+
finishedAt: undefined,
|
|
1355
|
+
server: undefined,
|
|
1356
|
+
jtt: undefined,
|
|
1357
|
+
jimi: undefined,
|
|
1358
|
+
};
|
|
1122
1359
|
}
|
|
1123
1360
|
export const PlaybackRequest = {
|
|
1124
1361
|
encode(message, writer = new BinaryWriter()) {
|
|
1125
|
-
if (
|
|
1126
|
-
writer.uint32(8).
|
|
1362
|
+
if (message.cameraId !== 0) {
|
|
1363
|
+
writer.uint32(8).sint32(message.cameraId);
|
|
1127
1364
|
}
|
|
1128
1365
|
if (message.startedAt !== undefined) {
|
|
1129
1366
|
Timestamp.encode(toTimestamp(message.startedAt), writer.uint32(18).fork()).join();
|
|
@@ -1137,6 +1374,9 @@ export const PlaybackRequest = {
|
|
|
1137
1374
|
if (message.jtt !== undefined) {
|
|
1138
1375
|
PlaybackRequest_JTT.encode(message.jtt, writer.uint32(90).fork()).join();
|
|
1139
1376
|
}
|
|
1377
|
+
if (message.jimi !== undefined) {
|
|
1378
|
+
PlaybackRequest_Jimi.encode(message.jimi, writer.uint32(98).fork()).join();
|
|
1379
|
+
}
|
|
1140
1380
|
return writer;
|
|
1141
1381
|
},
|
|
1142
1382
|
decode(input, length) {
|
|
@@ -1150,7 +1390,7 @@ export const PlaybackRequest = {
|
|
|
1150
1390
|
if (tag !== 8) {
|
|
1151
1391
|
break;
|
|
1152
1392
|
}
|
|
1153
|
-
message.cameraId =
|
|
1393
|
+
message.cameraId = reader.sint32();
|
|
1154
1394
|
continue;
|
|
1155
1395
|
}
|
|
1156
1396
|
case 2: {
|
|
@@ -1181,6 +1421,13 @@ export const PlaybackRequest = {
|
|
|
1181
1421
|
message.jtt = PlaybackRequest_JTT.decode(reader, reader.uint32());
|
|
1182
1422
|
continue;
|
|
1183
1423
|
}
|
|
1424
|
+
case 12: {
|
|
1425
|
+
if (tag !== 98) {
|
|
1426
|
+
break;
|
|
1427
|
+
}
|
|
1428
|
+
message.jimi = PlaybackRequest_Jimi.decode(reader, reader.uint32());
|
|
1429
|
+
continue;
|
|
1430
|
+
}
|
|
1184
1431
|
}
|
|
1185
1432
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1186
1433
|
break;
|
|
@@ -1194,9 +1441,7 @@ export const PlaybackRequest = {
|
|
|
1194
1441
|
},
|
|
1195
1442
|
fromPartial(object) {
|
|
1196
1443
|
const message = createBasePlaybackRequest();
|
|
1197
|
-
message.cameraId =
|
|
1198
|
-
? Long.fromValue(object.cameraId)
|
|
1199
|
-
: Long.UZERO;
|
|
1444
|
+
message.cameraId = object.cameraId ?? 0;
|
|
1200
1445
|
message.startedAt = object.startedAt ?? undefined;
|
|
1201
1446
|
message.finishedAt = object.finishedAt ?? undefined;
|
|
1202
1447
|
message.server = (object.server !== undefined && object.server !== null)
|
|
@@ -1205,6 +1450,9 @@ export const PlaybackRequest = {
|
|
|
1205
1450
|
message.jtt = (object.jtt !== undefined && object.jtt !== null)
|
|
1206
1451
|
? PlaybackRequest_JTT.fromPartial(object.jtt)
|
|
1207
1452
|
: undefined;
|
|
1453
|
+
message.jimi = (object.jimi !== undefined && object.jimi !== null)
|
|
1454
|
+
? PlaybackRequest_Jimi.fromPartial(object.jimi)
|
|
1455
|
+
: undefined;
|
|
1208
1456
|
return message;
|
|
1209
1457
|
},
|
|
1210
1458
|
};
|
|
@@ -1293,17 +1541,94 @@ export const PlaybackRequest_JTT = {
|
|
|
1293
1541
|
return message;
|
|
1294
1542
|
},
|
|
1295
1543
|
};
|
|
1544
|
+
function createBasePlaybackRequest_Jimi() {
|
|
1545
|
+
return { dataType: 0, streamType: 0, playbackMode: 0, speedFactor: 0 };
|
|
1546
|
+
}
|
|
1547
|
+
export const PlaybackRequest_Jimi = {
|
|
1548
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1549
|
+
if (message.dataType !== 0) {
|
|
1550
|
+
writer.uint32(8).sint32(message.dataType);
|
|
1551
|
+
}
|
|
1552
|
+
if (message.streamType !== 0) {
|
|
1553
|
+
writer.uint32(16).sint32(message.streamType);
|
|
1554
|
+
}
|
|
1555
|
+
if (message.playbackMode !== 0) {
|
|
1556
|
+
writer.uint32(24).sint32(message.playbackMode);
|
|
1557
|
+
}
|
|
1558
|
+
if (message.speedFactor !== 0) {
|
|
1559
|
+
writer.uint32(32).sint32(message.speedFactor);
|
|
1560
|
+
}
|
|
1561
|
+
return writer;
|
|
1562
|
+
},
|
|
1563
|
+
decode(input, length) {
|
|
1564
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1565
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1566
|
+
const message = createBasePlaybackRequest_Jimi();
|
|
1567
|
+
while (reader.pos < end) {
|
|
1568
|
+
const tag = reader.uint32();
|
|
1569
|
+
switch (tag >>> 3) {
|
|
1570
|
+
case 1: {
|
|
1571
|
+
if (tag !== 8) {
|
|
1572
|
+
break;
|
|
1573
|
+
}
|
|
1574
|
+
message.dataType = reader.sint32();
|
|
1575
|
+
continue;
|
|
1576
|
+
}
|
|
1577
|
+
case 2: {
|
|
1578
|
+
if (tag !== 16) {
|
|
1579
|
+
break;
|
|
1580
|
+
}
|
|
1581
|
+
message.streamType = reader.sint32();
|
|
1582
|
+
continue;
|
|
1583
|
+
}
|
|
1584
|
+
case 3: {
|
|
1585
|
+
if (tag !== 24) {
|
|
1586
|
+
break;
|
|
1587
|
+
}
|
|
1588
|
+
message.playbackMode = reader.sint32();
|
|
1589
|
+
continue;
|
|
1590
|
+
}
|
|
1591
|
+
case 4: {
|
|
1592
|
+
if (tag !== 32) {
|
|
1593
|
+
break;
|
|
1594
|
+
}
|
|
1595
|
+
message.speedFactor = reader.sint32();
|
|
1596
|
+
continue;
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1600
|
+
break;
|
|
1601
|
+
}
|
|
1602
|
+
reader.skip(tag & 7);
|
|
1603
|
+
}
|
|
1604
|
+
return message;
|
|
1605
|
+
},
|
|
1606
|
+
create(base) {
|
|
1607
|
+
return PlaybackRequest_Jimi.fromPartial(base ?? {});
|
|
1608
|
+
},
|
|
1609
|
+
fromPartial(object) {
|
|
1610
|
+
const message = createBasePlaybackRequest_Jimi();
|
|
1611
|
+
message.dataType = object.dataType ?? 0;
|
|
1612
|
+
message.streamType = object.streamType ?? 0;
|
|
1613
|
+
message.playbackMode = object.playbackMode ?? 0;
|
|
1614
|
+
message.speedFactor = object.speedFactor ?? 0;
|
|
1615
|
+
return message;
|
|
1616
|
+
},
|
|
1617
|
+
};
|
|
1296
1618
|
function createBasePlaybackUpdateState() {
|
|
1297
|
-
return { cameraId:
|
|
1619
|
+
return { cameraId: 0, state: 0, jimi: undefined };
|
|
1298
1620
|
}
|
|
1299
1621
|
export const PlaybackUpdateState = {
|
|
1300
1622
|
encode(message, writer = new BinaryWriter()) {
|
|
1301
|
-
if (
|
|
1302
|
-
writer.uint32(8).
|
|
1623
|
+
if (message.cameraId !== 0) {
|
|
1624
|
+
writer.uint32(8).sint32(message.cameraId);
|
|
1303
1625
|
}
|
|
1304
1626
|
if (message.state !== 0) {
|
|
1305
1627
|
writer.uint32(16).int32(message.state);
|
|
1306
1628
|
}
|
|
1629
|
+
if (message.jimi !== undefined) {
|
|
1630
|
+
PlaybackUpdateState_Jimi.encode(message.jimi, writer.uint32(90).fork()).join();
|
|
1631
|
+
}
|
|
1307
1632
|
return writer;
|
|
1308
1633
|
},
|
|
1309
1634
|
decode(input, length) {
|
|
@@ -1317,7 +1642,7 @@ export const PlaybackUpdateState = {
|
|
|
1317
1642
|
if (tag !== 8) {
|
|
1318
1643
|
break;
|
|
1319
1644
|
}
|
|
1320
|
-
message.cameraId =
|
|
1645
|
+
message.cameraId = reader.sint32();
|
|
1321
1646
|
continue;
|
|
1322
1647
|
}
|
|
1323
1648
|
case 2: {
|
|
@@ -1327,6 +1652,13 @@ export const PlaybackUpdateState = {
|
|
|
1327
1652
|
message.state = reader.int32();
|
|
1328
1653
|
continue;
|
|
1329
1654
|
}
|
|
1655
|
+
case 11: {
|
|
1656
|
+
if (tag !== 90) {
|
|
1657
|
+
break;
|
|
1658
|
+
}
|
|
1659
|
+
message.jimi = PlaybackUpdateState_Jimi.decode(reader, reader.uint32());
|
|
1660
|
+
continue;
|
|
1661
|
+
}
|
|
1330
1662
|
}
|
|
1331
1663
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1332
1664
|
break;
|
|
@@ -1340,20 +1672,86 @@ export const PlaybackUpdateState = {
|
|
|
1340
1672
|
},
|
|
1341
1673
|
fromPartial(object) {
|
|
1342
1674
|
const message = createBasePlaybackUpdateState();
|
|
1343
|
-
message.cameraId =
|
|
1344
|
-
? Long.fromValue(object.cameraId)
|
|
1345
|
-
: Long.UZERO;
|
|
1675
|
+
message.cameraId = object.cameraId ?? 0;
|
|
1346
1676
|
message.state = object.state ?? 0;
|
|
1677
|
+
message.jimi = (object.jimi !== undefined && object.jimi !== null)
|
|
1678
|
+
? PlaybackUpdateState_Jimi.fromPartial(object.jimi)
|
|
1679
|
+
: undefined;
|
|
1680
|
+
return message;
|
|
1681
|
+
},
|
|
1682
|
+
};
|
|
1683
|
+
function createBasePlaybackUpdateState_Jimi() {
|
|
1684
|
+
return { fastForward: 0, speedFactor: 0, seekTime: Long.ZERO };
|
|
1685
|
+
}
|
|
1686
|
+
export const PlaybackUpdateState_Jimi = {
|
|
1687
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1688
|
+
if (message.fastForward !== 0) {
|
|
1689
|
+
writer.uint32(8).sint32(message.fastForward);
|
|
1690
|
+
}
|
|
1691
|
+
if (message.speedFactor !== 0) {
|
|
1692
|
+
writer.uint32(16).sint32(message.speedFactor);
|
|
1693
|
+
}
|
|
1694
|
+
if (!message.seekTime.equals(Long.ZERO)) {
|
|
1695
|
+
writer.uint32(24).sint64(message.seekTime.toString());
|
|
1696
|
+
}
|
|
1697
|
+
return writer;
|
|
1698
|
+
},
|
|
1699
|
+
decode(input, length) {
|
|
1700
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1701
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1702
|
+
const message = createBasePlaybackUpdateState_Jimi();
|
|
1703
|
+
while (reader.pos < end) {
|
|
1704
|
+
const tag = reader.uint32();
|
|
1705
|
+
switch (tag >>> 3) {
|
|
1706
|
+
case 1: {
|
|
1707
|
+
if (tag !== 8) {
|
|
1708
|
+
break;
|
|
1709
|
+
}
|
|
1710
|
+
message.fastForward = reader.sint32();
|
|
1711
|
+
continue;
|
|
1712
|
+
}
|
|
1713
|
+
case 2: {
|
|
1714
|
+
if (tag !== 16) {
|
|
1715
|
+
break;
|
|
1716
|
+
}
|
|
1717
|
+
message.speedFactor = reader.sint32();
|
|
1718
|
+
continue;
|
|
1719
|
+
}
|
|
1720
|
+
case 3: {
|
|
1721
|
+
if (tag !== 24) {
|
|
1722
|
+
break;
|
|
1723
|
+
}
|
|
1724
|
+
message.seekTime = Long.fromString(reader.sint64().toString());
|
|
1725
|
+
continue;
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1729
|
+
break;
|
|
1730
|
+
}
|
|
1731
|
+
reader.skip(tag & 7);
|
|
1732
|
+
}
|
|
1733
|
+
return message;
|
|
1734
|
+
},
|
|
1735
|
+
create(base) {
|
|
1736
|
+
return PlaybackUpdateState_Jimi.fromPartial(base ?? {});
|
|
1737
|
+
},
|
|
1738
|
+
fromPartial(object) {
|
|
1739
|
+
const message = createBasePlaybackUpdateState_Jimi();
|
|
1740
|
+
message.fastForward = object.fastForward ?? 0;
|
|
1741
|
+
message.speedFactor = object.speedFactor ?? 0;
|
|
1742
|
+
message.seekTime = (object.seekTime !== undefined && object.seekTime !== null)
|
|
1743
|
+
? Long.fromValue(object.seekTime)
|
|
1744
|
+
: Long.ZERO;
|
|
1347
1745
|
return message;
|
|
1348
1746
|
},
|
|
1349
1747
|
};
|
|
1350
1748
|
function createBasePlaybackUpdateCurrentTime() {
|
|
1351
|
-
return { cameraId:
|
|
1749
|
+
return { cameraId: 0, currentTime: undefined };
|
|
1352
1750
|
}
|
|
1353
1751
|
export const PlaybackUpdateCurrentTime = {
|
|
1354
1752
|
encode(message, writer = new BinaryWriter()) {
|
|
1355
|
-
if (
|
|
1356
|
-
writer.uint32(8).
|
|
1753
|
+
if (message.cameraId !== 0) {
|
|
1754
|
+
writer.uint32(8).sint32(message.cameraId);
|
|
1357
1755
|
}
|
|
1358
1756
|
if (message.currentTime !== undefined) {
|
|
1359
1757
|
Timestamp.encode(toTimestamp(message.currentTime), writer.uint32(18).fork()).join();
|
|
@@ -1371,7 +1769,7 @@ export const PlaybackUpdateCurrentTime = {
|
|
|
1371
1769
|
if (tag !== 8) {
|
|
1372
1770
|
break;
|
|
1373
1771
|
}
|
|
1374
|
-
message.cameraId =
|
|
1772
|
+
message.cameraId = reader.sint32();
|
|
1375
1773
|
continue;
|
|
1376
1774
|
}
|
|
1377
1775
|
case 2: {
|
|
@@ -1394,9 +1792,7 @@ export const PlaybackUpdateCurrentTime = {
|
|
|
1394
1792
|
},
|
|
1395
1793
|
fromPartial(object) {
|
|
1396
1794
|
const message = createBasePlaybackUpdateCurrentTime();
|
|
1397
|
-
message.cameraId =
|
|
1398
|
-
? Long.fromValue(object.cameraId)
|
|
1399
|
-
: Long.UZERO;
|
|
1795
|
+
message.cameraId = object.cameraId ?? 0;
|
|
1400
1796
|
message.currentTime = object.currentTime ?? undefined;
|
|
1401
1797
|
return message;
|
|
1402
1798
|
},
|