@livekit/rtc-node 0.10.4 → 0.11.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.
Files changed (136) hide show
  1. package/README.md +54 -2
  2. package/build.rs +1 -1
  3. package/dist/audio_frame.d.ts +1 -1
  4. package/dist/audio_frame.d.ts.map +1 -1
  5. package/dist/audio_frame.js +4 -4
  6. package/dist/audio_frame.js.map +1 -1
  7. package/dist/audio_resampler.d.ts.map +1 -1
  8. package/dist/audio_resampler.js +8 -7
  9. package/dist/audio_resampler.js.map +1 -1
  10. package/dist/audio_source.d.ts.map +1 -1
  11. package/dist/audio_source.js +8 -4
  12. package/dist/audio_source.js.map +1 -1
  13. package/dist/audio_stream.d.ts +1 -1
  14. package/dist/audio_stream.d.ts.map +1 -1
  15. package/dist/audio_stream.js +4 -3
  16. package/dist/audio_stream.js.map +1 -1
  17. package/dist/e2ee.d.ts.map +1 -1
  18. package/dist/e2ee.js +25 -25
  19. package/dist/e2ee.js.map +1 -1
  20. package/dist/ffi_client.d.ts +3 -3
  21. package/dist/ffi_client.d.ts.map +1 -1
  22. package/dist/ffi_client.js +9 -7
  23. package/dist/ffi_client.js.map +1 -1
  24. package/dist/index.d.ts +29 -1
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +34 -4
  27. package/dist/index.js.map +1 -1
  28. package/dist/napi/native.d.ts +1 -0
  29. package/dist/participant.d.ts +48 -2
  30. package/dist/participant.d.ts.map +1 -1
  31. package/dist/participant.js +143 -24
  32. package/dist/participant.js.map +1 -1
  33. package/dist/proto/audio_frame_pb.d.ts +451 -526
  34. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  35. package/dist/proto/audio_frame_pb.js +200 -1179
  36. package/dist/proto/audio_frame_pb.js.map +1 -1
  37. package/dist/proto/e2ee_pb.d.ts +264 -333
  38. package/dist/proto/e2ee_pb.d.ts.map +1 -1
  39. package/dist/proto/e2ee_pb.js +136 -810
  40. package/dist/proto/e2ee_pb.js.map +1 -1
  41. package/dist/proto/ffi_pb.d.ts +175 -129
  42. package/dist/proto/ffi_pb.d.ts.map +1 -1
  43. package/dist/proto/ffi_pb.js +58 -395
  44. package/dist/proto/ffi_pb.js.map +1 -1
  45. package/dist/proto/handle_pb.d.ts +14 -13
  46. package/dist/proto/handle_pb.d.ts.map +1 -1
  47. package/dist/proto/handle_pb.js +8 -39
  48. package/dist/proto/handle_pb.js.map +1 -1
  49. package/dist/proto/participant_pb.d.ts +54 -52
  50. package/dist/proto/participant_pb.d.ts.map +1 -1
  51. package/dist/proto/participant_pb.js +18 -90
  52. package/dist/proto/participant_pb.js.map +1 -1
  53. package/dist/proto/room_pb.d.ts +1042 -1187
  54. package/dist/proto/room_pb.d.ts.map +1 -1
  55. package/dist/proto/room_pb.js +470 -2938
  56. package/dist/proto/room_pb.js.map +1 -1
  57. package/dist/proto/rpc_pb.d.ts +235 -0
  58. package/dist/proto/rpc_pb.d.ts.map +1 -0
  59. package/dist/proto/rpc_pb.js +74 -0
  60. package/dist/proto/rpc_pb.js.map +1 -0
  61. package/dist/proto/stats_pb.d.ts +738 -800
  62. package/dist/proto/stats_pb.d.ts.map +1 -1
  63. package/dist/proto/stats_pb.js +218 -1960
  64. package/dist/proto/stats_pb.js.map +1 -1
  65. package/dist/proto/track_pb.d.ts +225 -258
  66. package/dist/proto/track_pb.d.ts.map +1 -1
  67. package/dist/proto/track_pb.js +98 -591
  68. package/dist/proto/track_pb.js.map +1 -1
  69. package/dist/proto/video_frame_pb.d.ts +357 -390
  70. package/dist/proto/video_frame_pb.d.ts.map +1 -1
  71. package/dist/proto/video_frame_pb.js +137 -790
  72. package/dist/proto/video_frame_pb.js.map +1 -1
  73. package/dist/room.d.ts +21 -7
  74. package/dist/room.d.ts.map +1 -1
  75. package/dist/room.js +134 -54
  76. package/dist/room.js.map +1 -1
  77. package/dist/rpc.d.ts +78 -0
  78. package/dist/rpc.d.ts.map +1 -0
  79. package/dist/rpc.js +69 -0
  80. package/dist/rpc.js.map +1 -0
  81. package/dist/track.d.ts.map +1 -1
  82. package/dist/track.js +7 -3
  83. package/dist/track.js.map +1 -1
  84. package/dist/track_publication.d.ts.map +1 -1
  85. package/dist/track_publication.js +3 -2
  86. package/dist/track_publication.js.map +1 -1
  87. package/dist/version.d.ts +2 -0
  88. package/dist/version.d.ts.map +1 -0
  89. package/dist/version.js +2 -0
  90. package/dist/version.js.map +1 -0
  91. package/dist/video_frame.d.ts +2 -2
  92. package/dist/video_frame.d.ts.map +1 -1
  93. package/dist/video_frame.js +47 -25
  94. package/dist/video_frame.js.map +1 -1
  95. package/dist/video_source.d.ts.map +1 -1
  96. package/dist/video_source.js +4 -3
  97. package/dist/video_source.js.map +1 -1
  98. package/dist/video_stream.d.ts +1 -1
  99. package/dist/video_stream.d.ts.map +1 -1
  100. package/dist/video_stream.js +7 -3
  101. package/dist/video_stream.js.map +1 -1
  102. package/package.json +13 -10
  103. package/src/audio_frame.ts +6 -6
  104. package/src/audio_resampler.ts +10 -9
  105. package/src/audio_source.ts +9 -8
  106. package/src/audio_stream.ts +7 -6
  107. package/src/e2ee.ts +34 -34
  108. package/src/ffi_client.ts +23 -10
  109. package/src/index.ts +61 -2
  110. package/src/napi/native.d.ts +1 -0
  111. package/src/nodejs.rs +6 -3
  112. package/src/participant.ts +207 -47
  113. package/src/proto/audio_frame_pb.ts +562 -1279
  114. package/src/proto/e2ee_pb.ts +365 -886
  115. package/src/proto/ffi_pb.ts +206 -405
  116. package/src/proto/handle_pb.ts +21 -35
  117. package/src/proto/participant_pb.ts +71 -112
  118. package/src/proto/room_pb.ts +1284 -2995
  119. package/src/proto/rpc_pb.ts +310 -0
  120. package/src/proto/stats_pb.ts +1028 -1947
  121. package/src/proto/track_pb.ts +287 -621
  122. package/src/proto/video_frame_pb.ts +445 -905
  123. package/src/room.ts +181 -75
  124. package/src/rpc.ts +121 -0
  125. package/src/track.ts +8 -7
  126. package/src/track_publication.ts +5 -4
  127. package/src/version.ts +1 -0
  128. package/src/video_frame.ts +54 -27
  129. package/src/video_source.ts +7 -6
  130. package/src/video_stream.ts +7 -6
  131. package/dist/utils.d.ts +0 -7
  132. package/dist/utils.d.ts.map +0 -1
  133. package/dist/utils.js +0 -48
  134. package/dist/utils.js.map +0 -1
  135. package/src/utils.test.ts +0 -47
  136. package/src/utils.ts +0 -44
