livekit-client 1.7.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -1
- package/dist/livekit-client.esm.mjs +2178 -1060
- package/dist/livekit-client.esm.mjs.map +1 -1
- package/dist/livekit-client.umd.js +1 -1
- package/dist/livekit-client.umd.js.map +1 -1
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/proto/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/src/proto/livekit_models.d.ts +32 -0
- package/dist/src/proto/livekit_models.d.ts.map +1 -1
- package/dist/src/proto/livekit_rtc.d.ts +315 -75
- package/dist/src/proto/livekit_rtc.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts +8 -1
- package/dist/src/room/RTCEngine.d.ts.map +1 -1
- package/dist/src/room/ReconnectPolicy.d.ts +1 -0
- package/dist/src/room/ReconnectPolicy.d.ts.map +1 -1
- package/dist/src/room/RegionUrlProvider.d.ts +14 -0
- package/dist/src/room/RegionUrlProvider.d.ts.map +1 -0
- package/dist/src/room/Room.d.ts +4 -0
- package/dist/src/room/Room.d.ts.map +1 -1
- package/dist/src/room/errors.d.ts +2 -1
- package/dist/src/room/errors.d.ts.map +1 -1
- package/dist/src/room/events.d.ts +8 -2
- package/dist/src/room/events.d.ts.map +1 -1
- package/dist/src/room/track/LocalAudioTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrack.d.ts +3 -2
- package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalVideoTrack.d.ts.map +1 -1
- package/dist/src/room/track/RemoteTrackPublication.d.ts +1 -1
- package/dist/src/room/track/RemoteTrackPublication.d.ts.map +1 -1
- package/dist/src/room/track/RemoteVideoTrack.d.ts +1 -1
- package/dist/src/room/track/RemoteVideoTrack.d.ts.map +1 -1
- package/dist/src/room/track/Track.d.ts +3 -1
- package/dist/src/room/track/Track.d.ts.map +1 -1
- package/dist/src/room/types.d.ts +4 -0
- package/dist/src/room/types.d.ts.map +1 -1
- package/dist/src/room/utils.d.ts +4 -0
- package/dist/src/room/utils.d.ts.map +1 -1
- package/dist/ts4.2/src/index.d.ts +3 -1
- package/dist/ts4.2/src/proto/livekit_models.d.ts +32 -0
- package/dist/ts4.2/src/proto/livekit_rtc.d.ts +348 -84
- package/dist/ts4.2/src/room/RTCEngine.d.ts +8 -1
- package/dist/ts4.2/src/room/ReconnectPolicy.d.ts +1 -0
- package/dist/ts4.2/src/room/RegionUrlProvider.d.ts +14 -0
- package/dist/ts4.2/src/room/Room.d.ts +4 -0
- package/dist/ts4.2/src/room/errors.d.ts +2 -1
- package/dist/ts4.2/src/room/events.d.ts +8 -2
- package/dist/ts4.2/src/room/track/LocalTrack.d.ts +3 -2
- package/dist/ts4.2/src/room/track/RemoteTrackPublication.d.ts +1 -1
- package/dist/ts4.2/src/room/track/RemoteVideoTrack.d.ts +1 -1
- package/dist/ts4.2/src/room/track/Track.d.ts +3 -1
- package/dist/ts4.2/src/room/types.d.ts +4 -0
- package/dist/ts4.2/src/room/utils.d.ts +4 -0
- package/package.json +19 -19
- package/src/api/SignalClient.ts +4 -4
- package/src/index.ts +3 -0
- package/src/proto/google/protobuf/timestamp.ts +15 -6
- package/src/proto/livekit_models.ts +903 -222
- package/src/proto/livekit_rtc.ts +1053 -279
- package/src/room/RTCEngine.ts +143 -40
- package/src/room/ReconnectPolicy.ts +2 -0
- package/src/room/RegionUrlProvider.ts +73 -0
- package/src/room/Room.ts +201 -132
- package/src/room/errors.ts +1 -0
- package/src/room/events.ts +7 -0
- package/src/room/track/LocalAudioTrack.ts +13 -6
- package/src/room/track/LocalTrack.ts +22 -8
- package/src/room/track/LocalVideoTrack.ts +12 -6
- package/src/room/track/RemoteTrackPublication.ts +4 -3
- package/src/room/track/RemoteVideoTrack.ts +5 -4
- package/src/room/track/Track.ts +46 -31
- package/src/room/types.ts +6 -0
- package/src/room/utils.ts +53 -0
@@ -5,6 +5,96 @@ import { Timestamp } from "./google/protobuf/timestamp";
|
|
5
5
|
|
6
6
|
export const protobufPackage = "livekit";
|
7
7
|
|
8
|
+
export enum AudioCodec {
|
9
|
+
DEFAULT_AC = 0,
|
10
|
+
OPUS = 1,
|
11
|
+
AAC = 2,
|
12
|
+
UNRECOGNIZED = -1,
|
13
|
+
}
|
14
|
+
|
15
|
+
export function audioCodecFromJSON(object: any): AudioCodec {
|
16
|
+
switch (object) {
|
17
|
+
case 0:
|
18
|
+
case "DEFAULT_AC":
|
19
|
+
return AudioCodec.DEFAULT_AC;
|
20
|
+
case 1:
|
21
|
+
case "OPUS":
|
22
|
+
return AudioCodec.OPUS;
|
23
|
+
case 2:
|
24
|
+
case "AAC":
|
25
|
+
return AudioCodec.AAC;
|
26
|
+
case -1:
|
27
|
+
case "UNRECOGNIZED":
|
28
|
+
default:
|
29
|
+
return AudioCodec.UNRECOGNIZED;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
export function audioCodecToJSON(object: AudioCodec): string {
|
34
|
+
switch (object) {
|
35
|
+
case AudioCodec.DEFAULT_AC:
|
36
|
+
return "DEFAULT_AC";
|
37
|
+
case AudioCodec.OPUS:
|
38
|
+
return "OPUS";
|
39
|
+
case AudioCodec.AAC:
|
40
|
+
return "AAC";
|
41
|
+
case AudioCodec.UNRECOGNIZED:
|
42
|
+
default:
|
43
|
+
return "UNRECOGNIZED";
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
export enum VideoCodec {
|
48
|
+
DEFAULT_VC = 0,
|
49
|
+
H264_BASELINE = 1,
|
50
|
+
H264_MAIN = 2,
|
51
|
+
H264_HIGH = 3,
|
52
|
+
VP8 = 4,
|
53
|
+
UNRECOGNIZED = -1,
|
54
|
+
}
|
55
|
+
|
56
|
+
export function videoCodecFromJSON(object: any): VideoCodec {
|
57
|
+
switch (object) {
|
58
|
+
case 0:
|
59
|
+
case "DEFAULT_VC":
|
60
|
+
return VideoCodec.DEFAULT_VC;
|
61
|
+
case 1:
|
62
|
+
case "H264_BASELINE":
|
63
|
+
return VideoCodec.H264_BASELINE;
|
64
|
+
case 2:
|
65
|
+
case "H264_MAIN":
|
66
|
+
return VideoCodec.H264_MAIN;
|
67
|
+
case 3:
|
68
|
+
case "H264_HIGH":
|
69
|
+
return VideoCodec.H264_HIGH;
|
70
|
+
case 4:
|
71
|
+
case "VP8":
|
72
|
+
return VideoCodec.VP8;
|
73
|
+
case -1:
|
74
|
+
case "UNRECOGNIZED":
|
75
|
+
default:
|
76
|
+
return VideoCodec.UNRECOGNIZED;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
export function videoCodecToJSON(object: VideoCodec): string {
|
81
|
+
switch (object) {
|
82
|
+
case VideoCodec.DEFAULT_VC:
|
83
|
+
return "DEFAULT_VC";
|
84
|
+
case VideoCodec.H264_BASELINE:
|
85
|
+
return "H264_BASELINE";
|
86
|
+
case VideoCodec.H264_MAIN:
|
87
|
+
return "H264_MAIN";
|
88
|
+
case VideoCodec.H264_HIGH:
|
89
|
+
return "H264_HIGH";
|
90
|
+
case VideoCodec.VP8:
|
91
|
+
return "VP8";
|
92
|
+
case VideoCodec.UNRECOGNIZED:
|
93
|
+
default:
|
94
|
+
return "UNRECOGNIZED";
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
8
98
|
export enum TrackType {
|
9
99
|
AUDIO = 0,
|
10
100
|
VIDEO = 1,
|
@@ -369,6 +459,8 @@ export interface ParticipantPermission {
|
|
369
459
|
hidden: boolean;
|
370
460
|
/** indicates it's a recorder instance */
|
371
461
|
recorder: boolean;
|
462
|
+
/** indicates that participant can update own metadata */
|
463
|
+
canUpdateMetadata: boolean;
|
372
464
|
}
|
373
465
|
|
374
466
|
export interface ParticipantInfo {
|
@@ -663,6 +755,8 @@ export enum ClientInfo_SDK {
|
|
663
755
|
FLUTTER = 4,
|
664
756
|
GO = 5,
|
665
757
|
UNITY = 6,
|
758
|
+
REACT_NATIVE = 7,
|
759
|
+
RUST = 8,
|
666
760
|
UNRECOGNIZED = -1,
|
667
761
|
}
|
668
762
|
|
@@ -689,6 +783,12 @@ export function clientInfo_SDKFromJSON(object: any): ClientInfo_SDK {
|
|
689
783
|
case 6:
|
690
784
|
case "UNITY":
|
691
785
|
return ClientInfo_SDK.UNITY;
|
786
|
+
case 7:
|
787
|
+
case "REACT_NATIVE":
|
788
|
+
return ClientInfo_SDK.REACT_NATIVE;
|
789
|
+
case 8:
|
790
|
+
case "RUST":
|
791
|
+
return ClientInfo_SDK.RUST;
|
692
792
|
case -1:
|
693
793
|
case "UNRECOGNIZED":
|
694
794
|
default:
|
@@ -712,6 +812,10 @@ export function clientInfo_SDKToJSON(object: ClientInfo_SDK): string {
|
|
712
812
|
return "GO";
|
713
813
|
case ClientInfo_SDK.UNITY:
|
714
814
|
return "UNITY";
|
815
|
+
case ClientInfo_SDK.REACT_NATIVE:
|
816
|
+
return "REACT_NATIVE";
|
817
|
+
case ClientInfo_SDK.RUST:
|
818
|
+
return "RUST";
|
715
819
|
case ClientInfo_SDK.UNRECOGNIZED:
|
716
820
|
default:
|
717
821
|
return "UNRECOGNIZED";
|
@@ -840,46 +944,87 @@ export const Room = {
|
|
840
944
|
},
|
841
945
|
|
842
946
|
decode(input: _m0.Reader | Uint8Array, length?: number): Room {
|
843
|
-
const reader = input instanceof _m0.Reader ? input :
|
947
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
844
948
|
let end = length === undefined ? reader.len : reader.pos + length;
|
845
949
|
const message = createBaseRoom();
|
846
950
|
while (reader.pos < end) {
|
847
951
|
const tag = reader.uint32();
|
848
952
|
switch (tag >>> 3) {
|
849
953
|
case 1:
|
954
|
+
if (tag != 10) {
|
955
|
+
break;
|
956
|
+
}
|
957
|
+
|
850
958
|
message.sid = reader.string();
|
851
|
-
|
959
|
+
continue;
|
852
960
|
case 2:
|
961
|
+
if (tag != 18) {
|
962
|
+
break;
|
963
|
+
}
|
964
|
+
|
853
965
|
message.name = reader.string();
|
854
|
-
|
966
|
+
continue;
|
855
967
|
case 3:
|
968
|
+
if (tag != 24) {
|
969
|
+
break;
|
970
|
+
}
|
971
|
+
|
856
972
|
message.emptyTimeout = reader.uint32();
|
857
|
-
|
973
|
+
continue;
|
858
974
|
case 4:
|
975
|
+
if (tag != 32) {
|
976
|
+
break;
|
977
|
+
}
|
978
|
+
|
859
979
|
message.maxParticipants = reader.uint32();
|
860
|
-
|
980
|
+
continue;
|
861
981
|
case 5:
|
982
|
+
if (tag != 40) {
|
983
|
+
break;
|
984
|
+
}
|
985
|
+
|
862
986
|
message.creationTime = longToNumber(reader.int64() as Long);
|
863
|
-
|
987
|
+
continue;
|
864
988
|
case 6:
|
989
|
+
if (tag != 50) {
|
990
|
+
break;
|
991
|
+
}
|
992
|
+
|
865
993
|
message.turnPassword = reader.string();
|
866
|
-
|
994
|
+
continue;
|
867
995
|
case 7:
|
996
|
+
if (tag != 58) {
|
997
|
+
break;
|
998
|
+
}
|
999
|
+
|
868
1000
|
message.enabledCodecs.push(Codec.decode(reader, reader.uint32()));
|
869
|
-
|
1001
|
+
continue;
|
870
1002
|
case 8:
|
1003
|
+
if (tag != 66) {
|
1004
|
+
break;
|
1005
|
+
}
|
1006
|
+
|
871
1007
|
message.metadata = reader.string();
|
872
|
-
|
1008
|
+
continue;
|
873
1009
|
case 9:
|
1010
|
+
if (tag != 72) {
|
1011
|
+
break;
|
1012
|
+
}
|
1013
|
+
|
874
1014
|
message.numParticipants = reader.uint32();
|
875
|
-
|
1015
|
+
continue;
|
876
1016
|
case 10:
|
1017
|
+
if (tag != 80) {
|
1018
|
+
break;
|
1019
|
+
}
|
1020
|
+
|
877
1021
|
message.activeRecording = reader.bool();
|
878
|
-
|
879
|
-
default:
|
880
|
-
reader.skipType(tag & 7);
|
881
|
-
break;
|
1022
|
+
continue;
|
882
1023
|
}
|
1024
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1025
|
+
break;
|
1026
|
+
}
|
1027
|
+
reader.skipType(tag & 7);
|
883
1028
|
}
|
884
1029
|
return message;
|
885
1030
|
},
|
@@ -956,22 +1101,31 @@ export const Codec = {
|
|
956
1101
|
},
|
957
1102
|
|
958
1103
|
decode(input: _m0.Reader | Uint8Array, length?: number): Codec {
|
959
|
-
const reader = input instanceof _m0.Reader ? input :
|
1104
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
960
1105
|
let end = length === undefined ? reader.len : reader.pos + length;
|
961
1106
|
const message = createBaseCodec();
|
962
1107
|
while (reader.pos < end) {
|
963
1108
|
const tag = reader.uint32();
|
964
1109
|
switch (tag >>> 3) {
|
965
1110
|
case 1:
|
1111
|
+
if (tag != 10) {
|
1112
|
+
break;
|
1113
|
+
}
|
1114
|
+
|
966
1115
|
message.mime = reader.string();
|
967
|
-
|
1116
|
+
continue;
|
968
1117
|
case 2:
|
1118
|
+
if (tag != 18) {
|
1119
|
+
break;
|
1120
|
+
}
|
1121
|
+
|
969
1122
|
message.fmtpLine = reader.string();
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
1123
|
+
continue;
|
1124
|
+
}
|
1125
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1126
|
+
break;
|
974
1127
|
}
|
1128
|
+
reader.skipType(tag & 7);
|
975
1129
|
}
|
976
1130
|
return message;
|
977
1131
|
},
|
@@ -1010,6 +1164,7 @@ function createBaseParticipantPermission(): ParticipantPermission {
|
|
1010
1164
|
canPublishSources: [],
|
1011
1165
|
hidden: false,
|
1012
1166
|
recorder: false,
|
1167
|
+
canUpdateMetadata: false,
|
1013
1168
|
};
|
1014
1169
|
}
|
1015
1170
|
|
@@ -1035,45 +1190,82 @@ export const ParticipantPermission = {
|
|
1035
1190
|
if (message.recorder === true) {
|
1036
1191
|
writer.uint32(64).bool(message.recorder);
|
1037
1192
|
}
|
1193
|
+
if (message.canUpdateMetadata === true) {
|
1194
|
+
writer.uint32(80).bool(message.canUpdateMetadata);
|
1195
|
+
}
|
1038
1196
|
return writer;
|
1039
1197
|
},
|
1040
1198
|
|
1041
1199
|
decode(input: _m0.Reader | Uint8Array, length?: number): ParticipantPermission {
|
1042
|
-
const reader = input instanceof _m0.Reader ? input :
|
1200
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1043
1201
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1044
1202
|
const message = createBaseParticipantPermission();
|
1045
1203
|
while (reader.pos < end) {
|
1046
1204
|
const tag = reader.uint32();
|
1047
1205
|
switch (tag >>> 3) {
|
1048
1206
|
case 1:
|
1207
|
+
if (tag != 8) {
|
1208
|
+
break;
|
1209
|
+
}
|
1210
|
+
|
1049
1211
|
message.canSubscribe = reader.bool();
|
1050
|
-
|
1212
|
+
continue;
|
1051
1213
|
case 2:
|
1214
|
+
if (tag != 16) {
|
1215
|
+
break;
|
1216
|
+
}
|
1217
|
+
|
1052
1218
|
message.canPublish = reader.bool();
|
1053
|
-
|
1219
|
+
continue;
|
1054
1220
|
case 3:
|
1221
|
+
if (tag != 24) {
|
1222
|
+
break;
|
1223
|
+
}
|
1224
|
+
|
1055
1225
|
message.canPublishData = reader.bool();
|
1056
|
-
|
1226
|
+
continue;
|
1057
1227
|
case 9:
|
1058
|
-
if (
|
1228
|
+
if (tag == 72) {
|
1229
|
+
message.canPublishSources.push(reader.int32() as any);
|
1230
|
+
continue;
|
1231
|
+
}
|
1232
|
+
|
1233
|
+
if (tag == 74) {
|
1059
1234
|
const end2 = reader.uint32() + reader.pos;
|
1060
1235
|
while (reader.pos < end2) {
|
1061
1236
|
message.canPublishSources.push(reader.int32() as any);
|
1062
1237
|
}
|
1063
|
-
|
1064
|
-
|
1238
|
+
|
1239
|
+
continue;
|
1065
1240
|
}
|
1241
|
+
|
1066
1242
|
break;
|
1067
1243
|
case 7:
|
1244
|
+
if (tag != 56) {
|
1245
|
+
break;
|
1246
|
+
}
|
1247
|
+
|
1068
1248
|
message.hidden = reader.bool();
|
1069
|
-
|
1249
|
+
continue;
|
1070
1250
|
case 8:
|
1251
|
+
if (tag != 64) {
|
1252
|
+
break;
|
1253
|
+
}
|
1254
|
+
|
1071
1255
|
message.recorder = reader.bool();
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1256
|
+
continue;
|
1257
|
+
case 10:
|
1258
|
+
if (tag != 80) {
|
1259
|
+
break;
|
1260
|
+
}
|
1261
|
+
|
1262
|
+
message.canUpdateMetadata = reader.bool();
|
1263
|
+
continue;
|
1264
|
+
}
|
1265
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1266
|
+
break;
|
1076
1267
|
}
|
1268
|
+
reader.skipType(tag & 7);
|
1077
1269
|
}
|
1078
1270
|
return message;
|
1079
1271
|
},
|
@@ -1088,6 +1280,7 @@ export const ParticipantPermission = {
|
|
1088
1280
|
: [],
|
1089
1281
|
hidden: isSet(object.hidden) ? Boolean(object.hidden) : false,
|
1090
1282
|
recorder: isSet(object.recorder) ? Boolean(object.recorder) : false,
|
1283
|
+
canUpdateMetadata: isSet(object.canUpdateMetadata) ? Boolean(object.canUpdateMetadata) : false,
|
1091
1284
|
};
|
1092
1285
|
},
|
1093
1286
|
|
@@ -1103,6 +1296,7 @@ export const ParticipantPermission = {
|
|
1103
1296
|
}
|
1104
1297
|
message.hidden !== undefined && (obj.hidden = message.hidden);
|
1105
1298
|
message.recorder !== undefined && (obj.recorder = message.recorder);
|
1299
|
+
message.canUpdateMetadata !== undefined && (obj.canUpdateMetadata = message.canUpdateMetadata);
|
1106
1300
|
return obj;
|
1107
1301
|
},
|
1108
1302
|
|
@@ -1118,6 +1312,7 @@ export const ParticipantPermission = {
|
|
1118
1312
|
message.canPublishSources = object.canPublishSources?.map((e) => e) || [];
|
1119
1313
|
message.hidden = object.hidden ?? false;
|
1120
1314
|
message.recorder = object.recorder ?? false;
|
1315
|
+
message.canUpdateMetadata = object.canUpdateMetadata ?? false;
|
1121
1316
|
return message;
|
1122
1317
|
},
|
1123
1318
|
};
|
@@ -1177,49 +1372,94 @@ export const ParticipantInfo = {
|
|
1177
1372
|
},
|
1178
1373
|
|
1179
1374
|
decode(input: _m0.Reader | Uint8Array, length?: number): ParticipantInfo {
|
1180
|
-
const reader = input instanceof _m0.Reader ? input :
|
1375
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1181
1376
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1182
1377
|
const message = createBaseParticipantInfo();
|
1183
1378
|
while (reader.pos < end) {
|
1184
1379
|
const tag = reader.uint32();
|
1185
1380
|
switch (tag >>> 3) {
|
1186
1381
|
case 1:
|
1382
|
+
if (tag != 10) {
|
1383
|
+
break;
|
1384
|
+
}
|
1385
|
+
|
1187
1386
|
message.sid = reader.string();
|
1188
|
-
|
1387
|
+
continue;
|
1189
1388
|
case 2:
|
1389
|
+
if (tag != 18) {
|
1390
|
+
break;
|
1391
|
+
}
|
1392
|
+
|
1190
1393
|
message.identity = reader.string();
|
1191
|
-
|
1394
|
+
continue;
|
1192
1395
|
case 3:
|
1396
|
+
if (tag != 24) {
|
1397
|
+
break;
|
1398
|
+
}
|
1399
|
+
|
1193
1400
|
message.state = reader.int32() as any;
|
1194
|
-
|
1401
|
+
continue;
|
1195
1402
|
case 4:
|
1403
|
+
if (tag != 34) {
|
1404
|
+
break;
|
1405
|
+
}
|
1406
|
+
|
1196
1407
|
message.tracks.push(TrackInfo.decode(reader, reader.uint32()));
|
1197
|
-
|
1408
|
+
continue;
|
1198
1409
|
case 5:
|
1410
|
+
if (tag != 42) {
|
1411
|
+
break;
|
1412
|
+
}
|
1413
|
+
|
1199
1414
|
message.metadata = reader.string();
|
1200
|
-
|
1415
|
+
continue;
|
1201
1416
|
case 6:
|
1417
|
+
if (tag != 48) {
|
1418
|
+
break;
|
1419
|
+
}
|
1420
|
+
|
1202
1421
|
message.joinedAt = longToNumber(reader.int64() as Long);
|
1203
|
-
|
1422
|
+
continue;
|
1204
1423
|
case 9:
|
1424
|
+
if (tag != 74) {
|
1425
|
+
break;
|
1426
|
+
}
|
1427
|
+
|
1205
1428
|
message.name = reader.string();
|
1206
|
-
|
1429
|
+
continue;
|
1207
1430
|
case 10:
|
1431
|
+
if (tag != 80) {
|
1432
|
+
break;
|
1433
|
+
}
|
1434
|
+
|
1208
1435
|
message.version = reader.uint32();
|
1209
|
-
|
1436
|
+
continue;
|
1210
1437
|
case 11:
|
1438
|
+
if (tag != 90) {
|
1439
|
+
break;
|
1440
|
+
}
|
1441
|
+
|
1211
1442
|
message.permission = ParticipantPermission.decode(reader, reader.uint32());
|
1212
|
-
|
1443
|
+
continue;
|
1213
1444
|
case 12:
|
1445
|
+
if (tag != 98) {
|
1446
|
+
break;
|
1447
|
+
}
|
1448
|
+
|
1214
1449
|
message.region = reader.string();
|
1215
|
-
|
1450
|
+
continue;
|
1216
1451
|
case 13:
|
1452
|
+
if (tag != 104) {
|
1453
|
+
break;
|
1454
|
+
}
|
1455
|
+
|
1217
1456
|
message.isPublisher = reader.bool();
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1457
|
+
continue;
|
1458
|
+
}
|
1459
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1460
|
+
break;
|
1222
1461
|
}
|
1462
|
+
reader.skipType(tag & 7);
|
1223
1463
|
}
|
1224
1464
|
return message;
|
1225
1465
|
},
|
@@ -1294,16 +1534,17 @@ export const Encryption = {
|
|
1294
1534
|
},
|
1295
1535
|
|
1296
1536
|
decode(input: _m0.Reader | Uint8Array, length?: number): Encryption {
|
1297
|
-
const reader = input instanceof _m0.Reader ? input :
|
1537
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1298
1538
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1299
1539
|
const message = createBaseEncryption();
|
1300
1540
|
while (reader.pos < end) {
|
1301
1541
|
const tag = reader.uint32();
|
1302
1542
|
switch (tag >>> 3) {
|
1303
|
-
default:
|
1304
|
-
reader.skipType(tag & 7);
|
1305
|
-
break;
|
1306
1543
|
}
|
1544
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1545
|
+
break;
|
1546
|
+
}
|
1547
|
+
reader.skipType(tag & 7);
|
1307
1548
|
}
|
1308
1549
|
return message;
|
1309
1550
|
},
|
@@ -1349,28 +1590,45 @@ export const SimulcastCodecInfo = {
|
|
1349
1590
|
},
|
1350
1591
|
|
1351
1592
|
decode(input: _m0.Reader | Uint8Array, length?: number): SimulcastCodecInfo {
|
1352
|
-
const reader = input instanceof _m0.Reader ? input :
|
1593
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1353
1594
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1354
1595
|
const message = createBaseSimulcastCodecInfo();
|
1355
1596
|
while (reader.pos < end) {
|
1356
1597
|
const tag = reader.uint32();
|
1357
1598
|
switch (tag >>> 3) {
|
1358
1599
|
case 1:
|
1600
|
+
if (tag != 10) {
|
1601
|
+
break;
|
1602
|
+
}
|
1603
|
+
|
1359
1604
|
message.mimeType = reader.string();
|
1360
|
-
|
1605
|
+
continue;
|
1361
1606
|
case 2:
|
1607
|
+
if (tag != 18) {
|
1608
|
+
break;
|
1609
|
+
}
|
1610
|
+
|
1362
1611
|
message.mid = reader.string();
|
1363
|
-
|
1612
|
+
continue;
|
1364
1613
|
case 3:
|
1614
|
+
if (tag != 26) {
|
1615
|
+
break;
|
1616
|
+
}
|
1617
|
+
|
1365
1618
|
message.cid = reader.string();
|
1366
|
-
|
1619
|
+
continue;
|
1367
1620
|
case 4:
|
1621
|
+
if (tag != 34) {
|
1622
|
+
break;
|
1623
|
+
}
|
1624
|
+
|
1368
1625
|
message.layers.push(VideoLayer.decode(reader, reader.uint32()));
|
1369
|
-
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1626
|
+
continue;
|
1627
|
+
}
|
1628
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1629
|
+
break;
|
1373
1630
|
}
|
1631
|
+
reader.skipType(tag & 7);
|
1374
1632
|
}
|
1375
1633
|
return message;
|
1376
1634
|
},
|
@@ -1486,64 +1744,129 @@ export const TrackInfo = {
|
|
1486
1744
|
},
|
1487
1745
|
|
1488
1746
|
decode(input: _m0.Reader | Uint8Array, length?: number): TrackInfo {
|
1489
|
-
const reader = input instanceof _m0.Reader ? input :
|
1747
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1490
1748
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1491
1749
|
const message = createBaseTrackInfo();
|
1492
1750
|
while (reader.pos < end) {
|
1493
1751
|
const tag = reader.uint32();
|
1494
1752
|
switch (tag >>> 3) {
|
1495
1753
|
case 1:
|
1754
|
+
if (tag != 10) {
|
1755
|
+
break;
|
1756
|
+
}
|
1757
|
+
|
1496
1758
|
message.sid = reader.string();
|
1497
|
-
|
1759
|
+
continue;
|
1498
1760
|
case 2:
|
1761
|
+
if (tag != 16) {
|
1762
|
+
break;
|
1763
|
+
}
|
1764
|
+
|
1499
1765
|
message.type = reader.int32() as any;
|
1500
|
-
|
1766
|
+
continue;
|
1501
1767
|
case 3:
|
1768
|
+
if (tag != 26) {
|
1769
|
+
break;
|
1770
|
+
}
|
1771
|
+
|
1502
1772
|
message.name = reader.string();
|
1503
|
-
|
1773
|
+
continue;
|
1504
1774
|
case 4:
|
1775
|
+
if (tag != 32) {
|
1776
|
+
break;
|
1777
|
+
}
|
1778
|
+
|
1505
1779
|
message.muted = reader.bool();
|
1506
|
-
|
1780
|
+
continue;
|
1507
1781
|
case 5:
|
1782
|
+
if (tag != 40) {
|
1783
|
+
break;
|
1784
|
+
}
|
1785
|
+
|
1508
1786
|
message.width = reader.uint32();
|
1509
|
-
|
1787
|
+
continue;
|
1510
1788
|
case 6:
|
1789
|
+
if (tag != 48) {
|
1790
|
+
break;
|
1791
|
+
}
|
1792
|
+
|
1511
1793
|
message.height = reader.uint32();
|
1512
|
-
|
1794
|
+
continue;
|
1513
1795
|
case 7:
|
1796
|
+
if (tag != 56) {
|
1797
|
+
break;
|
1798
|
+
}
|
1799
|
+
|
1514
1800
|
message.simulcast = reader.bool();
|
1515
|
-
|
1801
|
+
continue;
|
1516
1802
|
case 8:
|
1803
|
+
if (tag != 64) {
|
1804
|
+
break;
|
1805
|
+
}
|
1806
|
+
|
1517
1807
|
message.disableDtx = reader.bool();
|
1518
|
-
|
1808
|
+
continue;
|
1519
1809
|
case 9:
|
1810
|
+
if (tag != 72) {
|
1811
|
+
break;
|
1812
|
+
}
|
1813
|
+
|
1520
1814
|
message.source = reader.int32() as any;
|
1521
|
-
|
1815
|
+
continue;
|
1522
1816
|
case 10:
|
1817
|
+
if (tag != 82) {
|
1818
|
+
break;
|
1819
|
+
}
|
1820
|
+
|
1523
1821
|
message.layers.push(VideoLayer.decode(reader, reader.uint32()));
|
1524
|
-
|
1822
|
+
continue;
|
1525
1823
|
case 11:
|
1824
|
+
if (tag != 90) {
|
1825
|
+
break;
|
1826
|
+
}
|
1827
|
+
|
1526
1828
|
message.mimeType = reader.string();
|
1527
|
-
|
1829
|
+
continue;
|
1528
1830
|
case 12:
|
1831
|
+
if (tag != 98) {
|
1832
|
+
break;
|
1833
|
+
}
|
1834
|
+
|
1529
1835
|
message.mid = reader.string();
|
1530
|
-
|
1836
|
+
continue;
|
1531
1837
|
case 13:
|
1838
|
+
if (tag != 106) {
|
1839
|
+
break;
|
1840
|
+
}
|
1841
|
+
|
1532
1842
|
message.codecs.push(SimulcastCodecInfo.decode(reader, reader.uint32()));
|
1533
|
-
|
1843
|
+
continue;
|
1534
1844
|
case 14:
|
1845
|
+
if (tag != 112) {
|
1846
|
+
break;
|
1847
|
+
}
|
1848
|
+
|
1535
1849
|
message.stereo = reader.bool();
|
1536
|
-
|
1850
|
+
continue;
|
1537
1851
|
case 15:
|
1852
|
+
if (tag != 120) {
|
1853
|
+
break;
|
1854
|
+
}
|
1855
|
+
|
1538
1856
|
message.disableRed = reader.bool();
|
1539
|
-
|
1857
|
+
continue;
|
1540
1858
|
case 16:
|
1859
|
+
if (tag != 128) {
|
1860
|
+
break;
|
1861
|
+
}
|
1862
|
+
|
1541
1863
|
message.encryption = reader.int32() as any;
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1545
|
-
|
1864
|
+
continue;
|
1865
|
+
}
|
1866
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1867
|
+
break;
|
1546
1868
|
}
|
1869
|
+
reader.skipType(tag & 7);
|
1547
1870
|
}
|
1548
1871
|
return message;
|
1549
1872
|
},
|
@@ -1649,31 +1972,52 @@ export const VideoLayer = {
|
|
1649
1972
|
},
|
1650
1973
|
|
1651
1974
|
decode(input: _m0.Reader | Uint8Array, length?: number): VideoLayer {
|
1652
|
-
const reader = input instanceof _m0.Reader ? input :
|
1975
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1653
1976
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1654
1977
|
const message = createBaseVideoLayer();
|
1655
1978
|
while (reader.pos < end) {
|
1656
1979
|
const tag = reader.uint32();
|
1657
1980
|
switch (tag >>> 3) {
|
1658
1981
|
case 1:
|
1982
|
+
if (tag != 8) {
|
1983
|
+
break;
|
1984
|
+
}
|
1985
|
+
|
1659
1986
|
message.quality = reader.int32() as any;
|
1660
|
-
|
1987
|
+
continue;
|
1661
1988
|
case 2:
|
1989
|
+
if (tag != 16) {
|
1990
|
+
break;
|
1991
|
+
}
|
1992
|
+
|
1662
1993
|
message.width = reader.uint32();
|
1663
|
-
|
1994
|
+
continue;
|
1664
1995
|
case 3:
|
1996
|
+
if (tag != 24) {
|
1997
|
+
break;
|
1998
|
+
}
|
1999
|
+
|
1665
2000
|
message.height = reader.uint32();
|
1666
|
-
|
2001
|
+
continue;
|
1667
2002
|
case 4:
|
2003
|
+
if (tag != 32) {
|
2004
|
+
break;
|
2005
|
+
}
|
2006
|
+
|
1668
2007
|
message.bitrate = reader.uint32();
|
1669
|
-
|
2008
|
+
continue;
|
1670
2009
|
case 5:
|
2010
|
+
if (tag != 40) {
|
2011
|
+
break;
|
2012
|
+
}
|
2013
|
+
|
1671
2014
|
message.ssrc = reader.uint32();
|
1672
|
-
|
1673
|
-
default:
|
1674
|
-
reader.skipType(tag & 7);
|
1675
|
-
break;
|
2015
|
+
continue;
|
1676
2016
|
}
|
2017
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2018
|
+
break;
|
2019
|
+
}
|
2020
|
+
reader.skipType(tag & 7);
|
1677
2021
|
}
|
1678
2022
|
return message;
|
1679
2023
|
},
|
@@ -1734,25 +2078,38 @@ export const DataPacket = {
|
|
1734
2078
|
},
|
1735
2079
|
|
1736
2080
|
decode(input: _m0.Reader | Uint8Array, length?: number): DataPacket {
|
1737
|
-
const reader = input instanceof _m0.Reader ? input :
|
2081
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1738
2082
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1739
2083
|
const message = createBaseDataPacket();
|
1740
2084
|
while (reader.pos < end) {
|
1741
2085
|
const tag = reader.uint32();
|
1742
2086
|
switch (tag >>> 3) {
|
1743
2087
|
case 1:
|
2088
|
+
if (tag != 8) {
|
2089
|
+
break;
|
2090
|
+
}
|
2091
|
+
|
1744
2092
|
message.kind = reader.int32() as any;
|
1745
|
-
|
2093
|
+
continue;
|
1746
2094
|
case 2:
|
2095
|
+
if (tag != 18) {
|
2096
|
+
break;
|
2097
|
+
}
|
2098
|
+
|
1747
2099
|
message.value = { $case: "user", user: UserPacket.decode(reader, reader.uint32()) };
|
1748
|
-
|
2100
|
+
continue;
|
1749
2101
|
case 3:
|
2102
|
+
if (tag != 26) {
|
2103
|
+
break;
|
2104
|
+
}
|
2105
|
+
|
1750
2106
|
message.value = { $case: "speaker", speaker: ActiveSpeakerUpdate.decode(reader, reader.uint32()) };
|
1751
|
-
|
1752
|
-
default:
|
1753
|
-
reader.skipType(tag & 7);
|
1754
|
-
break;
|
2107
|
+
continue;
|
1755
2108
|
}
|
2109
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2110
|
+
break;
|
2111
|
+
}
|
2112
|
+
reader.skipType(tag & 7);
|
1756
2113
|
}
|
1757
2114
|
return message;
|
1758
2115
|
},
|
@@ -1808,19 +2165,24 @@ export const ActiveSpeakerUpdate = {
|
|
1808
2165
|
},
|
1809
2166
|
|
1810
2167
|
decode(input: _m0.Reader | Uint8Array, length?: number): ActiveSpeakerUpdate {
|
1811
|
-
const reader = input instanceof _m0.Reader ? input :
|
2168
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1812
2169
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1813
2170
|
const message = createBaseActiveSpeakerUpdate();
|
1814
2171
|
while (reader.pos < end) {
|
1815
2172
|
const tag = reader.uint32();
|
1816
2173
|
switch (tag >>> 3) {
|
1817
2174
|
case 1:
|
2175
|
+
if (tag != 10) {
|
2176
|
+
break;
|
2177
|
+
}
|
2178
|
+
|
1818
2179
|
message.speakers.push(SpeakerInfo.decode(reader, reader.uint32()));
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1822
|
-
|
2180
|
+
continue;
|
2181
|
+
}
|
2182
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2183
|
+
break;
|
1823
2184
|
}
|
2185
|
+
reader.skipType(tag & 7);
|
1824
2186
|
}
|
1825
2187
|
return message;
|
1826
2188
|
},
|
@@ -1871,25 +2233,38 @@ export const SpeakerInfo = {
|
|
1871
2233
|
},
|
1872
2234
|
|
1873
2235
|
decode(input: _m0.Reader | Uint8Array, length?: number): SpeakerInfo {
|
1874
|
-
const reader = input instanceof _m0.Reader ? input :
|
2236
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1875
2237
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1876
2238
|
const message = createBaseSpeakerInfo();
|
1877
2239
|
while (reader.pos < end) {
|
1878
2240
|
const tag = reader.uint32();
|
1879
2241
|
switch (tag >>> 3) {
|
1880
2242
|
case 1:
|
2243
|
+
if (tag != 10) {
|
2244
|
+
break;
|
2245
|
+
}
|
2246
|
+
|
1881
2247
|
message.sid = reader.string();
|
1882
|
-
|
2248
|
+
continue;
|
1883
2249
|
case 2:
|
1884
|
-
|
1885
|
-
|
2250
|
+
if (tag != 21) {
|
2251
|
+
break;
|
2252
|
+
}
|
2253
|
+
|
2254
|
+
message.level = reader.float();
|
2255
|
+
continue;
|
1886
2256
|
case 3:
|
2257
|
+
if (tag != 24) {
|
2258
|
+
break;
|
2259
|
+
}
|
2260
|
+
|
1887
2261
|
message.active = reader.bool();
|
1888
|
-
|
1889
|
-
default:
|
1890
|
-
reader.skipType(tag & 7);
|
1891
|
-
break;
|
2262
|
+
continue;
|
1892
2263
|
}
|
2264
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2265
|
+
break;
|
2266
|
+
}
|
2267
|
+
reader.skipType(tag & 7);
|
1893
2268
|
}
|
1894
2269
|
return message;
|
1895
2270
|
},
|
@@ -1945,28 +2320,45 @@ export const UserPacket = {
|
|
1945
2320
|
},
|
1946
2321
|
|
1947
2322
|
decode(input: _m0.Reader | Uint8Array, length?: number): UserPacket {
|
1948
|
-
const reader = input instanceof _m0.Reader ? input :
|
2323
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1949
2324
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1950
2325
|
const message = createBaseUserPacket();
|
1951
2326
|
while (reader.pos < end) {
|
1952
2327
|
const tag = reader.uint32();
|
1953
2328
|
switch (tag >>> 3) {
|
1954
2329
|
case 1:
|
2330
|
+
if (tag != 10) {
|
2331
|
+
break;
|
2332
|
+
}
|
2333
|
+
|
1955
2334
|
message.participantSid = reader.string();
|
1956
|
-
|
2335
|
+
continue;
|
1957
2336
|
case 2:
|
2337
|
+
if (tag != 18) {
|
2338
|
+
break;
|
2339
|
+
}
|
2340
|
+
|
1958
2341
|
message.payload = reader.bytes();
|
1959
|
-
|
2342
|
+
continue;
|
1960
2343
|
case 3:
|
2344
|
+
if (tag != 26) {
|
2345
|
+
break;
|
2346
|
+
}
|
2347
|
+
|
1961
2348
|
message.destinationSids.push(reader.string());
|
1962
|
-
|
2349
|
+
continue;
|
1963
2350
|
case 4:
|
2351
|
+
if (tag != 34) {
|
2352
|
+
break;
|
2353
|
+
}
|
2354
|
+
|
1964
2355
|
message.topic = reader.string();
|
1965
|
-
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
2356
|
+
continue;
|
2357
|
+
}
|
2358
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2359
|
+
break;
|
1969
2360
|
}
|
2361
|
+
reader.skipType(tag & 7);
|
1970
2362
|
}
|
1971
2363
|
return message;
|
1972
2364
|
},
|
@@ -2024,22 +2416,31 @@ export const ParticipantTracks = {
|
|
2024
2416
|
},
|
2025
2417
|
|
2026
2418
|
decode(input: _m0.Reader | Uint8Array, length?: number): ParticipantTracks {
|
2027
|
-
const reader = input instanceof _m0.Reader ? input :
|
2419
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2028
2420
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2029
2421
|
const message = createBaseParticipantTracks();
|
2030
2422
|
while (reader.pos < end) {
|
2031
2423
|
const tag = reader.uint32();
|
2032
2424
|
switch (tag >>> 3) {
|
2033
2425
|
case 1:
|
2426
|
+
if (tag != 10) {
|
2427
|
+
break;
|
2428
|
+
}
|
2429
|
+
|
2034
2430
|
message.participantSid = reader.string();
|
2035
|
-
|
2431
|
+
continue;
|
2036
2432
|
case 2:
|
2433
|
+
if (tag != 18) {
|
2434
|
+
break;
|
2435
|
+
}
|
2436
|
+
|
2037
2437
|
message.trackSids.push(reader.string());
|
2038
|
-
|
2039
|
-
|
2040
|
-
|
2041
|
-
|
2438
|
+
continue;
|
2439
|
+
}
|
2440
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2441
|
+
break;
|
2042
2442
|
}
|
2443
|
+
reader.skipType(tag & 7);
|
2043
2444
|
}
|
2044
2445
|
return message;
|
2045
2446
|
},
|
@@ -2102,34 +2503,59 @@ export const ServerInfo = {
|
|
2102
2503
|
},
|
2103
2504
|
|
2104
2505
|
decode(input: _m0.Reader | Uint8Array, length?: number): ServerInfo {
|
2105
|
-
const reader = input instanceof _m0.Reader ? input :
|
2506
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2106
2507
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2107
2508
|
const message = createBaseServerInfo();
|
2108
2509
|
while (reader.pos < end) {
|
2109
2510
|
const tag = reader.uint32();
|
2110
2511
|
switch (tag >>> 3) {
|
2111
2512
|
case 1:
|
2513
|
+
if (tag != 8) {
|
2514
|
+
break;
|
2515
|
+
}
|
2516
|
+
|
2112
2517
|
message.edition = reader.int32() as any;
|
2113
|
-
|
2518
|
+
continue;
|
2114
2519
|
case 2:
|
2520
|
+
if (tag != 18) {
|
2521
|
+
break;
|
2522
|
+
}
|
2523
|
+
|
2115
2524
|
message.version = reader.string();
|
2116
|
-
|
2525
|
+
continue;
|
2117
2526
|
case 3:
|
2527
|
+
if (tag != 24) {
|
2528
|
+
break;
|
2529
|
+
}
|
2530
|
+
|
2118
2531
|
message.protocol = reader.int32();
|
2119
|
-
|
2532
|
+
continue;
|
2120
2533
|
case 4:
|
2534
|
+
if (tag != 34) {
|
2535
|
+
break;
|
2536
|
+
}
|
2537
|
+
|
2121
2538
|
message.region = reader.string();
|
2122
|
-
|
2539
|
+
continue;
|
2123
2540
|
case 5:
|
2541
|
+
if (tag != 42) {
|
2542
|
+
break;
|
2543
|
+
}
|
2544
|
+
|
2124
2545
|
message.nodeId = reader.string();
|
2125
|
-
|
2546
|
+
continue;
|
2126
2547
|
case 6:
|
2548
|
+
if (tag != 50) {
|
2549
|
+
break;
|
2550
|
+
}
|
2551
|
+
|
2127
2552
|
message.debugInfo = reader.string();
|
2128
|
-
|
2129
|
-
|
2130
|
-
|
2131
|
-
|
2553
|
+
continue;
|
2554
|
+
}
|
2555
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2556
|
+
break;
|
2132
2557
|
}
|
2558
|
+
reader.skipType(tag & 7);
|
2133
2559
|
}
|
2134
2560
|
return message;
|
2135
2561
|
},
|
@@ -2223,46 +2649,87 @@ export const ClientInfo = {
|
|
2223
2649
|
},
|
2224
2650
|
|
2225
2651
|
decode(input: _m0.Reader | Uint8Array, length?: number): ClientInfo {
|
2226
|
-
const reader = input instanceof _m0.Reader ? input :
|
2652
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2227
2653
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2228
2654
|
const message = createBaseClientInfo();
|
2229
2655
|
while (reader.pos < end) {
|
2230
2656
|
const tag = reader.uint32();
|
2231
2657
|
switch (tag >>> 3) {
|
2232
2658
|
case 1:
|
2659
|
+
if (tag != 8) {
|
2660
|
+
break;
|
2661
|
+
}
|
2662
|
+
|
2233
2663
|
message.sdk = reader.int32() as any;
|
2234
|
-
|
2664
|
+
continue;
|
2235
2665
|
case 2:
|
2666
|
+
if (tag != 18) {
|
2667
|
+
break;
|
2668
|
+
}
|
2669
|
+
|
2236
2670
|
message.version = reader.string();
|
2237
|
-
|
2671
|
+
continue;
|
2238
2672
|
case 3:
|
2673
|
+
if (tag != 24) {
|
2674
|
+
break;
|
2675
|
+
}
|
2676
|
+
|
2239
2677
|
message.protocol = reader.int32();
|
2240
|
-
|
2678
|
+
continue;
|
2241
2679
|
case 4:
|
2680
|
+
if (tag != 34) {
|
2681
|
+
break;
|
2682
|
+
}
|
2683
|
+
|
2242
2684
|
message.os = reader.string();
|
2243
|
-
|
2685
|
+
continue;
|
2244
2686
|
case 5:
|
2687
|
+
if (tag != 42) {
|
2688
|
+
break;
|
2689
|
+
}
|
2690
|
+
|
2245
2691
|
message.osVersion = reader.string();
|
2246
|
-
|
2692
|
+
continue;
|
2247
2693
|
case 6:
|
2694
|
+
if (tag != 50) {
|
2695
|
+
break;
|
2696
|
+
}
|
2697
|
+
|
2248
2698
|
message.deviceModel = reader.string();
|
2249
|
-
|
2699
|
+
continue;
|
2250
2700
|
case 7:
|
2701
|
+
if (tag != 58) {
|
2702
|
+
break;
|
2703
|
+
}
|
2704
|
+
|
2251
2705
|
message.browser = reader.string();
|
2252
|
-
|
2706
|
+
continue;
|
2253
2707
|
case 8:
|
2708
|
+
if (tag != 66) {
|
2709
|
+
break;
|
2710
|
+
}
|
2711
|
+
|
2254
2712
|
message.browserVersion = reader.string();
|
2255
|
-
|
2713
|
+
continue;
|
2256
2714
|
case 9:
|
2715
|
+
if (tag != 74) {
|
2716
|
+
break;
|
2717
|
+
}
|
2718
|
+
|
2257
2719
|
message.address = reader.string();
|
2258
|
-
|
2720
|
+
continue;
|
2259
2721
|
case 10:
|
2722
|
+
if (tag != 82) {
|
2723
|
+
break;
|
2724
|
+
}
|
2725
|
+
|
2260
2726
|
message.network = reader.string();
|
2261
|
-
|
2262
|
-
|
2263
|
-
|
2264
|
-
|
2727
|
+
continue;
|
2728
|
+
}
|
2729
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2730
|
+
break;
|
2265
2731
|
}
|
2732
|
+
reader.skipType(tag & 7);
|
2266
2733
|
}
|
2267
2734
|
return message;
|
2268
2735
|
},
|
@@ -2342,31 +2809,52 @@ export const ClientConfiguration = {
|
|
2342
2809
|
},
|
2343
2810
|
|
2344
2811
|
decode(input: _m0.Reader | Uint8Array, length?: number): ClientConfiguration {
|
2345
|
-
const reader = input instanceof _m0.Reader ? input :
|
2812
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2346
2813
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2347
2814
|
const message = createBaseClientConfiguration();
|
2348
2815
|
while (reader.pos < end) {
|
2349
2816
|
const tag = reader.uint32();
|
2350
2817
|
switch (tag >>> 3) {
|
2351
2818
|
case 1:
|
2819
|
+
if (tag != 10) {
|
2820
|
+
break;
|
2821
|
+
}
|
2822
|
+
|
2352
2823
|
message.video = VideoConfiguration.decode(reader, reader.uint32());
|
2353
|
-
|
2824
|
+
continue;
|
2354
2825
|
case 2:
|
2826
|
+
if (tag != 18) {
|
2827
|
+
break;
|
2828
|
+
}
|
2829
|
+
|
2355
2830
|
message.screen = VideoConfiguration.decode(reader, reader.uint32());
|
2356
|
-
|
2831
|
+
continue;
|
2357
2832
|
case 3:
|
2833
|
+
if (tag != 24) {
|
2834
|
+
break;
|
2835
|
+
}
|
2836
|
+
|
2358
2837
|
message.resumeConnection = reader.int32() as any;
|
2359
|
-
|
2838
|
+
continue;
|
2360
2839
|
case 4:
|
2840
|
+
if (tag != 34) {
|
2841
|
+
break;
|
2842
|
+
}
|
2843
|
+
|
2361
2844
|
message.disabledCodecs = DisabledCodecs.decode(reader, reader.uint32());
|
2362
|
-
|
2845
|
+
continue;
|
2363
2846
|
case 5:
|
2847
|
+
if (tag != 40) {
|
2848
|
+
break;
|
2849
|
+
}
|
2850
|
+
|
2364
2851
|
message.forceRelay = reader.int32() as any;
|
2365
|
-
|
2366
|
-
|
2367
|
-
|
2368
|
-
|
2852
|
+
continue;
|
2853
|
+
}
|
2854
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2855
|
+
break;
|
2369
2856
|
}
|
2857
|
+
reader.skipType(tag & 7);
|
2370
2858
|
}
|
2371
2859
|
return message;
|
2372
2860
|
},
|
@@ -2428,19 +2916,24 @@ export const VideoConfiguration = {
|
|
2428
2916
|
},
|
2429
2917
|
|
2430
2918
|
decode(input: _m0.Reader | Uint8Array, length?: number): VideoConfiguration {
|
2431
|
-
const reader = input instanceof _m0.Reader ? input :
|
2919
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2432
2920
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2433
2921
|
const message = createBaseVideoConfiguration();
|
2434
2922
|
while (reader.pos < end) {
|
2435
2923
|
const tag = reader.uint32();
|
2436
2924
|
switch (tag >>> 3) {
|
2437
2925
|
case 1:
|
2926
|
+
if (tag != 8) {
|
2927
|
+
break;
|
2928
|
+
}
|
2929
|
+
|
2438
2930
|
message.hardwareEncoder = reader.int32() as any;
|
2439
|
-
|
2440
|
-
|
2441
|
-
|
2442
|
-
|
2931
|
+
continue;
|
2932
|
+
}
|
2933
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2934
|
+
break;
|
2443
2935
|
}
|
2936
|
+
reader.skipType(tag & 7);
|
2444
2937
|
}
|
2445
2938
|
return message;
|
2446
2939
|
},
|
@@ -2479,19 +2972,24 @@ export const DisabledCodecs = {
|
|
2479
2972
|
},
|
2480
2973
|
|
2481
2974
|
decode(input: _m0.Reader | Uint8Array, length?: number): DisabledCodecs {
|
2482
|
-
const reader = input instanceof _m0.Reader ? input :
|
2975
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2483
2976
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2484
2977
|
const message = createBaseDisabledCodecs();
|
2485
2978
|
while (reader.pos < end) {
|
2486
2979
|
const tag = reader.uint32();
|
2487
2980
|
switch (tag >>> 3) {
|
2488
2981
|
case 1:
|
2982
|
+
if (tag != 10) {
|
2983
|
+
break;
|
2984
|
+
}
|
2985
|
+
|
2489
2986
|
message.codecs.push(Codec.decode(reader, reader.uint32()));
|
2490
|
-
|
2491
|
-
|
2492
|
-
|
2493
|
-
|
2987
|
+
continue;
|
2988
|
+
}
|
2989
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2990
|
+
break;
|
2494
2991
|
}
|
2992
|
+
reader.skipType(tag & 7);
|
2495
2993
|
}
|
2496
2994
|
return message;
|
2497
2995
|
},
|
@@ -2696,142 +3194,307 @@ export const RTPStats = {
|
|
2696
3194
|
},
|
2697
3195
|
|
2698
3196
|
decode(input: _m0.Reader | Uint8Array, length?: number): RTPStats {
|
2699
|
-
const reader = input instanceof _m0.Reader ? input :
|
3197
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2700
3198
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2701
3199
|
const message = createBaseRTPStats();
|
2702
3200
|
while (reader.pos < end) {
|
2703
3201
|
const tag = reader.uint32();
|
2704
3202
|
switch (tag >>> 3) {
|
2705
3203
|
case 1:
|
3204
|
+
if (tag != 10) {
|
3205
|
+
break;
|
3206
|
+
}
|
3207
|
+
|
2706
3208
|
message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
2707
|
-
|
3209
|
+
continue;
|
2708
3210
|
case 2:
|
3211
|
+
if (tag != 18) {
|
3212
|
+
break;
|
3213
|
+
}
|
3214
|
+
|
2709
3215
|
message.endTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
2710
|
-
|
3216
|
+
continue;
|
2711
3217
|
case 3:
|
3218
|
+
if (tag != 25) {
|
3219
|
+
break;
|
3220
|
+
}
|
3221
|
+
|
2712
3222
|
message.duration = reader.double();
|
2713
|
-
|
3223
|
+
continue;
|
2714
3224
|
case 4:
|
3225
|
+
if (tag != 32) {
|
3226
|
+
break;
|
3227
|
+
}
|
3228
|
+
|
2715
3229
|
message.packets = reader.uint32();
|
2716
|
-
|
3230
|
+
continue;
|
2717
3231
|
case 5:
|
3232
|
+
if (tag != 41) {
|
3233
|
+
break;
|
3234
|
+
}
|
3235
|
+
|
2718
3236
|
message.packetRate = reader.double();
|
2719
|
-
|
3237
|
+
continue;
|
2720
3238
|
case 6:
|
3239
|
+
if (tag != 48) {
|
3240
|
+
break;
|
3241
|
+
}
|
3242
|
+
|
2721
3243
|
message.bytes = longToNumber(reader.uint64() as Long);
|
2722
|
-
|
3244
|
+
continue;
|
2723
3245
|
case 39:
|
3246
|
+
if (tag != 312) {
|
3247
|
+
break;
|
3248
|
+
}
|
3249
|
+
|
2724
3250
|
message.headerBytes = longToNumber(reader.uint64() as Long);
|
2725
|
-
|
3251
|
+
continue;
|
2726
3252
|
case 7:
|
3253
|
+
if (tag != 57) {
|
3254
|
+
break;
|
3255
|
+
}
|
3256
|
+
|
2727
3257
|
message.bitrate = reader.double();
|
2728
|
-
|
3258
|
+
continue;
|
2729
3259
|
case 8:
|
3260
|
+
if (tag != 64) {
|
3261
|
+
break;
|
3262
|
+
}
|
3263
|
+
|
2730
3264
|
message.packetsLost = reader.uint32();
|
2731
|
-
|
3265
|
+
continue;
|
2732
3266
|
case 9:
|
3267
|
+
if (tag != 73) {
|
3268
|
+
break;
|
3269
|
+
}
|
3270
|
+
|
2733
3271
|
message.packetLossRate = reader.double();
|
2734
|
-
|
3272
|
+
continue;
|
2735
3273
|
case 10:
|
3274
|
+
if (tag != 85) {
|
3275
|
+
break;
|
3276
|
+
}
|
3277
|
+
|
2736
3278
|
message.packetLossPercentage = reader.float();
|
2737
|
-
|
3279
|
+
continue;
|
2738
3280
|
case 11:
|
3281
|
+
if (tag != 88) {
|
3282
|
+
break;
|
3283
|
+
}
|
3284
|
+
|
2739
3285
|
message.packetsDuplicate = reader.uint32();
|
2740
|
-
|
3286
|
+
continue;
|
2741
3287
|
case 12:
|
3288
|
+
if (tag != 97) {
|
3289
|
+
break;
|
3290
|
+
}
|
3291
|
+
|
2742
3292
|
message.packetDuplicateRate = reader.double();
|
2743
|
-
|
3293
|
+
continue;
|
2744
3294
|
case 13:
|
3295
|
+
if (tag != 104) {
|
3296
|
+
break;
|
3297
|
+
}
|
3298
|
+
|
2745
3299
|
message.bytesDuplicate = longToNumber(reader.uint64() as Long);
|
2746
|
-
|
3300
|
+
continue;
|
2747
3301
|
case 40:
|
3302
|
+
if (tag != 320) {
|
3303
|
+
break;
|
3304
|
+
}
|
3305
|
+
|
2748
3306
|
message.headerBytesDuplicate = longToNumber(reader.uint64() as Long);
|
2749
|
-
|
3307
|
+
continue;
|
2750
3308
|
case 14:
|
3309
|
+
if (tag != 113) {
|
3310
|
+
break;
|
3311
|
+
}
|
3312
|
+
|
2751
3313
|
message.bitrateDuplicate = reader.double();
|
2752
|
-
|
3314
|
+
continue;
|
2753
3315
|
case 15:
|
3316
|
+
if (tag != 120) {
|
3317
|
+
break;
|
3318
|
+
}
|
3319
|
+
|
2754
3320
|
message.packetsPadding = reader.uint32();
|
2755
|
-
|
3321
|
+
continue;
|
2756
3322
|
case 16:
|
3323
|
+
if (tag != 129) {
|
3324
|
+
break;
|
3325
|
+
}
|
3326
|
+
|
2757
3327
|
message.packetPaddingRate = reader.double();
|
2758
|
-
|
3328
|
+
continue;
|
2759
3329
|
case 17:
|
3330
|
+
if (tag != 136) {
|
3331
|
+
break;
|
3332
|
+
}
|
3333
|
+
|
2760
3334
|
message.bytesPadding = longToNumber(reader.uint64() as Long);
|
2761
|
-
|
3335
|
+
continue;
|
2762
3336
|
case 41:
|
3337
|
+
if (tag != 328) {
|
3338
|
+
break;
|
3339
|
+
}
|
3340
|
+
|
2763
3341
|
message.headerBytesPadding = longToNumber(reader.uint64() as Long);
|
2764
|
-
|
3342
|
+
continue;
|
2765
3343
|
case 18:
|
3344
|
+
if (tag != 145) {
|
3345
|
+
break;
|
3346
|
+
}
|
3347
|
+
|
2766
3348
|
message.bitratePadding = reader.double();
|
2767
|
-
|
3349
|
+
continue;
|
2768
3350
|
case 19:
|
3351
|
+
if (tag != 152) {
|
3352
|
+
break;
|
3353
|
+
}
|
3354
|
+
|
2769
3355
|
message.packetsOutOfOrder = reader.uint32();
|
2770
|
-
|
3356
|
+
continue;
|
2771
3357
|
case 20:
|
3358
|
+
if (tag != 160) {
|
3359
|
+
break;
|
3360
|
+
}
|
3361
|
+
|
2772
3362
|
message.frames = reader.uint32();
|
2773
|
-
|
3363
|
+
continue;
|
2774
3364
|
case 21:
|
3365
|
+
if (tag != 169) {
|
3366
|
+
break;
|
3367
|
+
}
|
3368
|
+
|
2775
3369
|
message.frameRate = reader.double();
|
2776
|
-
|
3370
|
+
continue;
|
2777
3371
|
case 22:
|
3372
|
+
if (tag != 177) {
|
3373
|
+
break;
|
3374
|
+
}
|
3375
|
+
|
2778
3376
|
message.jitterCurrent = reader.double();
|
2779
|
-
|
3377
|
+
continue;
|
2780
3378
|
case 23:
|
3379
|
+
if (tag != 185) {
|
3380
|
+
break;
|
3381
|
+
}
|
3382
|
+
|
2781
3383
|
message.jitterMax = reader.double();
|
2782
|
-
|
3384
|
+
continue;
|
2783
3385
|
case 24:
|
3386
|
+
if (tag != 194) {
|
3387
|
+
break;
|
3388
|
+
}
|
3389
|
+
|
2784
3390
|
const entry24 = RTPStats_GapHistogramEntry.decode(reader, reader.uint32());
|
2785
3391
|
if (entry24.value !== undefined) {
|
2786
3392
|
message.gapHistogram[entry24.key] = entry24.value;
|
2787
3393
|
}
|
2788
|
-
|
3394
|
+
continue;
|
2789
3395
|
case 25:
|
3396
|
+
if (tag != 200) {
|
3397
|
+
break;
|
3398
|
+
}
|
3399
|
+
|
2790
3400
|
message.nacks = reader.uint32();
|
2791
|
-
|
3401
|
+
continue;
|
2792
3402
|
case 37:
|
3403
|
+
if (tag != 296) {
|
3404
|
+
break;
|
3405
|
+
}
|
3406
|
+
|
2793
3407
|
message.nackAcks = reader.uint32();
|
2794
|
-
|
3408
|
+
continue;
|
2795
3409
|
case 26:
|
3410
|
+
if (tag != 208) {
|
3411
|
+
break;
|
3412
|
+
}
|
3413
|
+
|
2796
3414
|
message.nackMisses = reader.uint32();
|
2797
|
-
|
3415
|
+
continue;
|
2798
3416
|
case 38:
|
3417
|
+
if (tag != 304) {
|
3418
|
+
break;
|
3419
|
+
}
|
3420
|
+
|
2799
3421
|
message.nackRepeated = reader.uint32();
|
2800
|
-
|
3422
|
+
continue;
|
2801
3423
|
case 27:
|
3424
|
+
if (tag != 216) {
|
3425
|
+
break;
|
3426
|
+
}
|
3427
|
+
|
2802
3428
|
message.plis = reader.uint32();
|
2803
|
-
|
3429
|
+
continue;
|
2804
3430
|
case 28:
|
3431
|
+
if (tag != 226) {
|
3432
|
+
break;
|
3433
|
+
}
|
3434
|
+
|
2805
3435
|
message.lastPli = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
2806
|
-
|
3436
|
+
continue;
|
2807
3437
|
case 29:
|
3438
|
+
if (tag != 232) {
|
3439
|
+
break;
|
3440
|
+
}
|
3441
|
+
|
2808
3442
|
message.firs = reader.uint32();
|
2809
|
-
|
3443
|
+
continue;
|
2810
3444
|
case 30:
|
3445
|
+
if (tag != 242) {
|
3446
|
+
break;
|
3447
|
+
}
|
3448
|
+
|
2811
3449
|
message.lastFir = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
2812
|
-
|
3450
|
+
continue;
|
2813
3451
|
case 31:
|
3452
|
+
if (tag != 248) {
|
3453
|
+
break;
|
3454
|
+
}
|
3455
|
+
|
2814
3456
|
message.rttCurrent = reader.uint32();
|
2815
|
-
|
3457
|
+
continue;
|
2816
3458
|
case 32:
|
3459
|
+
if (tag != 256) {
|
3460
|
+
break;
|
3461
|
+
}
|
3462
|
+
|
2817
3463
|
message.rttMax = reader.uint32();
|
2818
|
-
|
3464
|
+
continue;
|
2819
3465
|
case 33:
|
3466
|
+
if (tag != 264) {
|
3467
|
+
break;
|
3468
|
+
}
|
3469
|
+
|
2820
3470
|
message.keyFrames = reader.uint32();
|
2821
|
-
|
3471
|
+
continue;
|
2822
3472
|
case 34:
|
3473
|
+
if (tag != 274) {
|
3474
|
+
break;
|
3475
|
+
}
|
3476
|
+
|
2823
3477
|
message.lastKeyFrame = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
2824
|
-
|
3478
|
+
continue;
|
2825
3479
|
case 35:
|
3480
|
+
if (tag != 280) {
|
3481
|
+
break;
|
3482
|
+
}
|
3483
|
+
|
2826
3484
|
message.layerLockPlis = reader.uint32();
|
2827
|
-
|
3485
|
+
continue;
|
2828
3486
|
case 36:
|
3487
|
+
if (tag != 290) {
|
3488
|
+
break;
|
3489
|
+
}
|
3490
|
+
|
2829
3491
|
message.lastLayerLockPli = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
2830
|
-
|
2831
|
-
default:
|
2832
|
-
reader.skipType(tag & 7);
|
2833
|
-
break;
|
3492
|
+
continue;
|
2834
3493
|
}
|
3494
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3495
|
+
break;
|
3496
|
+
}
|
3497
|
+
reader.skipType(tag & 7);
|
2835
3498
|
}
|
2836
3499
|
return message;
|
2837
3500
|
},
|
@@ -3013,22 +3676,31 @@ export const RTPStats_GapHistogramEntry = {
|
|
3013
3676
|
},
|
3014
3677
|
|
3015
3678
|
decode(input: _m0.Reader | Uint8Array, length?: number): RTPStats_GapHistogramEntry {
|
3016
|
-
const reader = input instanceof _m0.Reader ? input :
|
3679
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
3017
3680
|
let end = length === undefined ? reader.len : reader.pos + length;
|
3018
3681
|
const message = createBaseRTPStats_GapHistogramEntry();
|
3019
3682
|
while (reader.pos < end) {
|
3020
3683
|
const tag = reader.uint32();
|
3021
3684
|
switch (tag >>> 3) {
|
3022
3685
|
case 1:
|
3686
|
+
if (tag != 8) {
|
3687
|
+
break;
|
3688
|
+
}
|
3689
|
+
|
3023
3690
|
message.key = reader.int32();
|
3024
|
-
|
3691
|
+
continue;
|
3025
3692
|
case 2:
|
3693
|
+
if (tag != 16) {
|
3694
|
+
break;
|
3695
|
+
}
|
3696
|
+
|
3026
3697
|
message.value = reader.uint32();
|
3027
|
-
|
3028
|
-
|
3029
|
-
|
3030
|
-
|
3698
|
+
continue;
|
3699
|
+
}
|
3700
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3701
|
+
break;
|
3031
3702
|
}
|
3703
|
+
reader.skipType(tag & 7);
|
3032
3704
|
}
|
3033
3705
|
return message;
|
3034
3706
|
},
|
@@ -3072,22 +3744,31 @@ export const TimedVersion = {
|
|
3072
3744
|
},
|
3073
3745
|
|
3074
3746
|
decode(input: _m0.Reader | Uint8Array, length?: number): TimedVersion {
|
3075
|
-
const reader = input instanceof _m0.Reader ? input :
|
3747
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
3076
3748
|
let end = length === undefined ? reader.len : reader.pos + length;
|
3077
3749
|
const message = createBaseTimedVersion();
|
3078
3750
|
while (reader.pos < end) {
|
3079
3751
|
const tag = reader.uint32();
|
3080
3752
|
switch (tag >>> 3) {
|
3081
3753
|
case 1:
|
3754
|
+
if (tag != 8) {
|
3755
|
+
break;
|
3756
|
+
}
|
3757
|
+
|
3082
3758
|
message.unixMicro = longToNumber(reader.int64() as Long);
|
3083
|
-
|
3759
|
+
continue;
|
3084
3760
|
case 2:
|
3761
|
+
if (tag != 16) {
|
3762
|
+
break;
|
3763
|
+
}
|
3764
|
+
|
3085
3765
|
message.ticks = reader.int32();
|
3086
|
-
|
3087
|
-
|
3088
|
-
|
3089
|
-
|
3766
|
+
continue;
|
3767
|
+
}
|
3768
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3769
|
+
break;
|
3090
3770
|
}
|
3771
|
+
reader.skipType(tag & 7);
|
3091
3772
|
}
|
3092
3773
|
return message;
|
3093
3774
|
},
|