@livekit/rtc-node 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +11 -7
- package/.prettierrc +0 -7
- package/Cargo.toml +0 -21
- package/build.rs +0 -5
- package/generate_proto.sh +0 -34
- package/src/audio_frame.ts +0 -45
- package/src/audio_source.ts +0 -64
- package/src/audio_stream.ts +0 -74
- package/src/e2ee.ts +0 -311
- package/src/ffi_client.ts +0 -68
- package/src/index.ts +0 -52
- package/src/lib.rs +0 -5
- package/src/native.d.ts +0 -14
- package/src/native.js +0 -244
- package/src/nodejs.rs +0 -115
- package/src/participant.ts +0 -171
- package/src/proto/audio_frame_pb.ts +0 -1121
- package/src/proto/e2ee_pb.ts +0 -1231
- package/src/proto/ffi_pb.ts +0 -969
- package/src/proto/handle_pb.ts +0 -69
- package/src/proto/participant_pb.ts +0 -121
- package/src/proto/room_pb.ts +0 -2843
- package/src/proto/stats_pb.ts +0 -2955
- package/src/proto/track_pb.ts +0 -683
- package/src/proto/video_frame_pb.ts +0 -1568
- package/src/room.ts +0 -370
- package/src/track.ts +0 -101
- package/src/track_publication.ts +0 -90
- package/src/video_frame.ts +0 -620
- package/src/video_source.ts +0 -61
- package/src/video_stream.ts +0 -76
- package/tsconfig.json +0 -14
|
@@ -1,1568 +0,0 @@
|
|
|
1
|
-
// Copyright 2023 LiveKit, Inc.
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
|
|
15
|
-
// @generated by protoc-gen-es v1.4.2 with parameter "target=ts"
|
|
16
|
-
// @generated from file video_frame.proto (package livekit.proto, syntax proto3)
|
|
17
|
-
/* eslint-disable */
|
|
18
|
-
// @ts-nocheck
|
|
19
|
-
|
|
20
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
21
|
-
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
22
|
-
import { FfiOwnedHandle } from "./handle_pb.js";
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @generated from enum livekit.proto.VideoCodec
|
|
26
|
-
*/
|
|
27
|
-
export enum VideoCodec {
|
|
28
|
-
/**
|
|
29
|
-
* @generated from enum value: VP8 = 0;
|
|
30
|
-
*/
|
|
31
|
-
VP8 = 0,
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @generated from enum value: H264 = 1;
|
|
35
|
-
*/
|
|
36
|
-
H264 = 1,
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @generated from enum value: AV1 = 2;
|
|
40
|
-
*/
|
|
41
|
-
AV1 = 2,
|
|
42
|
-
}
|
|
43
|
-
// Retrieve enum metadata with: proto3.getEnumType(VideoCodec)
|
|
44
|
-
proto3.util.setEnumType(VideoCodec, "livekit.proto.VideoCodec", [
|
|
45
|
-
{ no: 0, name: "VP8" },
|
|
46
|
-
{ no: 1, name: "H264" },
|
|
47
|
-
{ no: 2, name: "AV1" },
|
|
48
|
-
]);
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @generated from enum livekit.proto.VideoRotation
|
|
52
|
-
*/
|
|
53
|
-
export enum VideoRotation {
|
|
54
|
-
/**
|
|
55
|
-
* @generated from enum value: VIDEO_ROTATION_0 = 0;
|
|
56
|
-
*/
|
|
57
|
-
VIDEO_ROTATION_0 = 0,
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @generated from enum value: VIDEO_ROTATION_90 = 1;
|
|
61
|
-
*/
|
|
62
|
-
VIDEO_ROTATION_90 = 1,
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @generated from enum value: VIDEO_ROTATION_180 = 2;
|
|
66
|
-
*/
|
|
67
|
-
VIDEO_ROTATION_180 = 2,
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @generated from enum value: VIDEO_ROTATION_270 = 3;
|
|
71
|
-
*/
|
|
72
|
-
VIDEO_ROTATION_270 = 3,
|
|
73
|
-
}
|
|
74
|
-
// Retrieve enum metadata with: proto3.getEnumType(VideoRotation)
|
|
75
|
-
proto3.util.setEnumType(VideoRotation, "livekit.proto.VideoRotation", [
|
|
76
|
-
{ no: 0, name: "VIDEO_ROTATION_0" },
|
|
77
|
-
{ no: 1, name: "VIDEO_ROTATION_90" },
|
|
78
|
-
{ no: 2, name: "VIDEO_ROTATION_180" },
|
|
79
|
-
{ no: 3, name: "VIDEO_ROTATION_270" },
|
|
80
|
-
]);
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @generated from enum livekit.proto.VideoFormatType
|
|
84
|
-
*/
|
|
85
|
-
export enum VideoFormatType {
|
|
86
|
-
/**
|
|
87
|
-
* @generated from enum value: FORMAT_ARGB = 0;
|
|
88
|
-
*/
|
|
89
|
-
FORMAT_ARGB = 0,
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* @generated from enum value: FORMAT_BGRA = 1;
|
|
93
|
-
*/
|
|
94
|
-
FORMAT_BGRA = 1,
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @generated from enum value: FORMAT_ABGR = 2;
|
|
98
|
-
*/
|
|
99
|
-
FORMAT_ABGR = 2,
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @generated from enum value: FORMAT_RGBA = 3;
|
|
103
|
-
*/
|
|
104
|
-
FORMAT_RGBA = 3,
|
|
105
|
-
}
|
|
106
|
-
// Retrieve enum metadata with: proto3.getEnumType(VideoFormatType)
|
|
107
|
-
proto3.util.setEnumType(VideoFormatType, "livekit.proto.VideoFormatType", [
|
|
108
|
-
{ no: 0, name: "FORMAT_ARGB" },
|
|
109
|
-
{ no: 1, name: "FORMAT_BGRA" },
|
|
110
|
-
{ no: 2, name: "FORMAT_ABGR" },
|
|
111
|
-
{ no: 3, name: "FORMAT_RGBA" },
|
|
112
|
-
]);
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* @generated from enum livekit.proto.VideoFrameBufferType
|
|
116
|
-
*/
|
|
117
|
-
export enum VideoFrameBufferType {
|
|
118
|
-
/**
|
|
119
|
-
* @generated from enum value: NATIVE = 0;
|
|
120
|
-
*/
|
|
121
|
-
NATIVE = 0,
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* @generated from enum value: I420 = 1;
|
|
125
|
-
*/
|
|
126
|
-
I420 = 1,
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* @generated from enum value: I420A = 2;
|
|
130
|
-
*/
|
|
131
|
-
I420A = 2,
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @generated from enum value: I422 = 3;
|
|
135
|
-
*/
|
|
136
|
-
I422 = 3,
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* @generated from enum value: I444 = 4;
|
|
140
|
-
*/
|
|
141
|
-
I444 = 4,
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* @generated from enum value: I010 = 5;
|
|
145
|
-
*/
|
|
146
|
-
I010 = 5,
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* @generated from enum value: NV12 = 6;
|
|
150
|
-
*/
|
|
151
|
-
NV12 = 6,
|
|
152
|
-
}
|
|
153
|
-
// Retrieve enum metadata with: proto3.getEnumType(VideoFrameBufferType)
|
|
154
|
-
proto3.util.setEnumType(VideoFrameBufferType, "livekit.proto.VideoFrameBufferType", [
|
|
155
|
-
{ no: 0, name: "NATIVE" },
|
|
156
|
-
{ no: 1, name: "I420" },
|
|
157
|
-
{ no: 2, name: "I420A" },
|
|
158
|
-
{ no: 3, name: "I422" },
|
|
159
|
-
{ no: 4, name: "I444" },
|
|
160
|
-
{ no: 5, name: "I010" },
|
|
161
|
-
{ no: 6, name: "NV12" },
|
|
162
|
-
]);
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* @generated from enum livekit.proto.VideoStreamType
|
|
166
|
-
*/
|
|
167
|
-
export enum VideoStreamType {
|
|
168
|
-
/**
|
|
169
|
-
* @generated from enum value: VIDEO_STREAM_NATIVE = 0;
|
|
170
|
-
*/
|
|
171
|
-
VIDEO_STREAM_NATIVE = 0,
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* @generated from enum value: VIDEO_STREAM_WEBGL = 1;
|
|
175
|
-
*/
|
|
176
|
-
VIDEO_STREAM_WEBGL = 1,
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* @generated from enum value: VIDEO_STREAM_HTML = 2;
|
|
180
|
-
*/
|
|
181
|
-
VIDEO_STREAM_HTML = 2,
|
|
182
|
-
}
|
|
183
|
-
// Retrieve enum metadata with: proto3.getEnumType(VideoStreamType)
|
|
184
|
-
proto3.util.setEnumType(VideoStreamType, "livekit.proto.VideoStreamType", [
|
|
185
|
-
{ no: 0, name: "VIDEO_STREAM_NATIVE" },
|
|
186
|
-
{ no: 1, name: "VIDEO_STREAM_WEBGL" },
|
|
187
|
-
{ no: 2, name: "VIDEO_STREAM_HTML" },
|
|
188
|
-
]);
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* @generated from enum livekit.proto.VideoSourceType
|
|
192
|
-
*/
|
|
193
|
-
export enum VideoSourceType {
|
|
194
|
-
/**
|
|
195
|
-
* @generated from enum value: VIDEO_SOURCE_NATIVE = 0;
|
|
196
|
-
*/
|
|
197
|
-
VIDEO_SOURCE_NATIVE = 0,
|
|
198
|
-
}
|
|
199
|
-
// Retrieve enum metadata with: proto3.getEnumType(VideoSourceType)
|
|
200
|
-
proto3.util.setEnumType(VideoSourceType, "livekit.proto.VideoSourceType", [
|
|
201
|
-
{ no: 0, name: "VIDEO_SOURCE_NATIVE" },
|
|
202
|
-
]);
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* Allocate a new VideoFrameBuffer
|
|
206
|
-
*
|
|
207
|
-
* @generated from message livekit.proto.AllocVideoBufferRequest
|
|
208
|
-
*/
|
|
209
|
-
export class AllocVideoBufferRequest extends Message<AllocVideoBufferRequest> {
|
|
210
|
-
/**
|
|
211
|
-
* Only I420 is supported atm
|
|
212
|
-
*
|
|
213
|
-
* @generated from field: livekit.proto.VideoFrameBufferType type = 1;
|
|
214
|
-
*/
|
|
215
|
-
type = VideoFrameBufferType.NATIVE;
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* @generated from field: uint32 width = 2;
|
|
219
|
-
*/
|
|
220
|
-
width = 0;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* @generated from field: uint32 height = 3;
|
|
224
|
-
*/
|
|
225
|
-
height = 0;
|
|
226
|
-
|
|
227
|
-
constructor(data?: PartialMessage<AllocVideoBufferRequest>) {
|
|
228
|
-
super();
|
|
229
|
-
proto3.util.initPartial(data, this);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
233
|
-
static readonly typeName = "livekit.proto.AllocVideoBufferRequest";
|
|
234
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
235
|
-
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(VideoFrameBufferType) },
|
|
236
|
-
{ no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
237
|
-
{ no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
238
|
-
]);
|
|
239
|
-
|
|
240
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AllocVideoBufferRequest {
|
|
241
|
-
return new AllocVideoBufferRequest().fromBinary(bytes, options);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AllocVideoBufferRequest {
|
|
245
|
-
return new AllocVideoBufferRequest().fromJson(jsonValue, options);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AllocVideoBufferRequest {
|
|
249
|
-
return new AllocVideoBufferRequest().fromJsonString(jsonString, options);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
static equals(a: AllocVideoBufferRequest | PlainMessage<AllocVideoBufferRequest> | undefined, b: AllocVideoBufferRequest | PlainMessage<AllocVideoBufferRequest> | undefined): boolean {
|
|
253
|
-
return proto3.util.equals(AllocVideoBufferRequest, a, b);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* @generated from message livekit.proto.AllocVideoBufferResponse
|
|
259
|
-
*/
|
|
260
|
-
export class AllocVideoBufferResponse extends Message<AllocVideoBufferResponse> {
|
|
261
|
-
/**
|
|
262
|
-
* @generated from field: livekit.proto.OwnedVideoFrameBuffer buffer = 1;
|
|
263
|
-
*/
|
|
264
|
-
buffer?: OwnedVideoFrameBuffer;
|
|
265
|
-
|
|
266
|
-
constructor(data?: PartialMessage<AllocVideoBufferResponse>) {
|
|
267
|
-
super();
|
|
268
|
-
proto3.util.initPartial(data, this);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
272
|
-
static readonly typeName = "livekit.proto.AllocVideoBufferResponse";
|
|
273
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
274
|
-
{ no: 1, name: "buffer", kind: "message", T: OwnedVideoFrameBuffer },
|
|
275
|
-
]);
|
|
276
|
-
|
|
277
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AllocVideoBufferResponse {
|
|
278
|
-
return new AllocVideoBufferResponse().fromBinary(bytes, options);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AllocVideoBufferResponse {
|
|
282
|
-
return new AllocVideoBufferResponse().fromJson(jsonValue, options);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AllocVideoBufferResponse {
|
|
286
|
-
return new AllocVideoBufferResponse().fromJsonString(jsonString, options);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
static equals(a: AllocVideoBufferResponse | PlainMessage<AllocVideoBufferResponse> | undefined, b: AllocVideoBufferResponse | PlainMessage<AllocVideoBufferResponse> | undefined): boolean {
|
|
290
|
-
return proto3.util.equals(AllocVideoBufferResponse, a, b);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Create a new VideoStream
|
|
296
|
-
* VideoStream is used to receive video frames from a track
|
|
297
|
-
*
|
|
298
|
-
* @generated from message livekit.proto.NewVideoStreamRequest
|
|
299
|
-
*/
|
|
300
|
-
export class NewVideoStreamRequest extends Message<NewVideoStreamRequest> {
|
|
301
|
-
/**
|
|
302
|
-
* @generated from field: uint64 track_handle = 1;
|
|
303
|
-
*/
|
|
304
|
-
trackHandle = protoInt64.zero;
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* @generated from field: livekit.proto.VideoStreamType type = 2;
|
|
308
|
-
*/
|
|
309
|
-
type = VideoStreamType.VIDEO_STREAM_NATIVE;
|
|
310
|
-
|
|
311
|
-
constructor(data?: PartialMessage<NewVideoStreamRequest>) {
|
|
312
|
-
super();
|
|
313
|
-
proto3.util.initPartial(data, this);
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
317
|
-
static readonly typeName = "livekit.proto.NewVideoStreamRequest";
|
|
318
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
319
|
-
{ no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
320
|
-
{ no: 2, name: "type", kind: "enum", T: proto3.getEnumType(VideoStreamType) },
|
|
321
|
-
]);
|
|
322
|
-
|
|
323
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoStreamRequest {
|
|
324
|
-
return new NewVideoStreamRequest().fromBinary(bytes, options);
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoStreamRequest {
|
|
328
|
-
return new NewVideoStreamRequest().fromJson(jsonValue, options);
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoStreamRequest {
|
|
332
|
-
return new NewVideoStreamRequest().fromJsonString(jsonString, options);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
static equals(a: NewVideoStreamRequest | PlainMessage<NewVideoStreamRequest> | undefined, b: NewVideoStreamRequest | PlainMessage<NewVideoStreamRequest> | undefined): boolean {
|
|
336
|
-
return proto3.util.equals(NewVideoStreamRequest, a, b);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* @generated from message livekit.proto.NewVideoStreamResponse
|
|
342
|
-
*/
|
|
343
|
-
export class NewVideoStreamResponse extends Message<NewVideoStreamResponse> {
|
|
344
|
-
/**
|
|
345
|
-
* @generated from field: livekit.proto.OwnedVideoStream stream = 1;
|
|
346
|
-
*/
|
|
347
|
-
stream?: OwnedVideoStream;
|
|
348
|
-
|
|
349
|
-
constructor(data?: PartialMessage<NewVideoStreamResponse>) {
|
|
350
|
-
super();
|
|
351
|
-
proto3.util.initPartial(data, this);
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
355
|
-
static readonly typeName = "livekit.proto.NewVideoStreamResponse";
|
|
356
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
357
|
-
{ no: 1, name: "stream", kind: "message", T: OwnedVideoStream },
|
|
358
|
-
]);
|
|
359
|
-
|
|
360
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoStreamResponse {
|
|
361
|
-
return new NewVideoStreamResponse().fromBinary(bytes, options);
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoStreamResponse {
|
|
365
|
-
return new NewVideoStreamResponse().fromJson(jsonValue, options);
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoStreamResponse {
|
|
369
|
-
return new NewVideoStreamResponse().fromJsonString(jsonString, options);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
static equals(a: NewVideoStreamResponse | PlainMessage<NewVideoStreamResponse> | undefined, b: NewVideoStreamResponse | PlainMessage<NewVideoStreamResponse> | undefined): boolean {
|
|
373
|
-
return proto3.util.equals(NewVideoStreamResponse, a, b);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* Create a new VideoSource
|
|
379
|
-
* VideoSource is used to send video frame to a track
|
|
380
|
-
*
|
|
381
|
-
* @generated from message livekit.proto.NewVideoSourceRequest
|
|
382
|
-
*/
|
|
383
|
-
export class NewVideoSourceRequest extends Message<NewVideoSourceRequest> {
|
|
384
|
-
/**
|
|
385
|
-
* @generated from field: livekit.proto.VideoSourceType type = 1;
|
|
386
|
-
*/
|
|
387
|
-
type = VideoSourceType.VIDEO_SOURCE_NATIVE;
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* Used to determine which encodings to use + simulcast layers
|
|
391
|
-
* Most of the time it corresponds to the source resolution
|
|
392
|
-
*
|
|
393
|
-
* @generated from field: livekit.proto.VideoSourceResolution resolution = 2;
|
|
394
|
-
*/
|
|
395
|
-
resolution?: VideoSourceResolution;
|
|
396
|
-
|
|
397
|
-
constructor(data?: PartialMessage<NewVideoSourceRequest>) {
|
|
398
|
-
super();
|
|
399
|
-
proto3.util.initPartial(data, this);
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
403
|
-
static readonly typeName = "livekit.proto.NewVideoSourceRequest";
|
|
404
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
405
|
-
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(VideoSourceType) },
|
|
406
|
-
{ no: 2, name: "resolution", kind: "message", T: VideoSourceResolution },
|
|
407
|
-
]);
|
|
408
|
-
|
|
409
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoSourceRequest {
|
|
410
|
-
return new NewVideoSourceRequest().fromBinary(bytes, options);
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoSourceRequest {
|
|
414
|
-
return new NewVideoSourceRequest().fromJson(jsonValue, options);
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoSourceRequest {
|
|
418
|
-
return new NewVideoSourceRequest().fromJsonString(jsonString, options);
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
static equals(a: NewVideoSourceRequest | PlainMessage<NewVideoSourceRequest> | undefined, b: NewVideoSourceRequest | PlainMessage<NewVideoSourceRequest> | undefined): boolean {
|
|
422
|
-
return proto3.util.equals(NewVideoSourceRequest, a, b);
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* @generated from message livekit.proto.NewVideoSourceResponse
|
|
428
|
-
*/
|
|
429
|
-
export class NewVideoSourceResponse extends Message<NewVideoSourceResponse> {
|
|
430
|
-
/**
|
|
431
|
-
* @generated from field: livekit.proto.OwnedVideoSource source = 1;
|
|
432
|
-
*/
|
|
433
|
-
source?: OwnedVideoSource;
|
|
434
|
-
|
|
435
|
-
constructor(data?: PartialMessage<NewVideoSourceResponse>) {
|
|
436
|
-
super();
|
|
437
|
-
proto3.util.initPartial(data, this);
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
441
|
-
static readonly typeName = "livekit.proto.NewVideoSourceResponse";
|
|
442
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
443
|
-
{ no: 1, name: "source", kind: "message", T: OwnedVideoSource },
|
|
444
|
-
]);
|
|
445
|
-
|
|
446
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoSourceResponse {
|
|
447
|
-
return new NewVideoSourceResponse().fromBinary(bytes, options);
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoSourceResponse {
|
|
451
|
-
return new NewVideoSourceResponse().fromJson(jsonValue, options);
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoSourceResponse {
|
|
455
|
-
return new NewVideoSourceResponse().fromJsonString(jsonString, options);
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
static equals(a: NewVideoSourceResponse | PlainMessage<NewVideoSourceResponse> | undefined, b: NewVideoSourceResponse | PlainMessage<NewVideoSourceResponse> | undefined): boolean {
|
|
459
|
-
return proto3.util.equals(NewVideoSourceResponse, a, b);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* Push a frame to a VideoSource
|
|
465
|
-
*
|
|
466
|
-
* @generated from message livekit.proto.CaptureVideoFrameRequest
|
|
467
|
-
*/
|
|
468
|
-
export class CaptureVideoFrameRequest extends Message<CaptureVideoFrameRequest> {
|
|
469
|
-
/**
|
|
470
|
-
* @generated from field: uint64 source_handle = 1;
|
|
471
|
-
*/
|
|
472
|
-
sourceHandle = protoInt64.zero;
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* @generated from field: livekit.proto.VideoFrameInfo frame = 2;
|
|
476
|
-
*/
|
|
477
|
-
frame?: VideoFrameInfo;
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* @generated from oneof livekit.proto.CaptureVideoFrameRequest.from
|
|
481
|
-
*/
|
|
482
|
-
from: {
|
|
483
|
-
/**
|
|
484
|
-
* @generated from field: livekit.proto.VideoFrameBufferInfo info = 3;
|
|
485
|
-
*/
|
|
486
|
-
value: VideoFrameBufferInfo;
|
|
487
|
-
case: "info";
|
|
488
|
-
} | {
|
|
489
|
-
/**
|
|
490
|
-
* @generated from field: uint64 handle = 4;
|
|
491
|
-
*/
|
|
492
|
-
value: bigint;
|
|
493
|
-
case: "handle";
|
|
494
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
495
|
-
|
|
496
|
-
constructor(data?: PartialMessage<CaptureVideoFrameRequest>) {
|
|
497
|
-
super();
|
|
498
|
-
proto3.util.initPartial(data, this);
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
502
|
-
static readonly typeName = "livekit.proto.CaptureVideoFrameRequest";
|
|
503
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
504
|
-
{ no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
505
|
-
{ no: 2, name: "frame", kind: "message", T: VideoFrameInfo },
|
|
506
|
-
{ no: 3, name: "info", kind: "message", T: VideoFrameBufferInfo, oneof: "from" },
|
|
507
|
-
{ no: 4, name: "handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, oneof: "from" },
|
|
508
|
-
]);
|
|
509
|
-
|
|
510
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureVideoFrameRequest {
|
|
511
|
-
return new CaptureVideoFrameRequest().fromBinary(bytes, options);
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureVideoFrameRequest {
|
|
515
|
-
return new CaptureVideoFrameRequest().fromJson(jsonValue, options);
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureVideoFrameRequest {
|
|
519
|
-
return new CaptureVideoFrameRequest().fromJsonString(jsonString, options);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
static equals(a: CaptureVideoFrameRequest | PlainMessage<CaptureVideoFrameRequest> | undefined, b: CaptureVideoFrameRequest | PlainMessage<CaptureVideoFrameRequest> | undefined): boolean {
|
|
523
|
-
return proto3.util.equals(CaptureVideoFrameRequest, a, b);
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
/**
|
|
528
|
-
* @generated from message livekit.proto.CaptureVideoFrameResponse
|
|
529
|
-
*/
|
|
530
|
-
export class CaptureVideoFrameResponse extends Message<CaptureVideoFrameResponse> {
|
|
531
|
-
constructor(data?: PartialMessage<CaptureVideoFrameResponse>) {
|
|
532
|
-
super();
|
|
533
|
-
proto3.util.initPartial(data, this);
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
537
|
-
static readonly typeName = "livekit.proto.CaptureVideoFrameResponse";
|
|
538
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
539
|
-
]);
|
|
540
|
-
|
|
541
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureVideoFrameResponse {
|
|
542
|
-
return new CaptureVideoFrameResponse().fromBinary(bytes, options);
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureVideoFrameResponse {
|
|
546
|
-
return new CaptureVideoFrameResponse().fromJson(jsonValue, options);
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureVideoFrameResponse {
|
|
550
|
-
return new CaptureVideoFrameResponse().fromJsonString(jsonString, options);
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
static equals(a: CaptureVideoFrameResponse | PlainMessage<CaptureVideoFrameResponse> | undefined, b: CaptureVideoFrameResponse | PlainMessage<CaptureVideoFrameResponse> | undefined): boolean {
|
|
554
|
-
return proto3.util.equals(CaptureVideoFrameResponse, a, b);
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* Convert a RGBA frame to a I420 YUV frame
|
|
560
|
-
* Or convert another YUV frame format to I420
|
|
561
|
-
*
|
|
562
|
-
* @generated from message livekit.proto.ToI420Request
|
|
563
|
-
*/
|
|
564
|
-
export class ToI420Request extends Message<ToI420Request> {
|
|
565
|
-
/**
|
|
566
|
-
* @generated from field: bool flip_y = 1;
|
|
567
|
-
*/
|
|
568
|
-
flipY = false;
|
|
569
|
-
|
|
570
|
-
/**
|
|
571
|
-
* @generated from oneof livekit.proto.ToI420Request.from
|
|
572
|
-
*/
|
|
573
|
-
from: {
|
|
574
|
-
/**
|
|
575
|
-
* @generated from field: livekit.proto.ArgbBufferInfo argb = 2;
|
|
576
|
-
*/
|
|
577
|
-
value: ArgbBufferInfo;
|
|
578
|
-
case: "argb";
|
|
579
|
-
} | {
|
|
580
|
-
/**
|
|
581
|
-
* @generated from field: livekit.proto.VideoFrameBufferInfo buffer = 3;
|
|
582
|
-
*/
|
|
583
|
-
value: VideoFrameBufferInfo;
|
|
584
|
-
case: "buffer";
|
|
585
|
-
} | {
|
|
586
|
-
/**
|
|
587
|
-
* @generated from field: uint64 handle = 4;
|
|
588
|
-
*/
|
|
589
|
-
value: bigint;
|
|
590
|
-
case: "handle";
|
|
591
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
592
|
-
|
|
593
|
-
constructor(data?: PartialMessage<ToI420Request>) {
|
|
594
|
-
super();
|
|
595
|
-
proto3.util.initPartial(data, this);
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
599
|
-
static readonly typeName = "livekit.proto.ToI420Request";
|
|
600
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
601
|
-
{ no: 1, name: "flip_y", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
602
|
-
{ no: 2, name: "argb", kind: "message", T: ArgbBufferInfo, oneof: "from" },
|
|
603
|
-
{ no: 3, name: "buffer", kind: "message", T: VideoFrameBufferInfo, oneof: "from" },
|
|
604
|
-
{ no: 4, name: "handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, oneof: "from" },
|
|
605
|
-
]);
|
|
606
|
-
|
|
607
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ToI420Request {
|
|
608
|
-
return new ToI420Request().fromBinary(bytes, options);
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ToI420Request {
|
|
612
|
-
return new ToI420Request().fromJson(jsonValue, options);
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ToI420Request {
|
|
616
|
-
return new ToI420Request().fromJsonString(jsonString, options);
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
static equals(a: ToI420Request | PlainMessage<ToI420Request> | undefined, b: ToI420Request | PlainMessage<ToI420Request> | undefined): boolean {
|
|
620
|
-
return proto3.util.equals(ToI420Request, a, b);
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
/**
|
|
625
|
-
* @generated from message livekit.proto.ToI420Response
|
|
626
|
-
*/
|
|
627
|
-
export class ToI420Response extends Message<ToI420Response> {
|
|
628
|
-
/**
|
|
629
|
-
* @generated from field: livekit.proto.OwnedVideoFrameBuffer buffer = 1;
|
|
630
|
-
*/
|
|
631
|
-
buffer?: OwnedVideoFrameBuffer;
|
|
632
|
-
|
|
633
|
-
constructor(data?: PartialMessage<ToI420Response>) {
|
|
634
|
-
super();
|
|
635
|
-
proto3.util.initPartial(data, this);
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
639
|
-
static readonly typeName = "livekit.proto.ToI420Response";
|
|
640
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
641
|
-
{ no: 1, name: "buffer", kind: "message", T: OwnedVideoFrameBuffer },
|
|
642
|
-
]);
|
|
643
|
-
|
|
644
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ToI420Response {
|
|
645
|
-
return new ToI420Response().fromBinary(bytes, options);
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ToI420Response {
|
|
649
|
-
return new ToI420Response().fromJson(jsonValue, options);
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ToI420Response {
|
|
653
|
-
return new ToI420Response().fromJsonString(jsonString, options);
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
static equals(a: ToI420Response | PlainMessage<ToI420Response> | undefined, b: ToI420Response | PlainMessage<ToI420Response> | undefined): boolean {
|
|
657
|
-
return proto3.util.equals(ToI420Response, a, b);
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
/**
|
|
662
|
-
* Convert a YUV frame to a RGBA frame
|
|
663
|
-
* Only I420 is supported atm
|
|
664
|
-
*
|
|
665
|
-
* @generated from message livekit.proto.ToArgbRequest
|
|
666
|
-
*/
|
|
667
|
-
export class ToArgbRequest extends Message<ToArgbRequest> {
|
|
668
|
-
/**
|
|
669
|
-
* @generated from field: livekit.proto.VideoFrameBufferInfo buffer = 1;
|
|
670
|
-
*/
|
|
671
|
-
buffer?: VideoFrameBufferInfo;
|
|
672
|
-
|
|
673
|
-
/**
|
|
674
|
-
* @generated from field: uint64 dst_ptr = 2;
|
|
675
|
-
*/
|
|
676
|
-
dstPtr = protoInt64.zero;
|
|
677
|
-
|
|
678
|
-
/**
|
|
679
|
-
* @generated from field: livekit.proto.VideoFormatType dst_format = 3;
|
|
680
|
-
*/
|
|
681
|
-
dstFormat = VideoFormatType.FORMAT_ARGB;
|
|
682
|
-
|
|
683
|
-
/**
|
|
684
|
-
* @generated from field: uint32 dst_stride = 4;
|
|
685
|
-
*/
|
|
686
|
-
dstStride = 0;
|
|
687
|
-
|
|
688
|
-
/**
|
|
689
|
-
* @generated from field: uint32 dst_width = 5;
|
|
690
|
-
*/
|
|
691
|
-
dstWidth = 0;
|
|
692
|
-
|
|
693
|
-
/**
|
|
694
|
-
* @generated from field: uint32 dst_height = 6;
|
|
695
|
-
*/
|
|
696
|
-
dstHeight = 0;
|
|
697
|
-
|
|
698
|
-
/**
|
|
699
|
-
* @generated from field: bool flip_y = 7;
|
|
700
|
-
*/
|
|
701
|
-
flipY = false;
|
|
702
|
-
|
|
703
|
-
constructor(data?: PartialMessage<ToArgbRequest>) {
|
|
704
|
-
super();
|
|
705
|
-
proto3.util.initPartial(data, this);
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
709
|
-
static readonly typeName = "livekit.proto.ToArgbRequest";
|
|
710
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
711
|
-
{ no: 1, name: "buffer", kind: "message", T: VideoFrameBufferInfo },
|
|
712
|
-
{ no: 2, name: "dst_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
713
|
-
{ no: 3, name: "dst_format", kind: "enum", T: proto3.getEnumType(VideoFormatType) },
|
|
714
|
-
{ no: 4, name: "dst_stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
715
|
-
{ no: 5, name: "dst_width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
716
|
-
{ no: 6, name: "dst_height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
717
|
-
{ no: 7, name: "flip_y", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
718
|
-
]);
|
|
719
|
-
|
|
720
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ToArgbRequest {
|
|
721
|
-
return new ToArgbRequest().fromBinary(bytes, options);
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ToArgbRequest {
|
|
725
|
-
return new ToArgbRequest().fromJson(jsonValue, options);
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ToArgbRequest {
|
|
729
|
-
return new ToArgbRequest().fromJsonString(jsonString, options);
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
static equals(a: ToArgbRequest | PlainMessage<ToArgbRequest> | undefined, b: ToArgbRequest | PlainMessage<ToArgbRequest> | undefined): boolean {
|
|
733
|
-
return proto3.util.equals(ToArgbRequest, a, b);
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
* @generated from message livekit.proto.ToArgbResponse
|
|
739
|
-
*/
|
|
740
|
-
export class ToArgbResponse extends Message<ToArgbResponse> {
|
|
741
|
-
constructor(data?: PartialMessage<ToArgbResponse>) {
|
|
742
|
-
super();
|
|
743
|
-
proto3.util.initPartial(data, this);
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
747
|
-
static readonly typeName = "livekit.proto.ToArgbResponse";
|
|
748
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
749
|
-
]);
|
|
750
|
-
|
|
751
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ToArgbResponse {
|
|
752
|
-
return new ToArgbResponse().fromBinary(bytes, options);
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ToArgbResponse {
|
|
756
|
-
return new ToArgbResponse().fromJson(jsonValue, options);
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ToArgbResponse {
|
|
760
|
-
return new ToArgbResponse().fromJsonString(jsonString, options);
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
static equals(a: ToArgbResponse | PlainMessage<ToArgbResponse> | undefined, b: ToArgbResponse | PlainMessage<ToArgbResponse> | undefined): boolean {
|
|
764
|
-
return proto3.util.equals(ToArgbResponse, a, b);
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
/**
|
|
769
|
-
* @generated from message livekit.proto.VideoResolution
|
|
770
|
-
*/
|
|
771
|
-
export class VideoResolution extends Message<VideoResolution> {
|
|
772
|
-
/**
|
|
773
|
-
* @generated from field: uint32 width = 1;
|
|
774
|
-
*/
|
|
775
|
-
width = 0;
|
|
776
|
-
|
|
777
|
-
/**
|
|
778
|
-
* @generated from field: uint32 height = 2;
|
|
779
|
-
*/
|
|
780
|
-
height = 0;
|
|
781
|
-
|
|
782
|
-
/**
|
|
783
|
-
* @generated from field: double frame_rate = 3;
|
|
784
|
-
*/
|
|
785
|
-
frameRate = 0;
|
|
786
|
-
|
|
787
|
-
constructor(data?: PartialMessage<VideoResolution>) {
|
|
788
|
-
super();
|
|
789
|
-
proto3.util.initPartial(data, this);
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
793
|
-
static readonly typeName = "livekit.proto.VideoResolution";
|
|
794
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
795
|
-
{ no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
796
|
-
{ no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
797
|
-
{ no: 3, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
798
|
-
]);
|
|
799
|
-
|
|
800
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoResolution {
|
|
801
|
-
return new VideoResolution().fromBinary(bytes, options);
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoResolution {
|
|
805
|
-
return new VideoResolution().fromJson(jsonValue, options);
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoResolution {
|
|
809
|
-
return new VideoResolution().fromJsonString(jsonString, options);
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
static equals(a: VideoResolution | PlainMessage<VideoResolution> | undefined, b: VideoResolution | PlainMessage<VideoResolution> | undefined): boolean {
|
|
813
|
-
return proto3.util.equals(VideoResolution, a, b);
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
/**
|
|
818
|
-
* @generated from message livekit.proto.ArgbBufferInfo
|
|
819
|
-
*/
|
|
820
|
-
export class ArgbBufferInfo extends Message<ArgbBufferInfo> {
|
|
821
|
-
/**
|
|
822
|
-
* @generated from field: uint64 ptr = 1;
|
|
823
|
-
*/
|
|
824
|
-
ptr = protoInt64.zero;
|
|
825
|
-
|
|
826
|
-
/**
|
|
827
|
-
* @generated from field: livekit.proto.VideoFormatType format = 2;
|
|
828
|
-
*/
|
|
829
|
-
format = VideoFormatType.FORMAT_ARGB;
|
|
830
|
-
|
|
831
|
-
/**
|
|
832
|
-
* @generated from field: uint32 stride = 3;
|
|
833
|
-
*/
|
|
834
|
-
stride = 0;
|
|
835
|
-
|
|
836
|
-
/**
|
|
837
|
-
* @generated from field: uint32 width = 4;
|
|
838
|
-
*/
|
|
839
|
-
width = 0;
|
|
840
|
-
|
|
841
|
-
/**
|
|
842
|
-
* @generated from field: uint32 height = 5;
|
|
843
|
-
*/
|
|
844
|
-
height = 0;
|
|
845
|
-
|
|
846
|
-
constructor(data?: PartialMessage<ArgbBufferInfo>) {
|
|
847
|
-
super();
|
|
848
|
-
proto3.util.initPartial(data, this);
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
852
|
-
static readonly typeName = "livekit.proto.ArgbBufferInfo";
|
|
853
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
854
|
-
{ no: 1, name: "ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
855
|
-
{ no: 2, name: "format", kind: "enum", T: proto3.getEnumType(VideoFormatType) },
|
|
856
|
-
{ no: 3, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
857
|
-
{ no: 4, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
858
|
-
{ no: 5, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
859
|
-
]);
|
|
860
|
-
|
|
861
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ArgbBufferInfo {
|
|
862
|
-
return new ArgbBufferInfo().fromBinary(bytes, options);
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ArgbBufferInfo {
|
|
866
|
-
return new ArgbBufferInfo().fromJson(jsonValue, options);
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ArgbBufferInfo {
|
|
870
|
-
return new ArgbBufferInfo().fromJsonString(jsonString, options);
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
static equals(a: ArgbBufferInfo | PlainMessage<ArgbBufferInfo> | undefined, b: ArgbBufferInfo | PlainMessage<ArgbBufferInfo> | undefined): boolean {
|
|
874
|
-
return proto3.util.equals(ArgbBufferInfo, a, b);
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
/**
|
|
879
|
-
* @generated from message livekit.proto.VideoFrameInfo
|
|
880
|
-
*/
|
|
881
|
-
export class VideoFrameInfo extends Message<VideoFrameInfo> {
|
|
882
|
-
/**
|
|
883
|
-
* In microseconds
|
|
884
|
-
*
|
|
885
|
-
* @generated from field: int64 timestamp_us = 1;
|
|
886
|
-
*/
|
|
887
|
-
timestampUs = protoInt64.zero;
|
|
888
|
-
|
|
889
|
-
/**
|
|
890
|
-
* @generated from field: livekit.proto.VideoRotation rotation = 2;
|
|
891
|
-
*/
|
|
892
|
-
rotation = VideoRotation.VIDEO_ROTATION_0;
|
|
893
|
-
|
|
894
|
-
constructor(data?: PartialMessage<VideoFrameInfo>) {
|
|
895
|
-
super();
|
|
896
|
-
proto3.util.initPartial(data, this);
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
900
|
-
static readonly typeName = "livekit.proto.VideoFrameInfo";
|
|
901
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
902
|
-
{ no: 1, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
903
|
-
{ no: 2, name: "rotation", kind: "enum", T: proto3.getEnumType(VideoRotation) },
|
|
904
|
-
]);
|
|
905
|
-
|
|
906
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoFrameInfo {
|
|
907
|
-
return new VideoFrameInfo().fromBinary(bytes, options);
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoFrameInfo {
|
|
911
|
-
return new VideoFrameInfo().fromJson(jsonValue, options);
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoFrameInfo {
|
|
915
|
-
return new VideoFrameInfo().fromJsonString(jsonString, options);
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
static equals(a: VideoFrameInfo | PlainMessage<VideoFrameInfo> | undefined, b: VideoFrameInfo | PlainMessage<VideoFrameInfo> | undefined): boolean {
|
|
919
|
-
return proto3.util.equals(VideoFrameInfo, a, b);
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
/**
|
|
924
|
-
* @generated from message livekit.proto.VideoFrameBufferInfo
|
|
925
|
-
*/
|
|
926
|
-
export class VideoFrameBufferInfo extends Message<VideoFrameBufferInfo> {
|
|
927
|
-
/**
|
|
928
|
-
* @generated from field: livekit.proto.VideoFrameBufferType buffer_type = 1;
|
|
929
|
-
*/
|
|
930
|
-
bufferType = VideoFrameBufferType.NATIVE;
|
|
931
|
-
|
|
932
|
-
/**
|
|
933
|
-
* @generated from field: uint32 width = 2;
|
|
934
|
-
*/
|
|
935
|
-
width = 0;
|
|
936
|
-
|
|
937
|
-
/**
|
|
938
|
-
* @generated from field: uint32 height = 3;
|
|
939
|
-
*/
|
|
940
|
-
height = 0;
|
|
941
|
-
|
|
942
|
-
/**
|
|
943
|
-
* @generated from oneof livekit.proto.VideoFrameBufferInfo.buffer
|
|
944
|
-
*/
|
|
945
|
-
buffer: {
|
|
946
|
-
/**
|
|
947
|
-
* @generated from field: livekit.proto.PlanarYuvBufferInfo yuv = 4;
|
|
948
|
-
*/
|
|
949
|
-
value: PlanarYuvBufferInfo;
|
|
950
|
-
case: "yuv";
|
|
951
|
-
} | {
|
|
952
|
-
/**
|
|
953
|
-
* @generated from field: livekit.proto.BiplanarYuvBufferInfo bi_yuv = 5;
|
|
954
|
-
*/
|
|
955
|
-
value: BiplanarYuvBufferInfo;
|
|
956
|
-
case: "biYuv";
|
|
957
|
-
} | {
|
|
958
|
-
/**
|
|
959
|
-
* @generated from field: livekit.proto.NativeBufferInfo native = 6;
|
|
960
|
-
*/
|
|
961
|
-
value: NativeBufferInfo;
|
|
962
|
-
case: "native";
|
|
963
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
964
|
-
|
|
965
|
-
constructor(data?: PartialMessage<VideoFrameBufferInfo>) {
|
|
966
|
-
super();
|
|
967
|
-
proto3.util.initPartial(data, this);
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
971
|
-
static readonly typeName = "livekit.proto.VideoFrameBufferInfo";
|
|
972
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
973
|
-
{ no: 1, name: "buffer_type", kind: "enum", T: proto3.getEnumType(VideoFrameBufferType) },
|
|
974
|
-
{ no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
975
|
-
{ no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
976
|
-
{ no: 4, name: "yuv", kind: "message", T: PlanarYuvBufferInfo, oneof: "buffer" },
|
|
977
|
-
{ no: 5, name: "bi_yuv", kind: "message", T: BiplanarYuvBufferInfo, oneof: "buffer" },
|
|
978
|
-
{ no: 6, name: "native", kind: "message", T: NativeBufferInfo, oneof: "buffer" },
|
|
979
|
-
]);
|
|
980
|
-
|
|
981
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoFrameBufferInfo {
|
|
982
|
-
return new VideoFrameBufferInfo().fromBinary(bytes, options);
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoFrameBufferInfo {
|
|
986
|
-
return new VideoFrameBufferInfo().fromJson(jsonValue, options);
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoFrameBufferInfo {
|
|
990
|
-
return new VideoFrameBufferInfo().fromJsonString(jsonString, options);
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
static equals(a: VideoFrameBufferInfo | PlainMessage<VideoFrameBufferInfo> | undefined, b: VideoFrameBufferInfo | PlainMessage<VideoFrameBufferInfo> | undefined): boolean {
|
|
994
|
-
return proto3.util.equals(VideoFrameBufferInfo, a, b);
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
/**
|
|
999
|
-
* @generated from message livekit.proto.OwnedVideoFrameBuffer
|
|
1000
|
-
*/
|
|
1001
|
-
export class OwnedVideoFrameBuffer extends Message<OwnedVideoFrameBuffer> {
|
|
1002
|
-
/**
|
|
1003
|
-
* @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
|
|
1004
|
-
*/
|
|
1005
|
-
handle?: FfiOwnedHandle;
|
|
1006
|
-
|
|
1007
|
-
/**
|
|
1008
|
-
* @generated from field: livekit.proto.VideoFrameBufferInfo info = 2;
|
|
1009
|
-
*/
|
|
1010
|
-
info?: VideoFrameBufferInfo;
|
|
1011
|
-
|
|
1012
|
-
constructor(data?: PartialMessage<OwnedVideoFrameBuffer>) {
|
|
1013
|
-
super();
|
|
1014
|
-
proto3.util.initPartial(data, this);
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1018
|
-
static readonly typeName = "livekit.proto.OwnedVideoFrameBuffer";
|
|
1019
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1020
|
-
{ no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
|
|
1021
|
-
{ no: 2, name: "info", kind: "message", T: VideoFrameBufferInfo },
|
|
1022
|
-
]);
|
|
1023
|
-
|
|
1024
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoFrameBuffer {
|
|
1025
|
-
return new OwnedVideoFrameBuffer().fromBinary(bytes, options);
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoFrameBuffer {
|
|
1029
|
-
return new OwnedVideoFrameBuffer().fromJson(jsonValue, options);
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoFrameBuffer {
|
|
1033
|
-
return new OwnedVideoFrameBuffer().fromJsonString(jsonString, options);
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
static equals(a: OwnedVideoFrameBuffer | PlainMessage<OwnedVideoFrameBuffer> | undefined, b: OwnedVideoFrameBuffer | PlainMessage<OwnedVideoFrameBuffer> | undefined): boolean {
|
|
1037
|
-
return proto3.util.equals(OwnedVideoFrameBuffer, a, b);
|
|
1038
|
-
}
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
/**
|
|
1042
|
-
* @generated from message livekit.proto.PlanarYuvBufferInfo
|
|
1043
|
-
*/
|
|
1044
|
-
export class PlanarYuvBufferInfo extends Message<PlanarYuvBufferInfo> {
|
|
1045
|
-
/**
|
|
1046
|
-
* @generated from field: uint32 chroma_width = 1;
|
|
1047
|
-
*/
|
|
1048
|
-
chromaWidth = 0;
|
|
1049
|
-
|
|
1050
|
-
/**
|
|
1051
|
-
* @generated from field: uint32 chroma_height = 2;
|
|
1052
|
-
*/
|
|
1053
|
-
chromaHeight = 0;
|
|
1054
|
-
|
|
1055
|
-
/**
|
|
1056
|
-
* @generated from field: uint32 stride_y = 3;
|
|
1057
|
-
*/
|
|
1058
|
-
strideY = 0;
|
|
1059
|
-
|
|
1060
|
-
/**
|
|
1061
|
-
* @generated from field: uint32 stride_u = 4;
|
|
1062
|
-
*/
|
|
1063
|
-
strideU = 0;
|
|
1064
|
-
|
|
1065
|
-
/**
|
|
1066
|
-
* @generated from field: uint32 stride_v = 5;
|
|
1067
|
-
*/
|
|
1068
|
-
strideV = 0;
|
|
1069
|
-
|
|
1070
|
-
/**
|
|
1071
|
-
* @generated from field: uint32 stride_a = 6;
|
|
1072
|
-
*/
|
|
1073
|
-
strideA = 0;
|
|
1074
|
-
|
|
1075
|
-
/**
|
|
1076
|
-
* *const u8 or *const u16
|
|
1077
|
-
*
|
|
1078
|
-
* @generated from field: uint64 data_y_ptr = 7;
|
|
1079
|
-
*/
|
|
1080
|
-
dataYPtr = protoInt64.zero;
|
|
1081
|
-
|
|
1082
|
-
/**
|
|
1083
|
-
* @generated from field: uint64 data_u_ptr = 8;
|
|
1084
|
-
*/
|
|
1085
|
-
dataUPtr = protoInt64.zero;
|
|
1086
|
-
|
|
1087
|
-
/**
|
|
1088
|
-
* @generated from field: uint64 data_v_ptr = 9;
|
|
1089
|
-
*/
|
|
1090
|
-
dataVPtr = protoInt64.zero;
|
|
1091
|
-
|
|
1092
|
-
/**
|
|
1093
|
-
* nullptr = no alpha
|
|
1094
|
-
*
|
|
1095
|
-
* @generated from field: uint64 data_a_ptr = 10;
|
|
1096
|
-
*/
|
|
1097
|
-
dataAPtr = protoInt64.zero;
|
|
1098
|
-
|
|
1099
|
-
constructor(data?: PartialMessage<PlanarYuvBufferInfo>) {
|
|
1100
|
-
super();
|
|
1101
|
-
proto3.util.initPartial(data, this);
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1105
|
-
static readonly typeName = "livekit.proto.PlanarYuvBufferInfo";
|
|
1106
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1107
|
-
{ no: 1, name: "chroma_width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1108
|
-
{ no: 2, name: "chroma_height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1109
|
-
{ no: 3, name: "stride_y", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1110
|
-
{ no: 4, name: "stride_u", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1111
|
-
{ no: 5, name: "stride_v", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1112
|
-
{ no: 6, name: "stride_a", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1113
|
-
{ no: 7, name: "data_y_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1114
|
-
{ no: 8, name: "data_u_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1115
|
-
{ no: 9, name: "data_v_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1116
|
-
{ no: 10, name: "data_a_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1117
|
-
]);
|
|
1118
|
-
|
|
1119
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlanarYuvBufferInfo {
|
|
1120
|
-
return new PlanarYuvBufferInfo().fromBinary(bytes, options);
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlanarYuvBufferInfo {
|
|
1124
|
-
return new PlanarYuvBufferInfo().fromJson(jsonValue, options);
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlanarYuvBufferInfo {
|
|
1128
|
-
return new PlanarYuvBufferInfo().fromJsonString(jsonString, options);
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
static equals(a: PlanarYuvBufferInfo | PlainMessage<PlanarYuvBufferInfo> | undefined, b: PlanarYuvBufferInfo | PlainMessage<PlanarYuvBufferInfo> | undefined): boolean {
|
|
1132
|
-
return proto3.util.equals(PlanarYuvBufferInfo, a, b);
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
/**
|
|
1137
|
-
* @generated from message livekit.proto.BiplanarYuvBufferInfo
|
|
1138
|
-
*/
|
|
1139
|
-
export class BiplanarYuvBufferInfo extends Message<BiplanarYuvBufferInfo> {
|
|
1140
|
-
/**
|
|
1141
|
-
* @generated from field: uint32 chroma_width = 1;
|
|
1142
|
-
*/
|
|
1143
|
-
chromaWidth = 0;
|
|
1144
|
-
|
|
1145
|
-
/**
|
|
1146
|
-
* @generated from field: uint32 chroma_height = 2;
|
|
1147
|
-
*/
|
|
1148
|
-
chromaHeight = 0;
|
|
1149
|
-
|
|
1150
|
-
/**
|
|
1151
|
-
* @generated from field: uint32 stride_y = 3;
|
|
1152
|
-
*/
|
|
1153
|
-
strideY = 0;
|
|
1154
|
-
|
|
1155
|
-
/**
|
|
1156
|
-
* @generated from field: uint32 stride_uv = 4;
|
|
1157
|
-
*/
|
|
1158
|
-
strideUv = 0;
|
|
1159
|
-
|
|
1160
|
-
/**
|
|
1161
|
-
* @generated from field: uint64 data_y_ptr = 5;
|
|
1162
|
-
*/
|
|
1163
|
-
dataYPtr = protoInt64.zero;
|
|
1164
|
-
|
|
1165
|
-
/**
|
|
1166
|
-
* @generated from field: uint64 data_uv_ptr = 6;
|
|
1167
|
-
*/
|
|
1168
|
-
dataUvPtr = protoInt64.zero;
|
|
1169
|
-
|
|
1170
|
-
constructor(data?: PartialMessage<BiplanarYuvBufferInfo>) {
|
|
1171
|
-
super();
|
|
1172
|
-
proto3.util.initPartial(data, this);
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1176
|
-
static readonly typeName = "livekit.proto.BiplanarYuvBufferInfo";
|
|
1177
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1178
|
-
{ no: 1, name: "chroma_width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1179
|
-
{ no: 2, name: "chroma_height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1180
|
-
{ no: 3, name: "stride_y", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1181
|
-
{ no: 4, name: "stride_uv", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1182
|
-
{ no: 5, name: "data_y_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1183
|
-
{ no: 6, name: "data_uv_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1184
|
-
]);
|
|
1185
|
-
|
|
1186
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BiplanarYuvBufferInfo {
|
|
1187
|
-
return new BiplanarYuvBufferInfo().fromBinary(bytes, options);
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BiplanarYuvBufferInfo {
|
|
1191
|
-
return new BiplanarYuvBufferInfo().fromJson(jsonValue, options);
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BiplanarYuvBufferInfo {
|
|
1195
|
-
return new BiplanarYuvBufferInfo().fromJsonString(jsonString, options);
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
static equals(a: BiplanarYuvBufferInfo | PlainMessage<BiplanarYuvBufferInfo> | undefined, b: BiplanarYuvBufferInfo | PlainMessage<BiplanarYuvBufferInfo> | undefined): boolean {
|
|
1199
|
-
return proto3.util.equals(BiplanarYuvBufferInfo, a, b);
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
|
-
/**
|
|
1204
|
-
* TODO(theomonnom): Expose graphic context?
|
|
1205
|
-
*
|
|
1206
|
-
* @generated from message livekit.proto.NativeBufferInfo
|
|
1207
|
-
*/
|
|
1208
|
-
export class NativeBufferInfo extends Message<NativeBufferInfo> {
|
|
1209
|
-
constructor(data?: PartialMessage<NativeBufferInfo>) {
|
|
1210
|
-
super();
|
|
1211
|
-
proto3.util.initPartial(data, this);
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1215
|
-
static readonly typeName = "livekit.proto.NativeBufferInfo";
|
|
1216
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1217
|
-
]);
|
|
1218
|
-
|
|
1219
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NativeBufferInfo {
|
|
1220
|
-
return new NativeBufferInfo().fromBinary(bytes, options);
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NativeBufferInfo {
|
|
1224
|
-
return new NativeBufferInfo().fromJson(jsonValue, options);
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NativeBufferInfo {
|
|
1228
|
-
return new NativeBufferInfo().fromJsonString(jsonString, options);
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
|
-
static equals(a: NativeBufferInfo | PlainMessage<NativeBufferInfo> | undefined, b: NativeBufferInfo | PlainMessage<NativeBufferInfo> | undefined): boolean {
|
|
1232
|
-
return proto3.util.equals(NativeBufferInfo, a, b);
|
|
1233
|
-
}
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
/**
|
|
1237
|
-
* @generated from message livekit.proto.VideoStreamInfo
|
|
1238
|
-
*/
|
|
1239
|
-
export class VideoStreamInfo extends Message<VideoStreamInfo> {
|
|
1240
|
-
/**
|
|
1241
|
-
* @generated from field: livekit.proto.VideoStreamType type = 1;
|
|
1242
|
-
*/
|
|
1243
|
-
type = VideoStreamType.VIDEO_STREAM_NATIVE;
|
|
1244
|
-
|
|
1245
|
-
constructor(data?: PartialMessage<VideoStreamInfo>) {
|
|
1246
|
-
super();
|
|
1247
|
-
proto3.util.initPartial(data, this);
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1251
|
-
static readonly typeName = "livekit.proto.VideoStreamInfo";
|
|
1252
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1253
|
-
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(VideoStreamType) },
|
|
1254
|
-
]);
|
|
1255
|
-
|
|
1256
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamInfo {
|
|
1257
|
-
return new VideoStreamInfo().fromBinary(bytes, options);
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamInfo {
|
|
1261
|
-
return new VideoStreamInfo().fromJson(jsonValue, options);
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamInfo {
|
|
1265
|
-
return new VideoStreamInfo().fromJsonString(jsonString, options);
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
static equals(a: VideoStreamInfo | PlainMessage<VideoStreamInfo> | undefined, b: VideoStreamInfo | PlainMessage<VideoStreamInfo> | undefined): boolean {
|
|
1269
|
-
return proto3.util.equals(VideoStreamInfo, a, b);
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
/**
|
|
1274
|
-
* @generated from message livekit.proto.OwnedVideoStream
|
|
1275
|
-
*/
|
|
1276
|
-
export class OwnedVideoStream extends Message<OwnedVideoStream> {
|
|
1277
|
-
/**
|
|
1278
|
-
* @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
|
|
1279
|
-
*/
|
|
1280
|
-
handle?: FfiOwnedHandle;
|
|
1281
|
-
|
|
1282
|
-
/**
|
|
1283
|
-
* @generated from field: livekit.proto.VideoStreamInfo info = 2;
|
|
1284
|
-
*/
|
|
1285
|
-
info?: VideoStreamInfo;
|
|
1286
|
-
|
|
1287
|
-
constructor(data?: PartialMessage<OwnedVideoStream>) {
|
|
1288
|
-
super();
|
|
1289
|
-
proto3.util.initPartial(data, this);
|
|
1290
|
-
}
|
|
1291
|
-
|
|
1292
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1293
|
-
static readonly typeName = "livekit.proto.OwnedVideoStream";
|
|
1294
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1295
|
-
{ no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
|
|
1296
|
-
{ no: 2, name: "info", kind: "message", T: VideoStreamInfo },
|
|
1297
|
-
]);
|
|
1298
|
-
|
|
1299
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoStream {
|
|
1300
|
-
return new OwnedVideoStream().fromBinary(bytes, options);
|
|
1301
|
-
}
|
|
1302
|
-
|
|
1303
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoStream {
|
|
1304
|
-
return new OwnedVideoStream().fromJson(jsonValue, options);
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoStream {
|
|
1308
|
-
return new OwnedVideoStream().fromJsonString(jsonString, options);
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
static equals(a: OwnedVideoStream | PlainMessage<OwnedVideoStream> | undefined, b: OwnedVideoStream | PlainMessage<OwnedVideoStream> | undefined): boolean {
|
|
1312
|
-
return proto3.util.equals(OwnedVideoStream, a, b);
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
/**
|
|
1317
|
-
* @generated from message livekit.proto.VideoStreamEvent
|
|
1318
|
-
*/
|
|
1319
|
-
export class VideoStreamEvent extends Message<VideoStreamEvent> {
|
|
1320
|
-
/**
|
|
1321
|
-
* @generated from field: uint64 stream_handle = 1;
|
|
1322
|
-
*/
|
|
1323
|
-
streamHandle = protoInt64.zero;
|
|
1324
|
-
|
|
1325
|
-
/**
|
|
1326
|
-
* @generated from oneof livekit.proto.VideoStreamEvent.message
|
|
1327
|
-
*/
|
|
1328
|
-
message: {
|
|
1329
|
-
/**
|
|
1330
|
-
* @generated from field: livekit.proto.VideoFrameReceived frame_received = 2;
|
|
1331
|
-
*/
|
|
1332
|
-
value: VideoFrameReceived;
|
|
1333
|
-
case: "frameReceived";
|
|
1334
|
-
} | {
|
|
1335
|
-
/**
|
|
1336
|
-
* @generated from field: livekit.proto.VideoStreamEOS eos = 3;
|
|
1337
|
-
*/
|
|
1338
|
-
value: VideoStreamEOS;
|
|
1339
|
-
case: "eos";
|
|
1340
|
-
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1341
|
-
|
|
1342
|
-
constructor(data?: PartialMessage<VideoStreamEvent>) {
|
|
1343
|
-
super();
|
|
1344
|
-
proto3.util.initPartial(data, this);
|
|
1345
|
-
}
|
|
1346
|
-
|
|
1347
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1348
|
-
static readonly typeName = "livekit.proto.VideoStreamEvent";
|
|
1349
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1350
|
-
{ no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
1351
|
-
{ no: 2, name: "frame_received", kind: "message", T: VideoFrameReceived, oneof: "message" },
|
|
1352
|
-
{ no: 3, name: "eos", kind: "message", T: VideoStreamEOS, oneof: "message" },
|
|
1353
|
-
]);
|
|
1354
|
-
|
|
1355
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamEvent {
|
|
1356
|
-
return new VideoStreamEvent().fromBinary(bytes, options);
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamEvent {
|
|
1360
|
-
return new VideoStreamEvent().fromJson(jsonValue, options);
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamEvent {
|
|
1364
|
-
return new VideoStreamEvent().fromJsonString(jsonString, options);
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
static equals(a: VideoStreamEvent | PlainMessage<VideoStreamEvent> | undefined, b: VideoStreamEvent | PlainMessage<VideoStreamEvent> | undefined): boolean {
|
|
1368
|
-
return proto3.util.equals(VideoStreamEvent, a, b);
|
|
1369
|
-
}
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
/**
|
|
1373
|
-
* @generated from message livekit.proto.VideoFrameReceived
|
|
1374
|
-
*/
|
|
1375
|
-
export class VideoFrameReceived extends Message<VideoFrameReceived> {
|
|
1376
|
-
/**
|
|
1377
|
-
* @generated from field: livekit.proto.VideoFrameInfo frame = 1;
|
|
1378
|
-
*/
|
|
1379
|
-
frame?: VideoFrameInfo;
|
|
1380
|
-
|
|
1381
|
-
/**
|
|
1382
|
-
* @generated from field: livekit.proto.OwnedVideoFrameBuffer buffer = 2;
|
|
1383
|
-
*/
|
|
1384
|
-
buffer?: OwnedVideoFrameBuffer;
|
|
1385
|
-
|
|
1386
|
-
constructor(data?: PartialMessage<VideoFrameReceived>) {
|
|
1387
|
-
super();
|
|
1388
|
-
proto3.util.initPartial(data, this);
|
|
1389
|
-
}
|
|
1390
|
-
|
|
1391
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1392
|
-
static readonly typeName = "livekit.proto.VideoFrameReceived";
|
|
1393
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1394
|
-
{ no: 1, name: "frame", kind: "message", T: VideoFrameInfo },
|
|
1395
|
-
{ no: 2, name: "buffer", kind: "message", T: OwnedVideoFrameBuffer },
|
|
1396
|
-
]);
|
|
1397
|
-
|
|
1398
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoFrameReceived {
|
|
1399
|
-
return new VideoFrameReceived().fromBinary(bytes, options);
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoFrameReceived {
|
|
1403
|
-
return new VideoFrameReceived().fromJson(jsonValue, options);
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoFrameReceived {
|
|
1407
|
-
return new VideoFrameReceived().fromJsonString(jsonString, options);
|
|
1408
|
-
}
|
|
1409
|
-
|
|
1410
|
-
static equals(a: VideoFrameReceived | PlainMessage<VideoFrameReceived> | undefined, b: VideoFrameReceived | PlainMessage<VideoFrameReceived> | undefined): boolean {
|
|
1411
|
-
return proto3.util.equals(VideoFrameReceived, a, b);
|
|
1412
|
-
}
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
/**
|
|
1416
|
-
* @generated from message livekit.proto.VideoStreamEOS
|
|
1417
|
-
*/
|
|
1418
|
-
export class VideoStreamEOS extends Message<VideoStreamEOS> {
|
|
1419
|
-
constructor(data?: PartialMessage<VideoStreamEOS>) {
|
|
1420
|
-
super();
|
|
1421
|
-
proto3.util.initPartial(data, this);
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1425
|
-
static readonly typeName = "livekit.proto.VideoStreamEOS";
|
|
1426
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1427
|
-
]);
|
|
1428
|
-
|
|
1429
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamEOS {
|
|
1430
|
-
return new VideoStreamEOS().fromBinary(bytes, options);
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamEOS {
|
|
1434
|
-
return new VideoStreamEOS().fromJson(jsonValue, options);
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamEOS {
|
|
1438
|
-
return new VideoStreamEOS().fromJsonString(jsonString, options);
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
static equals(a: VideoStreamEOS | PlainMessage<VideoStreamEOS> | undefined, b: VideoStreamEOS | PlainMessage<VideoStreamEOS> | undefined): boolean {
|
|
1442
|
-
return proto3.util.equals(VideoStreamEOS, a, b);
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
/**
|
|
1447
|
-
* @generated from message livekit.proto.VideoSourceResolution
|
|
1448
|
-
*/
|
|
1449
|
-
export class VideoSourceResolution extends Message<VideoSourceResolution> {
|
|
1450
|
-
/**
|
|
1451
|
-
* @generated from field: uint32 width = 1;
|
|
1452
|
-
*/
|
|
1453
|
-
width = 0;
|
|
1454
|
-
|
|
1455
|
-
/**
|
|
1456
|
-
* @generated from field: uint32 height = 2;
|
|
1457
|
-
*/
|
|
1458
|
-
height = 0;
|
|
1459
|
-
|
|
1460
|
-
constructor(data?: PartialMessage<VideoSourceResolution>) {
|
|
1461
|
-
super();
|
|
1462
|
-
proto3.util.initPartial(data, this);
|
|
1463
|
-
}
|
|
1464
|
-
|
|
1465
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1466
|
-
static readonly typeName = "livekit.proto.VideoSourceResolution";
|
|
1467
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1468
|
-
{ no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1469
|
-
{ no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1470
|
-
]);
|
|
1471
|
-
|
|
1472
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoSourceResolution {
|
|
1473
|
-
return new VideoSourceResolution().fromBinary(bytes, options);
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoSourceResolution {
|
|
1477
|
-
return new VideoSourceResolution().fromJson(jsonValue, options);
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoSourceResolution {
|
|
1481
|
-
return new VideoSourceResolution().fromJsonString(jsonString, options);
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
static equals(a: VideoSourceResolution | PlainMessage<VideoSourceResolution> | undefined, b: VideoSourceResolution | PlainMessage<VideoSourceResolution> | undefined): boolean {
|
|
1485
|
-
return proto3.util.equals(VideoSourceResolution, a, b);
|
|
1486
|
-
}
|
|
1487
|
-
}
|
|
1488
|
-
|
|
1489
|
-
/**
|
|
1490
|
-
* @generated from message livekit.proto.VideoSourceInfo
|
|
1491
|
-
*/
|
|
1492
|
-
export class VideoSourceInfo extends Message<VideoSourceInfo> {
|
|
1493
|
-
/**
|
|
1494
|
-
* @generated from field: livekit.proto.VideoSourceType type = 1;
|
|
1495
|
-
*/
|
|
1496
|
-
type = VideoSourceType.VIDEO_SOURCE_NATIVE;
|
|
1497
|
-
|
|
1498
|
-
constructor(data?: PartialMessage<VideoSourceInfo>) {
|
|
1499
|
-
super();
|
|
1500
|
-
proto3.util.initPartial(data, this);
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1504
|
-
static readonly typeName = "livekit.proto.VideoSourceInfo";
|
|
1505
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1506
|
-
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(VideoSourceType) },
|
|
1507
|
-
]);
|
|
1508
|
-
|
|
1509
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoSourceInfo {
|
|
1510
|
-
return new VideoSourceInfo().fromBinary(bytes, options);
|
|
1511
|
-
}
|
|
1512
|
-
|
|
1513
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoSourceInfo {
|
|
1514
|
-
return new VideoSourceInfo().fromJson(jsonValue, options);
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoSourceInfo {
|
|
1518
|
-
return new VideoSourceInfo().fromJsonString(jsonString, options);
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
static equals(a: VideoSourceInfo | PlainMessage<VideoSourceInfo> | undefined, b: VideoSourceInfo | PlainMessage<VideoSourceInfo> | undefined): boolean {
|
|
1522
|
-
return proto3.util.equals(VideoSourceInfo, a, b);
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
/**
|
|
1527
|
-
* @generated from message livekit.proto.OwnedVideoSource
|
|
1528
|
-
*/
|
|
1529
|
-
export class OwnedVideoSource extends Message<OwnedVideoSource> {
|
|
1530
|
-
/**
|
|
1531
|
-
* @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
|
|
1532
|
-
*/
|
|
1533
|
-
handle?: FfiOwnedHandle;
|
|
1534
|
-
|
|
1535
|
-
/**
|
|
1536
|
-
* @generated from field: livekit.proto.VideoSourceInfo info = 2;
|
|
1537
|
-
*/
|
|
1538
|
-
info?: VideoSourceInfo;
|
|
1539
|
-
|
|
1540
|
-
constructor(data?: PartialMessage<OwnedVideoSource>) {
|
|
1541
|
-
super();
|
|
1542
|
-
proto3.util.initPartial(data, this);
|
|
1543
|
-
}
|
|
1544
|
-
|
|
1545
|
-
static readonly runtime: typeof proto3 = proto3;
|
|
1546
|
-
static readonly typeName = "livekit.proto.OwnedVideoSource";
|
|
1547
|
-
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1548
|
-
{ no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
|
|
1549
|
-
{ no: 2, name: "info", kind: "message", T: VideoSourceInfo },
|
|
1550
|
-
]);
|
|
1551
|
-
|
|
1552
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoSource {
|
|
1553
|
-
return new OwnedVideoSource().fromBinary(bytes, options);
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoSource {
|
|
1557
|
-
return new OwnedVideoSource().fromJson(jsonValue, options);
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoSource {
|
|
1561
|
-
return new OwnedVideoSource().fromJsonString(jsonString, options);
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
static equals(a: OwnedVideoSource | PlainMessage<OwnedVideoSource> | undefined, b: OwnedVideoSource | PlainMessage<OwnedVideoSource> | undefined): boolean {
|
|
1565
|
-
return proto3.util.equals(OwnedVideoSource, a, b);
|
|
1566
|
-
}
|
|
1567
|
-
}
|
|
1568
|
-
|