@@ -11,9 +11,123 @@
11
11
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
- import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
15
- import { TrackSource } from "./track_pb.js";
16
- import { FfiOwnedHandle } from "./handle_pb.js";
14
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
15
+ import { file_handle } from "./handle_pb.js";
16
+ import { file_track } from "./track_pb.js";
17
+ /**
18
+ * Describes the file video_frame.proto.
19
+ */
20
+ export const file_video_frame = /*@__PURE__*/ fileDesc("ChF2aWRlb19mcmFtZS5wcm90bxINbGl2ZWtpdC5wcm90byKlAQoVTmV3VmlkZW9TdHJlYW1SZXF1ZXN0EhQKDHRyYWNrX2hhbmRsZRgBIAIoBBIsCgR0eXBlGAIgAigOMh4ubGl2ZWtpdC5wcm90by5WaWRlb1N0cmVhbVR5cGUSLgoGZm9ybWF0GAMgASgOMh4ubGl2ZWtpdC5wcm90by5WaWRlb0J1ZmZlclR5cGUSGAoQbm9ybWFsaXplX3N0cmlkZRgEIAEoCCJJChZOZXdWaWRlb1N0cmVhbVJlc3BvbnNlEi8KBnN0cmVhbRgBIAIoCzIfLmxpdmVraXQucHJvdG8uT3duZWRWaWRlb1N0cmVhbSLpAQohVmlkZW9TdHJlYW1Gcm9tUGFydGljaXBhbnRSZXF1ZXN0EhoKEnBhcnRpY2lwYW50X2hhbmRsZRgBIAIoBBIsCgR0eXBlGAIgAigOMh4ubGl2ZWtpdC5wcm90by5WaWRlb1N0cmVhbVR5cGUSMAoMdHJhY2tfc291c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1NPVVJDRV9OQVRJVkUQAEIQqgINTGl2ZUtpdC5Qcm90bw", [file_handle, file_track]);
21
+ /**
22
+ * Describes the message livekit.proto.NewVideoStreamRequest.
23
+ * Use `create(NewVideoStreamRequestSchema)` to create a new message.
24
+ */
25
+ export const NewVideoStreamRequestSchema = /*@__PURE__*/ messageDesc(file_video_frame, 0);
26
+ /**
27
+ * Describes the message livekit.proto.NewVideoStreamResponse.
28
+ * Use `create(NewVideoStreamResponseSchema)` to create a new message.
29
+ */
30
+ export const NewVideoStreamResponseSchema = /*@__PURE__*/ messageDesc(file_video_frame, 1);
31
+ /**
32
+ * Describes the message livekit.proto.VideoStreamFromParticipantRequest.
33
+ * Use `create(VideoStreamFromParticipantRequestSchema)` to create a new message.
34
+ */
35
+ export const VideoStreamFromParticipantRequestSchema = /*@__PURE__*/ messageDesc(file_video_frame, 2);
36
+ /**
37
+ * Describes the message livekit.proto.VideoStreamFromParticipantResponse.
38
+ * Use `create(VideoStreamFromParticipantResponseSchema)` to create a new message.
39
+ */
40
+ export const VideoStreamFromParticipantResponseSchema = /*@__PURE__*/ messageDesc(file_video_frame, 3);
41
+ /**
42
+ * Describes the message livekit.proto.NewVideoSourceRequest.
43
+ * Use `create(NewVideoSourceRequestSchema)` to create a new message.
44
+ */
45
+ export const NewVideoSourceRequestSchema = /*@__PURE__*/ messageDesc(file_video_frame, 4);
46
+ /**
47
+ * Describes the message livekit.proto.NewVideoSourceResponse.
48
+ * Use `create(NewVideoSourceResponseSchema)` to create a new message.
49
+ */
50
+ export const NewVideoSourceResponseSchema = /*@__PURE__*/ messageDesc(file_video_frame, 5);
51
+ /**
52
+ * Describes the message livekit.proto.CaptureVideoFrameRequest.
53
+ * Use `create(CaptureVideoFrameRequestSchema)` to create a new message.
54
+ */
55
+ export const CaptureVideoFrameRequestSchema = /*@__PURE__*/ messageDesc(file_video_frame, 6);
56
+ /**
57
+ * Describes the message livekit.proto.CaptureVideoFrameResponse.
58
+ * Use `create(CaptureVideoFrameResponseSchema)` to create a new message.
59
+ */
60
+ export const CaptureVideoFrameResponseSchema = /*@__PURE__*/ messageDesc(file_video_frame, 7);
61
+ /**
62
+ * Describes the message livekit.proto.VideoConvertRequest.
63
+ * Use `create(VideoConvertRequestSchema)` to create a new message.
64
+ */
65
+ export const VideoConvertRequestSchema = /*@__PURE__*/ messageDesc(file_video_frame, 8);
66
+ /**
67
+ * Describes the message livekit.proto.VideoConvertResponse.
68
+ * Use `create(VideoConvertResponseSchema)` to create a new message.
69
+ */
70
+ export const VideoConvertResponseSchema = /*@__PURE__*/ messageDesc(file_video_frame, 9);
71
+ /**
72
+ * Describes the message livekit.proto.VideoResolution.
73
+ * Use `create(VideoResolutionSchema)` to create a new message.
74
+ */
75
+ export const VideoResolutionSchema = /*@__PURE__*/ messageDesc(file_video_frame, 10);
76
+ /**
77
+ * Describes the message livekit.proto.VideoBufferInfo.
78
+ * Use `create(VideoBufferInfoSchema)` to create a new message.
79
+ */
80
+ export const VideoBufferInfoSchema = /*@__PURE__*/ messageDesc(file_video_frame, 11);
81
+ /**
82
+ * Describes the message livekit.proto.VideoBufferInfo.ComponentInfo.
83
+ * Use `create(VideoBufferInfo_ComponentInfoSchema)` to create a new message.
84
+ */
85
+ export const VideoBufferInfo_ComponentInfoSchema = /*@__PURE__*/ messageDesc(file_video_frame, 11, 0);
86
+ /**
87
+ * Describes the message livekit.proto.OwnedVideoBuffer.
88
+ * Use `create(OwnedVideoBufferSchema)` to create a new message.
89
+ */
90
+ export const OwnedVideoBufferSchema = /*@__PURE__*/ messageDesc(file_video_frame, 12);
91
+ /**
92
+ * Describes the message livekit.proto.VideoStreamInfo.
93
+ * Use `create(VideoStreamInfoSchema)` to create a new message.
94
+ */
95
+ export const VideoStreamInfoSchema = /*@__PURE__*/ messageDesc(file_video_frame, 13);
96
+ /**
97
+ * Describes the message livekit.proto.OwnedVideoStream.
98
+ * Use `create(OwnedVideoStreamSchema)` to create a new message.
99
+ */
100
+ export const OwnedVideoStreamSchema = /*@__PURE__*/ messageDesc(file_video_frame, 14);
101
+ /**
102
+ * Describes the message livekit.proto.VideoStreamEvent.
103
+ * Use `create(VideoStreamEventSchema)` to create a new message.
104
+ */
105
+ export const VideoStreamEventSchema = /*@__PURE__*/ messageDesc(file_video_frame, 15);
106
+ /**
107
+ * Describes the message livekit.proto.VideoFrameReceived.
108
+ * Use `create(VideoFrameReceivedSchema)` to create a new message.
109
+ */
110
+ export const VideoFrameReceivedSchema = /*@__PURE__*/ messageDesc(file_video_frame, 16);
111
+ /**
112
+ * Describes the message livekit.proto.VideoStreamEOS.
113
+ * Use `create(VideoStreamEOSSchema)` to create a new message.
114
+ */
115
+ export const VideoStreamEOSSchema = /*@__PURE__*/ messageDesc(file_video_frame, 17);
116
+ /**
117
+ * Describes the message livekit.proto.VideoSourceResolution.
118
+ * Use `create(VideoSourceResolutionSchema)` to create a new message.
119
+ */
120
+ export const VideoSourceResolutionSchema = /*@__PURE__*/ messageDesc(file_video_frame, 18);
121
+ /**
122
+ * Describes the message livekit.proto.VideoSourceInfo.
123
+ * Use `create(VideoSourceInfoSchema)` to create a new message.
124
+ */
125
+ export const VideoSourceInfoSchema = /*@__PURE__*/ messageDesc(file_video_frame, 19);
126
+ /**
127
+ * Describes the message livekit.proto.OwnedVideoSource.
128
+ * Use `create(OwnedVideoSourceSchema)` to create a new message.
129
+ */
130
+ export const OwnedVideoSourceSchema = /*@__PURE__*/ messageDesc(file_video_frame, 20);
17
131
  /**
18
132
  * @generated from enum livekit.proto.VideoCodec
19
133
  */
