@livekit/rtc-node 0.13.24 → 0.13.25

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 (281) hide show
  1. package/dist/audio_filter.cjs +2 -2
  2. package/dist/audio_filter.cjs.map +1 -1
  3. package/dist/audio_filter.js +1 -1
  4. package/dist/audio_filter.js.map +1 -1
  5. package/dist/audio_frame.cjs +9 -5
  6. package/dist/audio_frame.cjs.map +1 -1
  7. package/dist/audio_frame.d.cts +2 -7
  8. package/dist/audio_frame.d.ts +2 -7
  9. package/dist/audio_frame.d.ts.map +1 -1
  10. package/dist/audio_frame.js +8 -4
  11. package/dist/audio_frame.js.map +1 -1
  12. package/dist/audio_mixer.cjs +1 -1
  13. package/dist/audio_mixer.cjs.map +1 -1
  14. package/dist/audio_mixer.d.cts +1 -6
  15. package/dist/audio_mixer.d.ts +1 -6
  16. package/dist/audio_mixer.js +1 -1
  17. package/dist/audio_mixer.js.map +1 -1
  18. package/dist/audio_resampler.cjs +20 -12
  19. package/dist/audio_resampler.cjs.map +1 -1
  20. package/dist/audio_resampler.d.cts +6 -6
  21. package/dist/audio_resampler.d.ts +6 -6
  22. package/dist/audio_resampler.d.ts.map +1 -1
  23. package/dist/audio_resampler.js +12 -4
  24. package/dist/audio_resampler.js.map +1 -1
  25. package/dist/audio_source.cjs +11 -7
  26. package/dist/audio_source.cjs.map +1 -1
  27. package/dist/audio_source.d.cts +1 -7
  28. package/dist/audio_source.d.ts +1 -7
  29. package/dist/audio_source.d.ts.map +1 -1
  30. package/dist/audio_source.js +8 -3
  31. package/dist/audio_source.js.map +1 -1
  32. package/dist/audio_stream.cjs +16 -6
  33. package/dist/audio_stream.cjs.map +1 -1
  34. package/dist/audio_stream.d.cts +1 -14
  35. package/dist/audio_stream.d.ts +1 -14
  36. package/dist/audio_stream.d.ts.map +1 -1
  37. package/dist/audio_stream.js +15 -5
  38. package/dist/audio_stream.js.map +1 -1
  39. package/dist/data_streams/index.d.cts +2 -10
  40. package/dist/data_streams/index.d.ts +2 -10
  41. package/dist/data_streams/stream_reader.cjs +8 -0
  42. package/dist/data_streams/stream_reader.cjs.map +1 -1
  43. package/dist/data_streams/stream_reader.d.cts +2 -10
  44. package/dist/data_streams/stream_reader.d.ts +2 -10
  45. package/dist/data_streams/stream_reader.d.ts.map +1 -1
  46. package/dist/data_streams/stream_reader.js +8 -0
  47. package/dist/data_streams/stream_reader.js.map +1 -1
  48. package/dist/data_streams/stream_writer.d.cts +2 -10
  49. package/dist/data_streams/stream_writer.d.ts +2 -10
  50. package/dist/data_streams/types.cjs.map +1 -1
  51. package/dist/data_streams/types.d.cts +2 -10
  52. package/dist/data_streams/types.d.ts +2 -10
  53. package/dist/data_streams/types.d.ts.map +1 -1
  54. package/dist/e2ee.cjs +21 -21
  55. package/dist/e2ee.cjs.map +1 -1
  56. package/dist/e2ee.d.cts +1 -2
  57. package/dist/e2ee.d.ts +1 -2
  58. package/dist/e2ee.d.ts.map +1 -1
  59. package/dist/e2ee.js +2 -2
  60. package/dist/e2ee.js.map +1 -1
  61. package/dist/ffi_client.cjs +11 -12
  62. package/dist/ffi_client.cjs.map +1 -1
  63. package/dist/ffi_client.d.cts +3 -16
  64. package/dist/ffi_client.d.ts +3 -16
  65. package/dist/ffi_client.d.ts.map +1 -1
  66. package/dist/ffi_client.js +5 -3
  67. package/dist/ffi_client.js.map +1 -1
  68. package/dist/frame_processor.cjs +13 -2
  69. package/dist/frame_processor.cjs.map +1 -1
  70. package/dist/frame_processor.d.cts +5 -8
  71. package/dist/frame_processor.d.ts +5 -8
  72. package/dist/frame_processor.d.ts.map +1 -1
  73. package/dist/frame_processor.js +10 -1
  74. package/dist/frame_processor.js.map +1 -1
  75. package/dist/index.cjs +25 -23
  76. package/dist/index.cjs.map +1 -1
  77. package/dist/index.d.cts +3 -16
  78. package/dist/index.d.ts +3 -16
  79. package/dist/index.d.ts.map +1 -1
  80. package/dist/index.js +9 -7
  81. package/dist/index.js.map +1 -1
  82. package/dist/participant.cjs +38 -38
  83. package/dist/participant.cjs.map +1 -1
  84. package/dist/participant.d.cts +2 -15
  85. package/dist/participant.d.ts +2 -15
  86. package/dist/participant.d.ts.map +1 -1
  87. package/dist/participant.js +12 -12
  88. package/dist/participant.js.map +1 -1
  89. package/dist/room.cjs +14 -14
  90. package/dist/room.cjs.map +1 -1
  91. package/dist/room.d.cts +2 -15
  92. package/dist/room.d.ts +2 -15
  93. package/dist/room.d.ts.map +1 -1
  94. package/dist/room.js +10 -10
  95. package/dist/room.js.map +1 -1
  96. package/dist/rpc.cjs.map +1 -1
  97. package/dist/rpc.d.cts +1 -2
  98. package/dist/rpc.d.ts +1 -2
  99. package/dist/rpc.d.ts.map +1 -1
  100. package/dist/rpc.js.map +1 -1
  101. package/dist/{stream_reader-Ch2zvjU3.d.cts → stream_reader-CuG4b8Y-.d.cts} +1 -1
  102. package/dist/{stream_reader-DRyR29vo.d.ts → stream_reader-CuG4b8Y-.d.ts} +1 -1
  103. package/dist/track.cjs +3 -3
  104. package/dist/track.cjs.map +1 -1
  105. package/dist/track.d.cts +1 -14
  106. package/dist/track.d.ts +1 -14
  107. package/dist/track.d.ts.map +1 -1
  108. package/dist/track.js +1 -1
  109. package/dist/track.js.map +1 -1
  110. package/dist/track_publication.cjs +4 -4
  111. package/dist/track_publication.cjs.map +1 -1
  112. package/dist/track_publication.d.cts +1 -14
  113. package/dist/track_publication.d.ts +1 -14
  114. package/dist/track_publication.d.ts.map +1 -1
  115. package/dist/track_publication.js +2 -2
  116. package/dist/track_publication.js.map +1 -1
  117. package/dist/version.cjs +1 -1
  118. package/dist/version.cjs.map +1 -1
  119. package/dist/version.d.cts +1 -1
  120. package/dist/version.d.ts +1 -1
  121. package/dist/version.js +1 -1
  122. package/dist/version.js.map +1 -1
  123. package/dist/video_frame.cjs +42 -42
  124. package/dist/video_frame.cjs.map +1 -1
  125. package/dist/video_frame.d.cts +1 -6
  126. package/dist/video_frame.d.ts +1 -6
  127. package/dist/video_frame.d.ts.map +1 -1
  128. package/dist/video_frame.js +2 -2
  129. package/dist/video_frame.js.map +1 -1
  130. package/dist/video_source.cjs +5 -5
  131. package/dist/video_source.cjs.map +1 -1
  132. package/dist/video_source.d.cts +1 -14
  133. package/dist/video_source.d.ts +1 -14
  134. package/dist/video_source.d.ts.map +1 -1
  135. package/dist/video_source.js +2 -2
  136. package/dist/video_source.js.map +1 -1
  137. package/dist/video_stream.cjs +12 -4
  138. package/dist/video_stream.cjs.map +1 -1
  139. package/dist/video_stream.d.cts +1 -14
  140. package/dist/video_stream.d.ts +1 -14
  141. package/dist/video_stream.d.ts.map +1 -1
  142. package/dist/video_stream.js +10 -2
  143. package/dist/video_stream.js.map +1 -1
  144. package/package.json +7 -37
  145. package/src/audio_filter.ts +2 -2
  146. package/src/audio_frame.ts +17 -5
  147. package/src/audio_mixer.ts +1 -1
  148. package/src/audio_resampler.ts +14 -4
  149. package/src/audio_source.ts +13 -5
  150. package/src/audio_stream.ts +21 -6
  151. package/src/data_streams/stream_reader.ts +19 -1
  152. package/src/data_streams/types.ts +1 -1
  153. package/src/e2ee.ts +3 -3
  154. package/src/ffi_client.ts +7 -5
  155. package/src/frame_processor.ts +21 -0
  156. package/src/index.ts +6 -5
  157. package/src/participant.ts +17 -17
  158. package/src/room.ts +22 -22
  159. package/src/rpc.ts +1 -1
  160. package/src/tests/e2e.test.ts +11 -8
  161. package/src/track.ts +4 -4
  162. package/src/track_publication.ts +6 -6
  163. package/src/version.ts +1 -1
  164. package/src/video_frame.ts +3 -3
  165. package/src/video_source.ts +3 -3
  166. package/src/video_stream.ts +15 -3
  167. package/Cargo.toml +0 -25
  168. package/build.rs +0 -9
  169. package/dist/napi/native.cjs +0 -301
  170. package/dist/napi/native.d.cjs +0 -17
  171. package/dist/napi/native.d.cjs.map +0 -1
  172. package/dist/napi/native.d.d.cts +0 -21
  173. package/dist/napi/native.d.d.ts +0 -21
  174. package/dist/napi/native.d.js +0 -1
  175. package/dist/napi/native.d.js.map +0 -1
  176. package/dist/napi/native.d.ts +0 -19
  177. package/dist/napi/native.js +0 -15
  178. package/dist/native.cjs +0 -301
  179. package/dist/native.d.ts +0 -19
  180. package/dist/native.js +0 -15
  181. package/dist/proto/audio_frame_pb.cjs +0 -1357
  182. package/dist/proto/audio_frame_pb.cjs.map +0 -1
  183. package/dist/proto/audio_frame_pb.d.cts +0 -1183
  184. package/dist/proto/audio_frame_pb.d.ts +0 -1183
  185. package/dist/proto/audio_frame_pb.d.ts.map +0 -1
  186. package/dist/proto/audio_frame_pb.js +0 -1283
  187. package/dist/proto/audio_frame_pb.js.map +0 -1
  188. package/dist/proto/data_stream_pb.cjs +0 -1638
  189. package/dist/proto/data_stream_pb.cjs.map +0 -1
  190. package/dist/proto/data_stream_pb.d.cts +0 -1449
  191. package/dist/proto/data_stream_pb.d.ts +0 -1449
  192. package/dist/proto/data_stream_pb.d.ts.map +0 -1
  193. package/dist/proto/data_stream_pb.js +0 -1559
  194. package/dist/proto/data_stream_pb.js.map +0 -1
  195. package/dist/proto/e2ee_pb.cjs +0 -746
  196. package/dist/proto/e2ee_pb.cjs.map +0 -1
  197. package/dist/proto/e2ee_pb.d.cts +0 -653
  198. package/dist/proto/e2ee_pb.d.ts +0 -653
  199. package/dist/proto/e2ee_pb.d.ts.map +0 -1
  200. package/dist/proto/e2ee_pb.js +0 -696
  201. package/dist/proto/e2ee_pb.js.map +0 -1
  202. package/dist/proto/ffi_pb.cjs +0 -477
  203. package/dist/proto/ffi_pb.cjs.map +0 -1
  204. package/dist/proto/ffi_pb.d.cts +0 -1321
  205. package/dist/proto/ffi_pb.d.ts +0 -1321
  206. package/dist/proto/ffi_pb.d.ts.map +0 -1
  207. package/dist/proto/ffi_pb.js +0 -444
  208. package/dist/proto/ffi_pb.js.map +0 -1
  209. package/dist/proto/handle_pb.cjs +0 -53
  210. package/dist/proto/handle_pb.cjs.map +0 -1
  211. package/dist/proto/handle_pb.d.cts +0 -31
  212. package/dist/proto/handle_pb.d.ts +0 -31
  213. package/dist/proto/handle_pb.d.ts.map +0 -1
  214. package/dist/proto/handle_pb.js +0 -29
  215. package/dist/proto/handle_pb.js.map +0 -1
  216. package/dist/proto/participant_pb.cjs +0 -173
  217. package/dist/proto/participant_pb.cjs.map +0 -1
  218. package/dist/proto/participant_pb.d.cts +0 -218
  219. package/dist/proto/participant_pb.d.ts +0 -218
  220. package/dist/proto/participant_pb.d.ts.map +0 -1
  221. package/dist/proto/participant_pb.js +0 -145
  222. package/dist/proto/participant_pb.js.map +0 -1
  223. package/dist/proto/room_pb.cjs +0 -3374
  224. package/dist/proto/room_pb.cjs.map +0 -1
  225. package/dist/proto/room_pb.d.cts +0 -3028
  226. package/dist/proto/room_pb.d.ts +0 -3028
  227. package/dist/proto/room_pb.d.ts.map +0 -1
  228. package/dist/proto/room_pb.js +0 -3232
  229. package/dist/proto/room_pb.js.map +0 -1
  230. package/dist/proto/rpc_pb.cjs +0 -328
  231. package/dist/proto/rpc_pb.cjs.map +0 -1
  232. package/dist/proto/rpc_pb.d.cts +0 -267
  233. package/dist/proto/rpc_pb.d.ts +0 -267
  234. package/dist/proto/rpc_pb.d.ts.map +0 -1
  235. package/dist/proto/rpc_pb.js +0 -294
  236. package/dist/proto/rpc_pb.js.map +0 -1
  237. package/dist/proto/stats_pb.cjs +0 -1370
  238. package/dist/proto/stats_pb.cjs.map +0 -1
  239. package/dist/proto/stats_pb.d.cts +0 -1764
  240. package/dist/proto/stats_pb.d.ts +0 -1764
  241. package/dist/proto/stats_pb.d.ts.map +0 -1
  242. package/dist/proto/stats_pb.js +0 -1300
  243. package/dist/proto/stats_pb.js.map +0 -1
  244. package/dist/proto/track_pb.cjs +0 -630
  245. package/dist/proto/track_pb.cjs.map +0 -1
  246. package/dist/proto/track_pb.d.cts +0 -542
  247. package/dist/proto/track_pb.d.ts +0 -542
  248. package/dist/proto/track_pb.d.ts.map +0 -1
  249. package/dist/proto/track_pb.js +0 -584
  250. package/dist/proto/track_pb.js.map +0 -1
  251. package/dist/proto/track_publication_pb.cjs +0 -194
  252. package/dist/proto/track_publication_pb.cjs.map +0 -1
  253. package/dist/proto/track_publication_pb.d.cts +0 -135
  254. package/dist/proto/track_publication_pb.d.ts +0 -135
  255. package/dist/proto/track_publication_pb.d.ts.map +0 -1
  256. package/dist/proto/track_publication_pb.js +0 -164
  257. package/dist/proto/track_publication_pb.js.map +0 -1
  258. package/dist/proto/video_frame_pb.cjs +0 -723
  259. package/dist/proto/video_frame_pb.cjs.map +0 -1
  260. package/dist/proto/video_frame_pb.d.cts +0 -667
  261. package/dist/proto/video_frame_pb.d.ts +0 -667
  262. package/dist/proto/video_frame_pb.d.ts.map +0 -1
  263. package/dist/proto/video_frame_pb.js +0 -673
  264. package/dist/proto/video_frame_pb.js.map +0 -1
  265. package/src/lib.rs +0 -9
  266. package/src/napi/native.cjs +0 -301
  267. package/src/napi/native.d.ts +0 -19
  268. package/src/napi/native.js +0 -15
  269. package/src/nodejs.rs +0 -134
  270. package/src/proto/audio_frame_pb.ts +0 -2270
  271. package/src/proto/data_stream_pb.ts +0 -2674
  272. package/src/proto/e2ee_pb.ts +0 -1231
  273. package/src/proto/ffi_pb.ts +0 -1700
  274. package/src/proto/handle_pb.ts +0 -69
  275. package/src/proto/participant_pb.ts +0 -351
  276. package/src/proto/room_pb.ts +0 -5661
  277. package/src/proto/rpc_pb.ts +0 -539
  278. package/src/proto/stats_pb.ts +0 -3050
  279. package/src/proto/track_pb.ts +0 -1040
  280. package/src/proto/track_publication_pb.ts +0 -284
  281. package/src/proto/video_frame_pb.ts +0 -1236
