livekit-client 1.7.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +21 -1
- package/dist/livekit-client.esm.mjs +14241 -12994
- 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/api/SignalClient.d.ts +11 -10
- package/dist/src/api/SignalClient.d.ts.map +1 -1
- package/dist/src/connectionHelper/ConnectionCheck.d.ts +1 -1
- package/dist/src/connectionHelper/ConnectionCheck.d.ts.map +1 -1
- package/dist/src/connectionHelper/checks/Checker.d.ts +1 -1
- package/dist/src/connectionHelper/checks/Checker.d.ts.map +1 -1
- package/dist/src/index.d.ts +7 -7
- 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 +37 -0
- package/dist/src/proto/livekit_models.d.ts.map +1 -1
- package/dist/src/proto/livekit_rtc.d.ts +347 -75
- package/dist/src/proto/livekit_rtc.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts +12 -3
- 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 +23 -15
- 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 +23 -2
- package/dist/src/room/events.d.ts.map +1 -1
- package/dist/src/room/participant/LocalParticipant.d.ts +14 -2
- package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
- package/dist/src/room/participant/Participant.d.ts +4 -2
- package/dist/src/room/participant/Participant.d.ts.map +1 -1
- package/dist/src/room/participant/RemoteParticipant.d.ts +2 -2
- package/dist/src/room/participant/RemoteParticipant.d.ts.map +1 -1
- package/dist/src/room/participant/publishUtils.d.ts.map +1 -1
- package/dist/src/room/track/LocalAudioTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrack.d.ts +4 -3
- package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrackPublication.d.ts +1 -1
- package/dist/src/room/track/LocalTrackPublication.d.ts.map +1 -1
- package/dist/src/room/track/LocalVideoTrack.d.ts.map +1 -1
- package/dist/src/room/track/RemoteAudioTrack.d.ts +1 -1
- package/dist/src/room/track/RemoteAudioTrack.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/track/create.d.ts.map +1 -1
- package/dist/src/room/types.d.ts +5 -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/api/SignalClient.d.ts +14 -10
- package/dist/ts4.2/src/connectionHelper/ConnectionCheck.d.ts +1 -1
- package/dist/ts4.2/src/connectionHelper/checks/Checker.d.ts +1 -1
- package/dist/ts4.2/src/index.d.ts +7 -6
- package/dist/ts4.2/src/proto/livekit_models.d.ts +37 -0
- package/dist/ts4.2/src/proto/livekit_rtc.d.ts +380 -84
- package/dist/ts4.2/src/room/RTCEngine.d.ts +12 -3
- 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 +23 -15
- package/dist/ts4.2/src/room/errors.d.ts +2 -1
- package/dist/ts4.2/src/room/events.d.ts +23 -2
- package/dist/ts4.2/src/room/participant/LocalParticipant.d.ts +14 -2
- package/dist/ts4.2/src/room/participant/Participant.d.ts +4 -2
- package/dist/ts4.2/src/room/participant/RemoteParticipant.d.ts +2 -2
- package/dist/ts4.2/src/room/track/LocalTrack.d.ts +4 -3
- package/dist/ts4.2/src/room/track/LocalTrackPublication.d.ts +1 -1
- package/dist/ts4.2/src/room/track/RemoteAudioTrack.d.ts +1 -1
- 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 +5 -0
- package/dist/ts4.2/src/room/utils.d.ts +4 -0
- package/package.json +21 -20
- package/src/api/SignalClient.ts +41 -29
- package/src/connectionHelper/ConnectionCheck.ts +1 -2
- package/src/connectionHelper/checks/Checker.ts +1 -1
- package/src/connectionHelper/checks/reconnect.ts +1 -1
- package/src/index.ts +9 -8
- package/src/proto/google/protobuf/timestamp.ts +15 -6
- package/src/proto/livekit_models.ts +917 -221
- package/src/proto/livekit_rtc.ts +1053 -279
- package/src/room/RTCEngine.ts +171 -47
- package/src/room/ReconnectPolicy.ts +2 -0
- package/src/room/RegionUrlProvider.ts +73 -0
- package/src/room/Room.ts +278 -177
- package/src/room/errors.ts +1 -0
- package/src/room/events.ts +24 -0
- package/src/room/participant/LocalParticipant.ts +30 -7
- package/src/room/participant/Participant.ts +27 -3
- package/src/room/participant/RemoteParticipant.ts +6 -3
- package/src/room/participant/publishUtils.test.ts +1 -1
- package/src/room/participant/publishUtils.ts +1 -1
- package/src/room/track/LocalAudioTrack.ts +14 -7
- package/src/room/track/LocalTrack.ts +23 -9
- package/src/room/track/LocalTrackPublication.ts +1 -1
- package/src/room/track/LocalVideoTrack.ts +15 -9
- package/src/room/track/RemoteAudioTrack.ts +1 -1
- package/src/room/track/RemoteTrackPublication.ts +4 -3
- package/src/room/track/RemoteVideoTrack.test.ts +1 -1
- package/src/room/track/RemoteVideoTrack.ts +8 -7
- package/src/room/track/Track.ts +46 -31
- package/src/room/track/create.ts +2 -2
- package/src/room/types.ts +17 -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,
|
@@ -348,6 +438,7 @@ export interface Room {
|
|
348
438
|
enabledCodecs: Codec[];
|
349
439
|
metadata: string;
|
350
440
|
numParticipants: number;
|
441
|
+
numPublishers: number;
|
351
442
|
activeRecording: boolean;
|
352
443
|
}
|
353
444
|
|
@@ -369,6 +460,8 @@ export interface ParticipantPermission {
|
|
369
460
|
hidden: boolean;
|
370
461
|
/** indicates it's a recorder instance */
|
371
462
|
recorder: boolean;
|
463
|
+
/** indicates that participant can update own metadata */
|
464
|
+
canUpdateMetadata: boolean;
|
372
465
|
}
|
373
466
|
|
374
467
|
export interface ParticipantInfo {
|
@@ -663,6 +756,8 @@ export enum ClientInfo_SDK {
|
|
663
756
|
FLUTTER = 4,
|
664
757
|
GO = 5,
|
665
758
|
UNITY = 6,
|
759
|
+
REACT_NATIVE = 7,
|
760
|
+
RUST = 8,
|
666
761
|
UNRECOGNIZED = -1,
|
667
762
|
}
|
668
763
|
|
@@ -689,6 +784,12 @@ export function clientInfo_SDKFromJSON(object: any): ClientInfo_SDK {
|
|
689
784
|
case 6:
|
690
785
|
case "UNITY":
|
691
786
|
return ClientInfo_SDK.UNITY;
|
787
|
+
case 7:
|
788
|
+
case "REACT_NATIVE":
|
789
|
+
return ClientInfo_SDK.REACT_NATIVE;
|
790
|
+
case 8:
|
791
|
+
case "RUST":
|
792
|
+
return ClientInfo_SDK.RUST;
|
692
793
|
case -1:
|
693
794
|
case "UNRECOGNIZED":
|
694
795
|
default:
|
@@ -712,6 +813,10 @@ export function clientInfo_SDKToJSON(object: ClientInfo_SDK): string {
|
|
712
813
|
return "GO";
|
713
814
|
case ClientInfo_SDK.UNITY:
|
714
815
|
return "UNITY";
|
816
|
+
case ClientInfo_SDK.REACT_NATIVE:
|
817
|
+
return "REACT_NATIVE";
|
818
|
+
case ClientInfo_SDK.RUST:
|
819
|
+
return "RUST";
|
715
820
|
case ClientInfo_SDK.UNRECOGNIZED:
|
716
821
|
default:
|
717
822
|
return "UNRECOGNIZED";
|
@@ -800,6 +905,7 @@ function createBaseRoom(): Room {
|
|
800
905
|
enabledCodecs: [],
|
801
906
|
metadata: "",
|
802
907
|
numParticipants: 0,
|
908
|
+
numPublishers: 0,
|
803
909
|
activeRecording: false,
|
804
910
|
};
|
805
911
|
}
|
@@ -833,6 +939,9 @@ export const Room = {
|
|
833
939
|
if (message.numParticipants !== 0) {
|
834
940
|
writer.uint32(72).uint32(message.numParticipants);
|
835
941
|
}
|
942
|
+
if (message.numPublishers !== 0) {
|
943
|
+
writer.uint32(88).uint32(message.numPublishers);
|
944
|
+
}
|
836
945
|
if (message.activeRecording === true) {
|
837
946
|
writer.uint32(80).bool(message.activeRecording);
|
838
947
|
}
|
@@ -840,46 +949,94 @@ export const Room = {
|
|
840
949
|
},
|
841
950
|
|
842
951
|
decode(input: _m0.Reader | Uint8Array, length?: number): Room {
|
843
|
-
const reader = input instanceof _m0.Reader ? input :
|
952
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
844
953
|
let end = length === undefined ? reader.len : reader.pos + length;
|
845
954
|
const message = createBaseRoom();
|
846
955
|
while (reader.pos < end) {
|
847
956
|
const tag = reader.uint32();
|
848
957
|
switch (tag >>> 3) {
|
849
958
|
case 1:
|
959
|
+
if (tag != 10) {
|
960
|
+
break;
|
961
|
+
}
|
962
|
+
|
850
963
|
message.sid = reader.string();
|
851
|
-
|
964
|
+
continue;
|
852
965
|
case 2:
|
966
|
+
if (tag != 18) {
|
967
|
+
break;
|
968
|
+
}
|
969
|
+
|
853
970
|
message.name = reader.string();
|
854
|
-
|
971
|
+
continue;
|
855
972
|
case 3:
|
973
|
+
if (tag != 24) {
|
974
|
+
break;
|
975
|
+
}
|
976
|
+
|
856
977
|
message.emptyTimeout = reader.uint32();
|
857
|
-
|
978
|
+
continue;
|
858
979
|
case 4:
|
980
|
+
if (tag != 32) {
|
981
|
+
break;
|
982
|
+
}
|
983
|
+
|
859
984
|
message.maxParticipants = reader.uint32();
|
860
|
-
|
985
|
+
continue;
|
861
986
|
case 5:
|
987
|
+
if (tag != 40) {
|
988
|
+
break;
|
989
|
+
}
|
990
|
+
|
862
991
|
message.creationTime = longToNumber(reader.int64() as Long);
|
863
|
-
|
992
|
+
continue;
|
864
993
|
case 6:
|
994
|
+
if (tag != 50) {
|
995
|
+
break;
|
996
|
+
}
|
997
|
+
|
865
998
|
message.turnPassword = reader.string();
|
866
|
-
|
999
|
+
continue;
|
867
1000
|
case 7:
|
1001
|
+
if (tag != 58) {
|
1002
|
+
break;
|
1003
|
+
}
|
1004
|
+
|
868
1005
|
message.enabledCodecs.push(Codec.decode(reader, reader.uint32()));
|
869
|
-
|
1006
|
+
continue;
|
870
1007
|
case 8:
|
1008
|
+
if (tag != 66) {
|
1009
|
+
break;
|
1010
|
+
}
|
1011
|
+
|
871
1012
|
message.metadata = reader.string();
|
872
|
-
|
1013
|
+
continue;
|
873
1014
|
case 9:
|
1015
|
+
if (tag != 72) {
|
1016
|
+
break;
|
1017
|
+
}
|
1018
|
+
|
874
1019
|
message.numParticipants = reader.uint32();
|
875
|
-
|
1020
|
+
continue;
|
1021
|
+
case 11:
|
1022
|
+
if (tag != 88) {
|
1023
|
+
break;
|
1024
|
+
}
|
1025
|
+
|
1026
|
+
message.numPublishers = reader.uint32();
|
1027
|
+
continue;
|
876
1028
|
case 10:
|
1029
|
+
if (tag != 80) {
|
1030
|
+
break;
|
1031
|
+
}
|
1032
|
+
|
877
1033
|
message.activeRecording = reader.bool();
|
878
|
-
|
879
|
-
default:
|
880
|
-
reader.skipType(tag & 7);
|
881
|
-
break;
|
1034
|
+
continue;
|
882
1035
|
}
|
1036
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1037
|
+
break;
|
1038
|
+
}
|
1039
|
+
reader.skipType(tag & 7);
|
883
1040
|
}
|
884
1041
|
return message;
|
885
1042
|
},
|
@@ -897,6 +1054,7 @@ export const Room = {
|
|
897
1054
|
: [],
|
898
1055
|
metadata: isSet(object.metadata) ? String(object.metadata) : "",
|
899
1056
|
numParticipants: isSet(object.numParticipants) ? Number(object.numParticipants) : 0,
|
1057
|
+
numPublishers: isSet(object.numPublishers) ? Number(object.numPublishers) : 0,
|
900
1058
|
activeRecording: isSet(object.activeRecording) ? Boolean(object.activeRecording) : false,
|
901
1059
|
};
|
902
1060
|
},
|
@@ -916,6 +1074,7 @@ export const Room = {
|
|
916
1074
|
}
|
917
1075
|
message.metadata !== undefined && (obj.metadata = message.metadata);
|
918
1076
|
message.numParticipants !== undefined && (obj.numParticipants = Math.round(message.numParticipants));
|
1077
|
+
message.numPublishers !== undefined && (obj.numPublishers = Math.round(message.numPublishers));
|
919
1078
|
message.activeRecording !== undefined && (obj.activeRecording = message.activeRecording);
|
920
1079
|
return obj;
|
921
1080
|
},
|
@@ -935,6 +1094,7 @@ export const Room = {
|
|
935
1094
|
message.enabledCodecs = object.enabledCodecs?.map((e) => Codec.fromPartial(e)) || [];
|
936
1095
|
message.metadata = object.metadata ?? "";
|
937
1096
|
message.numParticipants = object.numParticipants ?? 0;
|
1097
|
+
message.numPublishers = object.numPublishers ?? 0;
|
938
1098
|
message.activeRecording = object.activeRecording ?? false;
|
939
1099
|
return message;
|
940
1100
|
},
|
@@ -956,22 +1116,31 @@ export const Codec = {
|
|
956
1116
|
},
|
957
1117
|
|
958
1118
|
decode(input: _m0.Reader | Uint8Array, length?: number): Codec {
|
959
|
-
const reader = input instanceof _m0.Reader ? input :
|
1119
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
960
1120
|
let end = length === undefined ? reader.len : reader.pos + length;
|
961
1121
|
const message = createBaseCodec();
|
962
1122
|
while (reader.pos < end) {
|
963
1123
|
const tag = reader.uint32();
|
964
1124
|
switch (tag >>> 3) {
|
965
1125
|
case 1:
|
1126
|
+
if (tag != 10) {
|
1127
|
+
break;
|
1128
|
+
}
|
1129
|
+
|
966
1130
|
message.mime = reader.string();
|
967
|
-
|
1131
|
+
continue;
|
968
1132
|
case 2:
|
1133
|
+
if (tag != 18) {
|
1134
|
+
break;
|
1135
|
+
}
|
1136
|
+
|
969
1137
|
message.fmtpLine = reader.string();
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
1138
|
+
continue;
|
1139
|
+
}
|
1140
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1141
|
+
break;
|
974
1142
|
}
|
1143
|
+
reader.skipType(tag & 7);
|
975
1144
|
}
|
976
1145
|
return message;
|
977
1146
|
},
|
@@ -1010,6 +1179,7 @@ function createBaseParticipantPermission(): ParticipantPermission {
|
|
1010
1179
|
canPublishSources: [],
|
1011
1180
|
hidden: false,
|
1012
1181
|
recorder: false,
|
1182
|
+
canUpdateMetadata: false,
|
1013
1183
|
};
|
1014
1184
|
}
|
1015
1185
|
|
@@ -1035,45 +1205,82 @@ export const ParticipantPermission = {
|
|
1035
1205
|
if (message.recorder === true) {
|
1036
1206
|
writer.uint32(64).bool(message.recorder);
|
1037
1207
|
}
|
1208
|
+
if (message.canUpdateMetadata === true) {
|
1209
|
+
writer.uint32(80).bool(message.canUpdateMetadata);
|
1210
|
+
}
|
1038
1211
|
return writer;
|
1039
1212
|
},
|
1040
1213
|
|
1041
1214
|
decode(input: _m0.Reader | Uint8Array, length?: number): ParticipantPermission {
|
1042
|
-
const reader = input instanceof _m0.Reader ? input :
|
1215
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1043
1216
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1044
1217
|
const message = createBaseParticipantPermission();
|
1045
1218
|
while (reader.pos < end) {
|
1046
1219
|
const tag = reader.uint32();
|
1047
1220
|
switch (tag >>> 3) {
|
1048
1221
|
case 1:
|
1222
|
+
if (tag != 8) {
|
1223
|
+
break;
|
1224
|
+
}
|
1225
|
+
|
1049
1226
|
message.canSubscribe = reader.bool();
|
1050
|
-
|
1227
|
+
continue;
|
1051
1228
|
case 2:
|
1229
|
+
if (tag != 16) {
|
1230
|
+
break;
|
1231
|
+
}
|
1232
|
+
|
1052
1233
|
message.canPublish = reader.bool();
|
1053
|
-
|
1234
|
+
continue;
|
1054
1235
|
case 3:
|
1236
|
+
if (tag != 24) {
|
1237
|
+
break;
|
1238
|
+
}
|
1239
|
+
|
1055
1240
|
message.canPublishData = reader.bool();
|
1056
|
-
|
1241
|
+
continue;
|
1057
1242
|
case 9:
|
1058
|
-
if (
|
1243
|
+
if (tag == 72) {
|
1244
|
+
message.canPublishSources.push(reader.int32() as any);
|
1245
|
+
continue;
|
1246
|
+
}
|
1247
|
+
|
1248
|
+
if (tag == 74) {
|
1059
1249
|
const end2 = reader.uint32() + reader.pos;
|
1060
1250
|
while (reader.pos < end2) {
|
1061
1251
|
message.canPublishSources.push(reader.int32() as any);
|
1062
1252
|
}
|
1063
|
-
|
1064
|
-
|
1253
|
+
|
1254
|
+
continue;
|
1065
1255
|
}
|
1256
|
+
|
1066
1257
|
break;
|
1067
1258
|
case 7:
|
1259
|
+
if (tag != 56) {
|
1260
|
+
break;
|
1261
|
+
}
|
1262
|
+
|
1068
1263
|
message.hidden = reader.bool();
|
1069
|
-
|
1264
|
+
continue;
|
1070
1265
|
case 8:
|
1266
|
+
if (tag != 64) {
|
1267
|
+
break;
|
1268
|
+
}
|
1269
|
+
|
1071
1270
|
message.recorder = reader.bool();
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1271
|
+
continue;
|
1272
|
+
case 10:
|
1273
|
+
if (tag != 80) {
|
1274
|
+
break;
|
1275
|
+
}
|
1276
|
+
|
1277
|
+
message.canUpdateMetadata = reader.bool();
|
1278
|
+
continue;
|
1279
|
+
}
|
1280
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1281
|
+
break;
|
1076
1282
|
}
|
1283
|
+
reader.skipType(tag & 7);
|
1077
1284
|
}
|
1078
1285
|
return message;
|
1079
1286
|
},
|
@@ -1088,6 +1295,7 @@ export const ParticipantPermission = {
|
|
1088
1295
|
: [],
|
1089
1296
|
hidden: isSet(object.hidden) ? Boolean(object.hidden) : false,
|
1090
1297
|
recorder: isSet(object.recorder) ? Boolean(object.recorder) : false,
|
1298
|
+
canUpdateMetadata: isSet(object.canUpdateMetadata) ? Boolean(object.canUpdateMetadata) : false,
|
1091
1299
|
};
|
1092
1300
|
},
|
1093
1301
|
|
@@ -1103,6 +1311,7 @@ export const ParticipantPermission = {
|
|
1103
1311
|
}
|
1104
1312
|
message.hidden !== undefined && (obj.hidden = message.hidden);
|
1105
1313
|
message.recorder !== undefined && (obj.recorder = message.recorder);
|
1314
|
+
message.canUpdateMetadata !== undefined && (obj.canUpdateMetadata = message.canUpdateMetadata);
|
1106
1315
|
return obj;
|
1107
1316
|
},
|
1108
1317
|
|
@@ -1118,6 +1327,7 @@ export const ParticipantPermission = {
|
|
1118
1327
|
message.canPublishSources = object.canPublishSources?.map((e) => e) || [];
|
1119
1328
|
message.hidden = object.hidden ?? false;
|
1120
1329
|
message.recorder = object.recorder ?? false;
|
1330
|
+
message.canUpdateMetadata = object.canUpdateMetadata ?? false;
|
1121
1331
|
return message;
|
1122
1332
|
},
|
1123
1333
|
};
|
@@ -1177,49 +1387,94 @@ export const ParticipantInfo = {
|
|
1177
1387
|
},
|
1178
1388
|
|
1179
1389
|
decode(input: _m0.Reader | Uint8Array, length?: number): ParticipantInfo {
|
1180
|
-
const reader = input instanceof _m0.Reader ? input :
|
1390
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1181
1391
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1182
1392
|
const message = createBaseParticipantInfo();
|
1183
1393
|
while (reader.pos < end) {
|
1184
1394
|
const tag = reader.uint32();
|
1185
1395
|
switch (tag >>> 3) {
|
1186
1396
|
case 1:
|
1397
|
+
if (tag != 10) {
|
1398
|
+
break;
|
1399
|
+
}
|
1400
|
+
|
1187
1401
|
message.sid = reader.string();
|
1188
|
-
|
1402
|
+
continue;
|
1189
1403
|
case 2:
|
1404
|
+
if (tag != 18) {
|
1405
|
+
break;
|
1406
|
+
}
|
1407
|
+
|
1190
1408
|
message.identity = reader.string();
|
1191
|
-
|
1409
|
+
continue;
|
1192
1410
|
case 3:
|
1411
|
+
if (tag != 24) {
|
1412
|
+
break;
|
1413
|
+
}
|
1414
|
+
|
1193
1415
|
message.state = reader.int32() as any;
|
1194
|
-
|
1416
|
+
continue;
|
1195
1417
|
case 4:
|
1418
|
+
if (tag != 34) {
|
1419
|
+
break;
|
1420
|
+
}
|
1421
|
+
|
1196
1422
|
message.tracks.push(TrackInfo.decode(reader, reader.uint32()));
|
1197
|
-
|
1423
|
+
continue;
|
1198
1424
|
case 5:
|
1425
|
+
if (tag != 42) {
|
1426
|
+
break;
|
1427
|
+
}
|
1428
|
+
|
1199
1429
|
message.metadata = reader.string();
|
1200
|
-
|
1430
|
+
continue;
|
1201
1431
|
case 6:
|
1432
|
+
if (tag != 48) {
|
1433
|
+
break;
|
1434
|
+
}
|
1435
|
+
|
1202
1436
|
message.joinedAt = longToNumber(reader.int64() as Long);
|
1203
|
-
|
1437
|
+
continue;
|
1204
1438
|
case 9:
|
1439
|
+
if (tag != 74) {
|
1440
|
+
break;
|
1441
|
+
}
|
1442
|
+
|
1205
1443
|
message.name = reader.string();
|
1206
|
-
|
1444
|
+
continue;
|
1207
1445
|
case 10:
|
1446
|
+
if (tag != 80) {
|
1447
|
+
break;
|
1448
|
+
}
|
1449
|
+
|
1208
1450
|
message.version = reader.uint32();
|
1209
|
-
|
1451
|
+
continue;
|
1210
1452
|
case 11:
|
1453
|
+
if (tag != 90) {
|
1454
|
+
break;
|
1455
|
+
}
|
1456
|
+
|
1211
1457
|
message.permission = ParticipantPermission.decode(reader, reader.uint32());
|
1212
|
-
|
1458
|
+
continue;
|
1213
1459
|
case 12:
|
1460
|
+
if (tag != 98) {
|
1461
|
+
break;
|
1462
|
+
}
|
1463
|
+
|
1214
1464
|
message.region = reader.string();
|
1215
|
-
|
1465
|
+
continue;
|
1216
1466
|
case 13:
|
1467
|
+
if (tag != 104) {
|
1468
|
+
break;
|
1469
|
+
}
|
1470
|
+
|
1217
1471
|
message.isPublisher = reader.bool();
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
|
1472
|
+
continue;
|
1473
|
+
}
|
1474
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1475
|
+
break;
|
1222
1476
|
}
|
1477
|
+
reader.skipType(tag & 7);
|
1223
1478
|
}
|
1224
1479
|
return message;
|
1225
1480
|
},
|
@@ -1294,16 +1549,17 @@ export const Encryption = {
|
|
1294
1549
|
},
|
1295
1550
|
|
1296
1551
|
decode(input: _m0.Reader | Uint8Array, length?: number): Encryption {
|
1297
|
-
const reader = input instanceof _m0.Reader ? input :
|
1552
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1298
1553
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1299
1554
|
const message = createBaseEncryption();
|
1300
1555
|
while (reader.pos < end) {
|
1301
1556
|
const tag = reader.uint32();
|
1302
1557
|
switch (tag >>> 3) {
|
1303
|
-
default:
|
1304
|
-
reader.skipType(tag & 7);
|
1305
|
-
break;
|
1306
1558
|
}
|
1559
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1560
|
+
break;
|
1561
|
+
}
|
1562
|
+
reader.skipType(tag & 7);
|
1307
1563
|
}
|
1308
1564
|
return message;
|
1309
1565
|
},
|
@@ -1349,28 +1605,45 @@ export const SimulcastCodecInfo = {
|
|
1349
1605
|
},
|
1350
1606
|
|
1351
1607
|
decode(input: _m0.Reader | Uint8Array, length?: number): SimulcastCodecInfo {
|
1352
|
-
const reader = input instanceof _m0.Reader ? input :
|
1608
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1353
1609
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1354
1610
|
const message = createBaseSimulcastCodecInfo();
|
1355
1611
|
while (reader.pos < end) {
|
1356
1612
|
const tag = reader.uint32();
|
1357
1613
|
switch (tag >>> 3) {
|
1358
1614
|
case 1:
|
1615
|
+
if (tag != 10) {
|
1616
|
+
break;
|
1617
|
+
}
|
1618
|
+
|
1359
1619
|
message.mimeType = reader.string();
|
1360
|
-
|
1620
|
+
continue;
|
1361
1621
|
case 2:
|
1622
|
+
if (tag != 18) {
|
1623
|
+
break;
|
1624
|
+
}
|
1625
|
+
|
1362
1626
|
message.mid = reader.string();
|
1363
|
-
|
1627
|
+
continue;
|
1364
1628
|
case 3:
|
1629
|
+
if (tag != 26) {
|
1630
|
+
break;
|
1631
|
+
}
|
1632
|
+
|
1365
1633
|
message.cid = reader.string();
|
1366
|
-
|
1634
|
+
continue;
|
1367
1635
|
case 4:
|
1636
|
+
if (tag != 34) {
|
1637
|
+
break;
|
1638
|
+
}
|
1639
|
+
|
1368
1640
|
message.layers.push(VideoLayer.decode(reader, reader.uint32()));
|
1369
|
-
|
1370
|
-
|
1371
|
-
|
1372
|
-
|
1641
|
+
continue;
|
1642
|
+
}
|
1643
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1644
|
+
break;
|
1373
1645
|
}
|
1646
|
+
reader.skipType(tag & 7);
|
1374
1647
|
}
|
1375
1648
|
return message;
|
1376
1649
|
},
|
@@ -1486,64 +1759,129 @@ export const TrackInfo = {
|
|
1486
1759
|
},
|
1487
1760
|
|
1488
1761
|
decode(input: _m0.Reader | Uint8Array, length?: number): TrackInfo {
|
1489
|
-
const reader = input instanceof _m0.Reader ? input :
|
1762
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1490
1763
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1491
1764
|
const message = createBaseTrackInfo();
|
1492
1765
|
while (reader.pos < end) {
|
1493
1766
|
const tag = reader.uint32();
|
1494
1767
|
switch (tag >>> 3) {
|
1495
1768
|
case 1:
|
1769
|
+
if (tag != 10) {
|
1770
|
+
break;
|
1771
|
+
}
|
1772
|
+
|
1496
1773
|
message.sid = reader.string();
|
1497
|
-
|
1774
|
+
continue;
|
1498
1775
|
case 2:
|
1776
|
+
if (tag != 16) {
|
1777
|
+
break;
|
1778
|
+
}
|
1779
|
+
|
1499
1780
|
message.type = reader.int32() as any;
|
1500
|
-
|
1781
|
+
continue;
|
1501
1782
|
case 3:
|
1783
|
+
if (tag != 26) {
|
1784
|
+
break;
|
1785
|
+
}
|
1786
|
+
|
1502
1787
|
message.name = reader.string();
|
1503
|
-
|
1788
|
+
continue;
|
1504
1789
|
case 4:
|
1790
|
+
if (tag != 32) {
|
1791
|
+
break;
|
1792
|
+
}
|
1793
|
+
|
1505
1794
|
message.muted = reader.bool();
|
1506
|
-
|
1795
|
+
continue;
|
1507
1796
|
case 5:
|
1797
|
+
if (tag != 40) {
|
1798
|
+
break;
|
1799
|
+
}
|
1800
|
+
|
1508
1801
|
message.width = reader.uint32();
|
1509
|
-
|
1802
|
+
continue;
|
1510
1803
|
case 6:
|
1804
|
+
if (tag != 48) {
|
1805
|
+
break;
|
1806
|
+
}
|
1807
|
+
|
1511
1808
|
message.height = reader.uint32();
|
1512
|
-
|
1809
|
+
continue;
|
1513
1810
|
case 7:
|
1811
|
+
if (tag != 56) {
|
1812
|
+
break;
|
1813
|
+
}
|
1814
|
+
|
1514
1815
|
message.simulcast = reader.bool();
|
1515
|
-
|
1816
|
+
continue;
|
1516
1817
|
case 8:
|
1818
|
+
if (tag != 64) {
|
1819
|
+
break;
|
1820
|
+
}
|
1821
|
+
|
1517
1822
|
message.disableDtx = reader.bool();
|
1518
|
-
|
1823
|
+
continue;
|
1519
1824
|
case 9:
|
1825
|
+
if (tag != 72) {
|
1826
|
+
break;
|
1827
|
+
}
|
1828
|
+
|
1520
1829
|
message.source = reader.int32() as any;
|
1521
|
-
|
1830
|
+
continue;
|
1522
1831
|
case 10:
|
1832
|
+
if (tag != 82) {
|
1833
|
+
break;
|
1834
|
+
}
|
1835
|
+
|
1523
1836
|
message.layers.push(VideoLayer.decode(reader, reader.uint32()));
|
1524
|
-
|
1837
|
+
continue;
|
1525
1838
|
case 11:
|
1839
|
+
if (tag != 90) {
|
1840
|
+
break;
|
1841
|
+
}
|
1842
|
+
|
1526
1843
|
message.mimeType = reader.string();
|
1527
|
-
|
1844
|
+
continue;
|
1528
1845
|
case 12:
|
1846
|
+
if (tag != 98) {
|
1847
|
+
break;
|
1848
|
+
}
|
1849
|
+
|
1529
1850
|
message.mid = reader.string();
|
1530
|
-
|
1851
|
+
continue;
|
1531
1852
|
case 13:
|
1853
|
+
if (tag != 106) {
|
1854
|
+
break;
|
1855
|
+
}
|
1856
|
+
|
1532
1857
|
message.codecs.push(SimulcastCodecInfo.decode(reader, reader.uint32()));
|
1533
|
-
|
1858
|
+
continue;
|
1534
1859
|
case 14:
|
1860
|
+
if (tag != 112) {
|
1861
|
+
break;
|
1862
|
+
}
|
1863
|
+
|
1535
1864
|
message.stereo = reader.bool();
|
1536
|
-
|
1865
|
+
continue;
|
1537
1866
|
case 15:
|
1867
|
+
if (tag != 120) {
|
1868
|
+
break;
|
1869
|
+
}
|
1870
|
+
|
1538
1871
|
message.disableRed = reader.bool();
|
1539
|
-
|
1872
|
+
continue;
|
1540
1873
|
case 16:
|
1874
|
+
if (tag != 128) {
|
1875
|
+
break;
|
1876
|
+
}
|
1877
|
+
|
1541
1878
|
message.encryption = reader.int32() as any;
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1545
|
-
|
1879
|
+
continue;
|
1880
|
+
}
|
1881
|
+
if ((tag & 7) == 4 || tag == 0) {
|
1882
|
+
break;
|
1546
1883
|
}
|
1884
|
+
reader.skipType(tag & 7);
|
1547
1885
|
}
|
1548
1886
|
return message;
|
1549
1887
|
},
|
@@ -1649,31 +1987,52 @@ export const VideoLayer = {
|
|
1649
1987
|
},
|
1650
1988
|
|
1651
1989
|
decode(input: _m0.Reader | Uint8Array, length?: number): VideoLayer {
|
1652
|
-
const reader = input instanceof _m0.Reader ? input :
|
1990
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1653
1991
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1654
1992
|
const message = createBaseVideoLayer();
|
1655
1993
|
while (reader.pos < end) {
|
1656
1994
|
const tag = reader.uint32();
|
1657
1995
|
switch (tag >>> 3) {
|
1658
1996
|
case 1:
|
1997
|
+
if (tag != 8) {
|
1998
|
+
break;
|
1999
|
+
}
|
2000
|
+
|
1659
2001
|
message.quality = reader.int32() as any;
|
1660
|
-
|
2002
|
+
continue;
|
1661
2003
|
case 2:
|
2004
|
+
if (tag != 16) {
|
2005
|
+
break;
|
2006
|
+
}
|
2007
|
+
|
1662
2008
|
message.width = reader.uint32();
|
1663
|
-
|
2009
|
+
continue;
|
1664
2010
|
case 3:
|
2011
|
+
if (tag != 24) {
|
2012
|
+
break;
|
2013
|
+
}
|
2014
|
+
|
1665
2015
|
message.height = reader.uint32();
|
1666
|
-
|
2016
|
+
continue;
|
1667
2017
|
case 4:
|
2018
|
+
if (tag != 32) {
|
2019
|
+
break;
|
2020
|
+
}
|
2021
|
+
|
1668
2022
|
message.bitrate = reader.uint32();
|
1669
|
-
|
2023
|
+
continue;
|
1670
2024
|
case 5:
|
2025
|
+
if (tag != 40) {
|
2026
|
+
break;
|
2027
|
+
}
|
2028
|
+
|
1671
2029
|
message.ssrc = reader.uint32();
|
1672
|
-
|
1673
|
-
default:
|
1674
|
-
reader.skipType(tag & 7);
|
1675
|
-
break;
|
2030
|
+
continue;
|
1676
2031
|
}
|
2032
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2033
|
+
break;
|
2034
|
+
}
|
2035
|
+
reader.skipType(tag & 7);
|
1677
2036
|
}
|
1678
2037
|
return message;
|
1679
2038
|
},
|
@@ -1734,25 +2093,38 @@ export const DataPacket = {
|
|
1734
2093
|
},
|
1735
2094
|
|
1736
2095
|
decode(input: _m0.Reader | Uint8Array, length?: number): DataPacket {
|
1737
|
-
const reader = input instanceof _m0.Reader ? input :
|
2096
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1738
2097
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1739
2098
|
const message = createBaseDataPacket();
|
1740
2099
|
while (reader.pos < end) {
|
1741
2100
|
const tag = reader.uint32();
|
1742
2101
|
switch (tag >>> 3) {
|
1743
2102
|
case 1:
|
2103
|
+
if (tag != 8) {
|
2104
|
+
break;
|
2105
|
+
}
|
2106
|
+
|
1744
2107
|
message.kind = reader.int32() as any;
|
1745
|
-
|
2108
|
+
continue;
|
1746
2109
|
case 2:
|
2110
|
+
if (tag != 18) {
|
2111
|
+
break;
|
2112
|
+
}
|
2113
|
+
|
1747
2114
|
message.value = { $case: "user", user: UserPacket.decode(reader, reader.uint32()) };
|
1748
|
-
|
2115
|
+
continue;
|
1749
2116
|
case 3:
|
2117
|
+
if (tag != 26) {
|
2118
|
+
break;
|
2119
|
+
}
|
2120
|
+
|
1750
2121
|
message.value = { $case: "speaker", speaker: ActiveSpeakerUpdate.decode(reader, reader.uint32()) };
|
1751
|
-
|
1752
|
-
default:
|
1753
|
-
reader.skipType(tag & 7);
|
1754
|
-
break;
|
2122
|
+
continue;
|
1755
2123
|
}
|
2124
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2125
|
+
break;
|
2126
|
+
}
|
2127
|
+
reader.skipType(tag & 7);
|
1756
2128
|
}
|
1757
2129
|
return message;
|
1758
2130
|
},
|
@@ -1808,19 +2180,24 @@ export const ActiveSpeakerUpdate = {
|
|
1808
2180
|
},
|
1809
2181
|
|
1810
2182
|
decode(input: _m0.Reader | Uint8Array, length?: number): ActiveSpeakerUpdate {
|
1811
|
-
const reader = input instanceof _m0.Reader ? input :
|
2183
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1812
2184
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1813
2185
|
const message = createBaseActiveSpeakerUpdate();
|
1814
2186
|
while (reader.pos < end) {
|
1815
2187
|
const tag = reader.uint32();
|
1816
2188
|
switch (tag >>> 3) {
|
1817
2189
|
case 1:
|
2190
|
+
if (tag != 10) {
|
2191
|
+
break;
|
2192
|
+
}
|
2193
|
+
|
1818
2194
|
message.speakers.push(SpeakerInfo.decode(reader, reader.uint32()));
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1822
|
-
|
2195
|
+
continue;
|
2196
|
+
}
|
2197
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2198
|
+
break;
|
1823
2199
|
}
|
2200
|
+
reader.skipType(tag & 7);
|
1824
2201
|
}
|
1825
2202
|
return message;
|
1826
2203
|
},
|
@@ -1871,25 +2248,38 @@ export const SpeakerInfo = {
|
|
1871
2248
|
},
|
1872
2249
|
|
1873
2250
|
decode(input: _m0.Reader | Uint8Array, length?: number): SpeakerInfo {
|
1874
|
-
const reader = input instanceof _m0.Reader ? input :
|
2251
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1875
2252
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1876
2253
|
const message = createBaseSpeakerInfo();
|
1877
2254
|
while (reader.pos < end) {
|
1878
2255
|
const tag = reader.uint32();
|
1879
2256
|
switch (tag >>> 3) {
|
1880
2257
|
case 1:
|
2258
|
+
if (tag != 10) {
|
2259
|
+
break;
|
2260
|
+
}
|
2261
|
+
|
1881
2262
|
message.sid = reader.string();
|
1882
|
-
|
2263
|
+
continue;
|
1883
2264
|
case 2:
|
2265
|
+
if (tag != 21) {
|
2266
|
+
break;
|
2267
|
+
}
|
2268
|
+
|
1884
2269
|
message.level = reader.float();
|
1885
|
-
|
2270
|
+
continue;
|
1886
2271
|
case 3:
|
2272
|
+
if (tag != 24) {
|
2273
|
+
break;
|
2274
|
+
}
|
2275
|
+
|
1887
2276
|
message.active = reader.bool();
|
1888
|
-
|
1889
|
-
|
1890
|
-
|
1891
|
-
|
2277
|
+
continue;
|
2278
|
+
}
|
2279
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2280
|
+
break;
|
1892
2281
|
}
|
2282
|
+
reader.skipType(tag & 7);
|
1893
2283
|
}
|
1894
2284
|
return message;
|
1895
2285
|
},
|
@@ -1945,28 +2335,45 @@ export const UserPacket = {
|
|
1945
2335
|
},
|
1946
2336
|
|
1947
2337
|
decode(input: _m0.Reader | Uint8Array, length?: number): UserPacket {
|
1948
|
-
const reader = input instanceof _m0.Reader ? input :
|
2338
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
1949
2339
|
let end = length === undefined ? reader.len : reader.pos + length;
|
1950
2340
|
const message = createBaseUserPacket();
|
1951
2341
|
while (reader.pos < end) {
|
1952
2342
|
const tag = reader.uint32();
|
1953
2343
|
switch (tag >>> 3) {
|
1954
2344
|
case 1:
|
2345
|
+
if (tag != 10) {
|
2346
|
+
break;
|
2347
|
+
}
|
2348
|
+
|
1955
2349
|
message.participantSid = reader.string();
|
1956
|
-
|
2350
|
+
continue;
|
1957
2351
|
case 2:
|
2352
|
+
if (tag != 18) {
|
2353
|
+
break;
|
2354
|
+
}
|
2355
|
+
|
1958
2356
|
message.payload = reader.bytes();
|
1959
|
-
|
2357
|
+
continue;
|
1960
2358
|
case 3:
|
2359
|
+
if (tag != 26) {
|
2360
|
+
break;
|
2361
|
+
}
|
2362
|
+
|
1961
2363
|
message.destinationSids.push(reader.string());
|
1962
|
-
|
2364
|
+
continue;
|
1963
2365
|
case 4:
|
2366
|
+
if (tag != 34) {
|
2367
|
+
break;
|
2368
|
+
}
|
2369
|
+
|
1964
2370
|
message.topic = reader.string();
|
1965
|
-
|
1966
|
-
default:
|
1967
|
-
reader.skipType(tag & 7);
|
1968
|
-
break;
|
2371
|
+
continue;
|
1969
2372
|
}
|
2373
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2374
|
+
break;
|
2375
|
+
}
|
2376
|
+
reader.skipType(tag & 7);
|
1970
2377
|
}
|
1971
2378
|
return message;
|
1972
2379
|
},
|
@@ -2024,22 +2431,31 @@ export const ParticipantTracks = {
|
|
2024
2431
|
},
|
2025
2432
|
|
2026
2433
|
decode(input: _m0.Reader | Uint8Array, length?: number): ParticipantTracks {
|
2027
|
-
const reader = input instanceof _m0.Reader ? input :
|
2434
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2028
2435
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2029
2436
|
const message = createBaseParticipantTracks();
|
2030
2437
|
while (reader.pos < end) {
|
2031
2438
|
const tag = reader.uint32();
|
2032
2439
|
switch (tag >>> 3) {
|
2033
2440
|
case 1:
|
2441
|
+
if (tag != 10) {
|
2442
|
+
break;
|
2443
|
+
}
|
2444
|
+
|
2034
2445
|
message.participantSid = reader.string();
|
2035
|
-
|
2446
|
+
continue;
|
2036
2447
|
case 2:
|
2448
|
+
if (tag != 18) {
|
2449
|
+
break;
|
2450
|
+
}
|
2451
|
+
|
2037
2452
|
message.trackSids.push(reader.string());
|
2038
|
-
|
2039
|
-
|
2040
|
-
|
2041
|
-
|
2453
|
+
continue;
|
2454
|
+
}
|
2455
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2456
|
+
break;
|
2042
2457
|
}
|
2458
|
+
reader.skipType(tag & 7);
|
2043
2459
|
}
|
2044
2460
|
return message;
|
2045
2461
|
},
|
@@ -2102,34 +2518,59 @@ export const ServerInfo = {
|
|
2102
2518
|
},
|
2103
2519
|
|
2104
2520
|
decode(input: _m0.Reader | Uint8Array, length?: number): ServerInfo {
|
2105
|
-
const reader = input instanceof _m0.Reader ? input :
|
2521
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2106
2522
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2107
2523
|
const message = createBaseServerInfo();
|
2108
2524
|
while (reader.pos < end) {
|
2109
2525
|
const tag = reader.uint32();
|
2110
2526
|
switch (tag >>> 3) {
|
2111
2527
|
case 1:
|
2528
|
+
if (tag != 8) {
|
2529
|
+
break;
|
2530
|
+
}
|
2531
|
+
|
2112
2532
|
message.edition = reader.int32() as any;
|
2113
|
-
|
2533
|
+
continue;
|
2114
2534
|
case 2:
|
2535
|
+
if (tag != 18) {
|
2536
|
+
break;
|
2537
|
+
}
|
2538
|
+
|
2115
2539
|
message.version = reader.string();
|
2116
|
-
|
2540
|
+
continue;
|
2117
2541
|
case 3:
|
2542
|
+
if (tag != 24) {
|
2543
|
+
break;
|
2544
|
+
}
|
2545
|
+
|
2118
2546
|
message.protocol = reader.int32();
|
2119
|
-
|
2547
|
+
continue;
|
2120
2548
|
case 4:
|
2549
|
+
if (tag != 34) {
|
2550
|
+
break;
|
2551
|
+
}
|
2552
|
+
|
2121
2553
|
message.region = reader.string();
|
2122
|
-
|
2554
|
+
continue;
|
2123
2555
|
case 5:
|
2556
|
+
if (tag != 42) {
|
2557
|
+
break;
|
2558
|
+
}
|
2559
|
+
|
2124
2560
|
message.nodeId = reader.string();
|
2125
|
-
|
2561
|
+
continue;
|
2126
2562
|
case 6:
|
2563
|
+
if (tag != 50) {
|
2564
|
+
break;
|
2565
|
+
}
|
2566
|
+
|
2127
2567
|
message.debugInfo = reader.string();
|
2128
|
-
|
2129
|
-
|
2130
|
-
|
2131
|
-
|
2568
|
+
continue;
|
2569
|
+
}
|
2570
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2571
|
+
break;
|
2132
2572
|
}
|
2573
|
+
reader.skipType(tag & 7);
|
2133
2574
|
}
|
2134
2575
|
return message;
|
2135
2576
|
},
|
@@ -2223,46 +2664,87 @@ export const ClientInfo = {
|
|
2223
2664
|
},
|
2224
2665
|
|
2225
2666
|
decode(input: _m0.Reader | Uint8Array, length?: number): ClientInfo {
|
2226
|
-
const reader = input instanceof _m0.Reader ? input :
|
2667
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2227
2668
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2228
2669
|
const message = createBaseClientInfo();
|
2229
2670
|
while (reader.pos < end) {
|
2230
2671
|
const tag = reader.uint32();
|
2231
2672
|
switch (tag >>> 3) {
|
2232
2673
|
case 1:
|
2674
|
+
if (tag != 8) {
|
2675
|
+
break;
|
2676
|
+
}
|
2677
|
+
|
2233
2678
|
message.sdk = reader.int32() as any;
|
2234
|
-
|
2679
|
+
continue;
|
2235
2680
|
case 2:
|
2681
|
+
if (tag != 18) {
|
2682
|
+
break;
|
2683
|
+
}
|
2684
|
+
|
2236
2685
|
message.version = reader.string();
|
2237
|
-
|
2686
|
+
continue;
|
2238
2687
|
case 3:
|
2688
|
+
if (tag != 24) {
|
2689
|
+
break;
|
2690
|
+
}
|
2691
|
+
|
2239
2692
|
message.protocol = reader.int32();
|
2240
|
-
|
2693
|
+
continue;
|
2241
2694
|
case 4:
|
2695
|
+
if (tag != 34) {
|
2696
|
+
break;
|
2697
|
+
}
|
2698
|
+
|
2242
2699
|
message.os = reader.string();
|
2243
|
-
|
2700
|
+
continue;
|
2244
2701
|
case 5:
|
2702
|
+
if (tag != 42) {
|
2703
|
+
break;
|
2704
|
+
}
|
2705
|
+
|
2245
2706
|
message.osVersion = reader.string();
|
2246
|
-
|
2707
|
+
continue;
|
2247
2708
|
case 6:
|
2709
|
+
if (tag != 50) {
|
2710
|
+
break;
|
2711
|
+
}
|
2712
|
+
|
2248
2713
|
message.deviceModel = reader.string();
|
2249
|
-
|
2714
|
+
continue;
|
2250
2715
|
case 7:
|
2716
|
+
if (tag != 58) {
|
2717
|
+
break;
|
2718
|
+
}
|
2719
|
+
|
2251
2720
|
message.browser = reader.string();
|
2252
|
-
|
2721
|
+
continue;
|
2253
2722
|
case 8:
|
2723
|
+
if (tag != 66) {
|
2724
|
+
break;
|
2725
|
+
}
|
2726
|
+
|
2254
2727
|
message.browserVersion = reader.string();
|
2255
|
-
|
2728
|
+
continue;
|
2256
2729
|
case 9:
|
2730
|
+
if (tag != 74) {
|
2731
|
+
break;
|
2732
|
+
}
|
2733
|
+
|
2257
2734
|
message.address = reader.string();
|
2258
|
-
|
2735
|
+
continue;
|
2259
2736
|
case 10:
|
2737
|
+
if (tag != 82) {
|
2738
|
+
break;
|
2739
|
+
}
|
2740
|
+
|
2260
2741
|
message.network = reader.string();
|
2261
|
-
|
2262
|
-
|
2263
|
-
|
2264
|
-
|
2742
|
+
continue;
|
2743
|
+
}
|
2744
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2745
|
+
break;
|
2265
2746
|
}
|
2747
|
+
reader.skipType(tag & 7);
|
2266
2748
|
}
|
2267
2749
|
return message;
|
2268
2750
|
},
|
@@ -2342,31 +2824,52 @@ export const ClientConfiguration = {
|
|
2342
2824
|
},
|
2343
2825
|
|
2344
2826
|
decode(input: _m0.Reader | Uint8Array, length?: number): ClientConfiguration {
|
2345
|
-
const reader = input instanceof _m0.Reader ? input :
|
2827
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2346
2828
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2347
2829
|
const message = createBaseClientConfiguration();
|
2348
2830
|
while (reader.pos < end) {
|
2349
2831
|
const tag = reader.uint32();
|
2350
2832
|
switch (tag >>> 3) {
|
2351
2833
|
case 1:
|
2834
|
+
if (tag != 10) {
|
2835
|
+
break;
|
2836
|
+
}
|
2837
|
+
|
2352
2838
|
message.video = VideoConfiguration.decode(reader, reader.uint32());
|
2353
|
-
|
2839
|
+
continue;
|
2354
2840
|
case 2:
|
2841
|
+
if (tag != 18) {
|
2842
|
+
break;
|
2843
|
+
}
|
2844
|
+
|
2355
2845
|
message.screen = VideoConfiguration.decode(reader, reader.uint32());
|
2356
|
-
|
2846
|
+
continue;
|
2357
2847
|
case 3:
|
2848
|
+
if (tag != 24) {
|
2849
|
+
break;
|
2850
|
+
}
|
2851
|
+
|
2358
2852
|
message.resumeConnection = reader.int32() as any;
|
2359
|
-
|
2853
|
+
continue;
|
2360
2854
|
case 4:
|
2855
|
+
if (tag != 34) {
|
2856
|
+
break;
|
2857
|
+
}
|
2858
|
+
|
2361
2859
|
message.disabledCodecs = DisabledCodecs.decode(reader, reader.uint32());
|
2362
|
-
|
2860
|
+
continue;
|
2363
2861
|
case 5:
|
2862
|
+
if (tag != 40) {
|
2863
|
+
break;
|
2864
|
+
}
|
2865
|
+
|
2364
2866
|
message.forceRelay = reader.int32() as any;
|
2365
|
-
|
2366
|
-
|
2367
|
-
|
2368
|
-
|
2867
|
+
continue;
|
2868
|
+
}
|
2869
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2870
|
+
break;
|
2369
2871
|
}
|
2872
|
+
reader.skipType(tag & 7);
|
2370
2873
|
}
|
2371
2874
|
return message;
|
2372
2875
|
},
|
@@ -2428,19 +2931,24 @@ export const VideoConfiguration = {
|
|
2428
2931
|
},
|
2429
2932
|
|
2430
2933
|
decode(input: _m0.Reader | Uint8Array, length?: number): VideoConfiguration {
|
2431
|
-
const reader = input instanceof _m0.Reader ? input :
|
2934
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2432
2935
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2433
2936
|
const message = createBaseVideoConfiguration();
|
2434
2937
|
while (reader.pos < end) {
|
2435
2938
|
const tag = reader.uint32();
|
2436
2939
|
switch (tag >>> 3) {
|
2437
2940
|
case 1:
|
2941
|
+
if (tag != 8) {
|
2942
|
+
break;
|
2943
|
+
}
|
2944
|
+
|
2438
2945
|
message.hardwareEncoder = reader.int32() as any;
|
2439
|
-
|
2440
|
-
default:
|
2441
|
-
reader.skipType(tag & 7);
|
2442
|
-
break;
|
2946
|
+
continue;
|
2443
2947
|
}
|
2948
|
+
if ((tag & 7) == 4 || tag == 0) {
|
2949
|
+
break;
|
2950
|
+
}
|
2951
|
+
reader.skipType(tag & 7);
|
2444
2952
|
}
|
2445
2953
|
return message;
|
2446
2954
|
},
|
@@ -2479,19 +2987,24 @@ export const DisabledCodecs = {
|
|
2479
2987
|
},
|
2480
2988
|
|
2481
2989
|
decode(input: _m0.Reader | Uint8Array, length?: number): DisabledCodecs {
|
2482
|
-
const reader = input instanceof _m0.Reader ? input :
|
2990
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2483
2991
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2484
2992
|
const message = createBaseDisabledCodecs();
|
2485
2993
|
while (reader.pos < end) {
|
2486
2994
|
const tag = reader.uint32();
|
2487
2995
|
switch (tag >>> 3) {
|
2488
2996
|
case 1:
|
2997
|
+
if (tag != 10) {
|
2998
|
+
break;
|
2999
|
+
}
|
3000
|
+
|
2489
3001
|
message.codecs.push(Codec.decode(reader, reader.uint32()));
|
2490
|
-
|
2491
|
-
|
2492
|
-
|
2493
|
-
|
3002
|
+
continue;
|
3003
|
+
}
|
3004
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3005
|
+
break;
|
2494
3006
|
}
|
3007
|
+
reader.skipType(tag & 7);
|
2495
3008
|
}
|
2496
3009
|
return message;
|
2497
3010
|
},
|
@@ -2696,142 +3209,307 @@ export const RTPStats = {
|
|
2696
3209
|
},
|
2697
3210
|
|
2698
3211
|
decode(input: _m0.Reader | Uint8Array, length?: number): RTPStats {
|
2699
|
-
const reader = input instanceof _m0.Reader ? input :
|
3212
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
2700
3213
|
let end = length === undefined ? reader.len : reader.pos + length;
|
2701
3214
|
const message = createBaseRTPStats();
|
2702
3215
|
while (reader.pos < end) {
|
2703
3216
|
const tag = reader.uint32();
|
2704
3217
|
switch (tag >>> 3) {
|
2705
3218
|
case 1:
|
3219
|
+
if (tag != 10) {
|
3220
|
+
break;
|
3221
|
+
}
|
3222
|
+
|
2706
3223
|
message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
2707
|
-
|
3224
|
+
continue;
|
2708
3225
|
case 2:
|
3226
|
+
if (tag != 18) {
|
3227
|
+
break;
|
3228
|
+
}
|
3229
|
+
|
2709
3230
|
message.endTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
2710
|
-
|
3231
|
+
continue;
|
2711
3232
|
case 3:
|
3233
|
+
if (tag != 25) {
|
3234
|
+
break;
|
3235
|
+
}
|
3236
|
+
|
2712
3237
|
message.duration = reader.double();
|
2713
|
-
|
3238
|
+
continue;
|
2714
3239
|
case 4:
|
3240
|
+
if (tag != 32) {
|
3241
|
+
break;
|
3242
|
+
}
|
3243
|
+
|
2715
3244
|
message.packets = reader.uint32();
|
2716
|
-
|
3245
|
+
continue;
|
2717
3246
|
case 5:
|
3247
|
+
if (tag != 41) {
|
3248
|
+
break;
|
3249
|
+
}
|
3250
|
+
|
2718
3251
|
message.packetRate = reader.double();
|
2719
|
-
|
3252
|
+
continue;
|
2720
3253
|
case 6:
|
3254
|
+
if (tag != 48) {
|
3255
|
+
break;
|
3256
|
+
}
|
3257
|
+
|
2721
3258
|
message.bytes = longToNumber(reader.uint64() as Long);
|
2722
|
-
|
3259
|
+
continue;
|
2723
3260
|
case 39:
|
3261
|
+
if (tag != 312) {
|
3262
|
+
break;
|
3263
|
+
}
|
3264
|
+
|
2724
3265
|
message.headerBytes = longToNumber(reader.uint64() as Long);
|
2725
|
-
|
3266
|
+
continue;
|
2726
3267
|
case 7:
|
3268
|
+
if (tag != 57) {
|
3269
|
+
break;
|
3270
|
+
}
|
3271
|
+
|
2727
3272
|
message.bitrate = reader.double();
|
2728
|
-
|
3273
|
+
continue;
|
2729
3274
|
case 8:
|
3275
|
+
if (tag != 64) {
|
3276
|
+
break;
|
3277
|
+
}
|
3278
|
+
|
2730
3279
|
message.packetsLost = reader.uint32();
|
2731
|
-
|
3280
|
+
continue;
|
2732
3281
|
case 9:
|
3282
|
+
if (tag != 73) {
|
3283
|
+
break;
|
3284
|
+
}
|
3285
|
+
|
2733
3286
|
message.packetLossRate = reader.double();
|
2734
|
-
|
3287
|
+
continue;
|
2735
3288
|
case 10:
|
3289
|
+
if (tag != 85) {
|
3290
|
+
break;
|
3291
|
+
}
|
3292
|
+
|
2736
3293
|
message.packetLossPercentage = reader.float();
|
2737
|
-
|
3294
|
+
continue;
|
2738
3295
|
case 11:
|
3296
|
+
if (tag != 88) {
|
3297
|
+
break;
|
3298
|
+
}
|
3299
|
+
|
2739
3300
|
message.packetsDuplicate = reader.uint32();
|
2740
|
-
|
3301
|
+
continue;
|
2741
3302
|
case 12:
|
3303
|
+
if (tag != 97) {
|
3304
|
+
break;
|
3305
|
+
}
|
3306
|
+
|
2742
3307
|
message.packetDuplicateRate = reader.double();
|
2743
|
-
|
3308
|
+
continue;
|
2744
3309
|
case 13:
|
3310
|
+
if (tag != 104) {
|
3311
|
+
break;
|
3312
|
+
}
|
3313
|
+
|
2745
3314
|
message.bytesDuplicate = longToNumber(reader.uint64() as Long);
|
2746
|
-
|
3315
|
+
continue;
|
2747
3316
|
case 40:
|
3317
|
+
if (tag != 320) {
|
3318
|
+
break;
|
3319
|
+
}
|
3320
|
+
|
2748
3321
|
message.headerBytesDuplicate = longToNumber(reader.uint64() as Long);
|
2749
|
-
|
3322
|
+
continue;
|
2750
3323
|
case 14:
|
3324
|
+
if (tag != 113) {
|
3325
|
+
break;
|
3326
|
+
}
|
3327
|
+
|
2751
3328
|
message.bitrateDuplicate = reader.double();
|
2752
|
-
|
3329
|
+
continue;
|
2753
3330
|
case 15:
|
3331
|
+
if (tag != 120) {
|
3332
|
+
break;
|
3333
|
+
}
|
3334
|
+
|
2754
3335
|
message.packetsPadding = reader.uint32();
|
2755
|
-
|
3336
|
+
continue;
|
2756
3337
|
case 16:
|
3338
|
+
if (tag != 129) {
|
3339
|
+
break;
|
3340
|
+
}
|
3341
|
+
|
2757
3342
|
message.packetPaddingRate = reader.double();
|
2758
|
-
|
3343
|
+
continue;
|
2759
3344
|
case 17:
|
3345
|
+
if (tag != 136) {
|
3346
|
+
break;
|
3347
|
+
}
|
3348
|
+
|
2760
3349
|
message.bytesPadding = longToNumber(reader.uint64() as Long);
|
2761
|
-
|
3350
|
+
continue;
|
2762
3351
|
case 41:
|
3352
|
+
if (tag != 328) {
|
3353
|
+
break;
|
3354
|
+
}
|
3355
|
+
|
2763
3356
|
message.headerBytesPadding = longToNumber(reader.uint64() as Long);
|
2764
|
-
|
3357
|
+
continue;
|
2765
3358
|
case 18:
|
3359
|
+
if (tag != 145) {
|
3360
|
+
break;
|
3361
|
+
}
|
3362
|
+
|
2766
3363
|
message.bitratePadding = reader.double();
|
2767
|
-
|
3364
|
+
continue;
|
2768
3365
|
case 19:
|
3366
|
+
if (tag != 152) {
|
3367
|
+
break;
|
3368
|
+
}
|
3369
|
+
|
2769
3370
|
message.packetsOutOfOrder = reader.uint32();
|
2770
|
-
|
3371
|
+
continue;
|
2771
3372
|
case 20:
|
3373
|
+
if (tag != 160) {
|
3374
|
+
break;
|
3375
|
+
}
|
3376
|
+
|
2772
3377
|
message.frames = reader.uint32();
|
2773
|
-
|
3378
|
+
continue;
|
2774
3379
|
case 21:
|
3380
|
+
if (tag != 169) {
|
3381
|
+
break;
|
3382
|
+
}
|
3383
|
+
|
2775
3384
|
message.frameRate = reader.double();
|
2776
|
-
|
3385
|
+
continue;
|
2777
3386
|
case 22:
|
3387
|
+
if (tag != 177) {
|
3388
|
+
break;
|
3389
|
+
}
|
3390
|
+
|
2778
3391
|
message.jitterCurrent = reader.double();
|
2779
|
-
|
3392
|
+
continue;
|
2780
3393
|
case 23:
|
3394
|
+
if (tag != 185) {
|
3395
|
+
break;
|
3396
|
+
}
|
3397
|
+
|
2781
3398
|
message.jitterMax = reader.double();
|
2782
|
-
|
3399
|
+
continue;
|
2783
3400
|
case 24:
|
3401
|
+
if (tag != 194) {
|
3402
|
+
break;
|
3403
|
+
}
|
3404
|
+
|
2784
3405
|
const entry24 = RTPStats_GapHistogramEntry.decode(reader, reader.uint32());
|
2785
3406
|
if (entry24.value !== undefined) {
|
2786
3407
|
message.gapHistogram[entry24.key] = entry24.value;
|
2787
3408
|
}
|
2788
|
-
|
3409
|
+
continue;
|
2789
3410
|
case 25:
|
3411
|
+
if (tag != 200) {
|
3412
|
+
break;
|
3413
|
+
}
|
3414
|
+
|
2790
3415
|
message.nacks = reader.uint32();
|
2791
|
-
|
3416
|
+
continue;
|
2792
3417
|
case 37:
|
3418
|
+
if (tag != 296) {
|
3419
|
+
break;
|
3420
|
+
}
|
3421
|
+
|
2793
3422
|
message.nackAcks = reader.uint32();
|
2794
|
-
|
3423
|
+
continue;
|
2795
3424
|
case 26:
|
3425
|
+
if (tag != 208) {
|
3426
|
+
break;
|
3427
|
+
}
|
3428
|
+
|
2796
3429
|
message.nackMisses = reader.uint32();
|
2797
|
-
|
3430
|
+
continue;
|
2798
3431
|
case 38:
|
3432
|
+
if (tag != 304) {
|
3433
|
+
break;
|
3434
|
+
}
|
3435
|
+
|
2799
3436
|
message.nackRepeated = reader.uint32();
|
2800
|
-
|
3437
|
+
continue;
|
2801
3438
|
case 27:
|
3439
|
+
if (tag != 216) {
|
3440
|
+
break;
|
3441
|
+
}
|
3442
|
+
|
2802
3443
|
message.plis = reader.uint32();
|
2803
|
-
|
3444
|
+
continue;
|
2804
3445
|
case 28:
|
3446
|
+
if (tag != 226) {
|
3447
|
+
break;
|
3448
|
+
}
|
3449
|
+
|
2805
3450
|
message.lastPli = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
2806
|
-
|
3451
|
+
continue;
|
2807
3452
|
case 29:
|
3453
|
+
if (tag != 232) {
|
3454
|
+
break;
|
3455
|
+
}
|
3456
|
+
|
2808
3457
|
message.firs = reader.uint32();
|
2809
|
-
|
3458
|
+
continue;
|
2810
3459
|
case 30:
|
3460
|
+
if (tag != 242) {
|
3461
|
+
break;
|
3462
|
+
}
|
3463
|
+
|
2811
3464
|
message.lastFir = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
2812
|
-
|
3465
|
+
continue;
|
2813
3466
|
case 31:
|
3467
|
+
if (tag != 248) {
|
3468
|
+
break;
|
3469
|
+
}
|
3470
|
+
|
2814
3471
|
message.rttCurrent = reader.uint32();
|
2815
|
-
|
3472
|
+
continue;
|
2816
3473
|
case 32:
|
3474
|
+
if (tag != 256) {
|
3475
|
+
break;
|
3476
|
+
}
|
3477
|
+
|
2817
3478
|
message.rttMax = reader.uint32();
|
2818
|
-
|
3479
|
+
continue;
|
2819
3480
|
case 33:
|
3481
|
+
if (tag != 264) {
|
3482
|
+
break;
|
3483
|
+
}
|
3484
|
+
|
2820
3485
|
message.keyFrames = reader.uint32();
|
2821
|
-
|
3486
|
+
continue;
|
2822
3487
|
case 34:
|
3488
|
+
if (tag != 274) {
|
3489
|
+
break;
|
3490
|
+
}
|
3491
|
+
|
2823
3492
|
message.lastKeyFrame = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
2824
|
-
|
3493
|
+
continue;
|
2825
3494
|
case 35:
|
3495
|
+
if (tag != 280) {
|
3496
|
+
break;
|
3497
|
+
}
|
3498
|
+
|
2826
3499
|
message.layerLockPlis = reader.uint32();
|
2827
|
-
|
3500
|
+
continue;
|
2828
3501
|
case 36:
|
3502
|
+
if (tag != 290) {
|
3503
|
+
break;
|
3504
|
+
}
|
3505
|
+
|
2829
3506
|
message.lastLayerLockPli = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
2830
|
-
|
2831
|
-
default:
|
2832
|
-
reader.skipType(tag & 7);
|
2833
|
-
break;
|
3507
|
+
continue;
|
2834
3508
|
}
|
3509
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3510
|
+
break;
|
3511
|
+
}
|
3512
|
+
reader.skipType(tag & 7);
|
2835
3513
|
}
|
2836
3514
|
return message;
|
2837
3515
|
},
|
@@ -3013,22 +3691,31 @@ export const RTPStats_GapHistogramEntry = {
|
|
3013
3691
|
},
|
3014
3692
|
|
3015
3693
|
decode(input: _m0.Reader | Uint8Array, length?: number): RTPStats_GapHistogramEntry {
|
3016
|
-
const reader = input instanceof _m0.Reader ? input :
|
3694
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
3017
3695
|
let end = length === undefined ? reader.len : reader.pos + length;
|
3018
3696
|
const message = createBaseRTPStats_GapHistogramEntry();
|
3019
3697
|
while (reader.pos < end) {
|
3020
3698
|
const tag = reader.uint32();
|
3021
3699
|
switch (tag >>> 3) {
|
3022
3700
|
case 1:
|
3701
|
+
if (tag != 8) {
|
3702
|
+
break;
|
3703
|
+
}
|
3704
|
+
|
3023
3705
|
message.key = reader.int32();
|
3024
|
-
|
3706
|
+
continue;
|
3025
3707
|
case 2:
|
3708
|
+
if (tag != 16) {
|
3709
|
+
break;
|
3710
|
+
}
|
3711
|
+
|
3026
3712
|
message.value = reader.uint32();
|
3027
|
-
|
3028
|
-
|
3029
|
-
|
3030
|
-
|
3713
|
+
continue;
|
3714
|
+
}
|
3715
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3716
|
+
break;
|
3031
3717
|
}
|
3718
|
+
reader.skipType(tag & 7);
|
3032
3719
|
}
|
3033
3720
|
return message;
|
3034
3721
|
},
|
@@ -3072,22 +3759,31 @@ export const TimedVersion = {
|
|
3072
3759
|
},
|
3073
3760
|
|
3074
3761
|
decode(input: _m0.Reader | Uint8Array, length?: number): TimedVersion {
|
3075
|
-
const reader = input instanceof _m0.Reader ? input :
|
3762
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
3076
3763
|
let end = length === undefined ? reader.len : reader.pos + length;
|
3077
3764
|
const message = createBaseTimedVersion();
|
3078
3765
|
while (reader.pos < end) {
|
3079
3766
|
const tag = reader.uint32();
|
3080
3767
|
switch (tag >>> 3) {
|
3081
3768
|
case 1:
|
3769
|
+
if (tag != 8) {
|
3770
|
+
break;
|
3771
|
+
}
|
3772
|
+
|
3082
3773
|
message.unixMicro = longToNumber(reader.int64() as Long);
|
3083
|
-
|
3774
|
+
continue;
|
3084
3775
|
case 2:
|
3776
|
+
if (tag != 16) {
|
3777
|
+
break;
|
3778
|
+
}
|
3779
|
+
|
3085
3780
|
message.ticks = reader.int32();
|
3086
|
-
|
3087
|
-
|
3088
|
-
|
3089
|
-
|
3781
|
+
continue;
|
3782
|
+
}
|
3783
|
+
if ((tag & 7) == 4 || tag == 0) {
|
3784
|
+
break;
|
3090
3785
|
}
|
3786
|
+
reader.skipType(tag & 7);
|
3091
3787
|
}
|
3092
3788
|
return message;
|
3093
3789
|
},
|