@@ -36,13 +150,10 @@ export var VideoCodec;
36
150
  */
37
151
  VideoCodec[VideoCodec["VP9"] = 3] = "VP9";
38
152
  })(VideoCodec || (VideoCodec = {}));
39
- // Retrieve enum metadata with: proto3.getEnumType(VideoCodec)
40
- proto3.util.setEnumType(VideoCodec, "livekit.proto.VideoCodec", [
41
- { no: 0, name: "VP8" },
42
- { no: 1, name: "H264" },
43
- { no: 2, name: "AV1" },
44
- { no: 3, name: "VP9" },
45
- ]);
153
+ /**
154
+ * Describes the enum livekit.proto.VideoCodec.
155
+ */
156
+ export const VideoCodecSchema = /*@__PURE__*/ enumDesc(file_video_frame, 0);
46
157
  /**
47
158
  * @generated from enum livekit.proto.VideoRotation
48
159
  */
@@ -65,13 +176,10 @@ export var VideoRotation;
65
176
  */
66
177
  VideoRotation[VideoRotation["VIDEO_ROTATION_270"] = 3] = "VIDEO_ROTATION_270";
67
178
  })(VideoRotation || (VideoRotation = {}));
68
- // Retrieve enum metadata with: proto3.getEnumType(VideoRotation)
69
- proto3.util.setEnumType(VideoRotation, "livekit.proto.VideoRotation", [
70
- { no: 0, name: "VIDEO_ROTATION_0" },
71
- { no: 1, name: "VIDEO_ROTATION_90" },
72
- { no: 2, name: "VIDEO_ROTATION_180" },
73
- { no: 3, name: "VIDEO_ROTATION_270" },
74
- ]);
179
+ /**
180
+ * Describes the enum livekit.proto.VideoRotation.
181
+ */
182
+ export const VideoRotationSchema = /*@__PURE__*/ enumDesc(file_video_frame, 1);
75
183
  /**
76
184
  * @generated from enum livekit.proto.VideoBufferType
77
185
  */
@@ -122,20 +230,10 @@ export var VideoBufferType;
122
230
  */
123
231
  VideoBufferType[VideoBufferType["NV12"] = 10] = "NV12";
124
232
  })(VideoBufferType || (VideoBufferType = {}));
125
- // Retrieve enum metadata with: proto3.getEnumType(VideoBufferType)
126
- proto3.util.setEnumType(VideoBufferType, "livekit.proto.VideoBufferType", [
127
- { no: 0, name: "RGBA" },
128
- { no: 1, name: "ABGR" },
129
- { no: 2, name: "ARGB" },
130
- { no: 3, name: "BGRA" },
131
- { no: 4, name: "RGB24" },
132
- { no: 5, name: "I420" },
133
- { no: 6, name: "I420A" },
134
- { no: 7, name: "I422" },
135
- { no: 8, name: "I444" },
136
- { no: 9, name: "I010" },
137
- { no: 10, name: "NV12" },
138
- ]);
233
+ /**
234
+ * Describes the enum livekit.proto.VideoBufferType.
235
+ */
236
+ export const VideoBufferTypeSchema = /*@__PURE__*/ enumDesc(file_video_frame, 2);
139
237
  /**
140
238
  * @generated from enum livekit.proto.VideoStreamType
141
239
  */
