@livekit/rtc-node 0.1.0 → 0.3.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/audio_stream.d.ts +4 -1
- package/dist/audio_stream.d.ts.map +1 -1
- package/dist/audio_stream.js +1 -1
- package/dist/audio_stream.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/proto/audio_frame_pb.d.ts +0 -46
- package/dist/proto/audio_frame_pb.d.ts.map +1 -1
- package/dist/proto/audio_frame_pb.js +0 -70
- package/dist/proto/audio_frame_pb.js.map +1 -1
- package/dist/proto/ffi_pb.d.ts +31 -44
- package/dist/proto/ffi_pb.d.ts.map +1 -1
- package/dist/proto/ffi_pb.js +35 -10
- package/dist/proto/ffi_pb.js.map +1 -1
- package/dist/proto/room_pb.d.ts +5 -1
- package/dist/proto/room_pb.d.ts.map +1 -1
- package/dist/proto/room_pb.js +5 -0
- package/dist/proto/room_pb.js.map +1 -1
- package/dist/proto/video_frame_pb.d.ts +124 -390
- package/dist/proto/video_frame_pb.d.ts.map +1 -1
- package/dist/proto/video_frame_pb.js +149 -486
- package/dist/proto/video_frame_pb.js.map +1 -1
- package/dist/video_frame.d.ts +8 -102
- package/dist/video_frame.d.ts.map +1 -1
- package/dist/video_frame.js +157 -321
- package/dist/video_frame.js.map +1 -1
- package/dist/video_source.d.ts +2 -2
- package/dist/video_source.d.ts.map +1 -1
- package/dist/video_source.js +5 -10
- package/dist/video_source.js.map +1 -1
- package/dist/video_stream.d.ts +7 -2
- package/dist/video_stream.d.ts.map +1 -1
- package/dist/video_stream.js +5 -5
- package/dist/video_stream.js.map +1 -1
- package/package.json +6 -6
- package/src/audio_stream.ts +6 -2
- package/src/index.ts +3 -16
- package/src/proto/audio_frame_pb.ts +1 -91
- package/src/proto/e2ee_pb.ts +1 -1
- package/src/proto/ffi_pb.ts +55 -53
- package/src/proto/handle_pb.ts +1 -1
- package/src/proto/participant_pb.ts +1 -1
- package/src/proto/room_pb.ts +7 -1
- package/src/proto/stats_pb.ts +1 -1
- package/src/proto/track_pb.ts +1 -1
- package/src/proto/video_frame_pb.ts +186 -641
- package/src/video_frame.ts +179 -576
- package/src/video_source.ts +5 -9
- package/src/video_stream.ts +13 -6
|
@@ -72,77 +72,68 @@ proto3.util.setEnumType(VideoRotation, "livekit.proto.VideoRotation", [
|
|
|
72
72
|
{ no: 3, name: "VIDEO_ROTATION_270" },
|
|
73
73
|
]);
|
|
74
74
|
/**
|
|
75
|
-
* @generated from enum livekit.proto.
|
|
75
|
+
* @generated from enum livekit.proto.VideoBufferType
|
|
76
76
|
*/
|
|
77
|
-
export var
|
|
78
|
-
(function (
|
|
77
|
+
export var VideoBufferType;
|
|
78
|
+
(function (VideoBufferType) {
|
|
79
79
|
/**
|
|
80
|
-
* @generated from enum value:
|
|
80
|
+
* @generated from enum value: RGBA = 0;
|
|
81
81
|
*/
|
|
82
|
-
|
|
82
|
+
VideoBufferType[VideoBufferType["RGBA"] = 0] = "RGBA";
|
|
83
83
|
/**
|
|
84
|
-
* @generated from enum value:
|
|
84
|
+
* @generated from enum value: ABGR = 1;
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
VideoBufferType[VideoBufferType["ABGR"] = 1] = "ABGR";
|
|
87
87
|
/**
|
|
88
|
-
* @generated from enum value:
|
|
88
|
+
* @generated from enum value: ARGB = 2;
|
|
89
89
|
*/
|
|
90
|
-
|
|
90
|
+
VideoBufferType[VideoBufferType["ARGB"] = 2] = "ARGB";
|
|
91
91
|
/**
|
|
92
|
-
* @generated from enum value:
|
|
92
|
+
* @generated from enum value: BGRA = 3;
|
|
93
93
|
*/
|
|
94
|
-
|
|
95
|
-
})(VideoFormatType || (VideoFormatType = {}));
|
|
96
|
-
// Retrieve enum metadata with: proto3.getEnumType(VideoFormatType)
|
|
97
|
-
proto3.util.setEnumType(VideoFormatType, "livekit.proto.VideoFormatType", [
|
|
98
|
-
{ no: 0, name: "FORMAT_ARGB" },
|
|
99
|
-
{ no: 1, name: "FORMAT_BGRA" },
|
|
100
|
-
{ no: 2, name: "FORMAT_ABGR" },
|
|
101
|
-
{ no: 3, name: "FORMAT_RGBA" },
|
|
102
|
-
]);
|
|
103
|
-
/**
|
|
104
|
-
* @generated from enum livekit.proto.VideoFrameBufferType
|
|
105
|
-
*/
|
|
106
|
-
export var VideoFrameBufferType;
|
|
107
|
-
(function (VideoFrameBufferType) {
|
|
94
|
+
VideoBufferType[VideoBufferType["BGRA"] = 3] = "BGRA";
|
|
108
95
|
/**
|
|
109
|
-
* @generated from enum value:
|
|
96
|
+
* @generated from enum value: RGB24 = 4;
|
|
110
97
|
*/
|
|
111
|
-
|
|
98
|
+
VideoBufferType[VideoBufferType["RGB24"] = 4] = "RGB24";
|
|
112
99
|
/**
|
|
113
|
-
* @generated from enum value: I420 =
|
|
100
|
+
* @generated from enum value: I420 = 5;
|
|
114
101
|
*/
|
|
115
|
-
|
|
102
|
+
VideoBufferType[VideoBufferType["I420"] = 5] = "I420";
|
|
116
103
|
/**
|
|
117
|
-
* @generated from enum value: I420A =
|
|
104
|
+
* @generated from enum value: I420A = 6;
|
|
118
105
|
*/
|
|
119
|
-
|
|
106
|
+
VideoBufferType[VideoBufferType["I420A"] = 6] = "I420A";
|
|
120
107
|
/**
|
|
121
|
-
* @generated from enum value: I422 =
|
|
108
|
+
* @generated from enum value: I422 = 7;
|
|
122
109
|
*/
|
|
123
|
-
|
|
110
|
+
VideoBufferType[VideoBufferType["I422"] = 7] = "I422";
|
|
124
111
|
/**
|
|
125
|
-
* @generated from enum value: I444 =
|
|
112
|
+
* @generated from enum value: I444 = 8;
|
|
126
113
|
*/
|
|
127
|
-
|
|
114
|
+
VideoBufferType[VideoBufferType["I444"] = 8] = "I444";
|
|
128
115
|
/**
|
|
129
|
-
* @generated from enum value: I010 =
|
|
116
|
+
* @generated from enum value: I010 = 9;
|
|
130
117
|
*/
|
|
131
|
-
|
|
118
|
+
VideoBufferType[VideoBufferType["I010"] = 9] = "I010";
|
|
132
119
|
/**
|
|
133
|
-
* @generated from enum value: NV12 =
|
|
120
|
+
* @generated from enum value: NV12 = 10;
|
|
134
121
|
*/
|
|
135
|
-
|
|
136
|
-
})(
|
|
137
|
-
// Retrieve enum metadata with: proto3.getEnumType(
|
|
138
|
-
proto3.util.setEnumType(
|
|
139
|
-
{ no: 0, name: "
|
|
140
|
-
{ no: 1, name: "
|
|
141
|
-
{ no: 2, name: "
|
|
142
|
-
{ no: 3, name: "
|
|
143
|
-
{ no: 4, name: "
|
|
144
|
-
{ no: 5, name: "
|
|
145
|
-
{ no: 6, name: "
|
|
122
|
+
VideoBufferType[VideoBufferType["NV12"] = 10] = "NV12";
|
|
123
|
+
})(VideoBufferType || (VideoBufferType = {}));
|
|
124
|
+
// Retrieve enum metadata with: proto3.getEnumType(VideoBufferType)
|
|
125
|
+
proto3.util.setEnumType(VideoBufferType, "livekit.proto.VideoBufferType", [
|
|
126
|
+
{ no: 0, name: "RGBA" },
|
|
127
|
+
{ no: 1, name: "ABGR" },
|
|
128
|
+
{ no: 2, name: "ARGB" },
|
|
129
|
+
{ no: 3, name: "BGRA" },
|
|
130
|
+
{ no: 4, name: "RGB24" },
|
|
131
|
+
{ no: 5, name: "I420" },
|
|
132
|
+
{ no: 6, name: "I420A" },
|
|
133
|
+
{ no: 7, name: "I422" },
|
|
134
|
+
{ no: 8, name: "I444" },
|
|
135
|
+
{ no: 9, name: "I010" },
|
|
136
|
+
{ no: 10, name: "NV12" },
|
|
146
137
|
]);
|
|
147
138
|
/**
|
|
148
139
|
* @generated from enum livekit.proto.VideoStreamType
|
|
@@ -182,76 +173,6 @@ export var VideoSourceType;
|
|
|
182
173
|
proto3.util.setEnumType(VideoSourceType, "livekit.proto.VideoSourceType", [
|
|
183
174
|
{ no: 0, name: "VIDEO_SOURCE_NATIVE" },
|
|
184
175
|
]);
|
|
185
|
-
/**
|
|
186
|
-
* Allocate a new VideoFrameBuffer
|
|
187
|
-
*
|
|
188
|
-
* @generated from message livekit.proto.AllocVideoBufferRequest
|
|
189
|
-
*/
|
|
190
|
-
export class AllocVideoBufferRequest extends Message {
|
|
191
|
-
constructor(data) {
|
|
192
|
-
super();
|
|
193
|
-
/**
|
|
194
|
-
* Only I420 is supported atm
|
|
195
|
-
*
|
|
196
|
-
* @generated from field: livekit.proto.VideoFrameBufferType type = 1;
|
|
197
|
-
*/
|
|
198
|
-
this.type = VideoFrameBufferType.NATIVE;
|
|
199
|
-
/**
|
|
200
|
-
* @generated from field: uint32 width = 2;
|
|
201
|
-
*/
|
|
202
|
-
this.width = 0;
|
|
203
|
-
/**
|
|
204
|
-
* @generated from field: uint32 height = 3;
|
|
205
|
-
*/
|
|
206
|
-
this.height = 0;
|
|
207
|
-
proto3.util.initPartial(data, this);
|
|
208
|
-
}
|
|
209
|
-
static fromBinary(bytes, options) {
|
|
210
|
-
return new AllocVideoBufferRequest().fromBinary(bytes, options);
|
|
211
|
-
}
|
|
212
|
-
static fromJson(jsonValue, options) {
|
|
213
|
-
return new AllocVideoBufferRequest().fromJson(jsonValue, options);
|
|
214
|
-
}
|
|
215
|
-
static fromJsonString(jsonString, options) {
|
|
216
|
-
return new AllocVideoBufferRequest().fromJsonString(jsonString, options);
|
|
217
|
-
}
|
|
218
|
-
static equals(a, b) {
|
|
219
|
-
return proto3.util.equals(AllocVideoBufferRequest, a, b);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
AllocVideoBufferRequest.runtime = proto3;
|
|
223
|
-
AllocVideoBufferRequest.typeName = "livekit.proto.AllocVideoBufferRequest";
|
|
224
|
-
AllocVideoBufferRequest.fields = proto3.util.newFieldList(() => [
|
|
225
|
-
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(VideoFrameBufferType) },
|
|
226
|
-
{ no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
227
|
-
{ no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
228
|
-
]);
|
|
229
|
-
/**
|
|
230
|
-
* @generated from message livekit.proto.AllocVideoBufferResponse
|
|
231
|
-
*/
|
|
232
|
-
export class AllocVideoBufferResponse extends Message {
|
|
233
|
-
constructor(data) {
|
|
234
|
-
super();
|
|
235
|
-
proto3.util.initPartial(data, this);
|
|
236
|
-
}
|
|
237
|
-
static fromBinary(bytes, options) {
|
|
238
|
-
return new AllocVideoBufferResponse().fromBinary(bytes, options);
|
|
239
|
-
}
|
|
240
|
-
static fromJson(jsonValue, options) {
|
|
241
|
-
return new AllocVideoBufferResponse().fromJson(jsonValue, options);
|
|
242
|
-
}
|
|
243
|
-
static fromJsonString(jsonString, options) {
|
|
244
|
-
return new AllocVideoBufferResponse().fromJsonString(jsonString, options);
|
|
245
|
-
}
|
|
246
|
-
static equals(a, b) {
|
|
247
|
-
return proto3.util.equals(AllocVideoBufferResponse, a, b);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
AllocVideoBufferResponse.runtime = proto3;
|
|
251
|
-
AllocVideoBufferResponse.typeName = "livekit.proto.AllocVideoBufferResponse";
|
|
252
|
-
AllocVideoBufferResponse.fields = proto3.util.newFieldList(() => [
|
|
253
|
-
{ no: 1, name: "buffer", kind: "message", T: OwnedVideoFrameBuffer },
|
|
254
|
-
]);
|
|
255
176
|
/**
|
|
256
177
|
* Create a new VideoStream
|
|
257
178
|
* VideoStream is used to receive video frames from a track
|
|
@@ -269,6 +190,12 @@ export class NewVideoStreamRequest extends Message {
|
|
|
269
190
|
* @generated from field: livekit.proto.VideoStreamType type = 2;
|
|
270
191
|
*/
|
|
271
192
|
this.type = VideoStreamType.VIDEO_STREAM_NATIVE;
|
|
193
|
+
/**
|
|
194
|
+
* if true, stride will be set to width/chroma_width
|
|
195
|
+
*
|
|
196
|
+
* @generated from field: bool normalize_stride = 4;
|
|
197
|
+
*/
|
|
198
|
+
this.normalizeStride = false;
|
|
272
199
|
proto3.util.initPartial(data, this);
|
|
273
200
|
}
|
|
274
201
|
static fromBinary(bytes, options) {
|
|
@@ -289,6 +216,8 @@ NewVideoStreamRequest.typeName = "livekit.proto.NewVideoStreamRequest";
|
|
|
289
216
|
NewVideoStreamRequest.fields = proto3.util.newFieldList(() => [
|
|
290
217
|
{ no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
291
218
|
{ no: 2, name: "type", kind: "enum", T: proto3.getEnumType(VideoStreamType) },
|
|
219
|
+
{ no: 3, name: "format", kind: "enum", T: proto3.getEnumType(VideoBufferType), opt: true },
|
|
220
|
+
{ no: 4, name: "normalize_stride", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
292
221
|
]);
|
|
293
222
|
/**
|
|
294
223
|
* @generated from message livekit.proto.NewVideoStreamResponse
|
|
@@ -389,9 +318,15 @@ export class CaptureVideoFrameRequest extends Message {
|
|
|
389
318
|
*/
|
|
390
319
|
this.sourceHandle = protoInt64.zero;
|
|
391
320
|
/**
|
|
392
|
-
*
|
|
321
|
+
* In microseconds
|
|
322
|
+
*
|
|
323
|
+
* @generated from field: int64 timestamp_us = 3;
|
|
393
324
|
*/
|
|
394
|
-
this.
|
|
325
|
+
this.timestampUs = protoInt64.zero;
|
|
326
|
+
/**
|
|
327
|
+
* @generated from field: livekit.proto.VideoRotation rotation = 4;
|
|
328
|
+
*/
|
|
329
|
+
this.rotation = VideoRotation.VIDEO_ROTATION_0;
|
|
395
330
|
proto3.util.initPartial(data, this);
|
|
396
331
|
}
|
|
397
332
|
static fromBinary(bytes, options) {
|
|
@@ -411,9 +346,9 @@ CaptureVideoFrameRequest.runtime = proto3;
|
|
|
411
346
|
CaptureVideoFrameRequest.typeName = "livekit.proto.CaptureVideoFrameRequest";
|
|
412
347
|
CaptureVideoFrameRequest.fields = proto3.util.newFieldList(() => [
|
|
413
348
|
{ no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
414
|
-
{ no: 2, name: "
|
|
415
|
-
{ no: 3, name: "
|
|
416
|
-
{ no: 4, name: "
|
|
349
|
+
{ no: 2, name: "buffer", kind: "message", T: VideoBufferInfo },
|
|
350
|
+
{ no: 3, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
351
|
+
{ no: 4, name: "rotation", kind: "enum", T: proto3.getEnumType(VideoRotation) },
|
|
417
352
|
]);
|
|
418
353
|
/**
|
|
419
354
|
* @generated from message livekit.proto.CaptureVideoFrameResponse
|
|
@@ -440,12 +375,9 @@ CaptureVideoFrameResponse.runtime = proto3;
|
|
|
440
375
|
CaptureVideoFrameResponse.typeName = "livekit.proto.CaptureVideoFrameResponse";
|
|
441
376
|
CaptureVideoFrameResponse.fields = proto3.util.newFieldList(() => []);
|
|
442
377
|
/**
|
|
443
|
-
*
|
|
444
|
-
* Or convert another YUV frame format to I420
|
|
445
|
-
*
|
|
446
|
-
* @generated from message livekit.proto.ToI420Request
|
|
378
|
+
* @generated from message livekit.proto.VideoConvertRequest
|
|
447
379
|
*/
|
|
448
|
-
export class
|
|
380
|
+
export class VideoConvertRequest extends Message {
|
|
449
381
|
constructor(data) {
|
|
450
382
|
super();
|
|
451
383
|
/**
|
|
@@ -453,141 +385,58 @@ export class ToI420Request extends Message {
|
|
|
453
385
|
*/
|
|
454
386
|
this.flipY = false;
|
|
455
387
|
/**
|
|
456
|
-
* @generated from
|
|
388
|
+
* @generated from field: livekit.proto.VideoBufferType dst_type = 3;
|
|
457
389
|
*/
|
|
458
|
-
this.
|
|
390
|
+
this.dstType = VideoBufferType.RGBA;
|
|
459
391
|
proto3.util.initPartial(data, this);
|
|
460
392
|
}
|
|
461
393
|
static fromBinary(bytes, options) {
|
|
462
|
-
return new
|
|
394
|
+
return new VideoConvertRequest().fromBinary(bytes, options);
|
|
463
395
|
}
|
|
464
396
|
static fromJson(jsonValue, options) {
|
|
465
|
-
return new
|
|
397
|
+
return new VideoConvertRequest().fromJson(jsonValue, options);
|
|
466
398
|
}
|
|
467
399
|
static fromJsonString(jsonString, options) {
|
|
468
|
-
return new
|
|
400
|
+
return new VideoConvertRequest().fromJsonString(jsonString, options);
|
|
469
401
|
}
|
|
470
402
|
static equals(a, b) {
|
|
471
|
-
return proto3.util.equals(
|
|
403
|
+
return proto3.util.equals(VideoConvertRequest, a, b);
|
|
472
404
|
}
|
|
473
405
|
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
406
|
+
VideoConvertRequest.runtime = proto3;
|
|
407
|
+
VideoConvertRequest.typeName = "livekit.proto.VideoConvertRequest";
|
|
408
|
+
VideoConvertRequest.fields = proto3.util.newFieldList(() => [
|
|
477
409
|
{ no: 1, name: "flip_y", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
478
|
-
{ no: 2, name: "
|
|
479
|
-
{ no: 3, name: "
|
|
480
|
-
{ no: 4, name: "handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, oneof: "from" },
|
|
410
|
+
{ no: 2, name: "buffer", kind: "message", T: VideoBufferInfo },
|
|
411
|
+
{ no: 3, name: "dst_type", kind: "enum", T: proto3.getEnumType(VideoBufferType) },
|
|
481
412
|
]);
|
|
482
413
|
/**
|
|
483
|
-
* @generated from message livekit.proto.
|
|
414
|
+
* @generated from message livekit.proto.VideoConvertResponse
|
|
484
415
|
*/
|
|
485
|
-
export class
|
|
416
|
+
export class VideoConvertResponse extends Message {
|
|
486
417
|
constructor(data) {
|
|
487
418
|
super();
|
|
488
419
|
proto3.util.initPartial(data, this);
|
|
489
420
|
}
|
|
490
421
|
static fromBinary(bytes, options) {
|
|
491
|
-
return new
|
|
422
|
+
return new VideoConvertResponse().fromBinary(bytes, options);
|
|
492
423
|
}
|
|
493
424
|
static fromJson(jsonValue, options) {
|
|
494
|
-
return new
|
|
425
|
+
return new VideoConvertResponse().fromJson(jsonValue, options);
|
|
495
426
|
}
|
|
496
427
|
static fromJsonString(jsonString, options) {
|
|
497
|
-
return new
|
|
428
|
+
return new VideoConvertResponse().fromJsonString(jsonString, options);
|
|
498
429
|
}
|
|
499
430
|
static equals(a, b) {
|
|
500
|
-
return proto3.util.equals(
|
|
431
|
+
return proto3.util.equals(VideoConvertResponse, a, b);
|
|
501
432
|
}
|
|
502
433
|
}
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
{ no: 1, name: "
|
|
434
|
+
VideoConvertResponse.runtime = proto3;
|
|
435
|
+
VideoConvertResponse.typeName = "livekit.proto.VideoConvertResponse";
|
|
436
|
+
VideoConvertResponse.fields = proto3.util.newFieldList(() => [
|
|
437
|
+
{ no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
438
|
+
{ no: 2, name: "buffer", kind: "message", T: OwnedVideoBuffer },
|
|
507
439
|
]);
|
|
508
|
-
/**
|
|
509
|
-
* Convert a YUV frame to a RGBA frame
|
|
510
|
-
* Only I420 is supported atm
|
|
511
|
-
*
|
|
512
|
-
* @generated from message livekit.proto.ToArgbRequest
|
|
513
|
-
*/
|
|
514
|
-
export class ToArgbRequest extends Message {
|
|
515
|
-
constructor(data) {
|
|
516
|
-
super();
|
|
517
|
-
/**
|
|
518
|
-
* @generated from field: uint64 dst_ptr = 2;
|
|
519
|
-
*/
|
|
520
|
-
this.dstPtr = protoInt64.zero;
|
|
521
|
-
/**
|
|
522
|
-
* @generated from field: livekit.proto.VideoFormatType dst_format = 3;
|
|
523
|
-
*/
|
|
524
|
-
this.dstFormat = VideoFormatType.FORMAT_ARGB;
|
|
525
|
-
/**
|
|
526
|
-
* @generated from field: uint32 dst_stride = 4;
|
|
527
|
-
*/
|
|
528
|
-
this.dstStride = 0;
|
|
529
|
-
/**
|
|
530
|
-
* @generated from field: uint32 dst_width = 5;
|
|
531
|
-
*/
|
|
532
|
-
this.dstWidth = 0;
|
|
533
|
-
/**
|
|
534
|
-
* @generated from field: uint32 dst_height = 6;
|
|
535
|
-
*/
|
|
536
|
-
this.dstHeight = 0;
|
|
537
|
-
/**
|
|
538
|
-
* @generated from field: bool flip_y = 7;
|
|
539
|
-
*/
|
|
540
|
-
this.flipY = false;
|
|
541
|
-
proto3.util.initPartial(data, this);
|
|
542
|
-
}
|
|
543
|
-
static fromBinary(bytes, options) {
|
|
544
|
-
return new ToArgbRequest().fromBinary(bytes, options);
|
|
545
|
-
}
|
|
546
|
-
static fromJson(jsonValue, options) {
|
|
547
|
-
return new ToArgbRequest().fromJson(jsonValue, options);
|
|
548
|
-
}
|
|
549
|
-
static fromJsonString(jsonString, options) {
|
|
550
|
-
return new ToArgbRequest().fromJsonString(jsonString, options);
|
|
551
|
-
}
|
|
552
|
-
static equals(a, b) {
|
|
553
|
-
return proto3.util.equals(ToArgbRequest, a, b);
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
ToArgbRequest.runtime = proto3;
|
|
557
|
-
ToArgbRequest.typeName = "livekit.proto.ToArgbRequest";
|
|
558
|
-
ToArgbRequest.fields = proto3.util.newFieldList(() => [
|
|
559
|
-
{ no: 1, name: "buffer", kind: "message", T: VideoFrameBufferInfo },
|
|
560
|
-
{ no: 2, name: "dst_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
561
|
-
{ no: 3, name: "dst_format", kind: "enum", T: proto3.getEnumType(VideoFormatType) },
|
|
562
|
-
{ no: 4, name: "dst_stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
563
|
-
{ no: 5, name: "dst_width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
564
|
-
{ no: 6, name: "dst_height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
565
|
-
{ no: 7, name: "flip_y", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
566
|
-
]);
|
|
567
|
-
/**
|
|
568
|
-
* @generated from message livekit.proto.ToArgbResponse
|
|
569
|
-
*/
|
|
570
|
-
export class ToArgbResponse extends Message {
|
|
571
|
-
constructor(data) {
|
|
572
|
-
super();
|
|
573
|
-
proto3.util.initPartial(data, this);
|
|
574
|
-
}
|
|
575
|
-
static fromBinary(bytes, options) {
|
|
576
|
-
return new ToArgbResponse().fromBinary(bytes, options);
|
|
577
|
-
}
|
|
578
|
-
static fromJson(jsonValue, options) {
|
|
579
|
-
return new ToArgbResponse().fromJson(jsonValue, options);
|
|
580
|
-
}
|
|
581
|
-
static fromJsonString(jsonString, options) {
|
|
582
|
-
return new ToArgbResponse().fromJsonString(jsonString, options);
|
|
583
|
-
}
|
|
584
|
-
static equals(a, b) {
|
|
585
|
-
return proto3.util.equals(ToArgbResponse, a, b);
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
ToArgbResponse.runtime = proto3;
|
|
589
|
-
ToArgbResponse.typeName = "livekit.proto.ToArgbResponse";
|
|
590
|
-
ToArgbResponse.fields = proto3.util.newFieldList(() => []);
|
|
591
440
|
/**
|
|
592
441
|
* @generated from message livekit.proto.VideoResolution
|
|
593
442
|
*/
|
|
@@ -629,102 +478,15 @@ VideoResolution.fields = proto3.util.newFieldList(() => [
|
|
|
629
478
|
{ no: 3, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
630
479
|
]);
|
|
631
480
|
/**
|
|
632
|
-
* @generated from message livekit.proto.
|
|
633
|
-
*/
|
|
634
|
-
export class ArgbBufferInfo extends Message {
|
|
635
|
-
constructor(data) {
|
|
636
|
-
super();
|
|
637
|
-
/**
|
|
638
|
-
* @generated from field: uint64 ptr = 1;
|
|
639
|
-
*/
|
|
640
|
-
this.ptr = protoInt64.zero;
|
|
641
|
-
/**
|
|
642
|
-
* @generated from field: livekit.proto.VideoFormatType format = 2;
|
|
643
|
-
*/
|
|
644
|
-
this.format = VideoFormatType.FORMAT_ARGB;
|
|
645
|
-
/**
|
|
646
|
-
* @generated from field: uint32 stride = 3;
|
|
647
|
-
*/
|
|
648
|
-
this.stride = 0;
|
|
649
|
-
/**
|
|
650
|
-
* @generated from field: uint32 width = 4;
|
|
651
|
-
*/
|
|
652
|
-
this.width = 0;
|
|
653
|
-
/**
|
|
654
|
-
* @generated from field: uint32 height = 5;
|
|
655
|
-
*/
|
|
656
|
-
this.height = 0;
|
|
657
|
-
proto3.util.initPartial(data, this);
|
|
658
|
-
}
|
|
659
|
-
static fromBinary(bytes, options) {
|
|
660
|
-
return new ArgbBufferInfo().fromBinary(bytes, options);
|
|
661
|
-
}
|
|
662
|
-
static fromJson(jsonValue, options) {
|
|
663
|
-
return new ArgbBufferInfo().fromJson(jsonValue, options);
|
|
664
|
-
}
|
|
665
|
-
static fromJsonString(jsonString, options) {
|
|
666
|
-
return new ArgbBufferInfo().fromJsonString(jsonString, options);
|
|
667
|
-
}
|
|
668
|
-
static equals(a, b) {
|
|
669
|
-
return proto3.util.equals(ArgbBufferInfo, a, b);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
ArgbBufferInfo.runtime = proto3;
|
|
673
|
-
ArgbBufferInfo.typeName = "livekit.proto.ArgbBufferInfo";
|
|
674
|
-
ArgbBufferInfo.fields = proto3.util.newFieldList(() => [
|
|
675
|
-
{ no: 1, name: "ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
676
|
-
{ no: 2, name: "format", kind: "enum", T: proto3.getEnumType(VideoFormatType) },
|
|
677
|
-
{ no: 3, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
678
|
-
{ no: 4, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
679
|
-
{ no: 5, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
680
|
-
]);
|
|
681
|
-
/**
|
|
682
|
-
* @generated from message livekit.proto.VideoFrameInfo
|
|
683
|
-
*/
|
|
684
|
-
export class VideoFrameInfo extends Message {
|
|
685
|
-
constructor(data) {
|
|
686
|
-
super();
|
|
687
|
-
/**
|
|
688
|
-
* In microseconds
|
|
689
|
-
*
|
|
690
|
-
* @generated from field: int64 timestamp_us = 1;
|
|
691
|
-
*/
|
|
692
|
-
this.timestampUs = protoInt64.zero;
|
|
693
|
-
/**
|
|
694
|
-
* @generated from field: livekit.proto.VideoRotation rotation = 2;
|
|
695
|
-
*/
|
|
696
|
-
this.rotation = VideoRotation.VIDEO_ROTATION_0;
|
|
697
|
-
proto3.util.initPartial(data, this);
|
|
698
|
-
}
|
|
699
|
-
static fromBinary(bytes, options) {
|
|
700
|
-
return new VideoFrameInfo().fromBinary(bytes, options);
|
|
701
|
-
}
|
|
702
|
-
static fromJson(jsonValue, options) {
|
|
703
|
-
return new VideoFrameInfo().fromJson(jsonValue, options);
|
|
704
|
-
}
|
|
705
|
-
static fromJsonString(jsonString, options) {
|
|
706
|
-
return new VideoFrameInfo().fromJsonString(jsonString, options);
|
|
707
|
-
}
|
|
708
|
-
static equals(a, b) {
|
|
709
|
-
return proto3.util.equals(VideoFrameInfo, a, b);
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
VideoFrameInfo.runtime = proto3;
|
|
713
|
-
VideoFrameInfo.typeName = "livekit.proto.VideoFrameInfo";
|
|
714
|
-
VideoFrameInfo.fields = proto3.util.newFieldList(() => [
|
|
715
|
-
{ no: 1, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
716
|
-
{ no: 2, name: "rotation", kind: "enum", T: proto3.getEnumType(VideoRotation) },
|
|
717
|
-
]);
|
|
718
|
-
/**
|
|
719
|
-
* @generated from message livekit.proto.VideoFrameBufferInfo
|
|
481
|
+
* @generated from message livekit.proto.VideoBufferInfo
|
|
720
482
|
*/
|
|
721
|
-
export class
|
|
483
|
+
export class VideoBufferInfo extends Message {
|
|
722
484
|
constructor(data) {
|
|
723
485
|
super();
|
|
724
486
|
/**
|
|
725
|
-
* @generated from field: livekit.proto.
|
|
487
|
+
* @generated from field: livekit.proto.VideoBufferType type = 1;
|
|
726
488
|
*/
|
|
727
|
-
this.
|
|
489
|
+
this.type = VideoBufferType.RGBA;
|
|
728
490
|
/**
|
|
729
491
|
* @generated from field: uint32 width = 2;
|
|
730
492
|
*/
|
|
@@ -734,221 +496,111 @@ export class VideoFrameBufferInfo extends Message {
|
|
|
734
496
|
*/
|
|
735
497
|
this.height = 0;
|
|
736
498
|
/**
|
|
737
|
-
* @generated from
|
|
499
|
+
* @generated from field: uint64 data_ptr = 4;
|
|
738
500
|
*/
|
|
739
|
-
this.
|
|
740
|
-
proto3.util.initPartial(data, this);
|
|
741
|
-
}
|
|
742
|
-
static fromBinary(bytes, options) {
|
|
743
|
-
return new VideoFrameBufferInfo().fromBinary(bytes, options);
|
|
744
|
-
}
|
|
745
|
-
static fromJson(jsonValue, options) {
|
|
746
|
-
return new VideoFrameBufferInfo().fromJson(jsonValue, options);
|
|
747
|
-
}
|
|
748
|
-
static fromJsonString(jsonString, options) {
|
|
749
|
-
return new VideoFrameBufferInfo().fromJsonString(jsonString, options);
|
|
750
|
-
}
|
|
751
|
-
static equals(a, b) {
|
|
752
|
-
return proto3.util.equals(VideoFrameBufferInfo, a, b);
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
VideoFrameBufferInfo.runtime = proto3;
|
|
756
|
-
VideoFrameBufferInfo.typeName = "livekit.proto.VideoFrameBufferInfo";
|
|
757
|
-
VideoFrameBufferInfo.fields = proto3.util.newFieldList(() => [
|
|
758
|
-
{ no: 1, name: "buffer_type", kind: "enum", T: proto3.getEnumType(VideoFrameBufferType) },
|
|
759
|
-
{ no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
760
|
-
{ no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
761
|
-
{ no: 4, name: "yuv", kind: "message", T: PlanarYuvBufferInfo, oneof: "buffer" },
|
|
762
|
-
{ no: 5, name: "bi_yuv", kind: "message", T: BiplanarYuvBufferInfo, oneof: "buffer" },
|
|
763
|
-
{ no: 6, name: "native", kind: "message", T: NativeBufferInfo, oneof: "buffer" },
|
|
764
|
-
]);
|
|
765
|
-
/**
|
|
766
|
-
* @generated from message livekit.proto.OwnedVideoFrameBuffer
|
|
767
|
-
*/
|
|
768
|
-
export class OwnedVideoFrameBuffer extends Message {
|
|
769
|
-
constructor(data) {
|
|
770
|
-
super();
|
|
771
|
-
proto3.util.initPartial(data, this);
|
|
772
|
-
}
|
|
773
|
-
static fromBinary(bytes, options) {
|
|
774
|
-
return new OwnedVideoFrameBuffer().fromBinary(bytes, options);
|
|
775
|
-
}
|
|
776
|
-
static fromJson(jsonValue, options) {
|
|
777
|
-
return new OwnedVideoFrameBuffer().fromJson(jsonValue, options);
|
|
778
|
-
}
|
|
779
|
-
static fromJsonString(jsonString, options) {
|
|
780
|
-
return new OwnedVideoFrameBuffer().fromJsonString(jsonString, options);
|
|
781
|
-
}
|
|
782
|
-
static equals(a, b) {
|
|
783
|
-
return proto3.util.equals(OwnedVideoFrameBuffer, a, b);
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
OwnedVideoFrameBuffer.runtime = proto3;
|
|
787
|
-
OwnedVideoFrameBuffer.typeName = "livekit.proto.OwnedVideoFrameBuffer";
|
|
788
|
-
OwnedVideoFrameBuffer.fields = proto3.util.newFieldList(() => [
|
|
789
|
-
{ no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
|
|
790
|
-
{ no: 2, name: "info", kind: "message", T: VideoFrameBufferInfo },
|
|
791
|
-
]);
|
|
792
|
-
/**
|
|
793
|
-
* @generated from message livekit.proto.PlanarYuvBufferInfo
|
|
794
|
-
*/
|
|
795
|
-
export class PlanarYuvBufferInfo extends Message {
|
|
796
|
-
constructor(data) {
|
|
797
|
-
super();
|
|
798
|
-
/**
|
|
799
|
-
* @generated from field: uint32 chroma_width = 1;
|
|
800
|
-
*/
|
|
801
|
-
this.chromaWidth = 0;
|
|
802
|
-
/**
|
|
803
|
-
* @generated from field: uint32 chroma_height = 2;
|
|
804
|
-
*/
|
|
805
|
-
this.chromaHeight = 0;
|
|
806
|
-
/**
|
|
807
|
-
* @generated from field: uint32 stride_y = 3;
|
|
808
|
-
*/
|
|
809
|
-
this.strideY = 0;
|
|
810
|
-
/**
|
|
811
|
-
* @generated from field: uint32 stride_u = 4;
|
|
812
|
-
*/
|
|
813
|
-
this.strideU = 0;
|
|
814
|
-
/**
|
|
815
|
-
* @generated from field: uint32 stride_v = 5;
|
|
816
|
-
*/
|
|
817
|
-
this.strideV = 0;
|
|
501
|
+
this.dataPtr = protoInt64.zero;
|
|
818
502
|
/**
|
|
819
|
-
*
|
|
820
|
-
*/
|
|
821
|
-
this.strideA = 0;
|
|
822
|
-
/**
|
|
823
|
-
* *const u8 or *const u16
|
|
503
|
+
* only for packed formats
|
|
824
504
|
*
|
|
825
|
-
* @generated from field:
|
|
826
|
-
*/
|
|
827
|
-
this.dataYPtr = protoInt64.zero;
|
|
828
|
-
/**
|
|
829
|
-
* @generated from field: uint64 data_u_ptr = 8;
|
|
505
|
+
* @generated from field: uint32 stride = 6;
|
|
830
506
|
*/
|
|
831
|
-
this.
|
|
832
|
-
/**
|
|
833
|
-
* @generated from field: uint64 data_v_ptr = 9;
|
|
834
|
-
*/
|
|
835
|
-
this.dataVPtr = protoInt64.zero;
|
|
507
|
+
this.stride = 0;
|
|
836
508
|
/**
|
|
837
|
-
*
|
|
838
|
-
*
|
|
839
|
-
* @generated from field: uint64 data_a_ptr = 10;
|
|
509
|
+
* @generated from field: repeated livekit.proto.VideoBufferInfo.ComponentInfo components = 7;
|
|
840
510
|
*/
|
|
841
|
-
this.
|
|
511
|
+
this.components = [];
|
|
842
512
|
proto3.util.initPartial(data, this);
|
|
843
513
|
}
|
|
844
514
|
static fromBinary(bytes, options) {
|
|
845
|
-
return new
|
|
515
|
+
return new VideoBufferInfo().fromBinary(bytes, options);
|
|
846
516
|
}
|
|
847
517
|
static fromJson(jsonValue, options) {
|
|
848
|
-
return new
|
|
518
|
+
return new VideoBufferInfo().fromJson(jsonValue, options);
|
|
849
519
|
}
|
|
850
520
|
static fromJsonString(jsonString, options) {
|
|
851
|
-
return new
|
|
521
|
+
return new VideoBufferInfo().fromJsonString(jsonString, options);
|
|
852
522
|
}
|
|
853
523
|
static equals(a, b) {
|
|
854
|
-
return proto3.util.equals(
|
|
524
|
+
return proto3.util.equals(VideoBufferInfo, a, b);
|
|
855
525
|
}
|
|
856
526
|
}
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
{ no: 1, name: "
|
|
861
|
-
{ no: 2, name: "
|
|
862
|
-
{ no: 3, name: "
|
|
863
|
-
{ no: 4, name: "
|
|
864
|
-
{ no:
|
|
865
|
-
{ no:
|
|
866
|
-
{ no: 7, name: "data_y_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
867
|
-
{ no: 8, name: "data_u_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
868
|
-
{ no: 9, name: "data_v_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
869
|
-
{ no: 10, name: "data_a_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
527
|
+
VideoBufferInfo.runtime = proto3;
|
|
528
|
+
VideoBufferInfo.typeName = "livekit.proto.VideoBufferInfo";
|
|
529
|
+
VideoBufferInfo.fields = proto3.util.newFieldList(() => [
|
|
530
|
+
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(VideoBufferType) },
|
|
531
|
+
{ no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
532
|
+
{ no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
533
|
+
{ no: 4, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
534
|
+
{ no: 6, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
535
|
+
{ no: 7, name: "components", kind: "message", T: VideoBufferInfo_ComponentInfo, repeated: true },
|
|
870
536
|
]);
|
|
871
537
|
/**
|
|
872
|
-
* @generated from message livekit.proto.
|
|
538
|
+
* @generated from message livekit.proto.VideoBufferInfo.ComponentInfo
|
|
873
539
|
*/
|
|
874
|
-
export class
|
|
540
|
+
export class VideoBufferInfo_ComponentInfo extends Message {
|
|
875
541
|
constructor(data) {
|
|
876
542
|
super();
|
|
877
543
|
/**
|
|
878
|
-
* @generated from field:
|
|
879
|
-
*/
|
|
880
|
-
this.chromaWidth = 0;
|
|
881
|
-
/**
|
|
882
|
-
* @generated from field: uint32 chroma_height = 2;
|
|
883
|
-
*/
|
|
884
|
-
this.chromaHeight = 0;
|
|
885
|
-
/**
|
|
886
|
-
* @generated from field: uint32 stride_y = 3;
|
|
544
|
+
* @generated from field: uint64 data_ptr = 1;
|
|
887
545
|
*/
|
|
888
|
-
this.
|
|
546
|
+
this.dataPtr = protoInt64.zero;
|
|
889
547
|
/**
|
|
890
|
-
* @generated from field: uint32
|
|
548
|
+
* @generated from field: uint32 stride = 2;
|
|
891
549
|
*/
|
|
892
|
-
this.
|
|
893
|
-
/**
|
|
894
|
-
* @generated from field: uint64 data_y_ptr = 5;
|
|
895
|
-
*/
|
|
896
|
-
this.dataYPtr = protoInt64.zero;
|
|
550
|
+
this.stride = 0;
|
|
897
551
|
/**
|
|
898
|
-
* @generated from field:
|
|
552
|
+
* @generated from field: uint32 size = 3;
|
|
899
553
|
*/
|
|
900
|
-
this.
|
|
554
|
+
this.size = 0;
|
|
901
555
|
proto3.util.initPartial(data, this);
|
|
902
556
|
}
|
|
903
557
|
static fromBinary(bytes, options) {
|
|
904
|
-
return new
|
|
558
|
+
return new VideoBufferInfo_ComponentInfo().fromBinary(bytes, options);
|
|
905
559
|
}
|
|
906
560
|
static fromJson(jsonValue, options) {
|
|
907
|
-
return new
|
|
561
|
+
return new VideoBufferInfo_ComponentInfo().fromJson(jsonValue, options);
|
|
908
562
|
}
|
|
909
563
|
static fromJsonString(jsonString, options) {
|
|
910
|
-
return new
|
|
564
|
+
return new VideoBufferInfo_ComponentInfo().fromJsonString(jsonString, options);
|
|
911
565
|
}
|
|
912
566
|
static equals(a, b) {
|
|
913
|
-
return proto3.util.equals(
|
|
567
|
+
return proto3.util.equals(VideoBufferInfo_ComponentInfo, a, b);
|
|
914
568
|
}
|
|
915
569
|
}
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
{ no: 1, name: "
|
|
920
|
-
{ no: 2, name: "
|
|
921
|
-
{ no: 3, name: "
|
|
922
|
-
{ no: 4, name: "stride_uv", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
923
|
-
{ no: 5, name: "data_y_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
924
|
-
{ no: 6, name: "data_uv_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
570
|
+
VideoBufferInfo_ComponentInfo.runtime = proto3;
|
|
571
|
+
VideoBufferInfo_ComponentInfo.typeName = "livekit.proto.VideoBufferInfo.ComponentInfo";
|
|
572
|
+
VideoBufferInfo_ComponentInfo.fields = proto3.util.newFieldList(() => [
|
|
573
|
+
{ no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
574
|
+
{ no: 2, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
575
|
+
{ no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
925
576
|
]);
|
|
926
577
|
/**
|
|
927
|
-
*
|
|
928
|
-
*
|
|
929
|
-
* @generated from message livekit.proto.NativeBufferInfo
|
|
578
|
+
* @generated from message livekit.proto.OwnedVideoBuffer
|
|
930
579
|
*/
|
|
931
|
-
export class
|
|
580
|
+
export class OwnedVideoBuffer extends Message {
|
|
932
581
|
constructor(data) {
|
|
933
582
|
super();
|
|
934
583
|
proto3.util.initPartial(data, this);
|
|
935
584
|
}
|
|
936
585
|
static fromBinary(bytes, options) {
|
|
937
|
-
return new
|
|
586
|
+
return new OwnedVideoBuffer().fromBinary(bytes, options);
|
|
938
587
|
}
|
|
939
588
|
static fromJson(jsonValue, options) {
|
|
940
|
-
return new
|
|
589
|
+
return new OwnedVideoBuffer().fromJson(jsonValue, options);
|
|
941
590
|
}
|
|
942
591
|
static fromJsonString(jsonString, options) {
|
|
943
|
-
return new
|
|
592
|
+
return new OwnedVideoBuffer().fromJsonString(jsonString, options);
|
|
944
593
|
}
|
|
945
594
|
static equals(a, b) {
|
|
946
|
-
return proto3.util.equals(
|
|
595
|
+
return proto3.util.equals(OwnedVideoBuffer, a, b);
|
|
947
596
|
}
|
|
948
597
|
}
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
598
|
+
OwnedVideoBuffer.runtime = proto3;
|
|
599
|
+
OwnedVideoBuffer.typeName = "livekit.proto.OwnedVideoBuffer";
|
|
600
|
+
OwnedVideoBuffer.fields = proto3.util.newFieldList(() => [
|
|
601
|
+
{ no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
|
|
602
|
+
{ no: 2, name: "info", kind: "message", T: VideoBufferInfo },
|
|
603
|
+
]);
|
|
952
604
|
/**
|
|
953
605
|
* @generated from message livekit.proto.VideoStreamInfo
|
|
954
606
|
*/
|
|
@@ -1048,6 +700,16 @@ VideoStreamEvent.fields = proto3.util.newFieldList(() => [
|
|
|
1048
700
|
export class VideoFrameReceived extends Message {
|
|
1049
701
|
constructor(data) {
|
|
1050
702
|
super();
|
|
703
|
+
/**
|
|
704
|
+
* In microseconds
|
|
705
|
+
*
|
|
706
|
+
* @generated from field: int64 timestamp_us = 2;
|
|
707
|
+
*/
|
|
708
|
+
this.timestampUs = protoInt64.zero;
|
|
709
|
+
/**
|
|
710
|
+
* @generated from field: livekit.proto.VideoRotation rotation = 3;
|
|
711
|
+
*/
|
|
712
|
+
this.rotation = VideoRotation.VIDEO_ROTATION_0;
|
|
1051
713
|
proto3.util.initPartial(data, this);
|
|
1052
714
|
}
|
|
1053
715
|
static fromBinary(bytes, options) {
|
|
@@ -1066,8 +728,9 @@ export class VideoFrameReceived extends Message {
|
|
|
1066
728
|
VideoFrameReceived.runtime = proto3;
|
|
1067
729
|
VideoFrameReceived.typeName = "livekit.proto.VideoFrameReceived";
|
|
1068
730
|
VideoFrameReceived.fields = proto3.util.newFieldList(() => [
|
|
1069
|
-
{ no: 1, name: "
|
|
1070
|
-
{ no: 2, name: "
|
|
731
|
+
{ no: 1, name: "buffer", kind: "message", T: OwnedVideoBuffer },
|
|
732
|
+
{ no: 2, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
733
|
+
{ no: 3, name: "rotation", kind: "enum", T: proto3.getEnumType(VideoRotation) },
|
|
1071
734
|
]);
|
|
1072
735
|
/**
|
|
1073
736
|
* @generated from message livekit.proto.VideoStreamEOS
|