@@ -1,1236 +0,0 @@
1
- // Copyright 2025 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.10.1 with parameter "target=ts,import_extension=.js"
16
- // @generated from file video_frame.proto (package livekit.proto, syntax proto2)
17
- /* eslint-disable */
18
- // @ts-nocheck
19
-
20
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
- import { Message, proto2 } from "@bufbuild/protobuf";
22
- import { TrackSource } from "./track_pb.js";
23
- import { FfiOwnedHandle } from "./handle_pb.js";
24
-
25
- /**
26
- * @generated from enum livekit.proto.VideoCodec
27
- */
28
- export enum VideoCodec {
29
- /**
30
- * @generated from enum value: VP8 = 0;
31
- */
32
- VP8 = 0,
33
-
34
- /**
35
- * @generated from enum value: H264 = 1;
36
- */
37
- H264 = 1,
38
-
39
- /**
40
- * @generated from enum value: AV1 = 2;
41
- */
42
- AV1 = 2,
43
-
44
- /**
45
- * @generated from enum value: VP9 = 3;
46
- */
47
- VP9 = 3,
48
-
49
- /**
50
- * @generated from enum value: H265 = 4;
51
- */
52
- H265 = 4,
53
- }
54
- // Retrieve enum metadata with: proto2.getEnumType(VideoCodec)
55
- proto2.util.setEnumType(VideoCodec, "livekit.proto.VideoCodec", [
56
- { no: 0, name: "VP8" },
57
- { no: 1, name: "H264" },
58
- { no: 2, name: "AV1" },
59
- { no: 3, name: "VP9" },
60
- { no: 4, name: "H265" },
61
- ]);
62
-
63
- /**
64
- * @generated from enum livekit.proto.VideoRotation
65
- */
66
- export enum VideoRotation {
67
- /**
68
- * @generated from enum value: VIDEO_ROTATION_0 = 0;
69
- */
70
- VIDEO_ROTATION_0 = 0,
71
-
72
- /**
73
- * @generated from enum value: VIDEO_ROTATION_90 = 1;
74
- */
75
- VIDEO_ROTATION_90 = 1,
76
-
77
- /**
78
- * @generated from enum value: VIDEO_ROTATION_180 = 2;
79
- */
80
- VIDEO_ROTATION_180 = 2,
81
-
82
- /**
83
- * @generated from enum value: VIDEO_ROTATION_270 = 3;
84
- */
85
- VIDEO_ROTATION_270 = 3,
86
- }
87
- // Retrieve enum metadata with: proto2.getEnumType(VideoRotation)
88
- proto2.util.setEnumType(VideoRotation, "livekit.proto.VideoRotation", [
89
- { no: 0, name: "VIDEO_ROTATION_0" },
90
- { no: 1, name: "VIDEO_ROTATION_90" },
91
- { no: 2, name: "VIDEO_ROTATION_180" },
92
- { no: 3, name: "VIDEO_ROTATION_270" },
93
- ]);
94
-
95
- /**
96
- * Values of this enum must not be changed
97
- * It is used to serialize a rtc.VideoFrame on Python
98
- *
99
- * @generated from enum livekit.proto.VideoBufferType
100
- */
101
- export enum VideoBufferType {
102
- /**
103
- * @generated from enum value: RGBA = 0;
104
- */
105
- RGBA = 0,
106
-
107
- /**
108
- * @generated from enum value: ABGR = 1;
109
- */
110
- ABGR = 1,
111
-
112
- /**
113
- * @generated from enum value: ARGB = 2;
114
- */
115
- ARGB = 2,
116
-
117
- /**
118
- * @generated from enum value: BGRA = 3;
119
- */
120
- BGRA = 3,
121
-
122
- /**
123
- * @generated from enum value: RGB24 = 4;
124
- */
125
- RGB24 = 4,
126
-
127
- /**
128
- * @generated from enum value: I420 = 5;
129
- */
130
- I420 = 5,
131
-
132
- /**
133
- * @generated from enum value: I420A = 6;
134
- */
135
- I420A = 6,
136
-
137
- /**
138
- * @generated from enum value: I422 = 7;
139
- */
140
- I422 = 7,
141
-
142
- /**
143
- * @generated from enum value: I444 = 8;
144
- */
145
- I444 = 8,
146
-
147
- /**
148
- * @generated from enum value: I010 = 9;
149
- */
150
- I010 = 9,
151
-
152
- /**
153
- * @generated from enum value: NV12 = 10;
154
- */
155
- NV12 = 10,
156
- }
157
- // Retrieve enum metadata with: proto2.getEnumType(VideoBufferType)
158
- proto2.util.setEnumType(VideoBufferType, "livekit.proto.VideoBufferType", [
159
- { no: 0, name: "RGBA" },
160
- { no: 1, name: "ABGR" },
161
- { no: 2, name: "ARGB" },
162
- { no: 3, name: "BGRA" },
163
- { no: 4, name: "RGB24" },
164
- { no: 5, name: "I420" },
165
- { no: 6, name: "I420A" },
166
- { no: 7, name: "I422" },
167
- { no: 8, name: "I444" },
168
- { no: 9, name: "I010" },
169
- { no: 10, name: "NV12" },
170
- ]);
171
-
172
- /**
173
- * @generated from enum livekit.proto.VideoStreamType
174
- */
175
- export enum VideoStreamType {
176
- /**
177
- * @generated from enum value: VIDEO_STREAM_NATIVE = 0;
178
- */
179
- VIDEO_STREAM_NATIVE = 0,
180
-
181
- /**
182
- * @generated from enum value: VIDEO_STREAM_WEBGL = 1;
183
- */
184
- VIDEO_STREAM_WEBGL = 1,
185
-
186
- /**
187
- * @generated from enum value: VIDEO_STREAM_HTML = 2;
188
- */
189
- VIDEO_STREAM_HTML = 2,
190
- }
191
- // Retrieve enum metadata with: proto2.getEnumType(VideoStreamType)
192
- proto2.util.setEnumType(VideoStreamType, "livekit.proto.VideoStreamType", [
193
- { no: 0, name: "VIDEO_STREAM_NATIVE" },
194
- { no: 1, name: "VIDEO_STREAM_WEBGL" },
195
- { no: 2, name: "VIDEO_STREAM_HTML" },
196
- ]);
197
-
198
- /**
199
- * @generated from enum livekit.proto.VideoSourceType
200
- */
201
- export enum VideoSourceType {
202
- /**
203
- * @generated from enum value: VIDEO_SOURCE_NATIVE = 0;
204
- */
205
- VIDEO_SOURCE_NATIVE = 0,
206
- }
207
- // Retrieve enum metadata with: proto2.getEnumType(VideoSourceType)
208
- proto2.util.setEnumType(VideoSourceType, "livekit.proto.VideoSourceType", [
209
- { no: 0, name: "VIDEO_SOURCE_NATIVE" },
210
- ]);
211
-
212
- /**
213
- * Create a new VideoStream
214
- * VideoStream is used to receive video frames from a track
215
- *
216
- * @generated from message livekit.proto.NewVideoStreamRequest
217
- */
218
- export class NewVideoStreamRequest extends Message<NewVideoStreamRequest> {
219
- /**
220
- * @generated from field: required uint64 track_handle = 1;
221
- */
222
- trackHandle?: bigint;
223
-
224
- /**
225
- * @generated from field: required livekit.proto.VideoStreamType type = 2;
226
- */
227
- type?: VideoStreamType;
228
-
229
- /**
230
- * Get the frame on a specific format
231
- *
232
- * @generated from field: optional livekit.proto.VideoBufferType format = 3;
233
- */
234
- format?: VideoBufferType;
235
-
236
- /**
237
- * if true, stride will be set to width/chroma_width
238
- *
239
- * @generated from field: optional bool normalize_stride = 4;
240
- */
241
- normalizeStride?: boolean;
242
-
243
- constructor(data?: PartialMessage<NewVideoStreamRequest>) {
244
- super();
245
- proto2.util.initPartial(data, this);
246
- }
247
-
248
- static readonly runtime: typeof proto2 = proto2;
249
- static readonly typeName = "livekit.proto.NewVideoStreamRequest";
250
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
251
- { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
252
- { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType), req: true },
253
- { no: 3, name: "format", kind: "enum", T: proto2.getEnumType(VideoBufferType), opt: true },
254
- { no: 4, name: "normalize_stride", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
255
- ]);
256
-
257
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoStreamRequest {
258
- return new NewVideoStreamRequest().fromBinary(bytes, options);
259
- }
260
-
261
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoStreamRequest {
262
- return new NewVideoStreamRequest().fromJson(jsonValue, options);
263
- }
264
-
265
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoStreamRequest {
266
- return new NewVideoStreamRequest().fromJsonString(jsonString, options);
267
- }
268
-
269
- static equals(a: NewVideoStreamRequest | PlainMessage<NewVideoStreamRequest> | undefined, b: NewVideoStreamRequest | PlainMessage<NewVideoStreamRequest> | undefined): boolean {
270
- return proto2.util.equals(NewVideoStreamRequest, a, b);
271
- }
272
- }
273
-
274
- /**
275
- * @generated from message livekit.proto.NewVideoStreamResponse
276
- */
277
- export class NewVideoStreamResponse extends Message<NewVideoStreamResponse> {
278
- /**
279
- * @generated from field: required livekit.proto.OwnedVideoStream stream = 1;
280
- */
281
- stream?: OwnedVideoStream;
282
-
283
- constructor(data?: PartialMessage<NewVideoStreamResponse>) {
284
- super();
285
- proto2.util.initPartial(data, this);
286
- }
287
-
288
- static readonly runtime: typeof proto2 = proto2;
289
- static readonly typeName = "livekit.proto.NewVideoStreamResponse";
290
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
291
- { no: 1, name: "stream", kind: "message", T: OwnedVideoStream, req: true },
292
- ]);
293
-
294
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoStreamResponse {
295
- return new NewVideoStreamResponse().fromBinary(bytes, options);
296
- }
297
-
298
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoStreamResponse {
299
- return new NewVideoStreamResponse().fromJson(jsonValue, options);
300
- }
301
-
302
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoStreamResponse {
303
- return new NewVideoStreamResponse().fromJsonString(jsonString, options);
304
- }
305
-
306
- static equals(a: NewVideoStreamResponse | PlainMessage<NewVideoStreamResponse> | undefined, b: NewVideoStreamResponse | PlainMessage<NewVideoStreamResponse> | undefined): boolean {
307
- return proto2.util.equals(NewVideoStreamResponse, a, b);
308
- }
309
- }
310
-
311
- /**
312
- * Request a video stream from a participant
313
- *
314
- * @generated from message livekit.proto.VideoStreamFromParticipantRequest
315
- */
316
- export class VideoStreamFromParticipantRequest extends Message<VideoStreamFromParticipantRequest> {
317
- /**
318
- * @generated from field: required uint64 participant_handle = 1;
319
- */
320
- participantHandle?: bigint;
321
-
322
- /**
323
- * @generated from field: required livekit.proto.VideoStreamType type = 2;
324
- */
325
- type?: VideoStreamType;
326
-
327
- /**
328
- * @generated from field: required livekit.proto.TrackSource track_source = 3;
329
- */
330
- trackSource?: TrackSource;
331
-
332
- /**
333
- * @generated from field: optional livekit.proto.VideoBufferType format = 4;
334
- */
335
- format?: VideoBufferType;
336
-
337
- /**
338
- * @generated from field: optional bool normalize_stride = 5;
339
- */
340
- normalizeStride?: boolean;
341
-
342
- constructor(data?: PartialMessage<VideoStreamFromParticipantRequest>) {
343
- super();
344
- proto2.util.initPartial(data, this);
345
- }
346
-
347
- static readonly runtime: typeof proto2 = proto2;
348
- static readonly typeName = "livekit.proto.VideoStreamFromParticipantRequest";
349
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
350
- { no: 1, name: "participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
351
- { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType), req: true },
352
- { no: 3, name: "track_source", kind: "enum", T: proto2.getEnumType(TrackSource), req: true },
353
- { no: 4, name: "format", kind: "enum", T: proto2.getEnumType(VideoBufferType), opt: true },
354
- { no: 5, name: "normalize_stride", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
355
- ]);
356
-
357
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamFromParticipantRequest {
358
- return new VideoStreamFromParticipantRequest().fromBinary(bytes, options);
359
- }
360
-
361
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantRequest {
362
- return new VideoStreamFromParticipantRequest().fromJson(jsonValue, options);
363
- }
364
-
365
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantRequest {
366
- return new VideoStreamFromParticipantRequest().fromJsonString(jsonString, options);
367
- }
368
-
369
- static equals(a: VideoStreamFromParticipantRequest | PlainMessage<VideoStreamFromParticipantRequest> | undefined, b: VideoStreamFromParticipantRequest | PlainMessage<VideoStreamFromParticipantRequest> | undefined): boolean {
370
- return proto2.util.equals(VideoStreamFromParticipantRequest, a, b);
371
- }
372
- }
373
-
374
- /**
375
- * @generated from message livekit.proto.VideoStreamFromParticipantResponse
376
- */
377
- export class VideoStreamFromParticipantResponse extends Message<VideoStreamFromParticipantResponse> {
378
- /**
379
- * @generated from field: required livekit.proto.OwnedVideoStream stream = 1;
380
- */
381
- stream?: OwnedVideoStream;
382
-
383
- constructor(data?: PartialMessage<VideoStreamFromParticipantResponse>) {
384
- super();
385
- proto2.util.initPartial(data, this);
386
- }
387
-
388
- static readonly runtime: typeof proto2 = proto2;
389
- static readonly typeName = "livekit.proto.VideoStreamFromParticipantResponse";
390
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
391
- { no: 1, name: "stream", kind: "message", T: OwnedVideoStream, req: true },
392
- ]);
393
-
394
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamFromParticipantResponse {
395
- return new VideoStreamFromParticipantResponse().fromBinary(bytes, options);
396
- }
397
-
398
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantResponse {
399
- return new VideoStreamFromParticipantResponse().fromJson(jsonValue, options);
400
- }
401
-
402
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantResponse {
403
- return new VideoStreamFromParticipantResponse().fromJsonString(jsonString, options);
404
- }
405
-
406
- static equals(a: VideoStreamFromParticipantResponse | PlainMessage<VideoStreamFromParticipantResponse> | undefined, b: VideoStreamFromParticipantResponse | PlainMessage<VideoStreamFromParticipantResponse> | undefined): boolean {
407
- return proto2.util.equals(VideoStreamFromParticipantResponse, a, b);
408
- }
409
- }
410
-
411
- /**
412
- * Create a new VideoSource
413
- * VideoSource is used to send video frame to a track
414
- *
415
- * @generated from message livekit.proto.NewVideoSourceRequest
416
- */
417
- export class NewVideoSourceRequest extends Message<NewVideoSourceRequest> {
418
- /**
419
- * @generated from field: required livekit.proto.VideoSourceType type = 1;
420
- */
421
- type?: VideoSourceType;
422
-
423
- /**
424
- * Used to determine which encodings to use + simulcast layers
425
- * Most of the time it corresponds to the source resolution
426
- *
427
- * @generated from field: required livekit.proto.VideoSourceResolution resolution = 2;
428
- */
429
- resolution?: VideoSourceResolution;
430
-
431
- constructor(data?: PartialMessage<NewVideoSourceRequest>) {
432
- super();
433
- proto2.util.initPartial(data, this);
434
- }
435
-
436
- static readonly runtime: typeof proto2 = proto2;
437
- static readonly typeName = "livekit.proto.NewVideoSourceRequest";
438
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
439
- { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoSourceType), req: true },
440
- { no: 2, name: "resolution", kind: "message", T: VideoSourceResolution, req: true },
441
- ]);
442
-
443
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoSourceRequest {
444
- return new NewVideoSourceRequest().fromBinary(bytes, options);
445
- }
446
-
447
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoSourceRequest {
448
- return new NewVideoSourceRequest().fromJson(jsonValue, options);
449
- }
450
-
451
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoSourceRequest {
452
- return new NewVideoSourceRequest().fromJsonString(jsonString, options);
453
- }
454
-
455
- static equals(a: NewVideoSourceRequest | PlainMessage<NewVideoSourceRequest> | undefined, b: NewVideoSourceRequest | PlainMessage<NewVideoSourceRequest> | undefined): boolean {
456
- return proto2.util.equals(NewVideoSourceRequest, a, b);
457
- }
458
- }
459
-
460
- /**
461
- * @generated from message livekit.proto.NewVideoSourceResponse
462
- */
463
- export class NewVideoSourceResponse extends Message<NewVideoSourceResponse> {
464
- /**
465
- * @generated from field: required livekit.proto.OwnedVideoSource source = 1;
466
- */
467
- source?: OwnedVideoSource;
468
-
469
- constructor(data?: PartialMessage<NewVideoSourceResponse>) {
470
- super();
471
- proto2.util.initPartial(data, this);
472
- }
473
-
474
- static readonly runtime: typeof proto2 = proto2;
475
- static readonly typeName = "livekit.proto.NewVideoSourceResponse";
476
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
477
- { no: 1, name: "source", kind: "message", T: OwnedVideoSource, req: true },
478
- ]);
479
-
480
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoSourceResponse {
481
- return new NewVideoSourceResponse().fromBinary(bytes, options);
482
- }
483
-
484
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoSourceResponse {
485
- return new NewVideoSourceResponse().fromJson(jsonValue, options);
486
- }
487
-
488
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoSourceResponse {
489
- return new NewVideoSourceResponse().fromJsonString(jsonString, options);
490
- }
491
-
492
- static equals(a: NewVideoSourceResponse | PlainMessage<NewVideoSourceResponse> | undefined, b: NewVideoSourceResponse | PlainMessage<NewVideoSourceResponse> | undefined): boolean {
493
- return proto2.util.equals(NewVideoSourceResponse, a, b);
494
- }
495
- }
496
-
497
- /**
498
- * Push a frame to a VideoSource
499
- *
500
- * @generated from message livekit.proto.CaptureVideoFrameRequest
501
- */
502
- export class CaptureVideoFrameRequest extends Message<CaptureVideoFrameRequest> {
503
- /**
504
- * @generated from field: required uint64 source_handle = 1;
505
- */
506
- sourceHandle?: bigint;
507
-
508
- /**
509
- * @generated from field: required livekit.proto.VideoBufferInfo buffer = 2;
510
- */
511
- buffer?: VideoBufferInfo;
512
-
513
- /**
514
- * In microseconds
515
- *
516
- * @generated from field: required int64 timestamp_us = 3;
517
- */
518
- timestampUs?: bigint;
519
-
520
- /**
521
- * @generated from field: required livekit.proto.VideoRotation rotation = 4;
522
- */
523
- rotation?: VideoRotation;
524
-
525
- constructor(data?: PartialMessage<CaptureVideoFrameRequest>) {
526
- super();
527
- proto2.util.initPartial(data, this);
528
- }
529
-
530
- static readonly runtime: typeof proto2 = proto2;
531
- static readonly typeName = "livekit.proto.CaptureVideoFrameRequest";
532
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
533
- { no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
534
- { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo, req: true },
535
- { no: 3, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true },
536
- { no: 4, name: "rotation", kind: "enum", T: proto2.getEnumType(VideoRotation), req: true },
537
- ]);
538
-
539
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureVideoFrameRequest {
540
- return new CaptureVideoFrameRequest().fromBinary(bytes, options);
541
- }
542
-
543
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureVideoFrameRequest {
544
- return new CaptureVideoFrameRequest().fromJson(jsonValue, options);
545
- }
546
-
547
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureVideoFrameRequest {
548
- return new CaptureVideoFrameRequest().fromJsonString(jsonString, options);
549
- }
550
-
551
- static equals(a: CaptureVideoFrameRequest | PlainMessage<CaptureVideoFrameRequest> | undefined, b: CaptureVideoFrameRequest | PlainMessage<CaptureVideoFrameRequest> | undefined): boolean {
552
- return proto2.util.equals(CaptureVideoFrameRequest, a, b);
553
- }
554
- }
555
-
556
- /**
557
- * @generated from message livekit.proto.CaptureVideoFrameResponse
558
- */
559
- export class CaptureVideoFrameResponse extends Message<CaptureVideoFrameResponse> {
560
- constructor(data?: PartialMessage<CaptureVideoFrameResponse>) {
561
- super();
562
- proto2.util.initPartial(data, this);
563
- }
564
-
565
- static readonly runtime: typeof proto2 = proto2;
566
- static readonly typeName = "livekit.proto.CaptureVideoFrameResponse";
567
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
568
- ]);
569
-
570
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureVideoFrameResponse {
571
- return new CaptureVideoFrameResponse().fromBinary(bytes, options);
572
- }
573
-
574
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureVideoFrameResponse {
575
- return new CaptureVideoFrameResponse().fromJson(jsonValue, options);
576
- }
577
-
578
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureVideoFrameResponse {
579
- return new CaptureVideoFrameResponse().fromJsonString(jsonString, options);
580
- }
581
-
582
- static equals(a: CaptureVideoFrameResponse | PlainMessage<CaptureVideoFrameResponse> | undefined, b: CaptureVideoFrameResponse | PlainMessage<CaptureVideoFrameResponse> | undefined): boolean {
583
- return proto2.util.equals(CaptureVideoFrameResponse, a, b);
584
- }
585
- }
586
-
587
- /**
588
- * @generated from message livekit.proto.VideoConvertRequest
589
- */
590
- export class VideoConvertRequest extends Message<VideoConvertRequest> {
591
- /**
592
- * @generated from field: optional bool flip_y = 1;
593
- */
594
- flipY?: boolean;
595
-
596
- /**
597
- * @generated from field: required livekit.proto.VideoBufferInfo buffer = 2;
598
- */
599
- buffer?: VideoBufferInfo;
600
-
601
- /**
602
- * @generated from field: required livekit.proto.VideoBufferType dst_type = 3;
603
- */
604
- dstType?: VideoBufferType;
605
-
606
- constructor(data?: PartialMessage<VideoConvertRequest>) {
607
- super();
608
- proto2.util.initPartial(data, this);
609
- }
610
-
611
- static readonly runtime: typeof proto2 = proto2;
612
- static readonly typeName = "livekit.proto.VideoConvertRequest";
613
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
614
- { no: 1, name: "flip_y", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
615
- { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo, req: true },
616
- { no: 3, name: "dst_type", kind: "enum", T: proto2.getEnumType(VideoBufferType), req: true },
617
- ]);
618
-
619
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConvertRequest {
620
- return new VideoConvertRequest().fromBinary(bytes, options);
621
- }
622
-
623
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConvertRequest {
624
- return new VideoConvertRequest().fromJson(jsonValue, options);
625
- }
626
-
627
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConvertRequest {
628
- return new VideoConvertRequest().fromJsonString(jsonString, options);
629
- }
630
-
631
- static equals(a: VideoConvertRequest | PlainMessage<VideoConvertRequest> | undefined, b: VideoConvertRequest | PlainMessage<VideoConvertRequest> | undefined): boolean {
632
- return proto2.util.equals(VideoConvertRequest, a, b);
633
- }
634
- }
635
-
636
- /**
637
- * @generated from message livekit.proto.VideoConvertResponse
638
- */
639
- export class VideoConvertResponse extends Message<VideoConvertResponse> {
640
- /**
641
- * @generated from oneof livekit.proto.VideoConvertResponse.message
642
- */
643
- message: {
644
- /**
645
- * @generated from field: string error = 1;
646
- */
647
- value: string;
648
- case: "error";
649
- } | {
650
- /**
651
- * @generated from field: livekit.proto.OwnedVideoBuffer buffer = 2;
652
- */
653
- value: OwnedVideoBuffer;
654
- case: "buffer";
655
- } | { case: undefined; value?: undefined } = { case: undefined };
656
-
657
- constructor(data?: PartialMessage<VideoConvertResponse>) {
658
- super();
659
- proto2.util.initPartial(data, this);
660
- }
661
-
662
- static readonly runtime: typeof proto2 = proto2;
663
- static readonly typeName = "livekit.proto.VideoConvertResponse";
664
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
665
- { no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "message" },
666
- { no: 2, name: "buffer", kind: "message", T: OwnedVideoBuffer, oneof: "message" },
667
- ]);
668
-
669
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConvertResponse {
670
- return new VideoConvertResponse().fromBinary(bytes, options);
671
- }
672
-
673
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConvertResponse {
674
- return new VideoConvertResponse().fromJson(jsonValue, options);
675
- }
676
-
677
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConvertResponse {
678
- return new VideoConvertResponse().fromJsonString(jsonString, options);
679
- }
680
-
681
- static equals(a: VideoConvertResponse | PlainMessage<VideoConvertResponse> | undefined, b: VideoConvertResponse | PlainMessage<VideoConvertResponse> | undefined): boolean {
682
- return proto2.util.equals(VideoConvertResponse, a, b);
683
- }
684
- }
685
-
686
- /**
687
- * @generated from message livekit.proto.VideoResolution
688
- */
689
- export class VideoResolution extends Message<VideoResolution> {
690
- /**
691
- * @generated from field: required uint32 width = 1;
692
- */
693
- width?: number;
694
-
695
- /**
696
- * @generated from field: required uint32 height = 2;
697
- */
698
- height?: number;
699
-
700
- /**
701
- * @generated from field: required double frame_rate = 3;
702
- */
703
- frameRate?: number;
704
-
705
- constructor(data?: PartialMessage<VideoResolution>) {
706
- super();
707
- proto2.util.initPartial(data, this);
708
- }
709
-
710
- static readonly runtime: typeof proto2 = proto2;
711
- static readonly typeName = "livekit.proto.VideoResolution";
712
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
713
- { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
714
- { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
715
- { no: 3, name: "frame_rate", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, req: true },
716
- ]);
717
-
718
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoResolution {
719
- return new VideoResolution().fromBinary(bytes, options);
720
- }
721
-
722
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoResolution {
723
- return new VideoResolution().fromJson(jsonValue, options);
724
- }
725
-
726
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoResolution {
727
- return new VideoResolution().fromJsonString(jsonString, options);
728
- }
729
-
730
- static equals(a: VideoResolution | PlainMessage<VideoResolution> | undefined, b: VideoResolution | PlainMessage<VideoResolution> | undefined): boolean {
731
- return proto2.util.equals(VideoResolution, a, b);
732
- }
733
- }
734
-
735
- /**
736
- * @generated from message livekit.proto.VideoBufferInfo
737
- */
738
- export class VideoBufferInfo extends Message<VideoBufferInfo> {
739
- /**
740
- * @generated from field: required livekit.proto.VideoBufferType type = 1;
741
- */
742
- type?: VideoBufferType;
743
-
744
- /**
745
- * @generated from field: required uint32 width = 2;
746
- */
747
- width?: number;
748
-
749
- /**
750
- * @generated from field: required uint32 height = 3;
751
- */
752
- height?: number;
753
-
754
- /**
755
- * @generated from field: required uint64 data_ptr = 4;
756
- */
757
- dataPtr?: bigint;
758
-
759
- /**
760
- * only for packed formats
761
- *
762
- * @generated from field: optional uint32 stride = 6;
763
- */
764
- stride?: number;
765
-
766
- /**
767
- * @generated from field: repeated livekit.proto.VideoBufferInfo.ComponentInfo components = 7;
768
- */
769
- components: VideoBufferInfo_ComponentInfo[] = [];
770
-
771
- constructor(data?: PartialMessage<VideoBufferInfo>) {
772
- super();
773
- proto2.util.initPartial(data, this);
774
- }
775
-
776
- static readonly runtime: typeof proto2 = proto2;
777
- static readonly typeName = "livekit.proto.VideoBufferInfo";
778
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
779
- { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoBufferType), req: true },
780
- { no: 2, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
781
- { no: 3, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
782
- { no: 4, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
783
- { no: 6, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
784
- { no: 7, name: "components", kind: "message", T: VideoBufferInfo_ComponentInfo, repeated: true },
785
- ]);
786
-
787
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoBufferInfo {
788
- return new VideoBufferInfo().fromBinary(bytes, options);
789
- }
790
-
791
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoBufferInfo {
792
- return new VideoBufferInfo().fromJson(jsonValue, options);
793
- }
794
-
795
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoBufferInfo {
796
- return new VideoBufferInfo().fromJsonString(jsonString, options);
797
- }
798
-
799
- static equals(a: VideoBufferInfo | PlainMessage<VideoBufferInfo> | undefined, b: VideoBufferInfo | PlainMessage<VideoBufferInfo> | undefined): boolean {
800
- return proto2.util.equals(VideoBufferInfo, a, b);
801
- }
802
- }
803
-
804
- /**
805
- * @generated from message livekit.proto.VideoBufferInfo.ComponentInfo
806
- */
807
- export class VideoBufferInfo_ComponentInfo extends Message<VideoBufferInfo_ComponentInfo> {
808
- /**
809
- * @generated from field: required uint64 data_ptr = 1;
810
- */
811
- dataPtr?: bigint;
812
-
813
- /**
814
- * @generated from field: required uint32 stride = 2;
815
- */
816
- stride?: number;
817
-
818
- /**
819
- * @generated from field: required uint32 size = 3;
820
- */
821
- size?: number;
822
-
823
- constructor(data?: PartialMessage<VideoBufferInfo_ComponentInfo>) {
824
- super();
825
- proto2.util.initPartial(data, this);
826
- }
827
-
828
- static readonly runtime: typeof proto2 = proto2;
829
- static readonly typeName = "livekit.proto.VideoBufferInfo.ComponentInfo";
830
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
831
- { no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
832
- { no: 2, name: "stride", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
833
- { no: 3, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
834
- ]);
835
-
836
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoBufferInfo_ComponentInfo {
837
- return new VideoBufferInfo_ComponentInfo().fromBinary(bytes, options);
838
- }
839
-
840
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoBufferInfo_ComponentInfo {
841
- return new VideoBufferInfo_ComponentInfo().fromJson(jsonValue, options);
842
- }
843
-
844
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoBufferInfo_ComponentInfo {
845
- return new VideoBufferInfo_ComponentInfo().fromJsonString(jsonString, options);
846
- }
847
-
848
- static equals(a: VideoBufferInfo_ComponentInfo | PlainMessage<VideoBufferInfo_ComponentInfo> | undefined, b: VideoBufferInfo_ComponentInfo | PlainMessage<VideoBufferInfo_ComponentInfo> | undefined): boolean {
849
- return proto2.util.equals(VideoBufferInfo_ComponentInfo, a, b);
850
- }
851
- }
852
-
853
- /**
854
- * @generated from message livekit.proto.OwnedVideoBuffer
855
- */
856
- export class OwnedVideoBuffer extends Message<OwnedVideoBuffer> {
857
- /**
858
- * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
859
- */
860
- handle?: FfiOwnedHandle;
861
-
862
- /**
863
- * @generated from field: required livekit.proto.VideoBufferInfo info = 2;
864
- */
865
- info?: VideoBufferInfo;
866
-
867
- constructor(data?: PartialMessage<OwnedVideoBuffer>) {
868
- super();
869
- proto2.util.initPartial(data, this);
870
- }
871
-
872
- static readonly runtime: typeof proto2 = proto2;
873
- static readonly typeName = "livekit.proto.OwnedVideoBuffer";
874
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
875
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
876
- { no: 2, name: "info", kind: "message", T: VideoBufferInfo, req: true },
877
- ]);
878
-
879
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoBuffer {
880
- return new OwnedVideoBuffer().fromBinary(bytes, options);
881
- }
882
-
883
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoBuffer {
884
- return new OwnedVideoBuffer().fromJson(jsonValue, options);
885
- }
886
-
887
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoBuffer {
888
- return new OwnedVideoBuffer().fromJsonString(jsonString, options);
889
- }
890
-
891
- static equals(a: OwnedVideoBuffer | PlainMessage<OwnedVideoBuffer> | undefined, b: OwnedVideoBuffer | PlainMessage<OwnedVideoBuffer> | undefined): boolean {
892
- return proto2.util.equals(OwnedVideoBuffer, a, b);
893
- }
894
- }
895
-
896
- /**
897
- * @generated from message livekit.proto.VideoStreamInfo
898
- */
899
- export class VideoStreamInfo extends Message<VideoStreamInfo> {
900
- /**
901
- * @generated from field: required livekit.proto.VideoStreamType type = 1;
902
- */
903
- type?: VideoStreamType;
904
-
905
- constructor(data?: PartialMessage<VideoStreamInfo>) {
906
- super();
907
- proto2.util.initPartial(data, this);
908
- }
909
-
910
- static readonly runtime: typeof proto2 = proto2;
911
- static readonly typeName = "livekit.proto.VideoStreamInfo";
912
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
913
- { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType), req: true },
914
- ]);
915
-
916
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamInfo {
917
- return new VideoStreamInfo().fromBinary(bytes, options);
918
- }
919
-
920
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamInfo {
921
- return new VideoStreamInfo().fromJson(jsonValue, options);
922
- }
923
-
924
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamInfo {
925
- return new VideoStreamInfo().fromJsonString(jsonString, options);
926
- }
927
-
928
- static equals(a: VideoStreamInfo | PlainMessage<VideoStreamInfo> | undefined, b: VideoStreamInfo | PlainMessage<VideoStreamInfo> | undefined): boolean {
929
- return proto2.util.equals(VideoStreamInfo, a, b);
930
- }
931
- }
932
-
933
- /**
934
- * @generated from message livekit.proto.OwnedVideoStream
935
- */
936
- export class OwnedVideoStream extends Message<OwnedVideoStream> {
937
- /**
938
- * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
939
- */
940
- handle?: FfiOwnedHandle;
941
-
942
- /**
943
- * @generated from field: required livekit.proto.VideoStreamInfo info = 2;
944
- */
945
- info?: VideoStreamInfo;
946
-
947
- constructor(data?: PartialMessage<OwnedVideoStream>) {
948
- super();
949
- proto2.util.initPartial(data, this);
950
- }
951
-
952
- static readonly runtime: typeof proto2 = proto2;
953
- static readonly typeName = "livekit.proto.OwnedVideoStream";
954
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
955
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
956
- { no: 2, name: "info", kind: "message", T: VideoStreamInfo, req: true },
957
- ]);
958
-
959
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoStream {
960
- return new OwnedVideoStream().fromBinary(bytes, options);
961
- }
962
-
963
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoStream {
964
- return new OwnedVideoStream().fromJson(jsonValue, options);
965
- }
966
-
967
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoStream {
968
- return new OwnedVideoStream().fromJsonString(jsonString, options);
969
- }
970
-
971
- static equals(a: OwnedVideoStream | PlainMessage<OwnedVideoStream> | undefined, b: OwnedVideoStream | PlainMessage<OwnedVideoStream> | undefined): boolean {
972
- return proto2.util.equals(OwnedVideoStream, a, b);
973
- }
974
- }
975
-
976
- /**
977
- * @generated from message livekit.proto.VideoStreamEvent
978
- */
979
- export class VideoStreamEvent extends Message<VideoStreamEvent> {
980
- /**
981
- * @generated from field: required uint64 stream_handle = 1;
982
- */
983
- streamHandle?: bigint;
984
-
985
- /**
986
- * @generated from oneof livekit.proto.VideoStreamEvent.message
987
- */
988
- message: {
989
- /**
990
- * @generated from field: livekit.proto.VideoFrameReceived frame_received = 2;
991
- */
992
- value: VideoFrameReceived;
993
- case: "frameReceived";
994
- } | {
995
- /**
996
- * @generated from field: livekit.proto.VideoStreamEOS eos = 3;
997
- */
998
- value: VideoStreamEOS;
999
- case: "eos";
1000
- } | { case: undefined; value?: undefined } = { case: undefined };
1001
-
1002
- constructor(data?: PartialMessage<VideoStreamEvent>) {
1003
- super();
1004
- proto2.util.initPartial(data, this);
1005
- }
1006
-
1007
- static readonly runtime: typeof proto2 = proto2;
1008
- static readonly typeName = "livekit.proto.VideoStreamEvent";
1009
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
1010
- { no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
1011
- { no: 2, name: "frame_received", kind: "message", T: VideoFrameReceived, oneof: "message" },
1012
- { no: 3, name: "eos", kind: "message", T: VideoStreamEOS, oneof: "message" },
1013
- ]);
1014
-
1015
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamEvent {
1016
- return new VideoStreamEvent().fromBinary(bytes, options);
1017
- }
1018
-
1019
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamEvent {
1020
- return new VideoStreamEvent().fromJson(jsonValue, options);
1021
- }
1022
-
1023
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamEvent {
1024
- return new VideoStreamEvent().fromJsonString(jsonString, options);
1025
- }
1026
-
1027
- static equals(a: VideoStreamEvent | PlainMessage<VideoStreamEvent> | undefined, b: VideoStreamEvent | PlainMessage<VideoStreamEvent> | undefined): boolean {
1028
- return proto2.util.equals(VideoStreamEvent, a, b);
1029
- }
1030
- }
1031
-
1032
- /**
1033
- * @generated from message livekit.proto.VideoFrameReceived
1034
- */
1035
- export class VideoFrameReceived extends Message<VideoFrameReceived> {
1036
- /**
1037
- * @generated from field: required livekit.proto.OwnedVideoBuffer buffer = 1;
1038
- */
1039
- buffer?: OwnedVideoBuffer;
1040
-
1041
- /**
1042
- * In microseconds
1043
- *
1044
- * @generated from field: required int64 timestamp_us = 2;
1045
- */
1046
- timestampUs?: bigint;
1047
-
1048
- /**
1049
- * @generated from field: required livekit.proto.VideoRotation rotation = 3;
1050
- */
1051
- rotation?: VideoRotation;
1052
-
1053
- constructor(data?: PartialMessage<VideoFrameReceived>) {
1054
- super();
1055
- proto2.util.initPartial(data, this);
1056
- }
1057
-
1058
- static readonly runtime: typeof proto2 = proto2;
1059
- static readonly typeName = "livekit.proto.VideoFrameReceived";
1060
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
1061
- { no: 1, name: "buffer", kind: "message", T: OwnedVideoBuffer, req: true },
1062
- { no: 2, name: "timestamp_us", kind: "scalar", T: 3 /* ScalarType.INT64 */, req: true },
1063
- { no: 3, name: "rotation", kind: "enum", T: proto2.getEnumType(VideoRotation), req: true },
1064
- ]);
1065
-
1066
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoFrameReceived {
1067
- return new VideoFrameReceived().fromBinary(bytes, options);
1068
- }
1069
-
1070
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoFrameReceived {
1071
- return new VideoFrameReceived().fromJson(jsonValue, options);
1072
- }
1073
-
1074
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoFrameReceived {
1075
- return new VideoFrameReceived().fromJsonString(jsonString, options);
1076
- }
1077
-
1078
- static equals(a: VideoFrameReceived | PlainMessage<VideoFrameReceived> | undefined, b: VideoFrameReceived | PlainMessage<VideoFrameReceived> | undefined): boolean {
1079
- return proto2.util.equals(VideoFrameReceived, a, b);
1080
- }
1081
- }
1082
-
1083
- /**
1084
- * @generated from message livekit.proto.VideoStreamEOS
1085
- */
1086
- export class VideoStreamEOS extends Message<VideoStreamEOS> {
1087
- constructor(data?: PartialMessage<VideoStreamEOS>) {
1088
- super();
1089
- proto2.util.initPartial(data, this);
1090
- }
1091
-
1092
- static readonly runtime: typeof proto2 = proto2;
1093
- static readonly typeName = "livekit.proto.VideoStreamEOS";
1094
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
1095
- ]);
1096
-
1097
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamEOS {
1098
- return new VideoStreamEOS().fromBinary(bytes, options);
1099
- }
1100
-
1101
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamEOS {
1102
- return new VideoStreamEOS().fromJson(jsonValue, options);
1103
- }
1104
-
1105
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamEOS {
1106
- return new VideoStreamEOS().fromJsonString(jsonString, options);
1107
- }
1108
-
1109
- static equals(a: VideoStreamEOS | PlainMessage<VideoStreamEOS> | undefined, b: VideoStreamEOS | PlainMessage<VideoStreamEOS> | undefined): boolean {
1110
- return proto2.util.equals(VideoStreamEOS, a, b);
1111
- }
1112
- }
1113
-
1114
- /**
1115
- * @generated from message livekit.proto.VideoSourceResolution
1116
- */
1117
- export class VideoSourceResolution extends Message<VideoSourceResolution> {
1118
- /**
1119
- * @generated from field: required uint32 width = 1;
1120
- */
1121
- width?: number;
1122
-
1123
- /**
1124
- * @generated from field: required uint32 height = 2;
1125
- */
1126
- height?: number;
1127
-
1128
- constructor(data?: PartialMessage<VideoSourceResolution>) {
1129
- super();
1130
- proto2.util.initPartial(data, this);
1131
- }
1132
-
1133
- static readonly runtime: typeof proto2 = proto2;
1134
- static readonly typeName = "livekit.proto.VideoSourceResolution";
1135
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
1136
- { no: 1, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
1137
- { no: 2, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
1138
- ]);
1139
-
1140
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoSourceResolution {
1141
- return new VideoSourceResolution().fromBinary(bytes, options);
1142
- }
1143
-
1144
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoSourceResolution {
1145
- return new VideoSourceResolution().fromJson(jsonValue, options);
1146
- }
1147
-
1148
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoSourceResolution {
1149
- return new VideoSourceResolution().fromJsonString(jsonString, options);
1150
- }
1151
-
1152
- static equals(a: VideoSourceResolution | PlainMessage<VideoSourceResolution> | undefined, b: VideoSourceResolution | PlainMessage<VideoSourceResolution> | undefined): boolean {
1153
- return proto2.util.equals(VideoSourceResolution, a, b);
1154
- }
1155
- }
1156
-
1157
- /**
1158
- * @generated from message livekit.proto.VideoSourceInfo
1159
- */
1160
- export class VideoSourceInfo extends Message<VideoSourceInfo> {
1161
- /**
1162
- * @generated from field: required livekit.proto.VideoSourceType type = 1;
1163
- */
1164
- type?: VideoSourceType;
1165
-
1166
- constructor(data?: PartialMessage<VideoSourceInfo>) {
1167
- super();
1168
- proto2.util.initPartial(data, this);
1169
- }
1170
-
1171
- static readonly runtime: typeof proto2 = proto2;
1172
- static readonly typeName = "livekit.proto.VideoSourceInfo";
1173
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
1174
- { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoSourceType), req: true },
1175
- ]);
1176
-
1177
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoSourceInfo {
1178
- return new VideoSourceInfo().fromBinary(bytes, options);
1179
- }
1180
-
1181
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoSourceInfo {
1182
- return new VideoSourceInfo().fromJson(jsonValue, options);
1183
- }
1184
-
1185
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoSourceInfo {
1186
- return new VideoSourceInfo().fromJsonString(jsonString, options);
1187
- }
1188
-
1189
- static equals(a: VideoSourceInfo | PlainMessage<VideoSourceInfo> | undefined, b: VideoSourceInfo | PlainMessage<VideoSourceInfo> | undefined): boolean {
1190
- return proto2.util.equals(VideoSourceInfo, a, b);
1191
- }
1192
- }
1193
-
1194
- /**
1195
- * @generated from message livekit.proto.OwnedVideoSource
1196
- */
1197
- export class OwnedVideoSource extends Message<OwnedVideoSource> {
1198
- /**
1199
- * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
1200
- */
1201
- handle?: FfiOwnedHandle;
1202
-
1203
- /**
1204
- * @generated from field: required livekit.proto.VideoSourceInfo info = 2;
1205
- */
1206
- info?: VideoSourceInfo;
1207
-
1208
- constructor(data?: PartialMessage<OwnedVideoSource>) {
1209
- super();
1210
- proto2.util.initPartial(data, this);
1211
- }
1212
-
1213
- static readonly runtime: typeof proto2 = proto2;
1214
- static readonly typeName = "livekit.proto.OwnedVideoSource";
1215
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
1216
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
1217
- { no: 2, name: "info", kind: "message", T: VideoSourceInfo, req: true },
1218
- ]);
1219
-
1220
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoSource {
1221
- return new OwnedVideoSource().fromBinary(bytes, options);
1222
- }
1223
-
1224
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoSource {
1225
- return new OwnedVideoSource().fromJson(jsonValue, options);
1226
- }
1227
-
1228
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoSource {
1229
- return new OwnedVideoSource().fromJsonString(jsonString, options);
1230
- }
1231
-
1232
- static equals(a: OwnedVideoSource | PlainMessage<OwnedVideoSource> | undefined, b: OwnedVideoSource | PlainMessage<OwnedVideoSource> | undefined): boolean {
1233
- return proto2.util.equals(OwnedVideoSource, a, b);
1234
- }
1235
- }
1236
-