@@ -154,12 +252,10 @@ export var VideoStreamType;
154
252
  */
155
253
  VideoStreamType[VideoStreamType["VIDEO_STREAM_HTML"] = 2] = "VIDEO_STREAM_HTML";
156
254
  })(VideoStreamType || (VideoStreamType = {}));
157
- // Retrieve enum metadata with: proto3.getEnumType(VideoStreamType)
158
- proto3.util.setEnumType(VideoStreamType, "livekit.proto.VideoStreamType", [
159
- { no: 0, name: "VIDEO_STREAM_NATIVE" },
160
- { no: 1, name: "VIDEO_STREAM_WEBGL" },
161
- { no: 2, name: "VIDEO_STREAM_HTML" },
162
- ]);
255
+ /**
256
+ * Describes the enum livekit.proto.VideoStreamType.
257
+ */
258
+ export const VideoStreamTypeSchema = /*@__PURE__*/ enumDesc(file_video_frame, 3);
163
259
  /**
164
260
  * @generated from enum livekit.proto.VideoSourceType
165
261
  */
@@ -170,757 +266,8 @@ export var VideoSourceType;
170
266
  */
171
267
  VideoSourceType[VideoSourceType["VIDEO_SOURCE_NATIVE"] = 0] = "VIDEO_SOURCE_NATIVE";
172
268
  })(VideoSourceType || (VideoSourceType = {}));
