livekit-client 1.12.0 → 1.12.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +19 -1
- package/dist/livekit-client.e2ee.worker.js +1 -1
- package/dist/livekit-client.e2ee.worker.js.map +1 -1
- package/dist/livekit-client.e2ee.worker.mjs +442 -334
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +12303 -14499
- 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 +2 -2
- package/dist/src/api/SignalClient.d.ts.map +1 -1
- package/dist/src/connectionHelper/ConnectionCheck.d.ts +3 -2
- package/dist/src/connectionHelper/ConnectionCheck.d.ts.map +1 -1
- package/dist/src/connectionHelper/checks/Checker.d.ts +3 -2
- package/dist/src/connectionHelper/checks/Checker.d.ts.map +1 -1
- package/dist/src/connectionHelper/checks/webrtc.d.ts.map +1 -1
- package/dist/src/connectionHelper/checks/websocket.d.ts.map +1 -1
- package/dist/src/e2ee/E2eeManager.d.ts +4 -2
- package/dist/src/e2ee/E2eeManager.d.ts.map +1 -1
- package/dist/src/e2ee/KeyProvider.d.ts +4 -2
- package/dist/src/e2ee/KeyProvider.d.ts.map +1 -1
- package/dist/src/e2ee/constants.d.ts +1 -0
- package/dist/src/e2ee/constants.d.ts.map +1 -1
- package/dist/src/e2ee/types.d.ts +1 -0
- package/dist/src/e2ee/types.d.ts.map +1 -1
- package/dist/src/e2ee/worker/FrameCryptor.d.ts +4 -3
- package/dist/src/e2ee/worker/FrameCryptor.d.ts.map +1 -1
- package/dist/src/e2ee/worker/ParticipantKeyHandler.d.ts +21 -2
- package/dist/src/e2ee/worker/ParticipantKeyHandler.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/proto/livekit_models_pb.d.ts +1264 -0
- package/dist/src/proto/livekit_models_pb.d.ts.map +1 -0
- package/dist/src/proto/livekit_rtc_pb.d.ts +1373 -0
- package/dist/src/proto/livekit_rtc_pb.d.ts.map +1 -0
- package/dist/src/room/PCTransport.d.ts +2 -1
- package/dist/src/room/PCTransport.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts +9 -5
- package/dist/src/room/RTCEngine.d.ts.map +1 -1
- package/dist/src/room/RegionUrlProvider.d.ts +4 -1
- package/dist/src/room/RegionUrlProvider.d.ts.map +1 -1
- package/dist/src/room/Room.d.ts +15 -11
- package/dist/src/room/Room.d.ts.map +1 -1
- package/dist/src/room/participant/LocalParticipant.d.ts +2 -2
- package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
- package/dist/src/room/participant/Participant.d.ts +5 -3
- package/dist/src/room/participant/Participant.d.ts.map +1 -1
- package/dist/src/room/participant/ParticipantTrackPermission.d.ts +1 -1
- package/dist/src/room/participant/ParticipantTrackPermission.d.ts.map +1 -1
- package/dist/src/room/participant/RemoteParticipant.d.ts +8 -7
- package/dist/src/room/participant/RemoteParticipant.d.ts.map +1 -1
- package/dist/src/room/timers.d.ts +5 -4
- package/dist/src/room/timers.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrack.d.ts +3 -0
- 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 +2 -2
- 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/Track.d.ts +6 -4
- package/dist/src/room/track/Track.d.ts.map +1 -1
- package/dist/src/room/track/TrackPublication.d.ts +7 -5
- package/dist/src/room/track/TrackPublication.d.ts.map +1 -1
- package/dist/src/room/track/create.d.ts.map +1 -1
- package/dist/src/room/track/options.d.ts +7 -0
- package/dist/src/room/track/options.d.ts.map +1 -1
- package/dist/src/room/track/utils.d.ts +5 -1
- package/dist/src/room/track/utils.d.ts.map +1 -1
- package/dist/src/room/utils.d.ts +3 -1
- package/dist/src/room/utils.d.ts.map +1 -1
- package/dist/src/test/mocks.d.ts +4 -3
- package/dist/src/test/mocks.d.ts.map +1 -1
- package/dist/src/utils/browserParser.d.ts +2 -0
- package/dist/src/utils/browserParser.d.ts.map +1 -1
- package/dist/ts4.2/src/api/SignalClient.d.ts +2 -2
- package/dist/ts4.2/src/connectionHelper/ConnectionCheck.d.ts +3 -2
- package/dist/ts4.2/src/connectionHelper/checks/Checker.d.ts +3 -2
- package/dist/ts4.2/src/e2ee/E2eeManager.d.ts +4 -2
- package/dist/ts4.2/src/e2ee/KeyProvider.d.ts +4 -2
- package/dist/ts4.2/src/e2ee/constants.d.ts +1 -0
- package/dist/ts4.2/src/e2ee/types.d.ts +1 -0
- package/dist/ts4.2/src/e2ee/worker/FrameCryptor.d.ts +4 -3
- package/dist/ts4.2/src/e2ee/worker/ParticipantKeyHandler.d.ts +21 -2
- package/dist/ts4.2/src/index.d.ts +1 -1
- package/dist/ts4.2/src/proto/livekit_models_pb.d.ts +1264 -0
- package/dist/ts4.2/src/proto/livekit_rtc_pb.d.ts +1373 -0
- package/dist/ts4.2/src/room/PCTransport.d.ts +2 -1
- package/dist/ts4.2/src/room/RTCEngine.d.ts +9 -5
- package/dist/ts4.2/src/room/RegionUrlProvider.d.ts +4 -1
- package/dist/ts4.2/src/room/Room.d.ts +15 -11
- package/dist/ts4.2/src/room/participant/LocalParticipant.d.ts +2 -2
- package/dist/ts4.2/src/room/participant/Participant.d.ts +5 -3
- package/dist/ts4.2/src/room/participant/ParticipantTrackPermission.d.ts +1 -1
- package/dist/ts4.2/src/room/participant/RemoteParticipant.d.ts +8 -7
- package/dist/ts4.2/src/room/timers.d.ts +5 -4
- package/dist/ts4.2/src/room/track/LocalTrack.d.ts +3 -0
- package/dist/ts4.2/src/room/track/LocalTrackPublication.d.ts +1 -1
- package/dist/ts4.2/src/room/track/LocalVideoTrack.d.ts +2 -2
- package/dist/ts4.2/src/room/track/RemoteTrackPublication.d.ts +1 -1
- package/dist/ts4.2/src/room/track/Track.d.ts +6 -4
- package/dist/ts4.2/src/room/track/TrackPublication.d.ts +7 -5
- package/dist/ts4.2/src/room/track/options.d.ts +7 -0
- package/dist/ts4.2/src/room/track/utils.d.ts +5 -1
- package/dist/ts4.2/src/room/utils.d.ts +3 -1
- package/dist/ts4.2/src/test/mocks.d.ts +4 -3
- package/dist/ts4.2/src/utils/browserParser.d.ts +2 -0
- package/package.json +10 -10
- package/src/api/SignalClient.ts +104 -101
- package/src/connectionHelper/ConnectionCheck.ts +3 -2
- package/src/connectionHelper/checks/Checker.ts +3 -3
- package/src/connectionHelper/checks/webrtc.ts +66 -2
- package/src/connectionHelper/checks/websocket.ts +4 -0
- package/src/e2ee/E2eeManager.ts +4 -3
- package/src/e2ee/KeyProvider.ts +3 -2
- package/src/e2ee/constants.ts +4 -0
- package/src/e2ee/types.ts +1 -0
- package/src/e2ee/worker/FrameCryptor.test.ts +1 -3
- package/src/e2ee/worker/FrameCryptor.ts +14 -16
- package/src/e2ee/worker/ParticipantKeyHandler.ts +48 -2
- package/src/e2ee/worker/e2ee.worker.ts +12 -6
- package/src/index.ts +1 -1
- package/src/proto/livekit_models_pb.ts +2096 -0
- package/src/proto/livekit_rtc_pb.ts +2332 -0
- package/src/room/PCTransport.ts +1 -1
- package/src/room/RTCEngine.ts +24 -18
- package/src/room/RegionUrlProvider.ts +11 -2
- package/src/room/Room.test.ts +1 -0
- package/src/room/Room.ts +175 -86
- package/src/room/participant/LocalParticipant.ts +43 -59
- package/src/room/participant/Participant.ts +6 -4
- package/src/room/participant/ParticipantTrackPermission.ts +3 -3
- package/src/room/participant/RemoteParticipant.ts +24 -21
- package/src/room/participant/publishUtils.test.ts +1 -0
- package/src/room/track/LocalTrack.ts +24 -9
- package/src/room/track/LocalTrackPublication.ts +1 -1
- package/src/room/track/LocalVideoTrack.test.ts +2 -1
- package/src/room/track/LocalVideoTrack.ts +22 -22
- package/src/room/track/RemoteTrackPublication.ts +12 -7
- package/src/room/track/RemoteVideoTrack.test.ts +5 -4
- package/src/room/track/Track.ts +9 -6
- package/src/room/track/TrackPublication.ts +7 -5
- package/src/room/track/create.ts +18 -17
- package/src/room/track/facingMode.test.ts +1 -0
- package/src/room/track/options.ts +6 -0
- package/src/room/track/utils.test.ts +1 -0
- package/src/room/track/utils.ts +44 -2
- package/src/room/utils.test.ts +16 -0
- package/src/room/utils.ts +20 -4
- package/src/test/mocks.ts +7 -5
- package/src/utils/AsyncQueue.test.ts +1 -0
- package/src/utils/browserParser.test.ts +33 -3
- package/src/utils/browserParser.ts +5 -0
- package/dist/src/proto/google/protobuf/timestamp.d.ts +0 -146
- package/dist/src/proto/google/protobuf/timestamp.d.ts.map +0 -1
- package/dist/src/proto/livekit_models.d.ts +0 -2399
- package/dist/src/proto/livekit_models.d.ts.map +0 -1
- package/dist/src/proto/livekit_rtc.d.ts +0 -14352
- package/dist/src/proto/livekit_rtc.d.ts.map +0 -1
- package/dist/ts4.2/src/proto/google/protobuf/timestamp.d.ts +0 -150
- package/dist/ts4.2/src/proto/livekit_models.d.ts +0 -2659
- package/dist/ts4.2/src/proto/livekit_rtc.d.ts +0 -15764
- package/src/proto/google/protobuf/timestamp.ts +0 -230
- package/src/proto/livekit_models.ts +0 -4006
- package/src/proto/livekit_rtc.ts +0 -4672
@@ -0,0 +1,2096 @@
|
|
1
|
+
// @generated by protoc-gen-es v1.3.0 with parameter "target=ts"
|
2
|
+
// @generated from file livekit_models.proto (package livekit, syntax proto3)
|
3
|
+
/* eslint-disable */
|
4
|
+
// @ts-nocheck
|
5
|
+
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
7
|
+
import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
|
8
|
+
|
9
|
+
/**
|
10
|
+
* @generated from enum livekit.AudioCodec
|
11
|
+
*/
|
12
|
+
export enum AudioCodec {
|
13
|
+
/**
|
14
|
+
* @generated from enum value: DEFAULT_AC = 0;
|
15
|
+
*/
|
16
|
+
DEFAULT_AC = 0,
|
17
|
+
|
18
|
+
/**
|
19
|
+
* @generated from enum value: OPUS = 1;
|
20
|
+
*/
|
21
|
+
OPUS = 1,
|
22
|
+
|
23
|
+
/**
|
24
|
+
* @generated from enum value: AAC = 2;
|
25
|
+
*/
|
26
|
+
AAC = 2,
|
27
|
+
}
|
28
|
+
// Retrieve enum metadata with: proto3.getEnumType(AudioCodec)
|
29
|
+
proto3.util.setEnumType(AudioCodec, "livekit.AudioCodec", [
|
30
|
+
{ no: 0, name: "DEFAULT_AC" },
|
31
|
+
{ no: 1, name: "OPUS" },
|
32
|
+
{ no: 2, name: "AAC" },
|
33
|
+
]);
|
34
|
+
|
35
|
+
/**
|
36
|
+
* @generated from enum livekit.VideoCodec
|
37
|
+
*/
|
38
|
+
export enum VideoCodec {
|
39
|
+
/**
|
40
|
+
* @generated from enum value: DEFAULT_VC = 0;
|
41
|
+
*/
|
42
|
+
DEFAULT_VC = 0,
|
43
|
+
|
44
|
+
/**
|
45
|
+
* @generated from enum value: H264_BASELINE = 1;
|
46
|
+
*/
|
47
|
+
H264_BASELINE = 1,
|
48
|
+
|
49
|
+
/**
|
50
|
+
* @generated from enum value: H264_MAIN = 2;
|
51
|
+
*/
|
52
|
+
H264_MAIN = 2,
|
53
|
+
|
54
|
+
/**
|
55
|
+
* @generated from enum value: H264_HIGH = 3;
|
56
|
+
*/
|
57
|
+
H264_HIGH = 3,
|
58
|
+
|
59
|
+
/**
|
60
|
+
* @generated from enum value: VP8 = 4;
|
61
|
+
*/
|
62
|
+
VP8 = 4,
|
63
|
+
}
|
64
|
+
// Retrieve enum metadata with: proto3.getEnumType(VideoCodec)
|
65
|
+
proto3.util.setEnumType(VideoCodec, "livekit.VideoCodec", [
|
66
|
+
{ no: 0, name: "DEFAULT_VC" },
|
67
|
+
{ no: 1, name: "H264_BASELINE" },
|
68
|
+
{ no: 2, name: "H264_MAIN" },
|
69
|
+
{ no: 3, name: "H264_HIGH" },
|
70
|
+
{ no: 4, name: "VP8" },
|
71
|
+
]);
|
72
|
+
|
73
|
+
/**
|
74
|
+
* @generated from enum livekit.TrackType
|
75
|
+
*/
|
76
|
+
export enum TrackType {
|
77
|
+
/**
|
78
|
+
* @generated from enum value: AUDIO = 0;
|
79
|
+
*/
|
80
|
+
AUDIO = 0,
|
81
|
+
|
82
|
+
/**
|
83
|
+
* @generated from enum value: VIDEO = 1;
|
84
|
+
*/
|
85
|
+
VIDEO = 1,
|
86
|
+
|
87
|
+
/**
|
88
|
+
* @generated from enum value: DATA = 2;
|
89
|
+
*/
|
90
|
+
DATA = 2,
|
91
|
+
}
|
92
|
+
// Retrieve enum metadata with: proto3.getEnumType(TrackType)
|
93
|
+
proto3.util.setEnumType(TrackType, "livekit.TrackType", [
|
94
|
+
{ no: 0, name: "AUDIO" },
|
95
|
+
{ no: 1, name: "VIDEO" },
|
96
|
+
{ no: 2, name: "DATA" },
|
97
|
+
]);
|
98
|
+
|
99
|
+
/**
|
100
|
+
* @generated from enum livekit.TrackSource
|
101
|
+
*/
|
102
|
+
export enum TrackSource {
|
103
|
+
/**
|
104
|
+
* @generated from enum value: UNKNOWN = 0;
|
105
|
+
*/
|
106
|
+
UNKNOWN = 0,
|
107
|
+
|
108
|
+
/**
|
109
|
+
* @generated from enum value: CAMERA = 1;
|
110
|
+
*/
|
111
|
+
CAMERA = 1,
|
112
|
+
|
113
|
+
/**
|
114
|
+
* @generated from enum value: MICROPHONE = 2;
|
115
|
+
*/
|
116
|
+
MICROPHONE = 2,
|
117
|
+
|
118
|
+
/**
|
119
|
+
* @generated from enum value: SCREEN_SHARE = 3;
|
120
|
+
*/
|
121
|
+
SCREEN_SHARE = 3,
|
122
|
+
|
123
|
+
/**
|
124
|
+
* @generated from enum value: SCREEN_SHARE_AUDIO = 4;
|
125
|
+
*/
|
126
|
+
SCREEN_SHARE_AUDIO = 4,
|
127
|
+
}
|
128
|
+
// Retrieve enum metadata with: proto3.getEnumType(TrackSource)
|
129
|
+
proto3.util.setEnumType(TrackSource, "livekit.TrackSource", [
|
130
|
+
{ no: 0, name: "UNKNOWN" },
|
131
|
+
{ no: 1, name: "CAMERA" },
|
132
|
+
{ no: 2, name: "MICROPHONE" },
|
133
|
+
{ no: 3, name: "SCREEN_SHARE" },
|
134
|
+
{ no: 4, name: "SCREEN_SHARE_AUDIO" },
|
135
|
+
]);
|
136
|
+
|
137
|
+
/**
|
138
|
+
* @generated from enum livekit.VideoQuality
|
139
|
+
*/
|
140
|
+
export enum VideoQuality {
|
141
|
+
/**
|
142
|
+
* @generated from enum value: LOW = 0;
|
143
|
+
*/
|
144
|
+
LOW = 0,
|
145
|
+
|
146
|
+
/**
|
147
|
+
* @generated from enum value: MEDIUM = 1;
|
148
|
+
*/
|
149
|
+
MEDIUM = 1,
|
150
|
+
|
151
|
+
/**
|
152
|
+
* @generated from enum value: HIGH = 2;
|
153
|
+
*/
|
154
|
+
HIGH = 2,
|
155
|
+
|
156
|
+
/**
|
157
|
+
* @generated from enum value: OFF = 3;
|
158
|
+
*/
|
159
|
+
OFF = 3,
|
160
|
+
}
|
161
|
+
// Retrieve enum metadata with: proto3.getEnumType(VideoQuality)
|
162
|
+
proto3.util.setEnumType(VideoQuality, "livekit.VideoQuality", [
|
163
|
+
{ no: 0, name: "LOW" },
|
164
|
+
{ no: 1, name: "MEDIUM" },
|
165
|
+
{ no: 2, name: "HIGH" },
|
166
|
+
{ no: 3, name: "OFF" },
|
167
|
+
]);
|
168
|
+
|
169
|
+
/**
|
170
|
+
* @generated from enum livekit.ConnectionQuality
|
171
|
+
*/
|
172
|
+
export enum ConnectionQuality {
|
173
|
+
/**
|
174
|
+
* @generated from enum value: POOR = 0;
|
175
|
+
*/
|
176
|
+
POOR = 0,
|
177
|
+
|
178
|
+
/**
|
179
|
+
* @generated from enum value: GOOD = 1;
|
180
|
+
*/
|
181
|
+
GOOD = 1,
|
182
|
+
|
183
|
+
/**
|
184
|
+
* @generated from enum value: EXCELLENT = 2;
|
185
|
+
*/
|
186
|
+
EXCELLENT = 2,
|
187
|
+
}
|
188
|
+
// Retrieve enum metadata with: proto3.getEnumType(ConnectionQuality)
|
189
|
+
proto3.util.setEnumType(ConnectionQuality, "livekit.ConnectionQuality", [
|
190
|
+
{ no: 0, name: "POOR" },
|
191
|
+
{ no: 1, name: "GOOD" },
|
192
|
+
{ no: 2, name: "EXCELLENT" },
|
193
|
+
]);
|
194
|
+
|
195
|
+
/**
|
196
|
+
* @generated from enum livekit.ClientConfigSetting
|
197
|
+
*/
|
198
|
+
export enum ClientConfigSetting {
|
199
|
+
/**
|
200
|
+
* @generated from enum value: UNSET = 0;
|
201
|
+
*/
|
202
|
+
UNSET = 0,
|
203
|
+
|
204
|
+
/**
|
205
|
+
* @generated from enum value: DISABLED = 1;
|
206
|
+
*/
|
207
|
+
DISABLED = 1,
|
208
|
+
|
209
|
+
/**
|
210
|
+
* @generated from enum value: ENABLED = 2;
|
211
|
+
*/
|
212
|
+
ENABLED = 2,
|
213
|
+
}
|
214
|
+
// Retrieve enum metadata with: proto3.getEnumType(ClientConfigSetting)
|
215
|
+
proto3.util.setEnumType(ClientConfigSetting, "livekit.ClientConfigSetting", [
|
216
|
+
{ no: 0, name: "UNSET" },
|
217
|
+
{ no: 1, name: "DISABLED" },
|
218
|
+
{ no: 2, name: "ENABLED" },
|
219
|
+
]);
|
220
|
+
|
221
|
+
/**
|
222
|
+
* @generated from enum livekit.DisconnectReason
|
223
|
+
*/
|
224
|
+
export enum DisconnectReason {
|
225
|
+
/**
|
226
|
+
* @generated from enum value: UNKNOWN_REASON = 0;
|
227
|
+
*/
|
228
|
+
UNKNOWN_REASON = 0,
|
229
|
+
|
230
|
+
/**
|
231
|
+
* @generated from enum value: CLIENT_INITIATED = 1;
|
232
|
+
*/
|
233
|
+
CLIENT_INITIATED = 1,
|
234
|
+
|
235
|
+
/**
|
236
|
+
* @generated from enum value: DUPLICATE_IDENTITY = 2;
|
237
|
+
*/
|
238
|
+
DUPLICATE_IDENTITY = 2,
|
239
|
+
|
240
|
+
/**
|
241
|
+
* @generated from enum value: SERVER_SHUTDOWN = 3;
|
242
|
+
*/
|
243
|
+
SERVER_SHUTDOWN = 3,
|
244
|
+
|
245
|
+
/**
|
246
|
+
* @generated from enum value: PARTICIPANT_REMOVED = 4;
|
247
|
+
*/
|
248
|
+
PARTICIPANT_REMOVED = 4,
|
249
|
+
|
250
|
+
/**
|
251
|
+
* @generated from enum value: ROOM_DELETED = 5;
|
252
|
+
*/
|
253
|
+
ROOM_DELETED = 5,
|
254
|
+
|
255
|
+
/**
|
256
|
+
* @generated from enum value: STATE_MISMATCH = 6;
|
257
|
+
*/
|
258
|
+
STATE_MISMATCH = 6,
|
259
|
+
|
260
|
+
/**
|
261
|
+
* @generated from enum value: JOIN_FAILURE = 7;
|
262
|
+
*/
|
263
|
+
JOIN_FAILURE = 7,
|
264
|
+
}
|
265
|
+
// Retrieve enum metadata with: proto3.getEnumType(DisconnectReason)
|
266
|
+
proto3.util.setEnumType(DisconnectReason, "livekit.DisconnectReason", [
|
267
|
+
{ no: 0, name: "UNKNOWN_REASON" },
|
268
|
+
{ no: 1, name: "CLIENT_INITIATED" },
|
269
|
+
{ no: 2, name: "DUPLICATE_IDENTITY" },
|
270
|
+
{ no: 3, name: "SERVER_SHUTDOWN" },
|
271
|
+
{ no: 4, name: "PARTICIPANT_REMOVED" },
|
272
|
+
{ no: 5, name: "ROOM_DELETED" },
|
273
|
+
{ no: 6, name: "STATE_MISMATCH" },
|
274
|
+
{ no: 7, name: "JOIN_FAILURE" },
|
275
|
+
]);
|
276
|
+
|
277
|
+
/**
|
278
|
+
* @generated from enum livekit.ReconnectReason
|
279
|
+
*/
|
280
|
+
export enum ReconnectReason {
|
281
|
+
/**
|
282
|
+
* @generated from enum value: RR_UNKNOWN = 0;
|
283
|
+
*/
|
284
|
+
RR_UNKNOWN = 0,
|
285
|
+
|
286
|
+
/**
|
287
|
+
* @generated from enum value: RR_SIGNAL_DISCONNECTED = 1;
|
288
|
+
*/
|
289
|
+
RR_SIGNAL_DISCONNECTED = 1,
|
290
|
+
|
291
|
+
/**
|
292
|
+
* @generated from enum value: RR_PUBLISHER_FAILED = 2;
|
293
|
+
*/
|
294
|
+
RR_PUBLISHER_FAILED = 2,
|
295
|
+
|
296
|
+
/**
|
297
|
+
* @generated from enum value: RR_SUBSCRIBER_FAILED = 3;
|
298
|
+
*/
|
299
|
+
RR_SUBSCRIBER_FAILED = 3,
|
300
|
+
|
301
|
+
/**
|
302
|
+
* @generated from enum value: RR_SWITCH_CANDIDATE = 4;
|
303
|
+
*/
|
304
|
+
RR_SWITCH_CANDIDATE = 4,
|
305
|
+
}
|
306
|
+
// Retrieve enum metadata with: proto3.getEnumType(ReconnectReason)
|
307
|
+
proto3.util.setEnumType(ReconnectReason, "livekit.ReconnectReason", [
|
308
|
+
{ no: 0, name: "RR_UNKNOWN" },
|
309
|
+
{ no: 1, name: "RR_SIGNAL_DISCONNECTED" },
|
310
|
+
{ no: 2, name: "RR_PUBLISHER_FAILED" },
|
311
|
+
{ no: 3, name: "RR_SUBSCRIBER_FAILED" },
|
312
|
+
{ no: 4, name: "RR_SWITCH_CANDIDATE" },
|
313
|
+
]);
|
314
|
+
|
315
|
+
/**
|
316
|
+
* @generated from enum livekit.SubscriptionError
|
317
|
+
*/
|
318
|
+
export enum SubscriptionError {
|
319
|
+
/**
|
320
|
+
* @generated from enum value: SE_UNKNOWN = 0;
|
321
|
+
*/
|
322
|
+
SE_UNKNOWN = 0,
|
323
|
+
|
324
|
+
/**
|
325
|
+
* @generated from enum value: SE_CODEC_UNSUPPORTED = 1;
|
326
|
+
*/
|
327
|
+
SE_CODEC_UNSUPPORTED = 1,
|
328
|
+
|
329
|
+
/**
|
330
|
+
* @generated from enum value: SE_TRACK_NOTFOUND = 2;
|
331
|
+
*/
|
332
|
+
SE_TRACK_NOTFOUND = 2,
|
333
|
+
}
|
334
|
+
// Retrieve enum metadata with: proto3.getEnumType(SubscriptionError)
|
335
|
+
proto3.util.setEnumType(SubscriptionError, "livekit.SubscriptionError", [
|
336
|
+
{ no: 0, name: "SE_UNKNOWN" },
|
337
|
+
{ no: 1, name: "SE_CODEC_UNSUPPORTED" },
|
338
|
+
{ no: 2, name: "SE_TRACK_NOTFOUND" },
|
339
|
+
]);
|
340
|
+
|
341
|
+
/**
|
342
|
+
* @generated from message livekit.Room
|
343
|
+
*/
|
344
|
+
export class Room extends Message<Room> {
|
345
|
+
/**
|
346
|
+
* @generated from field: string sid = 1;
|
347
|
+
*/
|
348
|
+
sid = "";
|
349
|
+
|
350
|
+
/**
|
351
|
+
* @generated from field: string name = 2;
|
352
|
+
*/
|
353
|
+
name = "";
|
354
|
+
|
355
|
+
/**
|
356
|
+
* @generated from field: uint32 empty_timeout = 3;
|
357
|
+
*/
|
358
|
+
emptyTimeout = 0;
|
359
|
+
|
360
|
+
/**
|
361
|
+
* @generated from field: uint32 max_participants = 4;
|
362
|
+
*/
|
363
|
+
maxParticipants = 0;
|
364
|
+
|
365
|
+
/**
|
366
|
+
* @generated from field: int64 creation_time = 5;
|
367
|
+
*/
|
368
|
+
creationTime = protoInt64.zero;
|
369
|
+
|
370
|
+
/**
|
371
|
+
* @generated from field: string turn_password = 6;
|
372
|
+
*/
|
373
|
+
turnPassword = "";
|
374
|
+
|
375
|
+
/**
|
376
|
+
* @generated from field: repeated livekit.Codec enabled_codecs = 7;
|
377
|
+
*/
|
378
|
+
enabledCodecs: Codec[] = [];
|
379
|
+
|
380
|
+
/**
|
381
|
+
* @generated from field: string metadata = 8;
|
382
|
+
*/
|
383
|
+
metadata = "";
|
384
|
+
|
385
|
+
/**
|
386
|
+
* @generated from field: uint32 num_participants = 9;
|
387
|
+
*/
|
388
|
+
numParticipants = 0;
|
389
|
+
|
390
|
+
/**
|
391
|
+
* @generated from field: uint32 num_publishers = 11;
|
392
|
+
*/
|
393
|
+
numPublishers = 0;
|
394
|
+
|
395
|
+
/**
|
396
|
+
* @generated from field: bool active_recording = 10;
|
397
|
+
*/
|
398
|
+
activeRecording = false;
|
399
|
+
|
400
|
+
/**
|
401
|
+
* @generated from field: livekit.PlayoutDelay playout_delay = 12;
|
402
|
+
*/
|
403
|
+
playoutDelay?: PlayoutDelay;
|
404
|
+
|
405
|
+
constructor(data?: PartialMessage<Room>) {
|
406
|
+
super();
|
407
|
+
proto3.util.initPartial(data, this);
|
408
|
+
}
|
409
|
+
|
410
|
+
static readonly runtime: typeof proto3 = proto3;
|
411
|
+
static readonly typeName = "livekit.Room";
|
412
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
413
|
+
{ no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
414
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
415
|
+
{ no: 3, name: "empty_timeout", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
416
|
+
{ no: 4, name: "max_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
417
|
+
{ no: 5, name: "creation_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
418
|
+
{ no: 6, name: "turn_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
419
|
+
{ no: 7, name: "enabled_codecs", kind: "message", T: Codec, repeated: true },
|
420
|
+
{ no: 8, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
421
|
+
{ no: 9, name: "num_participants", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
422
|
+
{ no: 11, name: "num_publishers", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
423
|
+
{ no: 10, name: "active_recording", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
424
|
+
{ no: 12, name: "playout_delay", kind: "message", T: PlayoutDelay },
|
425
|
+
]);
|
426
|
+
|
427
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Room {
|
428
|
+
return new Room().fromBinary(bytes, options);
|
429
|
+
}
|
430
|
+
|
431
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Room {
|
432
|
+
return new Room().fromJson(jsonValue, options);
|
433
|
+
}
|
434
|
+
|
435
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Room {
|
436
|
+
return new Room().fromJsonString(jsonString, options);
|
437
|
+
}
|
438
|
+
|
439
|
+
static equals(a: Room | PlainMessage<Room> | undefined, b: Room | PlainMessage<Room> | undefined): boolean {
|
440
|
+
return proto3.util.equals(Room, a, b);
|
441
|
+
}
|
442
|
+
}
|
443
|
+
|
444
|
+
/**
|
445
|
+
* @generated from message livekit.Codec
|
446
|
+
*/
|
447
|
+
export class Codec extends Message<Codec> {
|
448
|
+
/**
|
449
|
+
* @generated from field: string mime = 1;
|
450
|
+
*/
|
451
|
+
mime = "";
|
452
|
+
|
453
|
+
/**
|
454
|
+
* @generated from field: string fmtp_line = 2;
|
455
|
+
*/
|
456
|
+
fmtpLine = "";
|
457
|
+
|
458
|
+
constructor(data?: PartialMessage<Codec>) {
|
459
|
+
super();
|
460
|
+
proto3.util.initPartial(data, this);
|
461
|
+
}
|
462
|
+
|
463
|
+
static readonly runtime: typeof proto3 = proto3;
|
464
|
+
static readonly typeName = "livekit.Codec";
|
465
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
466
|
+
{ no: 1, name: "mime", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
467
|
+
{ no: 2, name: "fmtp_line", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
468
|
+
]);
|
469
|
+
|
470
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Codec {
|
471
|
+
return new Codec().fromBinary(bytes, options);
|
472
|
+
}
|
473
|
+
|
474
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Codec {
|
475
|
+
return new Codec().fromJson(jsonValue, options);
|
476
|
+
}
|
477
|
+
|
478
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Codec {
|
479
|
+
return new Codec().fromJsonString(jsonString, options);
|
480
|
+
}
|
481
|
+
|
482
|
+
static equals(a: Codec | PlainMessage<Codec> | undefined, b: Codec | PlainMessage<Codec> | undefined): boolean {
|
483
|
+
return proto3.util.equals(Codec, a, b);
|
484
|
+
}
|
485
|
+
}
|
486
|
+
|
487
|
+
/**
|
488
|
+
* @generated from message livekit.PlayoutDelay
|
489
|
+
*/
|
490
|
+
export class PlayoutDelay extends Message<PlayoutDelay> {
|
491
|
+
/**
|
492
|
+
* @generated from field: bool enabled = 1;
|
493
|
+
*/
|
494
|
+
enabled = false;
|
495
|
+
|
496
|
+
/**
|
497
|
+
* @generated from field: uint32 min = 2;
|
498
|
+
*/
|
499
|
+
min = 0;
|
500
|
+
|
501
|
+
/**
|
502
|
+
* @generated from field: uint32 max = 3;
|
503
|
+
*/
|
504
|
+
max = 0;
|
505
|
+
|
506
|
+
constructor(data?: PartialMessage<PlayoutDelay>) {
|
507
|
+
super();
|
508
|
+
proto3.util.initPartial(data, this);
|
509
|
+
}
|
510
|
+
|
511
|
+
static readonly runtime: typeof proto3 = proto3;
|
512
|
+
static readonly typeName = "livekit.PlayoutDelay";
|
513
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
514
|
+
{ no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
515
|
+
{ no: 2, name: "min", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
516
|
+
{ no: 3, name: "max", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
517
|
+
]);
|
518
|
+
|
519
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlayoutDelay {
|
520
|
+
return new PlayoutDelay().fromBinary(bytes, options);
|
521
|
+
}
|
522
|
+
|
523
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlayoutDelay {
|
524
|
+
return new PlayoutDelay().fromJson(jsonValue, options);
|
525
|
+
}
|
526
|
+
|
527
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlayoutDelay {
|
528
|
+
return new PlayoutDelay().fromJsonString(jsonString, options);
|
529
|
+
}
|
530
|
+
|
531
|
+
static equals(a: PlayoutDelay | PlainMessage<PlayoutDelay> | undefined, b: PlayoutDelay | PlainMessage<PlayoutDelay> | undefined): boolean {
|
532
|
+
return proto3.util.equals(PlayoutDelay, a, b);
|
533
|
+
}
|
534
|
+
}
|
535
|
+
|
536
|
+
/**
|
537
|
+
* @generated from message livekit.ParticipantPermission
|
538
|
+
*/
|
539
|
+
export class ParticipantPermission extends Message<ParticipantPermission> {
|
540
|
+
/**
|
541
|
+
* allow participant to subscribe to other tracks in the room
|
542
|
+
*
|
543
|
+
* @generated from field: bool can_subscribe = 1;
|
544
|
+
*/
|
545
|
+
canSubscribe = false;
|
546
|
+
|
547
|
+
/**
|
548
|
+
* allow participant to publish new tracks to room
|
549
|
+
*
|
550
|
+
* @generated from field: bool can_publish = 2;
|
551
|
+
*/
|
552
|
+
canPublish = false;
|
553
|
+
|
554
|
+
/**
|
555
|
+
* allow participant to publish data
|
556
|
+
*
|
557
|
+
* @generated from field: bool can_publish_data = 3;
|
558
|
+
*/
|
559
|
+
canPublishData = false;
|
560
|
+
|
561
|
+
/**
|
562
|
+
* sources that are allowed to be published
|
563
|
+
*
|
564
|
+
* @generated from field: repeated livekit.TrackSource can_publish_sources = 9;
|
565
|
+
*/
|
566
|
+
canPublishSources: TrackSource[] = [];
|
567
|
+
|
568
|
+
/**
|
569
|
+
* indicates that it's hidden to others
|
570
|
+
*
|
571
|
+
* @generated from field: bool hidden = 7;
|
572
|
+
*/
|
573
|
+
hidden = false;
|
574
|
+
|
575
|
+
/**
|
576
|
+
* indicates it's a recorder instance
|
577
|
+
*
|
578
|
+
* @generated from field: bool recorder = 8;
|
579
|
+
*/
|
580
|
+
recorder = false;
|
581
|
+
|
582
|
+
/**
|
583
|
+
* indicates that participant can update own metadata
|
584
|
+
*
|
585
|
+
* @generated from field: bool can_update_metadata = 10;
|
586
|
+
*/
|
587
|
+
canUpdateMetadata = false;
|
588
|
+
|
589
|
+
constructor(data?: PartialMessage<ParticipantPermission>) {
|
590
|
+
super();
|
591
|
+
proto3.util.initPartial(data, this);
|
592
|
+
}
|
593
|
+
|
594
|
+
static readonly runtime: typeof proto3 = proto3;
|
595
|
+
static readonly typeName = "livekit.ParticipantPermission";
|
596
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
597
|
+
{ no: 1, name: "can_subscribe", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
598
|
+
{ no: 2, name: "can_publish", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
599
|
+
{ no: 3, name: "can_publish_data", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
600
|
+
{ no: 9, name: "can_publish_sources", kind: "enum", T: proto3.getEnumType(TrackSource), repeated: true },
|
601
|
+
{ no: 7, name: "hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
602
|
+
{ no: 8, name: "recorder", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
603
|
+
{ no: 10, name: "can_update_metadata", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
604
|
+
]);
|
605
|
+
|
606
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantPermission {
|
607
|
+
return new ParticipantPermission().fromBinary(bytes, options);
|
608
|
+
}
|
609
|
+
|
610
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantPermission {
|
611
|
+
return new ParticipantPermission().fromJson(jsonValue, options);
|
612
|
+
}
|
613
|
+
|
614
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantPermission {
|
615
|
+
return new ParticipantPermission().fromJsonString(jsonString, options);
|
616
|
+
}
|
617
|
+
|
618
|
+
static equals(a: ParticipantPermission | PlainMessage<ParticipantPermission> | undefined, b: ParticipantPermission | PlainMessage<ParticipantPermission> | undefined): boolean {
|
619
|
+
return proto3.util.equals(ParticipantPermission, a, b);
|
620
|
+
}
|
621
|
+
}
|
622
|
+
|
623
|
+
/**
|
624
|
+
* @generated from message livekit.ParticipantInfo
|
625
|
+
*/
|
626
|
+
export class ParticipantInfo extends Message<ParticipantInfo> {
|
627
|
+
/**
|
628
|
+
* @generated from field: string sid = 1;
|
629
|
+
*/
|
630
|
+
sid = "";
|
631
|
+
|
632
|
+
/**
|
633
|
+
* @generated from field: string identity = 2;
|
634
|
+
*/
|
635
|
+
identity = "";
|
636
|
+
|
637
|
+
/**
|
638
|
+
* @generated from field: livekit.ParticipantInfo.State state = 3;
|
639
|
+
*/
|
640
|
+
state = ParticipantInfo_State.JOINING;
|
641
|
+
|
642
|
+
/**
|
643
|
+
* @generated from field: repeated livekit.TrackInfo tracks = 4;
|
644
|
+
*/
|
645
|
+
tracks: TrackInfo[] = [];
|
646
|
+
|
647
|
+
/**
|
648
|
+
* @generated from field: string metadata = 5;
|
649
|
+
*/
|
650
|
+
metadata = "";
|
651
|
+
|
652
|
+
/**
|
653
|
+
* timestamp when participant joined room, in seconds
|
654
|
+
*
|
655
|
+
* @generated from field: int64 joined_at = 6;
|
656
|
+
*/
|
657
|
+
joinedAt = protoInt64.zero;
|
658
|
+
|
659
|
+
/**
|
660
|
+
* @generated from field: string name = 9;
|
661
|
+
*/
|
662
|
+
name = "";
|
663
|
+
|
664
|
+
/**
|
665
|
+
* @generated from field: uint32 version = 10;
|
666
|
+
*/
|
667
|
+
version = 0;
|
668
|
+
|
669
|
+
/**
|
670
|
+
* @generated from field: livekit.ParticipantPermission permission = 11;
|
671
|
+
*/
|
672
|
+
permission?: ParticipantPermission;
|
673
|
+
|
674
|
+
/**
|
675
|
+
* @generated from field: string region = 12;
|
676
|
+
*/
|
677
|
+
region = "";
|
678
|
+
|
679
|
+
/**
|
680
|
+
* indicates the participant has an active publisher connection
|
681
|
+
* and can publish to the server
|
682
|
+
*
|
683
|
+
* @generated from field: bool is_publisher = 13;
|
684
|
+
*/
|
685
|
+
isPublisher = false;
|
686
|
+
|
687
|
+
constructor(data?: PartialMessage<ParticipantInfo>) {
|
688
|
+
super();
|
689
|
+
proto3.util.initPartial(data, this);
|
690
|
+
}
|
691
|
+
|
692
|
+
static readonly runtime: typeof proto3 = proto3;
|
693
|
+
static readonly typeName = "livekit.ParticipantInfo";
|
694
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
695
|
+
{ no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
696
|
+
{ no: 2, name: "identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
697
|
+
{ no: 3, name: "state", kind: "enum", T: proto3.getEnumType(ParticipantInfo_State) },
|
698
|
+
{ no: 4, name: "tracks", kind: "message", T: TrackInfo, repeated: true },
|
699
|
+
{ no: 5, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
700
|
+
{ no: 6, name: "joined_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
701
|
+
{ no: 9, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
702
|
+
{ no: 10, name: "version", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
703
|
+
{ no: 11, name: "permission", kind: "message", T: ParticipantPermission },
|
704
|
+
{ no: 12, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
705
|
+
{ no: 13, name: "is_publisher", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
706
|
+
]);
|
707
|
+
|
708
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantInfo {
|
709
|
+
return new ParticipantInfo().fromBinary(bytes, options);
|
710
|
+
}
|
711
|
+
|
712
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantInfo {
|
713
|
+
return new ParticipantInfo().fromJson(jsonValue, options);
|
714
|
+
}
|
715
|
+
|
716
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantInfo {
|
717
|
+
return new ParticipantInfo().fromJsonString(jsonString, options);
|
718
|
+
}
|
719
|
+
|
720
|
+
static equals(a: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined, b: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined): boolean {
|
721
|
+
return proto3.util.equals(ParticipantInfo, a, b);
|
722
|
+
}
|
723
|
+
}
|
724
|
+
|
725
|
+
/**
|
726
|
+
* @generated from enum livekit.ParticipantInfo.State
|
727
|
+
*/
|
728
|
+
export enum ParticipantInfo_State {
|
729
|
+
/**
|
730
|
+
* websocket' connected, but not offered yet
|
731
|
+
*
|
732
|
+
* @generated from enum value: JOINING = 0;
|
733
|
+
*/
|
734
|
+
JOINING = 0,
|
735
|
+
|
736
|
+
/**
|
737
|
+
* server received client offer
|
738
|
+
*
|
739
|
+
* @generated from enum value: JOINED = 1;
|
740
|
+
*/
|
741
|
+
JOINED = 1,
|
742
|
+
|
743
|
+
/**
|
744
|
+
* ICE connectivity established
|
745
|
+
*
|
746
|
+
* @generated from enum value: ACTIVE = 2;
|
747
|
+
*/
|
748
|
+
ACTIVE = 2,
|
749
|
+
|
750
|
+
/**
|
751
|
+
* WS disconnected
|
752
|
+
*
|
753
|
+
* @generated from enum value: DISCONNECTED = 3;
|
754
|
+
*/
|
755
|
+
DISCONNECTED = 3,
|
756
|
+
}
|
757
|
+
// Retrieve enum metadata with: proto3.getEnumType(ParticipantInfo_State)
|
758
|
+
proto3.util.setEnumType(ParticipantInfo_State, "livekit.ParticipantInfo.State", [
|
759
|
+
{ no: 0, name: "JOINING" },
|
760
|
+
{ no: 1, name: "JOINED" },
|
761
|
+
{ no: 2, name: "ACTIVE" },
|
762
|
+
{ no: 3, name: "DISCONNECTED" },
|
763
|
+
]);
|
764
|
+
|
765
|
+
/**
|
766
|
+
* @generated from message livekit.Encryption
|
767
|
+
*/
|
768
|
+
export class Encryption extends Message<Encryption> {
|
769
|
+
constructor(data?: PartialMessage<Encryption>) {
|
770
|
+
super();
|
771
|
+
proto3.util.initPartial(data, this);
|
772
|
+
}
|
773
|
+
|
774
|
+
static readonly runtime: typeof proto3 = proto3;
|
775
|
+
static readonly typeName = "livekit.Encryption";
|
776
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
777
|
+
]);
|
778
|
+
|
779
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encryption {
|
780
|
+
return new Encryption().fromBinary(bytes, options);
|
781
|
+
}
|
782
|
+
|
783
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encryption {
|
784
|
+
return new Encryption().fromJson(jsonValue, options);
|
785
|
+
}
|
786
|
+
|
787
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encryption {
|
788
|
+
return new Encryption().fromJsonString(jsonString, options);
|
789
|
+
}
|
790
|
+
|
791
|
+
static equals(a: Encryption | PlainMessage<Encryption> | undefined, b: Encryption | PlainMessage<Encryption> | undefined): boolean {
|
792
|
+
return proto3.util.equals(Encryption, a, b);
|
793
|
+
}
|
794
|
+
}
|
795
|
+
|
796
|
+
/**
|
797
|
+
* @generated from enum livekit.Encryption.Type
|
798
|
+
*/
|
799
|
+
export enum Encryption_Type {
|
800
|
+
/**
|
801
|
+
* @generated from enum value: NONE = 0;
|
802
|
+
*/
|
803
|
+
NONE = 0,
|
804
|
+
|
805
|
+
/**
|
806
|
+
* @generated from enum value: GCM = 1;
|
807
|
+
*/
|
808
|
+
GCM = 1,
|
809
|
+
|
810
|
+
/**
|
811
|
+
* @generated from enum value: CUSTOM = 2;
|
812
|
+
*/
|
813
|
+
CUSTOM = 2,
|
814
|
+
}
|
815
|
+
// Retrieve enum metadata with: proto3.getEnumType(Encryption_Type)
|
816
|
+
proto3.util.setEnumType(Encryption_Type, "livekit.Encryption.Type", [
|
817
|
+
{ no: 0, name: "NONE" },
|
818
|
+
{ no: 1, name: "GCM" },
|
819
|
+
{ no: 2, name: "CUSTOM" },
|
820
|
+
]);
|
821
|
+
|
822
|
+
/**
|
823
|
+
* @generated from message livekit.SimulcastCodecInfo
|
824
|
+
*/
|
825
|
+
export class SimulcastCodecInfo extends Message<SimulcastCodecInfo> {
|
826
|
+
/**
|
827
|
+
* @generated from field: string mime_type = 1;
|
828
|
+
*/
|
829
|
+
mimeType = "";
|
830
|
+
|
831
|
+
/**
|
832
|
+
* @generated from field: string mid = 2;
|
833
|
+
*/
|
834
|
+
mid = "";
|
835
|
+
|
836
|
+
/**
|
837
|
+
* @generated from field: string cid = 3;
|
838
|
+
*/
|
839
|
+
cid = "";
|
840
|
+
|
841
|
+
/**
|
842
|
+
* @generated from field: repeated livekit.VideoLayer layers = 4;
|
843
|
+
*/
|
844
|
+
layers: VideoLayer[] = [];
|
845
|
+
|
846
|
+
constructor(data?: PartialMessage<SimulcastCodecInfo>) {
|
847
|
+
super();
|
848
|
+
proto3.util.initPartial(data, this);
|
849
|
+
}
|
850
|
+
|
851
|
+
static readonly runtime: typeof proto3 = proto3;
|
852
|
+
static readonly typeName = "livekit.SimulcastCodecInfo";
|
853
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
854
|
+
{ no: 1, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
855
|
+
{ no: 2, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
856
|
+
{ no: 3, name: "cid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
857
|
+
{ no: 4, name: "layers", kind: "message", T: VideoLayer, repeated: true },
|
858
|
+
]);
|
859
|
+
|
860
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulcastCodecInfo {
|
861
|
+
return new SimulcastCodecInfo().fromBinary(bytes, options);
|
862
|
+
}
|
863
|
+
|
864
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulcastCodecInfo {
|
865
|
+
return new SimulcastCodecInfo().fromJson(jsonValue, options);
|
866
|
+
}
|
867
|
+
|
868
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulcastCodecInfo {
|
869
|
+
return new SimulcastCodecInfo().fromJsonString(jsonString, options);
|
870
|
+
}
|
871
|
+
|
872
|
+
static equals(a: SimulcastCodecInfo | PlainMessage<SimulcastCodecInfo> | undefined, b: SimulcastCodecInfo | PlainMessage<SimulcastCodecInfo> | undefined): boolean {
|
873
|
+
return proto3.util.equals(SimulcastCodecInfo, a, b);
|
874
|
+
}
|
875
|
+
}
|
876
|
+
|
877
|
+
/**
|
878
|
+
* @generated from message livekit.TrackInfo
|
879
|
+
*/
|
880
|
+
export class TrackInfo extends Message<TrackInfo> {
|
881
|
+
/**
|
882
|
+
* @generated from field: string sid = 1;
|
883
|
+
*/
|
884
|
+
sid = "";
|
885
|
+
|
886
|
+
/**
|
887
|
+
* @generated from field: livekit.TrackType type = 2;
|
888
|
+
*/
|
889
|
+
type = TrackType.AUDIO;
|
890
|
+
|
891
|
+
/**
|
892
|
+
* @generated from field: string name = 3;
|
893
|
+
*/
|
894
|
+
name = "";
|
895
|
+
|
896
|
+
/**
|
897
|
+
* @generated from field: bool muted = 4;
|
898
|
+
*/
|
899
|
+
muted = false;
|
900
|
+
|
901
|
+
/**
|
902
|
+
* original width of video (unset for audio)
|
903
|
+
* clients may receive a lower resolution version with simulcast
|
904
|
+
*
|
905
|
+
* @generated from field: uint32 width = 5;
|
906
|
+
*/
|
907
|
+
width = 0;
|
908
|
+
|
909
|
+
/**
|
910
|
+
* original height of video (unset for audio)
|
911
|
+
*
|
912
|
+
* @generated from field: uint32 height = 6;
|
913
|
+
*/
|
914
|
+
height = 0;
|
915
|
+
|
916
|
+
/**
|
917
|
+
* true if track is simulcasted
|
918
|
+
*
|
919
|
+
* @generated from field: bool simulcast = 7;
|
920
|
+
*/
|
921
|
+
simulcast = false;
|
922
|
+
|
923
|
+
/**
|
924
|
+
* true if DTX (Discontinuous Transmission) is disabled for audio
|
925
|
+
*
|
926
|
+
* @generated from field: bool disable_dtx = 8;
|
927
|
+
*/
|
928
|
+
disableDtx = false;
|
929
|
+
|
930
|
+
/**
|
931
|
+
* source of media
|
932
|
+
*
|
933
|
+
* @generated from field: livekit.TrackSource source = 9;
|
934
|
+
*/
|
935
|
+
source = TrackSource.UNKNOWN;
|
936
|
+
|
937
|
+
/**
|
938
|
+
* @generated from field: repeated livekit.VideoLayer layers = 10;
|
939
|
+
*/
|
940
|
+
layers: VideoLayer[] = [];
|
941
|
+
|
942
|
+
/**
|
943
|
+
* mime type of codec
|
944
|
+
*
|
945
|
+
* @generated from field: string mime_type = 11;
|
946
|
+
*/
|
947
|
+
mimeType = "";
|
948
|
+
|
949
|
+
/**
|
950
|
+
* @generated from field: string mid = 12;
|
951
|
+
*/
|
952
|
+
mid = "";
|
953
|
+
|
954
|
+
/**
|
955
|
+
* @generated from field: repeated livekit.SimulcastCodecInfo codecs = 13;
|
956
|
+
*/
|
957
|
+
codecs: SimulcastCodecInfo[] = [];
|
958
|
+
|
959
|
+
/**
|
960
|
+
* @generated from field: bool stereo = 14;
|
961
|
+
*/
|
962
|
+
stereo = false;
|
963
|
+
|
964
|
+
/**
|
965
|
+
* true if RED (Redundant Encoding) is disabled for audio
|
966
|
+
*
|
967
|
+
* @generated from field: bool disable_red = 15;
|
968
|
+
*/
|
969
|
+
disableRed = false;
|
970
|
+
|
971
|
+
/**
|
972
|
+
* @generated from field: livekit.Encryption.Type encryption = 16;
|
973
|
+
*/
|
974
|
+
encryption = Encryption_Type.NONE;
|
975
|
+
|
976
|
+
/**
|
977
|
+
* @generated from field: string stream = 17;
|
978
|
+
*/
|
979
|
+
stream = "";
|
980
|
+
|
981
|
+
constructor(data?: PartialMessage<TrackInfo>) {
|
982
|
+
super();
|
983
|
+
proto3.util.initPartial(data, this);
|
984
|
+
}
|
985
|
+
|
986
|
+
static readonly runtime: typeof proto3 = proto3;
|
987
|
+
static readonly typeName = "livekit.TrackInfo";
|
988
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
989
|
+
{ no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
990
|
+
{ no: 2, name: "type", kind: "enum", T: proto3.getEnumType(TrackType) },
|
991
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
992
|
+
{ no: 4, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
993
|
+
{ no: 5, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
994
|
+
{ no: 6, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
995
|
+
{ no: 7, name: "simulcast", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
996
|
+
{ no: 8, name: "disable_dtx", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
997
|
+
{ no: 9, name: "source", kind: "enum", T: proto3.getEnumType(TrackSource) },
|
998
|
+
{ no: 10, name: "layers", kind: "message", T: VideoLayer, repeated: true },
|
999
|
+
{ no: 11, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1000
|
+
{ no: 12, name: "mid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1001
|
+
{ no: 13, name: "codecs", kind: "message", T: SimulcastCodecInfo, repeated: true },
|
1002
|
+
{ no: 14, name: "stereo", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
1003
|
+
{ no: 15, name: "disable_red", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
1004
|
+
{ no: 16, name: "encryption", kind: "enum", T: proto3.getEnumType(Encryption_Type) },
|
1005
|
+
{ no: 17, name: "stream", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1006
|
+
]);
|
1007
|
+
|
1008
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackInfo {
|
1009
|
+
return new TrackInfo().fromBinary(bytes, options);
|
1010
|
+
}
|
1011
|
+
|
1012
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackInfo {
|
1013
|
+
return new TrackInfo().fromJson(jsonValue, options);
|
1014
|
+
}
|
1015
|
+
|
1016
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackInfo {
|
1017
|
+
return new TrackInfo().fromJsonString(jsonString, options);
|
1018
|
+
}
|
1019
|
+
|
1020
|
+
static equals(a: TrackInfo | PlainMessage<TrackInfo> | undefined, b: TrackInfo | PlainMessage<TrackInfo> | undefined): boolean {
|
1021
|
+
return proto3.util.equals(TrackInfo, a, b);
|
1022
|
+
}
|
1023
|
+
}
|
1024
|
+
|
1025
|
+
/**
|
1026
|
+
* provide information about available spatial layers
|
1027
|
+
*
|
1028
|
+
* @generated from message livekit.VideoLayer
|
1029
|
+
*/
|
1030
|
+
export class VideoLayer extends Message<VideoLayer> {
|
1031
|
+
/**
|
1032
|
+
* for tracks with a single layer, this should be HIGH
|
1033
|
+
*
|
1034
|
+
* @generated from field: livekit.VideoQuality quality = 1;
|
1035
|
+
*/
|
1036
|
+
quality = VideoQuality.LOW;
|
1037
|
+
|
1038
|
+
/**
|
1039
|
+
* @generated from field: uint32 width = 2;
|
1040
|
+
*/
|
1041
|
+
width = 0;
|
1042
|
+
|
1043
|
+
/**
|
1044
|
+
* @generated from field: uint32 height = 3;
|
1045
|
+
*/
|
1046
|
+
height = 0;
|
1047
|
+
|
1048
|
+
/**
|
1049
|
+
* target bitrate in bit per second (bps), server will measure actual
|
1050
|
+
*
|
1051
|
+
* @generated from field: uint32 bitrate = 4;
|
1052
|
+
*/
|
1053
|
+
bitrate = 0;
|
1054
|
+
|
1055
|
+
/**
|
1056
|
+
* @generated from field: uint32 ssrc = 5;
|
1057
|
+
*/
|
1058
|
+
ssrc = 0;
|
1059
|
+
|
1060
|
+
constructor(data?: PartialMessage<VideoLayer>) {
|
1061
|
+
super();
|
1062
|
+
proto3.util.initPartial(data, this);
|
1063
|
+
}
|
1064
|
+
|
1065
|
+
static readonly runtime: typeof proto3 = proto3;
|
1066
|
+
static readonly typeName = "livekit.VideoLayer";
|
1067
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
1068
|
+
{ no: 1, name: "quality", kind: "enum", T: proto3.getEnumType(VideoQuality) },
|
1069
|
+
{ no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
1070
|
+
{ no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
1071
|
+
{ no: 4, name: "bitrate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
1072
|
+
{ no: 5, name: "ssrc", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
1073
|
+
]);
|
1074
|
+
|
1075
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoLayer {
|
1076
|
+
return new VideoLayer().fromBinary(bytes, options);
|
1077
|
+
}
|
1078
|
+
|
1079
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoLayer {
|
1080
|
+
return new VideoLayer().fromJson(jsonValue, options);
|
1081
|
+
}
|
1082
|
+
|
1083
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoLayer {
|
1084
|
+
return new VideoLayer().fromJsonString(jsonString, options);
|
1085
|
+
}
|
1086
|
+
|
1087
|
+
static equals(a: VideoLayer | PlainMessage<VideoLayer> | undefined, b: VideoLayer | PlainMessage<VideoLayer> | undefined): boolean {
|
1088
|
+
return proto3.util.equals(VideoLayer, a, b);
|
1089
|
+
}
|
1090
|
+
}
|
1091
|
+
|
1092
|
+
/**
|
1093
|
+
* new DataPacket API
|
1094
|
+
*
|
1095
|
+
* @generated from message livekit.DataPacket
|
1096
|
+
*/
|
1097
|
+
export class DataPacket extends Message<DataPacket> {
|
1098
|
+
/**
|
1099
|
+
* @generated from field: livekit.DataPacket.Kind kind = 1;
|
1100
|
+
*/
|
1101
|
+
kind = DataPacket_Kind.RELIABLE;
|
1102
|
+
|
1103
|
+
/**
|
1104
|
+
* @generated from oneof livekit.DataPacket.value
|
1105
|
+
*/
|
1106
|
+
value: {
|
1107
|
+
/**
|
1108
|
+
* @generated from field: livekit.UserPacket user = 2;
|
1109
|
+
*/
|
1110
|
+
value: UserPacket;
|
1111
|
+
case: "user";
|
1112
|
+
} | {
|
1113
|
+
/**
|
1114
|
+
* @generated from field: livekit.ActiveSpeakerUpdate speaker = 3;
|
1115
|
+
*/
|
1116
|
+
value: ActiveSpeakerUpdate;
|
1117
|
+
case: "speaker";
|
1118
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
1119
|
+
|
1120
|
+
constructor(data?: PartialMessage<DataPacket>) {
|
1121
|
+
super();
|
1122
|
+
proto3.util.initPartial(data, this);
|
1123
|
+
}
|
1124
|
+
|
1125
|
+
static readonly runtime: typeof proto3 = proto3;
|
1126
|
+
static readonly typeName = "livekit.DataPacket";
|
1127
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
1128
|
+
{ no: 1, name: "kind", kind: "enum", T: proto3.getEnumType(DataPacket_Kind) },
|
1129
|
+
{ no: 2, name: "user", kind: "message", T: UserPacket, oneof: "value" },
|
1130
|
+
{ no: 3, name: "speaker", kind: "message", T: ActiveSpeakerUpdate, oneof: "value" },
|
1131
|
+
]);
|
1132
|
+
|
1133
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataPacket {
|
1134
|
+
return new DataPacket().fromBinary(bytes, options);
|
1135
|
+
}
|
1136
|
+
|
1137
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataPacket {
|
1138
|
+
return new DataPacket().fromJson(jsonValue, options);
|
1139
|
+
}
|
1140
|
+
|
1141
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataPacket {
|
1142
|
+
return new DataPacket().fromJsonString(jsonString, options);
|
1143
|
+
}
|
1144
|
+
|
1145
|
+
static equals(a: DataPacket | PlainMessage<DataPacket> | undefined, b: DataPacket | PlainMessage<DataPacket> | undefined): boolean {
|
1146
|
+
return proto3.util.equals(DataPacket, a, b);
|
1147
|
+
}
|
1148
|
+
}
|
1149
|
+
|
1150
|
+
/**
|
1151
|
+
* @generated from enum livekit.DataPacket.Kind
|
1152
|
+
*/
|
1153
|
+
export enum DataPacket_Kind {
|
1154
|
+
/**
|
1155
|
+
* @generated from enum value: RELIABLE = 0;
|
1156
|
+
*/
|
1157
|
+
RELIABLE = 0,
|
1158
|
+
|
1159
|
+
/**
|
1160
|
+
* @generated from enum value: LOSSY = 1;
|
1161
|
+
*/
|
1162
|
+
LOSSY = 1,
|
1163
|
+
}
|
1164
|
+
// Retrieve enum metadata with: proto3.getEnumType(DataPacket_Kind)
|
1165
|
+
proto3.util.setEnumType(DataPacket_Kind, "livekit.DataPacket.Kind", [
|
1166
|
+
{ no: 0, name: "RELIABLE" },
|
1167
|
+
{ no: 1, name: "LOSSY" },
|
1168
|
+
]);
|
1169
|
+
|
1170
|
+
/**
|
1171
|
+
* @generated from message livekit.ActiveSpeakerUpdate
|
1172
|
+
*/
|
1173
|
+
export class ActiveSpeakerUpdate extends Message<ActiveSpeakerUpdate> {
|
1174
|
+
/**
|
1175
|
+
* @generated from field: repeated livekit.SpeakerInfo speakers = 1;
|
1176
|
+
*/
|
1177
|
+
speakers: SpeakerInfo[] = [];
|
1178
|
+
|
1179
|
+
constructor(data?: PartialMessage<ActiveSpeakerUpdate>) {
|
1180
|
+
super();
|
1181
|
+
proto3.util.initPartial(data, this);
|
1182
|
+
}
|
1183
|
+
|
1184
|
+
static readonly runtime: typeof proto3 = proto3;
|
1185
|
+
static readonly typeName = "livekit.ActiveSpeakerUpdate";
|
1186
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
1187
|
+
{ no: 1, name: "speakers", kind: "message", T: SpeakerInfo, repeated: true },
|
1188
|
+
]);
|
1189
|
+
|
1190
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActiveSpeakerUpdate {
|
1191
|
+
return new ActiveSpeakerUpdate().fromBinary(bytes, options);
|
1192
|
+
}
|
1193
|
+
|
1194
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActiveSpeakerUpdate {
|
1195
|
+
return new ActiveSpeakerUpdate().fromJson(jsonValue, options);
|
1196
|
+
}
|
1197
|
+
|
1198
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActiveSpeakerUpdate {
|
1199
|
+
return new ActiveSpeakerUpdate().fromJsonString(jsonString, options);
|
1200
|
+
}
|
1201
|
+
|
1202
|
+
static equals(a: ActiveSpeakerUpdate | PlainMessage<ActiveSpeakerUpdate> | undefined, b: ActiveSpeakerUpdate | PlainMessage<ActiveSpeakerUpdate> | undefined): boolean {
|
1203
|
+
return proto3.util.equals(ActiveSpeakerUpdate, a, b);
|
1204
|
+
}
|
1205
|
+
}
|
1206
|
+
|
1207
|
+
/**
|
1208
|
+
* @generated from message livekit.SpeakerInfo
|
1209
|
+
*/
|
1210
|
+
export class SpeakerInfo extends Message<SpeakerInfo> {
|
1211
|
+
/**
|
1212
|
+
* @generated from field: string sid = 1;
|
1213
|
+
*/
|
1214
|
+
sid = "";
|
1215
|
+
|
1216
|
+
/**
|
1217
|
+
* audio level, 0-1.0, 1 is loudest
|
1218
|
+
*
|
1219
|
+
* @generated from field: float level = 2;
|
1220
|
+
*/
|
1221
|
+
level = 0;
|
1222
|
+
|
1223
|
+
/**
|
1224
|
+
* true if speaker is currently active
|
1225
|
+
*
|
1226
|
+
* @generated from field: bool active = 3;
|
1227
|
+
*/
|
1228
|
+
active = false;
|
1229
|
+
|
1230
|
+
constructor(data?: PartialMessage<SpeakerInfo>) {
|
1231
|
+
super();
|
1232
|
+
proto3.util.initPartial(data, this);
|
1233
|
+
}
|
1234
|
+
|
1235
|
+
static readonly runtime: typeof proto3 = proto3;
|
1236
|
+
static readonly typeName = "livekit.SpeakerInfo";
|
1237
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
1238
|
+
{ no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1239
|
+
{ no: 2, name: "level", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
1240
|
+
{ no: 3, name: "active", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
1241
|
+
]);
|
1242
|
+
|
1243
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SpeakerInfo {
|
1244
|
+
return new SpeakerInfo().fromBinary(bytes, options);
|
1245
|
+
}
|
1246
|
+
|
1247
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SpeakerInfo {
|
1248
|
+
return new SpeakerInfo().fromJson(jsonValue, options);
|
1249
|
+
}
|
1250
|
+
|
1251
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SpeakerInfo {
|
1252
|
+
return new SpeakerInfo().fromJsonString(jsonString, options);
|
1253
|
+
}
|
1254
|
+
|
1255
|
+
static equals(a: SpeakerInfo | PlainMessage<SpeakerInfo> | undefined, b: SpeakerInfo | PlainMessage<SpeakerInfo> | undefined): boolean {
|
1256
|
+
return proto3.util.equals(SpeakerInfo, a, b);
|
1257
|
+
}
|
1258
|
+
}
|
1259
|
+
|
1260
|
+
/**
|
1261
|
+
* @generated from message livekit.UserPacket
|
1262
|
+
*/
|
1263
|
+
export class UserPacket extends Message<UserPacket> {
|
1264
|
+
/**
|
1265
|
+
* participant ID of user that sent the message
|
1266
|
+
*
|
1267
|
+
* @generated from field: string participant_sid = 1;
|
1268
|
+
*/
|
1269
|
+
participantSid = "";
|
1270
|
+
|
1271
|
+
/**
|
1272
|
+
* user defined payload
|
1273
|
+
*
|
1274
|
+
* @generated from field: bytes payload = 2;
|
1275
|
+
*/
|
1276
|
+
payload = new Uint8Array(0);
|
1277
|
+
|
1278
|
+
/**
|
1279
|
+
* the ID of the participants who will receive the message (the message will be sent to all the people in the room if this variable is empty)
|
1280
|
+
*
|
1281
|
+
* @generated from field: repeated string destination_sids = 3;
|
1282
|
+
*/
|
1283
|
+
destinationSids: string[] = [];
|
1284
|
+
|
1285
|
+
/**
|
1286
|
+
* topic under which the message was published
|
1287
|
+
*
|
1288
|
+
* @generated from field: optional string topic = 4;
|
1289
|
+
*/
|
1290
|
+
topic?: string;
|
1291
|
+
|
1292
|
+
constructor(data?: PartialMessage<UserPacket>) {
|
1293
|
+
super();
|
1294
|
+
proto3.util.initPartial(data, this);
|
1295
|
+
}
|
1296
|
+
|
1297
|
+
static readonly runtime: typeof proto3 = proto3;
|
1298
|
+
static readonly typeName = "livekit.UserPacket";
|
1299
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
1300
|
+
{ no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1301
|
+
{ no: 2, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
1302
|
+
{ no: 3, name: "destination_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
1303
|
+
{ no: 4, name: "topic", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
1304
|
+
]);
|
1305
|
+
|
1306
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserPacket {
|
1307
|
+
return new UserPacket().fromBinary(bytes, options);
|
1308
|
+
}
|
1309
|
+
|
1310
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserPacket {
|
1311
|
+
return new UserPacket().fromJson(jsonValue, options);
|
1312
|
+
}
|
1313
|
+
|
1314
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserPacket {
|
1315
|
+
return new UserPacket().fromJsonString(jsonString, options);
|
1316
|
+
}
|
1317
|
+
|
1318
|
+
static equals(a: UserPacket | PlainMessage<UserPacket> | undefined, b: UserPacket | PlainMessage<UserPacket> | undefined): boolean {
|
1319
|
+
return proto3.util.equals(UserPacket, a, b);
|
1320
|
+
}
|
1321
|
+
}
|
1322
|
+
|
1323
|
+
/**
|
1324
|
+
* @generated from message livekit.ParticipantTracks
|
1325
|
+
*/
|
1326
|
+
export class ParticipantTracks extends Message<ParticipantTracks> {
|
1327
|
+
/**
|
1328
|
+
* participant ID of participant to whom the tracks belong
|
1329
|
+
*
|
1330
|
+
* @generated from field: string participant_sid = 1;
|
1331
|
+
*/
|
1332
|
+
participantSid = "";
|
1333
|
+
|
1334
|
+
/**
|
1335
|
+
* @generated from field: repeated string track_sids = 2;
|
1336
|
+
*/
|
1337
|
+
trackSids: string[] = [];
|
1338
|
+
|
1339
|
+
constructor(data?: PartialMessage<ParticipantTracks>) {
|
1340
|
+
super();
|
1341
|
+
proto3.util.initPartial(data, this);
|
1342
|
+
}
|
1343
|
+
|
1344
|
+
static readonly runtime: typeof proto3 = proto3;
|
1345
|
+
static readonly typeName = "livekit.ParticipantTracks";
|
1346
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
1347
|
+
{ no: 1, name: "participant_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1348
|
+
{ no: 2, name: "track_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
1349
|
+
]);
|
1350
|
+
|
1351
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantTracks {
|
1352
|
+
return new ParticipantTracks().fromBinary(bytes, options);
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantTracks {
|
1356
|
+
return new ParticipantTracks().fromJson(jsonValue, options);
|
1357
|
+
}
|
1358
|
+
|
1359
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantTracks {
|
1360
|
+
return new ParticipantTracks().fromJsonString(jsonString, options);
|
1361
|
+
}
|
1362
|
+
|
1363
|
+
static equals(a: ParticipantTracks | PlainMessage<ParticipantTracks> | undefined, b: ParticipantTracks | PlainMessage<ParticipantTracks> | undefined): boolean {
|
1364
|
+
return proto3.util.equals(ParticipantTracks, a, b);
|
1365
|
+
}
|
1366
|
+
}
|
1367
|
+
|
1368
|
+
/**
|
1369
|
+
* details about the server
|
1370
|
+
*
|
1371
|
+
* @generated from message livekit.ServerInfo
|
1372
|
+
*/
|
1373
|
+
export class ServerInfo extends Message<ServerInfo> {
|
1374
|
+
/**
|
1375
|
+
* @generated from field: livekit.ServerInfo.Edition edition = 1;
|
1376
|
+
*/
|
1377
|
+
edition = ServerInfo_Edition.Standard;
|
1378
|
+
|
1379
|
+
/**
|
1380
|
+
* @generated from field: string version = 2;
|
1381
|
+
*/
|
1382
|
+
version = "";
|
1383
|
+
|
1384
|
+
/**
|
1385
|
+
* @generated from field: int32 protocol = 3;
|
1386
|
+
*/
|
1387
|
+
protocol = 0;
|
1388
|
+
|
1389
|
+
/**
|
1390
|
+
* @generated from field: string region = 4;
|
1391
|
+
*/
|
1392
|
+
region = "";
|
1393
|
+
|
1394
|
+
/**
|
1395
|
+
* @generated from field: string node_id = 5;
|
1396
|
+
*/
|
1397
|
+
nodeId = "";
|
1398
|
+
|
1399
|
+
/**
|
1400
|
+
* additional debugging information. sent only if server is in development mode
|
1401
|
+
*
|
1402
|
+
* @generated from field: string debug_info = 6;
|
1403
|
+
*/
|
1404
|
+
debugInfo = "";
|
1405
|
+
|
1406
|
+
constructor(data?: PartialMessage<ServerInfo>) {
|
1407
|
+
super();
|
1408
|
+
proto3.util.initPartial(data, this);
|
1409
|
+
}
|
1410
|
+
|
1411
|
+
static readonly runtime: typeof proto3 = proto3;
|
1412
|
+
static readonly typeName = "livekit.ServerInfo";
|
1413
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
1414
|
+
{ no: 1, name: "edition", kind: "enum", T: proto3.getEnumType(ServerInfo_Edition) },
|
1415
|
+
{ no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1416
|
+
{ no: 3, name: "protocol", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
1417
|
+
{ no: 4, name: "region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1418
|
+
{ no: 5, name: "node_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1419
|
+
{ no: 6, name: "debug_info", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1420
|
+
]);
|
1421
|
+
|
1422
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServerInfo {
|
1423
|
+
return new ServerInfo().fromBinary(bytes, options);
|
1424
|
+
}
|
1425
|
+
|
1426
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServerInfo {
|
1427
|
+
return new ServerInfo().fromJson(jsonValue, options);
|
1428
|
+
}
|
1429
|
+
|
1430
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServerInfo {
|
1431
|
+
return new ServerInfo().fromJsonString(jsonString, options);
|
1432
|
+
}
|
1433
|
+
|
1434
|
+
static equals(a: ServerInfo | PlainMessage<ServerInfo> | undefined, b: ServerInfo | PlainMessage<ServerInfo> | undefined): boolean {
|
1435
|
+
return proto3.util.equals(ServerInfo, a, b);
|
1436
|
+
}
|
1437
|
+
}
|
1438
|
+
|
1439
|
+
/**
|
1440
|
+
* @generated from enum livekit.ServerInfo.Edition
|
1441
|
+
*/
|
1442
|
+
export enum ServerInfo_Edition {
|
1443
|
+
/**
|
1444
|
+
* @generated from enum value: Standard = 0;
|
1445
|
+
*/
|
1446
|
+
Standard = 0,
|
1447
|
+
|
1448
|
+
/**
|
1449
|
+
* @generated from enum value: Cloud = 1;
|
1450
|
+
*/
|
1451
|
+
Cloud = 1,
|
1452
|
+
}
|
1453
|
+
// Retrieve enum metadata with: proto3.getEnumType(ServerInfo_Edition)
|
1454
|
+
proto3.util.setEnumType(ServerInfo_Edition, "livekit.ServerInfo.Edition", [
|
1455
|
+
{ no: 0, name: "Standard" },
|
1456
|
+
{ no: 1, name: "Cloud" },
|
1457
|
+
]);
|
1458
|
+
|
1459
|
+
/**
|
1460
|
+
* details about the client
|
1461
|
+
*
|
1462
|
+
* @generated from message livekit.ClientInfo
|
1463
|
+
*/
|
1464
|
+
export class ClientInfo extends Message<ClientInfo> {
|
1465
|
+
/**
|
1466
|
+
* @generated from field: livekit.ClientInfo.SDK sdk = 1;
|
1467
|
+
*/
|
1468
|
+
sdk = ClientInfo_SDK.UNKNOWN;
|
1469
|
+
|
1470
|
+
/**
|
1471
|
+
* @generated from field: string version = 2;
|
1472
|
+
*/
|
1473
|
+
version = "";
|
1474
|
+
|
1475
|
+
/**
|
1476
|
+
* @generated from field: int32 protocol = 3;
|
1477
|
+
*/
|
1478
|
+
protocol = 0;
|
1479
|
+
|
1480
|
+
/**
|
1481
|
+
* @generated from field: string os = 4;
|
1482
|
+
*/
|
1483
|
+
os = "";
|
1484
|
+
|
1485
|
+
/**
|
1486
|
+
* @generated from field: string os_version = 5;
|
1487
|
+
*/
|
1488
|
+
osVersion = "";
|
1489
|
+
|
1490
|
+
/**
|
1491
|
+
* @generated from field: string device_model = 6;
|
1492
|
+
*/
|
1493
|
+
deviceModel = "";
|
1494
|
+
|
1495
|
+
/**
|
1496
|
+
* @generated from field: string browser = 7;
|
1497
|
+
*/
|
1498
|
+
browser = "";
|
1499
|
+
|
1500
|
+
/**
|
1501
|
+
* @generated from field: string browser_version = 8;
|
1502
|
+
*/
|
1503
|
+
browserVersion = "";
|
1504
|
+
|
1505
|
+
/**
|
1506
|
+
* @generated from field: string address = 9;
|
1507
|
+
*/
|
1508
|
+
address = "";
|
1509
|
+
|
1510
|
+
/**
|
1511
|
+
* wifi, wired, cellular, vpn, empty if not known
|
1512
|
+
*
|
1513
|
+
* @generated from field: string network = 10;
|
1514
|
+
*/
|
1515
|
+
network = "";
|
1516
|
+
|
1517
|
+
constructor(data?: PartialMessage<ClientInfo>) {
|
1518
|
+
super();
|
1519
|
+
proto3.util.initPartial(data, this);
|
1520
|
+
}
|
1521
|
+
|
1522
|
+
static readonly runtime: typeof proto3 = proto3;
|
1523
|
+
static readonly typeName = "livekit.ClientInfo";
|
1524
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
1525
|
+
{ no: 1, name: "sdk", kind: "enum", T: proto3.getEnumType(ClientInfo_SDK) },
|
1526
|
+
{ no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1527
|
+
{ no: 3, name: "protocol", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
1528
|
+
{ no: 4, name: "os", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1529
|
+
{ no: 5, name: "os_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1530
|
+
{ no: 6, name: "device_model", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1531
|
+
{ no: 7, name: "browser", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1532
|
+
{ no: 8, name: "browser_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1533
|
+
{ no: 9, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1534
|
+
{ no: 10, name: "network", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
1535
|
+
]);
|
1536
|
+
|
1537
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientInfo {
|
1538
|
+
return new ClientInfo().fromBinary(bytes, options);
|
1539
|
+
}
|
1540
|
+
|
1541
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClientInfo {
|
1542
|
+
return new ClientInfo().fromJson(jsonValue, options);
|
1543
|
+
}
|
1544
|
+
|
1545
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClientInfo {
|
1546
|
+
return new ClientInfo().fromJsonString(jsonString, options);
|
1547
|
+
}
|
1548
|
+
|
1549
|
+
static equals(a: ClientInfo | PlainMessage<ClientInfo> | undefined, b: ClientInfo | PlainMessage<ClientInfo> | undefined): boolean {
|
1550
|
+
return proto3.util.equals(ClientInfo, a, b);
|
1551
|
+
}
|
1552
|
+
}
|
1553
|
+
|
1554
|
+
/**
|
1555
|
+
* @generated from enum livekit.ClientInfo.SDK
|
1556
|
+
*/
|
1557
|
+
export enum ClientInfo_SDK {
|
1558
|
+
/**
|
1559
|
+
* @generated from enum value: UNKNOWN = 0;
|
1560
|
+
*/
|
1561
|
+
UNKNOWN = 0,
|
1562
|
+
|
1563
|
+
/**
|
1564
|
+
* @generated from enum value: JS = 1;
|
1565
|
+
*/
|
1566
|
+
JS = 1,
|
1567
|
+
|
1568
|
+
/**
|
1569
|
+
* @generated from enum value: SWIFT = 2;
|
1570
|
+
*/
|
1571
|
+
SWIFT = 2,
|
1572
|
+
|
1573
|
+
/**
|
1574
|
+
* @generated from enum value: ANDROID = 3;
|
1575
|
+
*/
|
1576
|
+
ANDROID = 3,
|
1577
|
+
|
1578
|
+
/**
|
1579
|
+
* @generated from enum value: FLUTTER = 4;
|
1580
|
+
*/
|
1581
|
+
FLUTTER = 4,
|
1582
|
+
|
1583
|
+
/**
|
1584
|
+
* @generated from enum value: GO = 5;
|
1585
|
+
*/
|
1586
|
+
GO = 5,
|
1587
|
+
|
1588
|
+
/**
|
1589
|
+
* @generated from enum value: UNITY = 6;
|
1590
|
+
*/
|
1591
|
+
UNITY = 6,
|
1592
|
+
|
1593
|
+
/**
|
1594
|
+
* @generated from enum value: REACT_NATIVE = 7;
|
1595
|
+
*/
|
1596
|
+
REACT_NATIVE = 7,
|
1597
|
+
|
1598
|
+
/**
|
1599
|
+
* @generated from enum value: RUST = 8;
|
1600
|
+
*/
|
1601
|
+
RUST = 8,
|
1602
|
+
}
|
1603
|
+
// Retrieve enum metadata with: proto3.getEnumType(ClientInfo_SDK)
|
1604
|
+
proto3.util.setEnumType(ClientInfo_SDK, "livekit.ClientInfo.SDK", [
|
1605
|
+
{ no: 0, name: "UNKNOWN" },
|
1606
|
+
{ no: 1, name: "JS" },
|
1607
|
+
{ no: 2, name: "SWIFT" },
|
1608
|
+
{ no: 3, name: "ANDROID" },
|
1609
|
+
{ no: 4, name: "FLUTTER" },
|
1610
|
+
{ no: 5, name: "GO" },
|
1611
|
+
{ no: 6, name: "UNITY" },
|
1612
|
+
{ no: 7, name: "REACT_NATIVE" },
|
1613
|
+
{ no: 8, name: "RUST" },
|
1614
|
+
]);
|
1615
|
+
|
1616
|
+
/**
|
1617
|
+
* server provided client configuration
|
1618
|
+
*
|
1619
|
+
* @generated from message livekit.ClientConfiguration
|
1620
|
+
*/
|
1621
|
+
export class ClientConfiguration extends Message<ClientConfiguration> {
|
1622
|
+
/**
|
1623
|
+
* @generated from field: livekit.VideoConfiguration video = 1;
|
1624
|
+
*/
|
1625
|
+
video?: VideoConfiguration;
|
1626
|
+
|
1627
|
+
/**
|
1628
|
+
* @generated from field: livekit.VideoConfiguration screen = 2;
|
1629
|
+
*/
|
1630
|
+
screen?: VideoConfiguration;
|
1631
|
+
|
1632
|
+
/**
|
1633
|
+
* @generated from field: livekit.ClientConfigSetting resume_connection = 3;
|
1634
|
+
*/
|
1635
|
+
resumeConnection = ClientConfigSetting.UNSET;
|
1636
|
+
|
1637
|
+
/**
|
1638
|
+
* @generated from field: livekit.DisabledCodecs disabled_codecs = 4;
|
1639
|
+
*/
|
1640
|
+
disabledCodecs?: DisabledCodecs;
|
1641
|
+
|
1642
|
+
/**
|
1643
|
+
* @generated from field: livekit.ClientConfigSetting force_relay = 5;
|
1644
|
+
*/
|
1645
|
+
forceRelay = ClientConfigSetting.UNSET;
|
1646
|
+
|
1647
|
+
constructor(data?: PartialMessage<ClientConfiguration>) {
|
1648
|
+
super();
|
1649
|
+
proto3.util.initPartial(data, this);
|
1650
|
+
}
|
1651
|
+
|
1652
|
+
static readonly runtime: typeof proto3 = proto3;
|
1653
|
+
static readonly typeName = "livekit.ClientConfiguration";
|
1654
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
1655
|
+
{ no: 1, name: "video", kind: "message", T: VideoConfiguration },
|
1656
|
+
{ no: 2, name: "screen", kind: "message", T: VideoConfiguration },
|
1657
|
+
{ no: 3, name: "resume_connection", kind: "enum", T: proto3.getEnumType(ClientConfigSetting) },
|
1658
|
+
{ no: 4, name: "disabled_codecs", kind: "message", T: DisabledCodecs },
|
1659
|
+
{ no: 5, name: "force_relay", kind: "enum", T: proto3.getEnumType(ClientConfigSetting) },
|
1660
|
+
]);
|
1661
|
+
|
1662
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClientConfiguration {
|
1663
|
+
return new ClientConfiguration().fromBinary(bytes, options);
|
1664
|
+
}
|
1665
|
+
|
1666
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClientConfiguration {
|
1667
|
+
return new ClientConfiguration().fromJson(jsonValue, options);
|
1668
|
+
}
|
1669
|
+
|
1670
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClientConfiguration {
|
1671
|
+
return new ClientConfiguration().fromJsonString(jsonString, options);
|
1672
|
+
}
|
1673
|
+
|
1674
|
+
static equals(a: ClientConfiguration | PlainMessage<ClientConfiguration> | undefined, b: ClientConfiguration | PlainMessage<ClientConfiguration> | undefined): boolean {
|
1675
|
+
return proto3.util.equals(ClientConfiguration, a, b);
|
1676
|
+
}
|
1677
|
+
}
|
1678
|
+
|
1679
|
+
/**
|
1680
|
+
* @generated from message livekit.VideoConfiguration
|
1681
|
+
*/
|
1682
|
+
export class VideoConfiguration extends Message<VideoConfiguration> {
|
1683
|
+
/**
|
1684
|
+
* @generated from field: livekit.ClientConfigSetting hardware_encoder = 1;
|
1685
|
+
*/
|
1686
|
+
hardwareEncoder = ClientConfigSetting.UNSET;
|
1687
|
+
|
1688
|
+
constructor(data?: PartialMessage<VideoConfiguration>) {
|
1689
|
+
super();
|
1690
|
+
proto3.util.initPartial(data, this);
|
1691
|
+
}
|
1692
|
+
|
1693
|
+
static readonly runtime: typeof proto3 = proto3;
|
1694
|
+
static readonly typeName = "livekit.VideoConfiguration";
|
1695
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
1696
|
+
{ no: 1, name: "hardware_encoder", kind: "enum", T: proto3.getEnumType(ClientConfigSetting) },
|
1697
|
+
]);
|
1698
|
+
|
1699
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConfiguration {
|
1700
|
+
return new VideoConfiguration().fromBinary(bytes, options);
|
1701
|
+
}
|
1702
|
+
|
1703
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConfiguration {
|
1704
|
+
return new VideoConfiguration().fromJson(jsonValue, options);
|
1705
|
+
}
|
1706
|
+
|
1707
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConfiguration {
|
1708
|
+
return new VideoConfiguration().fromJsonString(jsonString, options);
|
1709
|
+
}
|
1710
|
+
|
1711
|
+
static equals(a: VideoConfiguration | PlainMessage<VideoConfiguration> | undefined, b: VideoConfiguration | PlainMessage<VideoConfiguration> | undefined): boolean {
|
1712
|
+
return proto3.util.equals(VideoConfiguration, a, b);
|
1713
|
+
}
|
1714
|
+
}
|
1715
|
+
|
1716
|
+
/**
|
1717
|
+
* @generated from message livekit.DisabledCodecs
|
1718
|
+
*/
|
1719
|
+
export class DisabledCodecs extends Message<DisabledCodecs> {
|
1720
|
+
/**
|
1721
|
+
* disabled for both publish and subscribe
|
1722
|
+
*
|
1723
|
+
* @generated from field: repeated livekit.Codec codecs = 1;
|
1724
|
+
*/
|
1725
|
+
codecs: Codec[] = [];
|
1726
|
+
|
1727
|
+
/**
|
1728
|
+
* only disable for publish
|
1729
|
+
*
|
1730
|
+
* @generated from field: repeated livekit.Codec publish = 2;
|
1731
|
+
*/
|
1732
|
+
publish: Codec[] = [];
|
1733
|
+
|
1734
|
+
constructor(data?: PartialMessage<DisabledCodecs>) {
|
1735
|
+
super();
|
1736
|
+
proto3.util.initPartial(data, this);
|
1737
|
+
}
|
1738
|
+
|
1739
|
+
static readonly runtime: typeof proto3 = proto3;
|
1740
|
+
static readonly typeName = "livekit.DisabledCodecs";
|
1741
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
1742
|
+
{ no: 1, name: "codecs", kind: "message", T: Codec, repeated: true },
|
1743
|
+
{ no: 2, name: "publish", kind: "message", T: Codec, repeated: true },
|
1744
|
+
]);
|
1745
|
+
|
1746
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisabledCodecs {
|
1747
|
+
return new DisabledCodecs().fromBinary(bytes, options);
|
1748
|
+
}
|
1749
|
+
|
1750
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisabledCodecs {
|
1751
|
+
return new DisabledCodecs().fromJson(jsonValue, options);
|
1752
|
+
}
|
1753
|
+
|
1754
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisabledCodecs {
|
1755
|
+
return new DisabledCodecs().fromJsonString(jsonString, options);
|
1756
|
+
}
|
1757
|
+
|
1758
|
+
static equals(a: DisabledCodecs | PlainMessage<DisabledCodecs> | undefined, b: DisabledCodecs | PlainMessage<DisabledCodecs> | undefined): boolean {
|
1759
|
+
return proto3.util.equals(DisabledCodecs, a, b);
|
1760
|
+
}
|
1761
|
+
}
|
1762
|
+
|
1763
|
+
/**
|
1764
|
+
* @generated from message livekit.RTPStats
|
1765
|
+
*/
|
1766
|
+
export class RTPStats extends Message<RTPStats> {
|
1767
|
+
/**
|
1768
|
+
* @generated from field: google.protobuf.Timestamp start_time = 1;
|
1769
|
+
*/
|
1770
|
+
startTime?: Timestamp;
|
1771
|
+
|
1772
|
+
/**
|
1773
|
+
* @generated from field: google.protobuf.Timestamp end_time = 2;
|
1774
|
+
*/
|
1775
|
+
endTime?: Timestamp;
|
1776
|
+
|
1777
|
+
/**
|
1778
|
+
* @generated from field: double duration = 3;
|
1779
|
+
*/
|
1780
|
+
duration = 0;
|
1781
|
+
|
1782
|
+
/**
|
1783
|
+
* @generated from field: uint32 packets = 4;
|
1784
|
+
*/
|
1785
|
+
packets = 0;
|
1786
|
+
|
1787
|
+
/**
|
1788
|
+
* @generated from field: double packet_rate = 5;
|
1789
|
+
*/
|
1790
|
+
packetRate = 0;
|
1791
|
+
|
1792
|
+
/**
|
1793
|
+
* @generated from field: uint64 bytes = 6;
|
1794
|
+
*/
|
1795
|
+
bytes = protoInt64.zero;
|
1796
|
+
|
1797
|
+
/**
|
1798
|
+
* @generated from field: uint64 header_bytes = 39;
|
1799
|
+
*/
|
1800
|
+
headerBytes = protoInt64.zero;
|
1801
|
+
|
1802
|
+
/**
|
1803
|
+
* @generated from field: double bitrate = 7;
|
1804
|
+
*/
|
1805
|
+
bitrate = 0;
|
1806
|
+
|
1807
|
+
/**
|
1808
|
+
* @generated from field: uint32 packets_lost = 8;
|
1809
|
+
*/
|
1810
|
+
packetsLost = 0;
|
1811
|
+
|
1812
|
+
/**
|
1813
|
+
* @generated from field: double packet_loss_rate = 9;
|
1814
|
+
*/
|
1815
|
+
packetLossRate = 0;
|
1816
|
+
|
1817
|
+
/**
|
1818
|
+
* @generated from field: float packet_loss_percentage = 10;
|
1819
|
+
*/
|
1820
|
+
packetLossPercentage = 0;
|
1821
|
+
|
1822
|
+
/**
|
1823
|
+
* @generated from field: uint32 packets_duplicate = 11;
|
1824
|
+
*/
|
1825
|
+
packetsDuplicate = 0;
|
1826
|
+
|
1827
|
+
/**
|
1828
|
+
* @generated from field: double packet_duplicate_rate = 12;
|
1829
|
+
*/
|
1830
|
+
packetDuplicateRate = 0;
|
1831
|
+
|
1832
|
+
/**
|
1833
|
+
* @generated from field: uint64 bytes_duplicate = 13;
|
1834
|
+
*/
|
1835
|
+
bytesDuplicate = protoInt64.zero;
|
1836
|
+
|
1837
|
+
/**
|
1838
|
+
* @generated from field: uint64 header_bytes_duplicate = 40;
|
1839
|
+
*/
|
1840
|
+
headerBytesDuplicate = protoInt64.zero;
|
1841
|
+
|
1842
|
+
/**
|
1843
|
+
* @generated from field: double bitrate_duplicate = 14;
|
1844
|
+
*/
|
1845
|
+
bitrateDuplicate = 0;
|
1846
|
+
|
1847
|
+
/**
|
1848
|
+
* @generated from field: uint32 packets_padding = 15;
|
1849
|
+
*/
|
1850
|
+
packetsPadding = 0;
|
1851
|
+
|
1852
|
+
/**
|
1853
|
+
* @generated from field: double packet_padding_rate = 16;
|
1854
|
+
*/
|
1855
|
+
packetPaddingRate = 0;
|
1856
|
+
|
1857
|
+
/**
|
1858
|
+
* @generated from field: uint64 bytes_padding = 17;
|
1859
|
+
*/
|
1860
|
+
bytesPadding = protoInt64.zero;
|
1861
|
+
|
1862
|
+
/**
|
1863
|
+
* @generated from field: uint64 header_bytes_padding = 41;
|
1864
|
+
*/
|
1865
|
+
headerBytesPadding = protoInt64.zero;
|
1866
|
+
|
1867
|
+
/**
|
1868
|
+
* @generated from field: double bitrate_padding = 18;
|
1869
|
+
*/
|
1870
|
+
bitratePadding = 0;
|
1871
|
+
|
1872
|
+
/**
|
1873
|
+
* @generated from field: uint32 packets_out_of_order = 19;
|
1874
|
+
*/
|
1875
|
+
packetsOutOfOrder = 0;
|
1876
|
+
|
1877
|
+
/**
|
1878
|
+
* @generated from field: uint32 frames = 20;
|
1879
|
+
*/
|
1880
|
+
frames = 0;
|
1881
|
+
|
1882
|
+
/**
|
1883
|
+
* @generated from field: double frame_rate = 21;
|
1884
|
+
*/
|
1885
|
+
frameRate = 0;
|
1886
|
+
|
1887
|
+
/**
|
1888
|
+
* @generated from field: double jitter_current = 22;
|
1889
|
+
*/
|
1890
|
+
jitterCurrent = 0;
|
1891
|
+
|
1892
|
+
/**
|
1893
|
+
* @generated from field: double jitter_max = 23;
|
1894
|
+
*/
|
1895
|
+
jitterMax = 0;
|
1896
|
+
|
1897
|
+
/**
|
1898
|
+
* @generated from field: map<int32, uint32> gap_histogram = 24;
|
1899
|
+
*/
|
1900
|
+
gapHistogram: { [key: number]: number } = {};
|
1901
|
+
|
1902
|
+
/**
|
1903
|
+
* @generated from field: uint32 nacks = 25;
|
1904
|
+
*/
|
1905
|
+
nacks = 0;
|
1906
|
+
|
1907
|
+
/**
|
1908
|
+
* @generated from field: uint32 nack_acks = 37;
|
1909
|
+
*/
|
1910
|
+
nackAcks = 0;
|
1911
|
+
|
1912
|
+
/**
|
1913
|
+
* @generated from field: uint32 nack_misses = 26;
|
1914
|
+
*/
|
1915
|
+
nackMisses = 0;
|
1916
|
+
|
1917
|
+
/**
|
1918
|
+
* @generated from field: uint32 nack_repeated = 38;
|
1919
|
+
*/
|
1920
|
+
nackRepeated = 0;
|
1921
|
+
|
1922
|
+
/**
|
1923
|
+
* @generated from field: uint32 plis = 27;
|
1924
|
+
*/
|
1925
|
+
plis = 0;
|
1926
|
+
|
1927
|
+
/**
|
1928
|
+
* @generated from field: google.protobuf.Timestamp last_pli = 28;
|
1929
|
+
*/
|
1930
|
+
lastPli?: Timestamp;
|
1931
|
+
|
1932
|
+
/**
|
1933
|
+
* @generated from field: uint32 firs = 29;
|
1934
|
+
*/
|
1935
|
+
firs = 0;
|
1936
|
+
|
1937
|
+
/**
|
1938
|
+
* @generated from field: google.protobuf.Timestamp last_fir = 30;
|
1939
|
+
*/
|
1940
|
+
lastFir?: Timestamp;
|
1941
|
+
|
1942
|
+
/**
|
1943
|
+
* @generated from field: uint32 rtt_current = 31;
|
1944
|
+
*/
|
1945
|
+
rttCurrent = 0;
|
1946
|
+
|
1947
|
+
/**
|
1948
|
+
* @generated from field: uint32 rtt_max = 32;
|
1949
|
+
*/
|
1950
|
+
rttMax = 0;
|
1951
|
+
|
1952
|
+
/**
|
1953
|
+
* @generated from field: uint32 key_frames = 33;
|
1954
|
+
*/
|
1955
|
+
keyFrames = 0;
|
1956
|
+
|
1957
|
+
/**
|
1958
|
+
* @generated from field: google.protobuf.Timestamp last_key_frame = 34;
|
1959
|
+
*/
|
1960
|
+
lastKeyFrame?: Timestamp;
|
1961
|
+
|
1962
|
+
/**
|
1963
|
+
* @generated from field: uint32 layer_lock_plis = 35;
|
1964
|
+
*/
|
1965
|
+
layerLockPlis = 0;
|
1966
|
+
|
1967
|
+
/**
|
1968
|
+
* @generated from field: google.protobuf.Timestamp last_layer_lock_pli = 36;
|
1969
|
+
*/
|
1970
|
+
lastLayerLockPli?: Timestamp;
|
1971
|
+
|
1972
|
+
/**
|
1973
|
+
* @generated from field: double sample_rate = 42;
|
1974
|
+
*/
|
1975
|
+
sampleRate = 0;
|
1976
|
+
|
1977
|
+
/**
|
1978
|
+
* NEXT_ID: 44
|
1979
|
+
*
|
1980
|
+
* @generated from field: double drift_ms = 43;
|
1981
|
+
*/
|
1982
|
+
driftMs = 0;
|
1983
|
+
|
1984
|
+
constructor(data?: PartialMessage<RTPStats>) {
|
1985
|
+
super();
|
1986
|
+
proto3.util.initPartial(data, this);
|
1987
|
+
}
|
1988
|
+
|
1989
|
+
static readonly runtime: typeof proto3 = proto3;
|
1990
|
+
static readonly typeName = "livekit.RTPStats";
|
1991
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
1992
|
+
{ no: 1, name: "start_time", kind: "message", T: Timestamp },
|
1993
|
+
{ no: 2, name: "end_time", kind: "message", T: Timestamp },
|
1994
|
+
{ no: 3, name: "duration", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
1995
|
+
{ no: 4, name: "packets", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
1996
|
+
{ no: 5, name: "packet_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
1997
|
+
{ no: 6, name: "bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
1998
|
+
{ no: 39, name: "header_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
1999
|
+
{ no: 7, name: "bitrate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
2000
|
+
{ no: 8, name: "packets_lost", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
2001
|
+
{ no: 9, name: "packet_loss_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
2002
|
+
{ no: 10, name: "packet_loss_percentage", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
2003
|
+
{ no: 11, name: "packets_duplicate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
2004
|
+
{ no: 12, name: "packet_duplicate_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
2005
|
+
{ no: 13, name: "bytes_duplicate", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
2006
|
+
{ no: 40, name: "header_bytes_duplicate", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
2007
|
+
{ no: 14, name: "bitrate_duplicate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
2008
|
+
{ no: 15, name: "packets_padding", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
2009
|
+
{ no: 16, name: "packet_padding_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
2010
|
+
{ no: 17, name: "bytes_padding", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
2011
|
+
{ no: 41, name: "header_bytes_padding", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
2012
|
+
{ no: 18, name: "bitrate_padding", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
2013
|
+
{ no: 19, name: "packets_out_of_order", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
2014
|
+
{ no: 20, name: "frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
2015
|
+
{ no: 21, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
2016
|
+
{ no: 22, name: "jitter_current", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
2017
|
+
{ no: 23, name: "jitter_max", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
2018
|
+
{ no: 24, name: "gap_histogram", kind: "map", K: 5 /* ScalarType.INT32 */, V: {kind: "scalar", T: 13 /* ScalarType.UINT32 */} },
|
2019
|
+
{ no: 25, name: "nacks", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
2020
|
+
{ no: 37, name: "nack_acks", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
2021
|
+
{ no: 26, name: "nack_misses", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
2022
|
+
{ no: 38, name: "nack_repeated", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
2023
|
+
{ no: 27, name: "plis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
2024
|
+
{ no: 28, name: "last_pli", kind: "message", T: Timestamp },
|
2025
|
+
{ no: 29, name: "firs", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
2026
|
+
{ no: 30, name: "last_fir", kind: "message", T: Timestamp },
|
2027
|
+
{ no: 31, name: "rtt_current", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
2028
|
+
{ no: 32, name: "rtt_max", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
2029
|
+
{ no: 33, name: "key_frames", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
2030
|
+
{ no: 34, name: "last_key_frame", kind: "message", T: Timestamp },
|
2031
|
+
{ no: 35, name: "layer_lock_plis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
2032
|
+
{ no: 36, name: "last_layer_lock_pli", kind: "message", T: Timestamp },
|
2033
|
+
{ no: 42, name: "sample_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
2034
|
+
{ no: 43, name: "drift_ms", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
2035
|
+
]);
|
2036
|
+
|
2037
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPStats {
|
2038
|
+
return new RTPStats().fromBinary(bytes, options);
|
2039
|
+
}
|
2040
|
+
|
2041
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPStats {
|
2042
|
+
return new RTPStats().fromJson(jsonValue, options);
|
2043
|
+
}
|
2044
|
+
|
2045
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPStats {
|
2046
|
+
return new RTPStats().fromJsonString(jsonString, options);
|
2047
|
+
}
|
2048
|
+
|
2049
|
+
static equals(a: RTPStats | PlainMessage<RTPStats> | undefined, b: RTPStats | PlainMessage<RTPStats> | undefined): boolean {
|
2050
|
+
return proto3.util.equals(RTPStats, a, b);
|
2051
|
+
}
|
2052
|
+
}
|
2053
|
+
|
2054
|
+
/**
|
2055
|
+
* @generated from message livekit.TimedVersion
|
2056
|
+
*/
|
2057
|
+
export class TimedVersion extends Message<TimedVersion> {
|
2058
|
+
/**
|
2059
|
+
* @generated from field: int64 unix_micro = 1;
|
2060
|
+
*/
|
2061
|
+
unixMicro = protoInt64.zero;
|
2062
|
+
|
2063
|
+
/**
|
2064
|
+
* @generated from field: int32 ticks = 2;
|
2065
|
+
*/
|
2066
|
+
ticks = 0;
|
2067
|
+
|
2068
|
+
constructor(data?: PartialMessage<TimedVersion>) {
|
2069
|
+
super();
|
2070
|
+
proto3.util.initPartial(data, this);
|
2071
|
+
}
|
2072
|
+
|
2073
|
+
static readonly runtime: typeof proto3 = proto3;
|
2074
|
+
static readonly typeName = "livekit.TimedVersion";
|
2075
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
2076
|
+
{ no: 1, name: "unix_micro", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
2077
|
+
{ no: 2, name: "ticks", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
2078
|
+
]);
|
2079
|
+
|
2080
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimedVersion {
|
2081
|
+
return new TimedVersion().fromBinary(bytes, options);
|
2082
|
+
}
|
2083
|
+
|
2084
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimedVersion {
|
2085
|
+
return new TimedVersion().fromJson(jsonValue, options);
|
2086
|
+
}
|
2087
|
+
|
2088
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimedVersion {
|
2089
|
+
return new TimedVersion().fromJsonString(jsonString, options);
|
2090
|
+
}
|
2091
|
+
|
2092
|
+
static equals(a: TimedVersion | PlainMessage<TimedVersion> | undefined, b: TimedVersion | PlainMessage<TimedVersion> | undefined): boolean {
|
2093
|
+
return proto3.util.equals(TimedVersion, a, b);
|
2094
|
+
}
|
2095
|
+
}
|
2096
|
+
|