173
- // Retrieve enum metadata with: proto3.getEnumType(VideoSourceType)
174
- proto3.util.setEnumType(VideoSourceType, "livekit.proto.VideoSourceType", [
175
- { no: 0, name: "VIDEO_SOURCE_NATIVE" },
176
- ]);
177
- /**
178
- * Create a new VideoStream
179
- * VideoStream is used to receive video frames from a track
180
- *
181
- * @generated from message livekit.proto.NewVideoStreamRequest
182
- */
183
- export class NewVideoStreamRequest extends Message {
184
- constructor(data) {
185
- super();
186
- /**
187
- * @generated from field: uint64 track_handle = 1;
188
- */
189
- this.trackHandle = protoInt64.zero;
190
- /**
191
- * @generated from field: livekit.proto.VideoStreamType type = 2;
192
- */
193
- this.type = VideoStreamType.VIDEO_STREAM_NATIVE;
194
- /**
195
- * if true, stride will be set to width/chroma_width
196
- *
197
- * @generated from field: bool normalize_stride = 4;
198
- */
199
- this.normalizeStride = false;
200
- proto3.util.initPartial(data, this);
201
- }
202
- static fromBinary(bytes, options) {
203
- return new NewVideoStreamRequest().fromBinary(bytes, options);
204
- }
205
- static fromJson(jsonValue, options) {
206
- return new NewVideoStreamRequest().fromJson(jsonValue, options);
207
- }
208
- static fromJsonString(jsonString, options) {
209
- return new NewVideoStreamRequest().fromJsonString(jsonString, options);
210
- }
211
- static equals(a, b) {
212
- return proto3.util.equals(NewVideoStreamRequest, a, b);
213
- }
214
- }
215
- NewVideoStreamRequest.runtime = proto3;
216
- NewVideoStreamRequest.typeName = "livekit.proto.NewVideoStreamRequest";
217
- NewVideoStreamRequest.fields = proto3.util.newFieldList(() => [
218
- { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
219
- { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(VideoStreamType) },
220
- { no: 3, name: "format", kind: "enum", T: proto3.getEnumType(VideoBufferType), opt: true },
221
- { no: 4, name: "normalize_stride", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
222
- ]);
223
- /**
224
- * @generated from message livekit.proto.NewVideoStreamResponse
225
- */
226
- export class NewVideoStreamResponse extends Message {
227
- constructor(data) {
228
- super();
229
- proto3.util.initPartial(data, this);
230
- }
231
- static fromBinary(bytes, options) {
232
- return new NewVideoStreamResponse().fromBinary(bytes, options);
233
- }
234
- static fromJson(jsonValue, options) {
235
- return new NewVideoStreamResponse().fromJson(jsonValue, options);
236
- }
237
- static fromJsonString(jsonString, options) {
238
- return new NewVideoStreamResponse().fromJsonString(jsonString, options);
239
- }
240
- static equals(a, b) {
241
- return proto3.util.equals(NewVideoStreamResponse, a, b);
242
- }
243
- }
244
- NewVideoStreamResponse.runtime = proto3;
245
- NewVideoStreamResponse.typeName = "livekit.proto.NewVideoStreamResponse";
246
- NewVideoStreamResponse.fields = proto3.util.newFieldList(() => [
247
- { no: 1, name: "stream", kind: "message", T: OwnedVideoStream },
248
- ]);
249
- /**
250
- * Request a video stream from a participant
251
- *
252
- * @generated from message livekit.proto.VideoStreamFromParticipantRequest
253
- */
254
- export class VideoStreamFromParticipantRequest extends Message {
255
- constructor(data) {
256
- super();
257
- /**
258
- * @generated from field: uint64 participant_handle = 1;
259
- */
260
- this.participantHandle = protoInt64.zero;
261
- /**
262
- * @generated from field: livekit.proto.VideoStreamType type = 2;
263
- */
264
- this.type = VideoStreamType.VIDEO_STREAM_NATIVE;
265
- /**
266
- * @generated from field: livekit.proto.TrackSource track_source = 3;
267
- */
268
- this.trackSource = TrackSource.SOURCE_UNKNOWN;
269
- /**
270
- * @generated from field: bool normalize_stride = 5;
271
- */
272
- this.normalizeStride = false;
273
- proto3.util.initPartial(data, this);
274
- }
275
- static fromBinary(bytes, options) {
276
- return new VideoStreamFromParticipantRequest().fromBinary(bytes, options);
277
- }
278
- static fromJson(jsonValue, options) {
279
- return new VideoStreamFromParticipantRequest().fromJson(jsonValue, options);
280
- }
281
- static fromJsonString(jsonString, options) {
282
- return new VideoStreamFromParticipantRequest().fromJsonString(jsonString, options);
283
- }
284
- static equals(a, b) {
285
- return proto3.util.equals(VideoStreamFromParticipantRequest, a, b);
286
- }
287
- }
288
- VideoStreamFromParticipantRequest.runtime = proto3;
289
- VideoStreamFromParticipantRequest.typeName = "livekit.proto.VideoStreamFromParticipantRequest";
290
- VideoStreamFromParticipantRequest.fields = proto3.util.newFieldList(() => [
291
- { no: 1, name: "participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
292
- { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(VideoStreamType) },
293
- { no: 3, name: "track_source", kind: "enum", T: proto3.getEnumType(TrackSource) },
294
- { no: 4, name: "format", kind: "enum", T: proto3.getEnumType(VideoBufferType), opt: true },
295
- { no: 5, name: "normalize_stride", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
296
- ]);
297
- /**
298
- * @generated from message livekit.proto.VideoStreamFromParticipantResponse
299
- */
300
- export class VideoStreamFromParticipantResponse extends Message {
301
- constructor(data) {
302
- super();
303
- proto3.util.initPartial(data, this);
304
- }
305
- static fromBinary(bytes, options) {
306
- return new VideoStreamFromParticipantResponse().fromBinary(bytes, options);
307
- }
308
- static fromJson(jsonValue, options) {
309
- return new VideoStreamFromParticipantResponse().fromJson(jsonValue, options);
310
- }
311
- static fromJsonString(jsonString, options) {
312
- return new VideoStreamFromParticipantResponse().fromJsonString(jsonString, options);
313
- }
314
- static equals(a, b) {
315
- return proto3.util.equals(VideoStreamFromParticipantResponse, a, b);
316
- }
317
- }
318
- VideoStreamFromParticipantResponse.runtime = proto3;
319
- VideoStreamFromParticipantResponse.typeName = "livekit.proto.VideoStreamFromParticipantResponse";
320
- VideoStreamFromParticipantResponse.fields = proto3.util.newFieldList(() => [
321
- { no: 1, name: "stream", kind: "message", T: OwnedVideoStream },
322
- ]);
323
- /**
324
- * Create a new VideoSource
325
- * VideoSource is used to send video frame to a track
326
- *
327
- * @generated from message livekit.proto.NewVideoSourceRequest
328
- */
329
- export class NewVideoSourceRequest extends Message {
330
- constructor(data) {
331
- super();
332
- /**
333
- * @generated from field: livekit.proto.VideoSourceType type = 1;
334
- */
335
- this.type = VideoSourceType.VIDEO_SOURCE_NATIVE;
336
- proto3.util.initPartial(data, this);
337
- }
338
- static fromBinary(bytes, options) {
339
- return new NewVideoSourceRequest().fromBinary(bytes, options);
340
- }
341
- static fromJson(jsonValue, options) {
342
- return new NewVideoSourceRequest().fromJson(jsonValue, options);
343
- }
344
- static fromJsonString(jsonString, options) {
345
- return new NewVideoSourceRequest().fromJsonString(jsonString, options);
346
- }
347
- static equals(a, b) {
348
- return proto3.util.equals(NewVideoSourceRequest, a, b);
349
- }
350
- }
351
- NewVideoSourceRequest.runtime = proto3;
352
- NewVideoSourceRequest.typeName = "livekit.proto.NewVideoSourceRequest";
353
- NewVideoSourceRequest.fields = proto3.util.newFieldList(() => [
354
- { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(VideoSourceType) },
355
- { no: 2, name: "resolution", kind: "message", T: VideoSourceResolution },
356
- ]);
357
- /**
358
- * @generated from message livekit.proto.NewVideoSourceResponse
359
- */
360
- export class NewVideoSourceResponse extends Message {
361
- constructor(data) {
362
- super();
363
- proto3.util.initPartial(data, this);
364
- }
365
- static fromBinary(bytes, options) {
366
- return new NewVideoSourceResponse().fromBinary(bytes, options);
367
- }
368
- static fromJson(jsonValue, options) {
369
- return new NewVideoSourceResponse().fromJson(jsonValue, options);
370
- }
371
- static fromJsonString(jsonString, options) {
372
- return new NewVideoSourceResponse().fromJsonString(jsonString, options);
373
- }
374
- static equals(a, b) {
375
- return proto3.util.equals(NewVideoSourceResponse, a, b);
376
- }
377
- }
378
- NewVideoSourceResponse.runtime = proto3;
379
- NewVideoSourceResponse.typeName = "livekit.proto.NewVideoSourceResponse";
380
- NewVideoSourceResponse.fields = proto3.util.newFieldList(() => [
381
- { no: 1, name: "source", kind: "message", T: OwnedVideoSource },
382
- ]);
383
- /**
384
- * Push a frame to a VideoSource
385
- *
386
- * @generated from message livekit.proto.CaptureVideoFrameRequest
387
- */
388
- export class CaptureVideoFrameRequest extends Message {
389
- constructor(data) {
390
- super();
391
- /**
392
- * @generated from field: uint64 source_handle = 1;
393
- */
394
- this.sourceHandle = protoInt64.zero;
395
- /**
396
- * In microseconds
397
- *
398
- * @generated from field: int64 timestamp_us = 3;
399
- */
400
- this.timestampUs = protoInt64.zero;
401
- /**
402
- * @generated from field: livekit.proto.VideoRotation rotation = 4;
403
- */
404
- this.rotation = VideoRotation.VIDEO_ROTATION_0;
405
- proto3.util.initPartial(data, this);
406
- }
407
- static fromBinary(bytes, options) {
408
- return new CaptureVideoFrameRequest().fromBinary(bytes, options);
409
- }
410
- static fromJson(jsonValue, options) {
411
- return new CaptureVideoFrameRequest().fromJson(jsonValue, options);
412
- }
413
- static fromJsonString(jsonString, options) {
414
- return new CaptureVideoFrameRequest().fromJsonString(jsonString, options);
415
- }
416
- static equals(a, b) {
417
- return proto3.util.equals(CaptureVideoFrameRequest, a, b);
418
- }
419
- }
420
- CaptureVideoFrameRequest.runtime = proto3;
421
- CaptureVideoFrameRequest.typeName = "livekit.proto.CaptureVideoFrameRequest";
422
- CaptureVideoFrameRequest.fields = proto3.util.newFieldList(() => [
423
- { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
424
- { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo },
425
- { no: 3, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
426
- { no: 4, name: "rotation", kind: "enum", T: proto3.getEnumType(VideoRotation) },
427
- ]);
428
- /**
429
- * @generated from message livekit.proto.CaptureVideoFrameResponse
430
- */
431
- export class CaptureVideoFrameResponse extends Message {
432
- constructor(data) {
433
- super();
434
- proto3.util.initPartial(data, this);
435
- }
436
- static fromBinary(bytes, options) {
437
- return new CaptureVideoFrameResponse().fromBinary(bytes, options);
438
- }
439
- static fromJson(jsonValue, options) {
440
- return new CaptureVideoFrameResponse().fromJson(jsonValue, options);
441
- }
442
- static fromJsonString(jsonString, options) {
443
- return new CaptureVideoFrameResponse().fromJsonString(jsonString, options);
444
- }
445
- static equals(a, b) {
446
- return proto3.util.equals(CaptureVideoFrameResponse, a, b);
447
- }
448
- }
449
- CaptureVideoFrameResponse.runtime = proto3;
450
- CaptureVideoFrameResponse.typeName = "livekit.proto.CaptureVideoFrameResponse";
451
- CaptureVideoFrameResponse.fields = proto3.util.newFieldList(() => []);
452
- /**
453
- * @generated from message livekit.proto.VideoConvertRequest
454
- */
455
- export class VideoConvertRequest extends Message {
456
- constructor(data) {
457
- super();
458
- /**
459
- * @generated from field: bool flip_y = 1;
460
- */
461
- this.flipY = false;
462
- /**
463
- * @generated from field: livekit.proto.VideoBufferType dst_type = 3;
464
- */
465
- this.dstType = VideoBufferType.RGBA;
466
- proto3.util.initPartial(data, this);
467
- }
468
- static fromBinary(bytes, options) {
469
- return new VideoConvertRequest().fromBinary(bytes, options);
470
- }
471
- static fromJson(jsonValue, options) {
472
- return new VideoConvertRequest().fromJson(jsonValue, options);
473
- }
474
- static fromJsonString(jsonString, options) {
475
- return new VideoConvertRequest().fromJsonString(jsonString, options);
476
- }
477
- static equals(a, b) {
478
- return proto3.util.equals(VideoConvertRequest, a, b);
479
- }
480
- }
481
- VideoConvertRequest.runtime = proto3;
482
- VideoConvertRequest.typeName = "livekit.proto.VideoConvertRequest";
483
- VideoConvertRequest.fields = proto3.util.newFieldList(() => [
484
- { no: 1, name: "flip_y", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
485
- { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo },
486
- { no: 3, name: "dst_type", kind: "enum", T: proto3.getEnumType(VideoBufferType) },
487
- ]);
488
- /**
489
- * @generated from message livekit.proto.VideoConvertResponse
490
- */
491
- export class VideoConvertResponse extends Message {
492
- constructor(data) {
493
- super();
494
- proto3.util.initPartial(data, this);
495
- }
496
- static fromBinary(bytes, options) {
497
- return new VideoConvertResponse().fromBinary(bytes, options);
498
- }
499
- static fromJson(jsonValue, options) {
500
- return new VideoConvertResponse().fromJson(jsonValue, options);
501
- }
502
- static fromJsonString(jsonString, options) {
503
- return new VideoConvertResponse().fromJsonString(jsonString, options);
504
- }
505
- static equals(a, b) {
506
- return proto3.util.equals(VideoConvertResponse, a, b);
507
- }
508
- }
509
- VideoConvertResponse.runtime = proto3;
510
- VideoConvertResponse.typeName = "livekit.proto.VideoConvertResponse";
511
- VideoConvertResponse.fields = proto3.util.newFieldList(() => [
512
- { no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
513
- { no: 2, name: "buffer", kind: "message", T: OwnedVideoBuffer },
514
- ]);
515
- /**
516
- * @generated from message livekit.proto.VideoResolution
517
- */
518
- export class VideoResolution extends Message {
519
- constructor(data) {
520
- super();
521
- /**
522
- * @generated from field: uint32 width = 1;
523
- */
524
- this.width = 0;
525
- /**
526
- * @generated from field: uint32 height = 2;
527
- */
528
- this.height = 0;
529
- /**
530
- * @generated from field: double frame_rate = 3;
531
- */
532
- this.frameRate = 0;
533
- proto3.util.initPartial(data, this);
534
- }
535
- static fromBinary(bytes, options) {
536
- return new VideoResolution().fromBinary(bytes, options);
537
- }
538
- static fromJson(jsonValue, options) {
539
- return new VideoResolution().fromJson(jsonValue, options);
540
- }
541
- static fromJsonString(jsonString, options) {
542
- return new VideoResolution().fromJsonString(jsonString, options);
543
- }
544
- static equals(a, b) {
545
- return proto3.util.equals(VideoResolution, a, b);
546
- }
547
- }
548
- VideoResolution.runtime = proto3;
549
- VideoResolution.typeName = "livekit.proto.VideoResolution";
550
- VideoResolution.fields = proto3.util.newFieldList(() => [
551
- { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
552
- { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
553
- { no: 3, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
554
- ]);
555
- /**
556
- * @generated from message livekit.proto.VideoBufferInfo
557
- */
558
- export class VideoBufferInfo extends Message {
559
- constructor(data) {
560
- super();
561
- /**
562
- * @generated from field: livekit.proto.VideoBufferType type = 1;
563
- */
564
- this.type = VideoBufferType.RGBA;
565
- /**
566
- * @generated from field: uint32 width = 2;
567
- */
568
- this.width = 0;
569
- /**
570
- * @generated from field: uint32 height = 3;
571
- */
572
- this.height = 0;
573
- /**
574
- * @generated from field: uint64 data_ptr = 4;
575
- */
576
- this.dataPtr = protoInt64.zero;
577
- /**
578
- * only for packed formats
579
- *
580
- * @generated from field: uint32 stride = 6;
581
- */
582
- this.stride = 0;
583
- /**
584
- * @generated from field: repeated livekit.proto.VideoBufferInfo.ComponentInfo components = 7;
585
- */
586
- this.components = [];
587
- proto3.util.initPartial(data, this);
588
- }
589
- static fromBinary(bytes, options) {
590
- return new VideoBufferInfo().fromBinary(bytes, options);
591
- }
592
- static fromJson(jsonValue, options) {
593
- return new VideoBufferInfo().fromJson(jsonValue, options);
594
- }
595
- static fromJsonString(jsonString, options) {
596
- return new VideoBufferInfo().fromJsonString(jsonString, options);
597
- }
598
- static equals(a, b) {
599
- return proto3.util.equals(VideoBufferInfo, a, b);
600
- }
601
- }
602
- VideoBufferInfo.runtime = proto3;
603
- VideoBufferInfo.typeName = "livekit.proto.VideoBufferInfo";
604
- VideoBufferInfo.fields = proto3.util.newFieldList(() => [
605
- { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(VideoBufferType) },
606
- { no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
607
- { no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
608
- { no: 4, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
609
- { no: 6, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
610
- { no: 7, name: "components", kind: "message", T: VideoBufferInfo_ComponentInfo, repeated: true },
611
- ]);
612
- /**
613
- * @generated from message livekit.proto.VideoBufferInfo.ComponentInfo
614
- */
615
- export class VideoBufferInfo_ComponentInfo extends Message {
616
- constructor(data) {
617
- super();
618
- /**
619
- * @generated from field: uint64 data_ptr = 1;
620
- */
621
- this.dataPtr = protoInt64.zero;
622
- /**
623
- * @generated from field: uint32 stride = 2;
624
- */
625
- this.stride = 0;
626
- /**
627
- * @generated from field: uint32 size = 3;
628
- */
629
- this.size = 0;
630
- proto3.util.initPartial(data, this);
631
- }
632
- static fromBinary(bytes, options) {
633
- return new VideoBufferInfo_ComponentInfo().fromBinary(bytes, options);
634
- }
635
- static fromJson(jsonValue, options) {
636
- return new VideoBufferInfo_ComponentInfo().fromJson(jsonValue, options);
637
- }
638
- static fromJsonString(jsonString, options) {
639
- return new VideoBufferInfo_ComponentInfo().fromJsonString(jsonString, options);
640
- }
641
- static equals(a, b) {
642
- return proto3.util.equals(VideoBufferInfo_ComponentInfo, a, b);
643
- }
644
- }
645
- VideoBufferInfo_ComponentInfo.runtime = proto3;
646
- VideoBufferInfo_ComponentInfo.typeName = "livekit.proto.VideoBufferInfo.ComponentInfo";
647
- VideoBufferInfo_ComponentInfo.fields = proto3.util.newFieldList(() => [
648
- { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
649
- { no: 2, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
650
- { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
651
- ]);
652
- /**
653
- * @generated from message livekit.proto.OwnedVideoBuffer
654
- */
655
- export class OwnedVideoBuffer extends Message {
656
- constructor(data) {
657
- super();
658
- proto3.util.initPartial(data, this);
659
- }
660
- static fromBinary(bytes, options) {
661
- return new OwnedVideoBuffer().fromBinary(bytes, options);
662
- }
663
- static fromJson(jsonValue, options) {
664
- return new OwnedVideoBuffer().fromJson(jsonValue, options);
665
- }
666
- static fromJsonString(jsonString, options) {
667
- return new OwnedVideoBuffer().fromJsonString(jsonString, options);
668
- }
669
- static equals(a, b) {
670
- return proto3.util.equals(OwnedVideoBuffer, a, b);
671
- }
672
- }
673
- OwnedVideoBuffer.runtime = proto3;
674
- OwnedVideoBuffer.typeName = "livekit.proto.OwnedVideoBuffer";
675
- OwnedVideoBuffer.fields = proto3.util.newFieldList(() => [
676
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
677
- { no: 2, name: "info", kind: "message", T: VideoBufferInfo },
678
- ]);
679
- /**
680
- * @generated from message livekit.proto.VideoStreamInfo
681
- */
682
- export class VideoStreamInfo extends Message {
683
- constructor(data) {
684
- super();
685
- /**
686
- * @generated from field: livekit.proto.VideoStreamType type = 1;
687
- */
688
- this.type = VideoStreamType.VIDEO_STREAM_NATIVE;
689
- proto3.util.initPartial(data, this);
690
- }
691
- static fromBinary(bytes, options) {
692
- return new VideoStreamInfo().fromBinary(bytes, options);
693
- }
694
- static fromJson(jsonValue, options) {
695
- return new VideoStreamInfo().fromJson(jsonValue, options);
696
- }
697
- static fromJsonString(jsonString, options) {
698
- return new VideoStreamInfo().fromJsonString(jsonString, options);
699
- }
700
- static equals(a, b) {
701
- return proto3.util.equals(VideoStreamInfo, a, b);
702
- }
703
- }
704
- VideoStreamInfo.runtime = proto3;
705
- VideoStreamInfo.typeName = "livekit.proto.VideoStreamInfo";
706
- VideoStreamInfo.fields = proto3.util.newFieldList(() => [
707
- { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(VideoStreamType) },
708
- ]);
709
- /**
710
- * @generated from message livekit.proto.OwnedVideoStream
711
- */
712
- export class OwnedVideoStream extends Message {
713
- constructor(data) {
714
- super();
715
- proto3.util.initPartial(data, this);
716
- }
717
- static fromBinary(bytes, options) {
718
- return new OwnedVideoStream().fromBinary(bytes, options);
719
- }
720
- static fromJson(jsonValue, options) {
721
- return new OwnedVideoStream().fromJson(jsonValue, options);
722
- }
723
- static fromJsonString(jsonString, options) {
724
- return new OwnedVideoStream().fromJsonString(jsonString, options);
725
- }
726
- static equals(a, b) {
727
- return proto3.util.equals(OwnedVideoStream, a, b);
728
- }
729
- }
730
- OwnedVideoStream.runtime = proto3;
731
- OwnedVideoStream.typeName = "livekit.proto.OwnedVideoStream";
732
- OwnedVideoStream.fields = proto3.util.newFieldList(() => [
733
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
734
- { no: 2, name: "info", kind: "message", T: VideoStreamInfo },
735
- ]);
736
- /**
737
- * @generated from message livekit.proto.VideoStreamEvent
738
- */
739
- export class VideoStreamEvent extends Message {
740
- constructor(data) {
741
- super();
742
- /**
743
- * @generated from field: uint64 stream_handle = 1;
744
- */
745
- this.streamHandle = protoInt64.zero;
746
- /**
747
- * @generated from oneof livekit.proto.VideoStreamEvent.message
748
- */
749
- this.message = { case: undefined };
750
- proto3.util.initPartial(data, this);
751
- }
752
- static fromBinary(bytes, options) {
753
- return new VideoStreamEvent().fromBinary(bytes, options);
754
- }
755
- static fromJson(jsonValue, options) {
756
- return new VideoStreamEvent().fromJson(jsonValue, options);
757
- }
758
- static fromJsonString(jsonString, options) {
759
- return new VideoStreamEvent().fromJsonString(jsonString, options);
760
- }
761
- static equals(a, b) {
762
- return proto3.util.equals(VideoStreamEvent, a, b);
763
- }
764
- }
765
- VideoStreamEvent.runtime = proto3;
766
- VideoStreamEvent.typeName = "livekit.proto.VideoStreamEvent";
767
- VideoStreamEvent.fields = proto3.util.newFieldList(() => [
768
- { no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
769
- { no: 2, name: "frame_received", kind: "message", T: VideoFrameReceived, oneof: "message" },
770
- { no: 3, name: "eos", kind: "message", T: VideoStreamEOS, oneof: "message" },
771
- ]);
772
- /**
773
- * @generated from message livekit.proto.VideoFrameReceived
774
- */
775
- export class VideoFrameReceived extends Message {
776
- constructor(data) {
777
- super();
778
- /**
779
- * In microseconds
780
- *
781
- * @generated from field: int64 timestamp_us = 2;
782
- */
783
- this.timestampUs = protoInt64.zero;
784
- /**
785
- * @generated from field: livekit.proto.VideoRotation rotation = 3;
786
- */
787
- this.rotation = VideoRotation.VIDEO_ROTATION_0;
788
- proto3.util.initPartial(data, this);
789
- }
790
- static fromBinary(bytes, options) {
791
- return new VideoFrameReceived().fromBinary(bytes, options);
792
- }
793
- static fromJson(jsonValue, options) {
794
- return new VideoFrameReceived().fromJson(jsonValue, options);
795
- }
796
- static fromJsonString(jsonString, options) {
797
- return new VideoFrameReceived().fromJsonString(jsonString, options);
798
- }
799
- static equals(a, b) {
800
- return proto3.util.equals(VideoFrameReceived, a, b);
801
- }
802
- }
803
- VideoFrameReceived.runtime = proto3;
804
- VideoFrameReceived.typeName = "livekit.proto.VideoFrameReceived";
805
- VideoFrameReceived.fields = proto3.util.newFieldList(() => [
806
- { no: 1, name: "buffer", kind: "message", T: OwnedVideoBuffer },
807
- { no: 2, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
808
- { no: 3, name: "rotation", kind: "enum", T: proto3.getEnumType(VideoRotation) },
809
- ]);
810
- /**
811
- * @generated from message livekit.proto.VideoStreamEOS
812
- */
813
- export class VideoStreamEOS extends Message {
814
- constructor(data) {
815
- super();
816
- proto3.util.initPartial(data, this);
817
- }
818
- static fromBinary(bytes, options) {
819
- return new VideoStreamEOS().fromBinary(bytes, options);
820
- }
821
- static fromJson(jsonValue, options) {
822
- return new VideoStreamEOS().fromJson(jsonValue, options);
823
- }
824
- static fromJsonString(jsonString, options) {
825
- return new VideoStreamEOS().fromJsonString(jsonString, options);
826
- }
827
- static equals(a, b) {
828
- return proto3.util.equals(VideoStreamEOS, a, b);
829
- }
830
- }
831
- VideoStreamEOS.runtime = proto3;
832
- VideoStreamEOS.typeName = "livekit.proto.VideoStreamEOS";
833
- VideoStreamEOS.fields = proto3.util.newFieldList(() => []);
834
- /**
835
- * @generated from message livekit.proto.VideoSourceResolution
836
- */
837
- export class VideoSourceResolution extends Message {
838
- constructor(data) {
839
- super();
840
- /**
841
- * @generated from field: uint32 width = 1;
842
- */
843
- this.width = 0;
844
- /**
845
- * @generated from field: uint32 height = 2;
846
- */
847
- this.height = 0;
848
- proto3.util.initPartial(data, this);
849
- }
850
- static fromBinary(bytes, options) {
851
- return new VideoSourceResolution().fromBinary(bytes, options);
852
- }
853
- static fromJson(jsonValue, options) {
854
- return new VideoSourceResolution().fromJson(jsonValue, options);
855
- }
856
- static fromJsonString(jsonString, options) {
857
- return new VideoSourceResolution().fromJsonString(jsonString, options);
858
- }
859
- static equals(a, b) {
860
- return proto3.util.equals(VideoSourceResolution, a, b);
861
- }
862
- }
863
- VideoSourceResolution.runtime = proto3;
864
- VideoSourceResolution.typeName = "livekit.proto.VideoSourceResolution";
865
- VideoSourceResolution.fields = proto3.util.newFieldList(() => [
866
- { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
867
- { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
868
- ]);
869
- /**
870
- * @generated from message livekit.proto.VideoSourceInfo
871
- */
872
- export class VideoSourceInfo extends Message {
873
- constructor(data) {
874
- super();
875
- /**
876
- * @generated from field: livekit.proto.VideoSourceType type = 1;
877
- */
878
- this.type = VideoSourceType.VIDEO_SOURCE_NATIVE;
879
- proto3.util.initPartial(data, this);
880
- }
881
- static fromBinary(bytes, options) {
882
- return new VideoSourceInfo().fromBinary(bytes, options);
883
- }
884
- static fromJson(jsonValue, options) {
885
- return new VideoSourceInfo().fromJson(jsonValue, options);
886
- }
887
- static fromJsonString(jsonString, options) {
888
- return new VideoSourceInfo().fromJsonString(jsonString, options);
889
- }
890
- static equals(a, b) {
891
- return proto3.util.equals(VideoSourceInfo, a, b);
892
- }
893
- }
894
- VideoSourceInfo.runtime = proto3;
895
- VideoSourceInfo.typeName = "livekit.proto.VideoSourceInfo";
896
- VideoSourceInfo.fields = proto3.util.newFieldList(() => [
897
- { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(VideoSourceType) },
898
- ]);
899
- /**
900
- * @generated from message livekit.proto.OwnedVideoSource
901
- */
902
- export class OwnedVideoSource extends Message {
903
- constructor(data) {
904
- super();
905
- proto3.util.initPartial(data, this);
906
- }
907
- static fromBinary(bytes, options) {
908
- return new OwnedVideoSource().fromBinary(bytes, options);
909
- }
910
- static fromJson(jsonValue, options) {
911
- return new OwnedVideoSource().fromJson(jsonValue, options);
912
- }
913
- static fromJsonString(jsonString, options) {
914
- return new OwnedVideoSource().fromJsonString(jsonString, options);
915
- }
916
- static equals(a, b) {
917
- return proto3.util.equals(OwnedVideoSource, a, b);
918
- }
919
- }
920
- OwnedVideoSource.runtime = proto3;
921
- OwnedVideoSource.typeName = "livekit.proto.OwnedVideoSource";
922
- OwnedVideoSource.fields = proto3.util.newFieldList(() => [
923
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
924
- { no: 2, name: "info", kind: "message", T: VideoSourceInfo },
925
- ]);
269
+ /**
270
+ * Describes the enum livekit.proto.VideoSourceType.
271
+ */
272
+ export const VideoSourceTypeSchema = /*@__PURE__*/ enumDesc(file_video_frame, 4);
926
273
  //# sourceMappingURL=video_frame_pb.js.map