@livekit/rtc-node 0.13.23 → 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 (290) 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 +11 -7
  6. package/dist/audio_frame.cjs.map +1 -1
  7. package/dist/audio_frame.d.cts +3 -8
  8. package/dist/audio_frame.d.ts +3 -8
  9. package/dist/audio_frame.d.ts.map +1 -1
  10. package/dist/audio_frame.js +10 -6
  11. package/dist/audio_frame.js.map +1 -1
  12. package/dist/audio_mixer.cjs +11 -4
  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.d.ts.map +1 -1
  17. package/dist/audio_mixer.js +11 -4
  18. package/dist/audio_mixer.js.map +1 -1
  19. package/dist/audio_resampler.cjs +20 -12
  20. package/dist/audio_resampler.cjs.map +1 -1
  21. package/dist/audio_resampler.d.cts +6 -6
  22. package/dist/audio_resampler.d.ts +6 -6
  23. package/dist/audio_resampler.d.ts.map +1 -1
  24. package/dist/audio_resampler.js +12 -4
  25. package/dist/audio_resampler.js.map +1 -1
  26. package/dist/audio_source.cjs +11 -7
  27. package/dist/audio_source.cjs.map +1 -1
  28. package/dist/audio_source.d.cts +1 -7
  29. package/dist/audio_source.d.ts +1 -7
  30. package/dist/audio_source.d.ts.map +1 -1
  31. package/dist/audio_source.js +8 -3
  32. package/dist/audio_source.js.map +1 -1
  33. package/dist/audio_stream.cjs +17 -5
  34. package/dist/audio_stream.cjs.map +1 -1
  35. package/dist/audio_stream.d.cts +1 -14
  36. package/dist/audio_stream.d.ts +1 -14
  37. package/dist/audio_stream.d.ts.map +1 -1
  38. package/dist/audio_stream.js +16 -4
  39. package/dist/audio_stream.js.map +1 -1
  40. package/dist/data_streams/index.d.cts +2 -10
  41. package/dist/data_streams/index.d.ts +2 -10
  42. package/dist/data_streams/stream_reader.cjs +8 -0
  43. package/dist/data_streams/stream_reader.cjs.map +1 -1
  44. package/dist/data_streams/stream_reader.d.cts +2 -10
  45. package/dist/data_streams/stream_reader.d.ts +2 -10
  46. package/dist/data_streams/stream_reader.d.ts.map +1 -1
  47. package/dist/data_streams/stream_reader.js +8 -0
  48. package/dist/data_streams/stream_reader.js.map +1 -1
  49. package/dist/data_streams/stream_writer.d.cts +2 -10
  50. package/dist/data_streams/stream_writer.d.ts +2 -10
  51. package/dist/data_streams/types.cjs.map +1 -1
  52. package/dist/data_streams/types.d.cts +2 -10
  53. package/dist/data_streams/types.d.ts +2 -10
  54. package/dist/data_streams/types.d.ts.map +1 -1
  55. package/dist/e2ee.cjs +21 -21
  56. package/dist/e2ee.cjs.map +1 -1
  57. package/dist/e2ee.d.cts +1 -2
  58. package/dist/e2ee.d.ts +1 -2
  59. package/dist/e2ee.d.ts.map +1 -1
  60. package/dist/e2ee.js +2 -2
  61. package/dist/e2ee.js.map +1 -1
  62. package/dist/ffi_client.cjs +11 -12
  63. package/dist/ffi_client.cjs.map +1 -1
  64. package/dist/ffi_client.d.cts +3 -16
  65. package/dist/ffi_client.d.ts +3 -16
  66. package/dist/ffi_client.d.ts.map +1 -1
  67. package/dist/ffi_client.js +5 -3
  68. package/dist/ffi_client.js.map +1 -1
  69. package/dist/frame_processor.cjs +13 -2
  70. package/dist/frame_processor.cjs.map +1 -1
  71. package/dist/frame_processor.d.cts +5 -8
  72. package/dist/frame_processor.d.ts +5 -8
  73. package/dist/frame_processor.d.ts.map +1 -1
  74. package/dist/frame_processor.js +10 -1
  75. package/dist/frame_processor.js.map +1 -1
  76. package/dist/index.cjs +25 -23
  77. package/dist/index.cjs.map +1 -1
  78. package/dist/index.d.cts +3 -16
  79. package/dist/index.d.ts +3 -16
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +9 -7
  82. package/dist/index.js.map +1 -1
  83. package/dist/log.cjs +1 -10
  84. package/dist/log.cjs.map +1 -1
  85. package/dist/log.d.cts +4 -0
  86. package/dist/log.d.ts +4 -0
  87. package/dist/log.d.ts.map +1 -1
  88. package/dist/log.js +1 -10
  89. package/dist/log.js.map +1 -1
  90. package/dist/participant.cjs +38 -38
  91. package/dist/participant.cjs.map +1 -1
  92. package/dist/participant.d.cts +2 -15
  93. package/dist/participant.d.ts +2 -15
  94. package/dist/participant.d.ts.map +1 -1
  95. package/dist/participant.js +12 -12
  96. package/dist/participant.js.map +1 -1
  97. package/dist/room.cjs +48 -30
  98. package/dist/room.cjs.map +1 -1
  99. package/dist/room.d.cts +11 -16
  100. package/dist/room.d.ts +11 -16
  101. package/dist/room.d.ts.map +1 -1
  102. package/dist/room.js +44 -26
  103. package/dist/room.js.map +1 -1
  104. package/dist/rpc.cjs.map +1 -1
  105. package/dist/rpc.d.cts +1 -2
  106. package/dist/rpc.d.ts +1 -2
  107. package/dist/rpc.d.ts.map +1 -1
  108. package/dist/rpc.js.map +1 -1
  109. package/dist/{stream_reader-Ch2zvjU3.d.cts → stream_reader-CuG4b8Y-.d.cts} +1 -1
  110. package/dist/{stream_reader-DRyR29vo.d.ts → stream_reader-CuG4b8Y-.d.ts} +1 -1
  111. package/dist/track.cjs +3 -3
  112. package/dist/track.cjs.map +1 -1
  113. package/dist/track.d.cts +1 -14
  114. package/dist/track.d.ts +1 -14
  115. package/dist/track.d.ts.map +1 -1
  116. package/dist/track.js +1 -1
  117. package/dist/track.js.map +1 -1
  118. package/dist/track_publication.cjs +4 -4
  119. package/dist/track_publication.cjs.map +1 -1
  120. package/dist/track_publication.d.cts +1 -14
  121. package/dist/track_publication.d.ts +1 -14
  122. package/dist/track_publication.d.ts.map +1 -1
  123. package/dist/track_publication.js +2 -2
  124. package/dist/track_publication.js.map +1 -1
  125. package/dist/version.cjs +1 -1
  126. package/dist/version.cjs.map +1 -1
  127. package/dist/version.d.cts +1 -1
  128. package/dist/version.d.ts +1 -1
  129. package/dist/version.js +1 -1
  130. package/dist/version.js.map +1 -1
  131. package/dist/video_frame.cjs +42 -42
  132. package/dist/video_frame.cjs.map +1 -1
  133. package/dist/video_frame.d.cts +1 -6
  134. package/dist/video_frame.d.ts +1 -6
  135. package/dist/video_frame.d.ts.map +1 -1
  136. package/dist/video_frame.js +2 -2
  137. package/dist/video_frame.js.map +1 -1
  138. package/dist/video_source.cjs +5 -5
  139. package/dist/video_source.cjs.map +1 -1
  140. package/dist/video_source.d.cts +1 -14
  141. package/dist/video_source.d.ts +1 -14
  142. package/dist/video_source.d.ts.map +1 -1
  143. package/dist/video_source.js +2 -2
  144. package/dist/video_source.js.map +1 -1
  145. package/dist/video_stream.cjs +12 -4
  146. package/dist/video_stream.cjs.map +1 -1
  147. package/dist/video_stream.d.cts +1 -14
  148. package/dist/video_stream.d.ts +1 -14
  149. package/dist/video_stream.d.ts.map +1 -1
  150. package/dist/video_stream.js +10 -2
  151. package/dist/video_stream.js.map +1 -1
  152. package/package.json +9 -35
  153. package/src/audio_filter.ts +2 -2
  154. package/src/audio_frame.ts +26 -7
  155. package/src/audio_mixer.ts +15 -4
  156. package/src/audio_resampler.ts +14 -4
  157. package/src/audio_source.ts +13 -5
  158. package/src/audio_stream.ts +21 -5
  159. package/src/data_streams/stream_reader.ts +19 -1
  160. package/src/data_streams/types.ts +1 -1
  161. package/src/e2ee.ts +3 -3
  162. package/src/ffi_client.ts +7 -5
  163. package/src/frame_processor.ts +21 -0
  164. package/src/index.ts +6 -5
  165. package/src/log.ts +14 -10
  166. package/src/participant.ts +17 -17
  167. package/src/room.ts +65 -38
  168. package/src/rpc.ts +1 -1
  169. package/src/tests/e2e.test.ts +517 -0
  170. package/src/track.ts +4 -4
  171. package/src/track_publication.ts +6 -6
  172. package/src/version.ts +1 -1
  173. package/src/video_frame.ts +3 -3
  174. package/src/video_source.ts +3 -3
  175. package/src/video_stream.ts +15 -3
  176. package/Cargo.toml +0 -25
  177. package/build.rs +0 -9
  178. package/dist/napi/native.cjs +0 -301
  179. package/dist/napi/native.d.cjs +0 -17
  180. package/dist/napi/native.d.cjs.map +0 -1
  181. package/dist/napi/native.d.d.cts +0 -21
  182. package/dist/napi/native.d.d.ts +0 -21
  183. package/dist/napi/native.d.js +0 -1
  184. package/dist/napi/native.d.js.map +0 -1
  185. package/dist/napi/native.d.ts +0 -19
  186. package/dist/napi/native.js +0 -15
  187. package/dist/native.cjs +0 -301
  188. package/dist/native.d.ts +0 -19
  189. package/dist/native.js +0 -15
  190. package/dist/proto/audio_frame_pb.cjs +0 -1357
  191. package/dist/proto/audio_frame_pb.cjs.map +0 -1
  192. package/dist/proto/audio_frame_pb.d.cts +0 -1183
  193. package/dist/proto/audio_frame_pb.d.ts +0 -1183
  194. package/dist/proto/audio_frame_pb.d.ts.map +0 -1
  195. package/dist/proto/audio_frame_pb.js +0 -1283
  196. package/dist/proto/audio_frame_pb.js.map +0 -1
  197. package/dist/proto/data_stream_pb.cjs +0 -1638
  198. package/dist/proto/data_stream_pb.cjs.map +0 -1
  199. package/dist/proto/data_stream_pb.d.cts +0 -1449
  200. package/dist/proto/data_stream_pb.d.ts +0 -1449
  201. package/dist/proto/data_stream_pb.d.ts.map +0 -1
  202. package/dist/proto/data_stream_pb.js +0 -1559
  203. package/dist/proto/data_stream_pb.js.map +0 -1
  204. package/dist/proto/e2ee_pb.cjs +0 -746
  205. package/dist/proto/e2ee_pb.cjs.map +0 -1
  206. package/dist/proto/e2ee_pb.d.cts +0 -653
  207. package/dist/proto/e2ee_pb.d.ts +0 -653
  208. package/dist/proto/e2ee_pb.d.ts.map +0 -1
  209. package/dist/proto/e2ee_pb.js +0 -696
  210. package/dist/proto/e2ee_pb.js.map +0 -1
  211. package/dist/proto/ffi_pb.cjs +0 -477
  212. package/dist/proto/ffi_pb.cjs.map +0 -1
  213. package/dist/proto/ffi_pb.d.cts +0 -1321
  214. package/dist/proto/ffi_pb.d.ts +0 -1321
  215. package/dist/proto/ffi_pb.d.ts.map +0 -1
  216. package/dist/proto/ffi_pb.js +0 -444
  217. package/dist/proto/ffi_pb.js.map +0 -1
  218. package/dist/proto/handle_pb.cjs +0 -53
  219. package/dist/proto/handle_pb.cjs.map +0 -1
  220. package/dist/proto/handle_pb.d.cts +0 -31
  221. package/dist/proto/handle_pb.d.ts +0 -31
  222. package/dist/proto/handle_pb.d.ts.map +0 -1
  223. package/dist/proto/handle_pb.js +0 -29
  224. package/dist/proto/handle_pb.js.map +0 -1
  225. package/dist/proto/participant_pb.cjs +0 -173
  226. package/dist/proto/participant_pb.cjs.map +0 -1
  227. package/dist/proto/participant_pb.d.cts +0 -218
  228. package/dist/proto/participant_pb.d.ts +0 -218
  229. package/dist/proto/participant_pb.d.ts.map +0 -1
  230. package/dist/proto/participant_pb.js +0 -145
  231. package/dist/proto/participant_pb.js.map +0 -1
  232. package/dist/proto/room_pb.cjs +0 -3374
  233. package/dist/proto/room_pb.cjs.map +0 -1
  234. package/dist/proto/room_pb.d.cts +0 -3028
  235. package/dist/proto/room_pb.d.ts +0 -3028
  236. package/dist/proto/room_pb.d.ts.map +0 -1
  237. package/dist/proto/room_pb.js +0 -3232
  238. package/dist/proto/room_pb.js.map +0 -1
  239. package/dist/proto/rpc_pb.cjs +0 -328
  240. package/dist/proto/rpc_pb.cjs.map +0 -1
  241. package/dist/proto/rpc_pb.d.cts +0 -267
  242. package/dist/proto/rpc_pb.d.ts +0 -267
  243. package/dist/proto/rpc_pb.d.ts.map +0 -1
  244. package/dist/proto/rpc_pb.js +0 -294
  245. package/dist/proto/rpc_pb.js.map +0 -1
  246. package/dist/proto/stats_pb.cjs +0 -1370
  247. package/dist/proto/stats_pb.cjs.map +0 -1
  248. package/dist/proto/stats_pb.d.cts +0 -1764
  249. package/dist/proto/stats_pb.d.ts +0 -1764
  250. package/dist/proto/stats_pb.d.ts.map +0 -1
  251. package/dist/proto/stats_pb.js +0 -1300
  252. package/dist/proto/stats_pb.js.map +0 -1
  253. package/dist/proto/track_pb.cjs +0 -630
  254. package/dist/proto/track_pb.cjs.map +0 -1
  255. package/dist/proto/track_pb.d.cts +0 -542
  256. package/dist/proto/track_pb.d.ts +0 -542
  257. package/dist/proto/track_pb.d.ts.map +0 -1
  258. package/dist/proto/track_pb.js +0 -584
  259. package/dist/proto/track_pb.js.map +0 -1
  260. package/dist/proto/track_publication_pb.cjs +0 -194
  261. package/dist/proto/track_publication_pb.cjs.map +0 -1
  262. package/dist/proto/track_publication_pb.d.cts +0 -135
  263. package/dist/proto/track_publication_pb.d.ts +0 -135
  264. package/dist/proto/track_publication_pb.d.ts.map +0 -1
  265. package/dist/proto/track_publication_pb.js +0 -164
  266. package/dist/proto/track_publication_pb.js.map +0 -1
  267. package/dist/proto/video_frame_pb.cjs +0 -723
  268. package/dist/proto/video_frame_pb.cjs.map +0 -1
  269. package/dist/proto/video_frame_pb.d.cts +0 -667
  270. package/dist/proto/video_frame_pb.d.ts +0 -667
  271. package/dist/proto/video_frame_pb.d.ts.map +0 -1
  272. package/dist/proto/video_frame_pb.js +0 -673
  273. package/dist/proto/video_frame_pb.js.map +0 -1
  274. package/src/lib.rs +0 -9
  275. package/src/napi/native.cjs +0 -301
  276. package/src/napi/native.d.ts +0 -19
  277. package/src/napi/native.js +0 -15
  278. package/src/nodejs.rs +0 -134
  279. package/src/proto/audio_frame_pb.ts +0 -2270
  280. package/src/proto/data_stream_pb.ts +0 -2674
  281. package/src/proto/e2ee_pb.ts +0 -1231
  282. package/src/proto/ffi_pb.ts +0 -1700
  283. package/src/proto/handle_pb.ts +0 -69
  284. package/src/proto/participant_pb.ts +0 -351
  285. package/src/proto/room_pb.ts +0 -5661
  286. package/src/proto/rpc_pb.ts +0 -539
  287. package/src/proto/stats_pb.ts +0 -3050
  288. package/src/proto/track_pb.ts +0 -1040
  289. package/src/proto/track_publication_pb.ts +0 -284
  290. package/src/proto/video_frame_pb.ts +0 -1236
@@ -1,673 +0,0 @@
1
- import { Message, proto2 } from "@bufbuild/protobuf";
2
- import { TrackSource } from "./track_pb.js";
3
- import { FfiOwnedHandle } from "./handle_pb.js";
4
- var VideoCodec = /* @__PURE__ */ ((VideoCodec2) => {
5
- VideoCodec2[VideoCodec2["VP8"] = 0] = "VP8";
6
- VideoCodec2[VideoCodec2["H264"] = 1] = "H264";
7
- VideoCodec2[VideoCodec2["AV1"] = 2] = "AV1";
8
- VideoCodec2[VideoCodec2["VP9"] = 3] = "VP9";
9
- VideoCodec2[VideoCodec2["H265"] = 4] = "H265";
10
- return VideoCodec2;
11
- })(VideoCodec || {});
12
- proto2.util.setEnumType(VideoCodec, "livekit.proto.VideoCodec", [
13
- { no: 0, name: "VP8" },
14
- { no: 1, name: "H264" },
15
- { no: 2, name: "AV1" },
16
- { no: 3, name: "VP9" },
17
- { no: 4, name: "H265" }
18
- ]);
19
- var VideoRotation = /* @__PURE__ */ ((VideoRotation2) => {
20
- VideoRotation2[VideoRotation2["VIDEO_ROTATION_0"] = 0] = "VIDEO_ROTATION_0";
21
- VideoRotation2[VideoRotation2["VIDEO_ROTATION_90"] = 1] = "VIDEO_ROTATION_90";
22
- VideoRotation2[VideoRotation2["VIDEO_ROTATION_180"] = 2] = "VIDEO_ROTATION_180";
23
- VideoRotation2[VideoRotation2["VIDEO_ROTATION_270"] = 3] = "VIDEO_ROTATION_270";
24
- return VideoRotation2;
25
- })(VideoRotation || {});
26
- proto2.util.setEnumType(VideoRotation, "livekit.proto.VideoRotation", [
27
- { no: 0, name: "VIDEO_ROTATION_0" },
28
- { no: 1, name: "VIDEO_ROTATION_90" },
29
- { no: 2, name: "VIDEO_ROTATION_180" },
30
- { no: 3, name: "VIDEO_ROTATION_270" }
31
- ]);
32
- var VideoBufferType = /* @__PURE__ */ ((VideoBufferType2) => {
33
- VideoBufferType2[VideoBufferType2["RGBA"] = 0] = "RGBA";
34
- VideoBufferType2[VideoBufferType2["ABGR"] = 1] = "ABGR";
35
- VideoBufferType2[VideoBufferType2["ARGB"] = 2] = "ARGB";
36
- VideoBufferType2[VideoBufferType2["BGRA"] = 3] = "BGRA";
37
- VideoBufferType2[VideoBufferType2["RGB24"] = 4] = "RGB24";
38
- VideoBufferType2[VideoBufferType2["I420"] = 5] = "I420";
39
- VideoBufferType2[VideoBufferType2["I420A"] = 6] = "I420A";
40
- VideoBufferType2[VideoBufferType2["I422"] = 7] = "I422";
41
- VideoBufferType2[VideoBufferType2["I444"] = 8] = "I444";
42
- VideoBufferType2[VideoBufferType2["I010"] = 9] = "I010";
43
- VideoBufferType2[VideoBufferType2["NV12"] = 10] = "NV12";
44
- return VideoBufferType2;
45
- })(VideoBufferType || {});
46
- proto2.util.setEnumType(VideoBufferType, "livekit.proto.VideoBufferType", [
47
- { no: 0, name: "RGBA" },
48
- { no: 1, name: "ABGR" },
49
- { no: 2, name: "ARGB" },
50
- { no: 3, name: "BGRA" },
51
- { no: 4, name: "RGB24" },
52
- { no: 5, name: "I420" },
53
- { no: 6, name: "I420A" },
54
- { no: 7, name: "I422" },
55
- { no: 8, name: "I444" },
56
- { no: 9, name: "I010" },
57
- { no: 10, name: "NV12" }
58
- ]);
59
- var VideoStreamType = /* @__PURE__ */ ((VideoStreamType2) => {
60
- VideoStreamType2[VideoStreamType2["VIDEO_STREAM_NATIVE"] = 0] = "VIDEO_STREAM_NATIVE";
61
- VideoStreamType2[VideoStreamType2["VIDEO_STREAM_WEBGL"] = 1] = "VIDEO_STREAM_WEBGL";
62
- VideoStreamType2[VideoStreamType2["VIDEO_STREAM_HTML"] = 2] = "VIDEO_STREAM_HTML";
63
- return VideoStreamType2;
64
- })(VideoStreamType || {});
65
- proto2.util.setEnumType(VideoStreamType, "livekit.proto.VideoStreamType", [
66
- { no: 0, name: "VIDEO_STREAM_NATIVE" },
67
- { no: 1, name: "VIDEO_STREAM_WEBGL" },
68
- { no: 2, name: "VIDEO_STREAM_HTML" }
69
- ]);
70
- var VideoSourceType = /* @__PURE__ */ ((VideoSourceType2) => {
71
- VideoSourceType2[VideoSourceType2["VIDEO_SOURCE_NATIVE"] = 0] = "VIDEO_SOURCE_NATIVE";
72
- return VideoSourceType2;
73
- })(VideoSourceType || {});
74
- proto2.util.setEnumType(VideoSourceType, "livekit.proto.VideoSourceType", [
75
- { no: 0, name: "VIDEO_SOURCE_NATIVE" }
76
- ]);
77
- const _NewVideoStreamRequest = class _NewVideoStreamRequest extends Message {
78
- constructor(data) {
79
- super();
80
- proto2.util.initPartial(data, this);
81
- }
82
- static fromBinary(bytes, options) {
83
- return new _NewVideoStreamRequest().fromBinary(bytes, options);
84
- }
85
- static fromJson(jsonValue, options) {
86
- return new _NewVideoStreamRequest().fromJson(jsonValue, options);
87
- }
88
- static fromJsonString(jsonString, options) {
89
- return new _NewVideoStreamRequest().fromJsonString(jsonString, options);
90
- }
91
- static equals(a, b) {
92
- return proto2.util.equals(_NewVideoStreamRequest, a, b);
93
- }
94
- };
95
- _NewVideoStreamRequest.runtime = proto2;
96
- _NewVideoStreamRequest.typeName = "livekit.proto.NewVideoStreamRequest";
97
- _NewVideoStreamRequest.fields = proto2.util.newFieldList(() => [
98
- { no: 1, name: "track_handle", kind: "scalar", T: 4, req: true },
99
- { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType), req: true },
100
- { no: 3, name: "format", kind: "enum", T: proto2.getEnumType(VideoBufferType), opt: true },
101
- { no: 4, name: "normalize_stride", kind: "scalar", T: 8, opt: true }
102
- ]);
103
- let NewVideoStreamRequest = _NewVideoStreamRequest;
104
- const _NewVideoStreamResponse = class _NewVideoStreamResponse extends Message {
105
- constructor(data) {
106
- super();
107
- proto2.util.initPartial(data, this);
108
- }
109
- static fromBinary(bytes, options) {
110
- return new _NewVideoStreamResponse().fromBinary(bytes, options);
111
- }
112
- static fromJson(jsonValue, options) {
113
- return new _NewVideoStreamResponse().fromJson(jsonValue, options);
114
- }
115
- static fromJsonString(jsonString, options) {
116
- return new _NewVideoStreamResponse().fromJsonString(jsonString, options);
117
- }
118
- static equals(a, b) {
119
- return proto2.util.equals(_NewVideoStreamResponse, a, b);
120
- }
121
- };
122
- _NewVideoStreamResponse.runtime = proto2;
123
- _NewVideoStreamResponse.typeName = "livekit.proto.NewVideoStreamResponse";
124
- _NewVideoStreamResponse.fields = proto2.util.newFieldList(() => [
125
- { no: 1, name: "stream", kind: "message", T: OwnedVideoStream, req: true }
126
- ]);
127
- let NewVideoStreamResponse = _NewVideoStreamResponse;
128
- const _VideoStreamFromParticipantRequest = class _VideoStreamFromParticipantRequest extends Message {
129
- constructor(data) {
130
- super();
131
- proto2.util.initPartial(data, this);
132
- }
133
- static fromBinary(bytes, options) {
134
- return new _VideoStreamFromParticipantRequest().fromBinary(bytes, options);
135
- }
136
- static fromJson(jsonValue, options) {
137
- return new _VideoStreamFromParticipantRequest().fromJson(jsonValue, options);
138
- }
139
- static fromJsonString(jsonString, options) {
140
- return new _VideoStreamFromParticipantRequest().fromJsonString(jsonString, options);
141
- }
142
- static equals(a, b) {
143
- return proto2.util.equals(_VideoStreamFromParticipantRequest, a, b);
144
- }
145
- };
146
- _VideoStreamFromParticipantRequest.runtime = proto2;
147
- _VideoStreamFromParticipantRequest.typeName = "livekit.proto.VideoStreamFromParticipantRequest";
148
- _VideoStreamFromParticipantRequest.fields = proto2.util.newFieldList(() => [
149
- { no: 1, name: "participant_handle", kind: "scalar", T: 4, req: true },
150
- { no: 2, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType), req: true },
151
- { no: 3, name: "track_source", kind: "enum", T: proto2.getEnumType(TrackSource), req: true },
152
- { no: 4, name: "format", kind: "enum", T: proto2.getEnumType(VideoBufferType), opt: true },
153
- { no: 5, name: "normalize_stride", kind: "scalar", T: 8, opt: true }
154
- ]);
155
- let VideoStreamFromParticipantRequest = _VideoStreamFromParticipantRequest;
156
- const _VideoStreamFromParticipantResponse = class _VideoStreamFromParticipantResponse extends Message {
157
- constructor(data) {
158
- super();
159
- proto2.util.initPartial(data, this);
160
- }
161
- static fromBinary(bytes, options) {
162
- return new _VideoStreamFromParticipantResponse().fromBinary(bytes, options);
163
- }
164
- static fromJson(jsonValue, options) {
165
- return new _VideoStreamFromParticipantResponse().fromJson(jsonValue, options);
166
- }
167
- static fromJsonString(jsonString, options) {
168
- return new _VideoStreamFromParticipantResponse().fromJsonString(jsonString, options);
169
- }
170
- static equals(a, b) {
171
- return proto2.util.equals(_VideoStreamFromParticipantResponse, a, b);
172
- }
173
- };
174
- _VideoStreamFromParticipantResponse.runtime = proto2;
175
- _VideoStreamFromParticipantResponse.typeName = "livekit.proto.VideoStreamFromParticipantResponse";
176
- _VideoStreamFromParticipantResponse.fields = proto2.util.newFieldList(() => [
177
- { no: 1, name: "stream", kind: "message", T: OwnedVideoStream, req: true }
178
- ]);
179
- let VideoStreamFromParticipantResponse = _VideoStreamFromParticipantResponse;
180
- const _NewVideoSourceRequest = class _NewVideoSourceRequest extends Message {
181
- constructor(data) {
182
- super();
183
- proto2.util.initPartial(data, this);
184
- }
185
- static fromBinary(bytes, options) {
186
- return new _NewVideoSourceRequest().fromBinary(bytes, options);
187
- }
188
- static fromJson(jsonValue, options) {
189
- return new _NewVideoSourceRequest().fromJson(jsonValue, options);
190
- }
191
- static fromJsonString(jsonString, options) {
192
- return new _NewVideoSourceRequest().fromJsonString(jsonString, options);
193
- }
194
- static equals(a, b) {
195
- return proto2.util.equals(_NewVideoSourceRequest, a, b);
196
- }
197
- };
198
- _NewVideoSourceRequest.runtime = proto2;
199
- _NewVideoSourceRequest.typeName = "livekit.proto.NewVideoSourceRequest";
200
- _NewVideoSourceRequest.fields = proto2.util.newFieldList(() => [
201
- { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoSourceType), req: true },
202
- { no: 2, name: "resolution", kind: "message", T: VideoSourceResolution, req: true }
203
- ]);
204
- let NewVideoSourceRequest = _NewVideoSourceRequest;
205
- const _NewVideoSourceResponse = class _NewVideoSourceResponse extends Message {
206
- constructor(data) {
207
- super();
208
- proto2.util.initPartial(data, this);
209
- }
210
- static fromBinary(bytes, options) {
211
- return new _NewVideoSourceResponse().fromBinary(bytes, options);
212
- }
213
- static fromJson(jsonValue, options) {
214
- return new _NewVideoSourceResponse().fromJson(jsonValue, options);
215
- }
216
- static fromJsonString(jsonString, options) {
217
- return new _NewVideoSourceResponse().fromJsonString(jsonString, options);
218
- }
219
- static equals(a, b) {
220
- return proto2.util.equals(_NewVideoSourceResponse, a, b);
221
- }
222
- };
223
- _NewVideoSourceResponse.runtime = proto2;
224
- _NewVideoSourceResponse.typeName = "livekit.proto.NewVideoSourceResponse";
225
- _NewVideoSourceResponse.fields = proto2.util.newFieldList(() => [
226
- { no: 1, name: "source", kind: "message", T: OwnedVideoSource, req: true }
227
- ]);
228
- let NewVideoSourceResponse = _NewVideoSourceResponse;
229
- const _CaptureVideoFrameRequest = class _CaptureVideoFrameRequest extends Message {
230
- constructor(data) {
231
- super();
232
- proto2.util.initPartial(data, this);
233
- }
234
- static fromBinary(bytes, options) {
235
- return new _CaptureVideoFrameRequest().fromBinary(bytes, options);
236
- }
237
- static fromJson(jsonValue, options) {
238
- return new _CaptureVideoFrameRequest().fromJson(jsonValue, options);
239
- }
240
- static fromJsonString(jsonString, options) {
241
- return new _CaptureVideoFrameRequest().fromJsonString(jsonString, options);
242
- }
243
- static equals(a, b) {
244
- return proto2.util.equals(_CaptureVideoFrameRequest, a, b);
245
- }
246
- };
247
- _CaptureVideoFrameRequest.runtime = proto2;
248
- _CaptureVideoFrameRequest.typeName = "livekit.proto.CaptureVideoFrameRequest";
249
- _CaptureVideoFrameRequest.fields = proto2.util.newFieldList(() => [
250
- { no: 1, name: "source_handle", kind: "scalar", T: 4, req: true },
251
- { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo, req: true },
252
- { no: 3, name: "timestamp_us", kind: "scalar", T: 3, req: true },
253
- { no: 4, name: "rotation", kind: "enum", T: proto2.getEnumType(VideoRotation), req: true }
254
- ]);
255
- let CaptureVideoFrameRequest = _CaptureVideoFrameRequest;
256
- const _CaptureVideoFrameResponse = class _CaptureVideoFrameResponse extends Message {
257
- constructor(data) {
258
- super();
259
- proto2.util.initPartial(data, this);
260
- }
261
- static fromBinary(bytes, options) {
262
- return new _CaptureVideoFrameResponse().fromBinary(bytes, options);
263
- }
264
- static fromJson(jsonValue, options) {
265
- return new _CaptureVideoFrameResponse().fromJson(jsonValue, options);
266
- }
267
- static fromJsonString(jsonString, options) {
268
- return new _CaptureVideoFrameResponse().fromJsonString(jsonString, options);
269
- }
270
- static equals(a, b) {
271
- return proto2.util.equals(_CaptureVideoFrameResponse, a, b);
272
- }
273
- };
274
- _CaptureVideoFrameResponse.runtime = proto2;
275
- _CaptureVideoFrameResponse.typeName = "livekit.proto.CaptureVideoFrameResponse";
276
- _CaptureVideoFrameResponse.fields = proto2.util.newFieldList(() => []);
277
- let CaptureVideoFrameResponse = _CaptureVideoFrameResponse;
278
- const _VideoConvertRequest = class _VideoConvertRequest extends Message {
279
- constructor(data) {
280
- super();
281
- proto2.util.initPartial(data, this);
282
- }
283
- static fromBinary(bytes, options) {
284
- return new _VideoConvertRequest().fromBinary(bytes, options);
285
- }
286
- static fromJson(jsonValue, options) {
287
- return new _VideoConvertRequest().fromJson(jsonValue, options);
288
- }
289
- static fromJsonString(jsonString, options) {
290
- return new _VideoConvertRequest().fromJsonString(jsonString, options);
291
- }
292
- static equals(a, b) {
293
- return proto2.util.equals(_VideoConvertRequest, a, b);
294
- }
295
- };
296
- _VideoConvertRequest.runtime = proto2;
297
- _VideoConvertRequest.typeName = "livekit.proto.VideoConvertRequest";
298
- _VideoConvertRequest.fields = proto2.util.newFieldList(() => [
299
- { no: 1, name: "flip_y", kind: "scalar", T: 8, opt: true },
300
- { no: 2, name: "buffer", kind: "message", T: VideoBufferInfo, req: true },
301
- { no: 3, name: "dst_type", kind: "enum", T: proto2.getEnumType(VideoBufferType), req: true }
302
- ]);
303
- let VideoConvertRequest = _VideoConvertRequest;
304
- const _VideoConvertResponse = class _VideoConvertResponse extends Message {
305
- constructor(data) {
306
- super();
307
- /**
308
- * @generated from oneof livekit.proto.VideoConvertResponse.message
309
- */
310
- this.message = { case: void 0 };
311
- proto2.util.initPartial(data, this);
312
- }
313
- static fromBinary(bytes, options) {
314
- return new _VideoConvertResponse().fromBinary(bytes, options);
315
- }
316
- static fromJson(jsonValue, options) {
317
- return new _VideoConvertResponse().fromJson(jsonValue, options);
318
- }
319
- static fromJsonString(jsonString, options) {
320
- return new _VideoConvertResponse().fromJsonString(jsonString, options);
321
- }
322
- static equals(a, b) {
323
- return proto2.util.equals(_VideoConvertResponse, a, b);
324
- }
325
- };
326
- _VideoConvertResponse.runtime = proto2;
327
- _VideoConvertResponse.typeName = "livekit.proto.VideoConvertResponse";
328
- _VideoConvertResponse.fields = proto2.util.newFieldList(() => [
329
- { no: 1, name: "error", kind: "scalar", T: 9, oneof: "message" },
330
- { no: 2, name: "buffer", kind: "message", T: OwnedVideoBuffer, oneof: "message" }
331
- ]);
332
- let VideoConvertResponse = _VideoConvertResponse;
333
- const _VideoResolution = class _VideoResolution extends Message {
334
- constructor(data) {
335
- super();
336
- proto2.util.initPartial(data, this);
337
- }
338
- static fromBinary(bytes, options) {
339
- return new _VideoResolution().fromBinary(bytes, options);
340
- }
341
- static fromJson(jsonValue, options) {
342
- return new _VideoResolution().fromJson(jsonValue, options);
343
- }
344
- static fromJsonString(jsonString, options) {
345
- return new _VideoResolution().fromJsonString(jsonString, options);
346
- }
347
- static equals(a, b) {
348
- return proto2.util.equals(_VideoResolution, a, b);
349
- }
350
- };
351
- _VideoResolution.runtime = proto2;
352
- _VideoResolution.typeName = "livekit.proto.VideoResolution";
353
- _VideoResolution.fields = proto2.util.newFieldList(() => [
354
- { no: 1, name: "width", kind: "scalar", T: 13, req: true },
355
- { no: 2, name: "height", kind: "scalar", T: 13, req: true },
356
- { no: 3, name: "frame_rate", kind: "scalar", T: 1, req: true }
357
- ]);
358
- let VideoResolution = _VideoResolution;
359
- const _VideoBufferInfo = class _VideoBufferInfo extends Message {
360
- constructor(data) {
361
- super();
362
- /**
363
- * @generated from field: repeated livekit.proto.VideoBufferInfo.ComponentInfo components = 7;
364
- */
365
- this.components = [];
366
- proto2.util.initPartial(data, this);
367
- }
368
- static fromBinary(bytes, options) {
369
- return new _VideoBufferInfo().fromBinary(bytes, options);
370
- }
371
- static fromJson(jsonValue, options) {
372
- return new _VideoBufferInfo().fromJson(jsonValue, options);
373
- }
374
- static fromJsonString(jsonString, options) {
375
- return new _VideoBufferInfo().fromJsonString(jsonString, options);
376
- }
377
- static equals(a, b) {
378
- return proto2.util.equals(_VideoBufferInfo, a, b);
379
- }
380
- };
381
- _VideoBufferInfo.runtime = proto2;
382
- _VideoBufferInfo.typeName = "livekit.proto.VideoBufferInfo";
383
- _VideoBufferInfo.fields = proto2.util.newFieldList(() => [
384
- { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoBufferType), req: true },
385
- { no: 2, name: "width", kind: "scalar", T: 13, req: true },
386
- { no: 3, name: "height", kind: "scalar", T: 13, req: true },
387
- { no: 4, name: "data_ptr", kind: "scalar", T: 4, req: true },
388
- { no: 6, name: "stride", kind: "scalar", T: 13, opt: true },
389
- { no: 7, name: "components", kind: "message", T: VideoBufferInfo_ComponentInfo, repeated: true }
390
- ]);
391
- let VideoBufferInfo = _VideoBufferInfo;
392
- const _VideoBufferInfo_ComponentInfo = class _VideoBufferInfo_ComponentInfo extends Message {
393
- constructor(data) {
394
- super();
395
- proto2.util.initPartial(data, this);
396
- }
397
- static fromBinary(bytes, options) {
398
- return new _VideoBufferInfo_ComponentInfo().fromBinary(bytes, options);
399
- }
400
- static fromJson(jsonValue, options) {
401
- return new _VideoBufferInfo_ComponentInfo().fromJson(jsonValue, options);
402
- }
403
- static fromJsonString(jsonString, options) {
404
- return new _VideoBufferInfo_ComponentInfo().fromJsonString(jsonString, options);
405
- }
406
- static equals(a, b) {
407
- return proto2.util.equals(_VideoBufferInfo_ComponentInfo, a, b);
408
- }
409
- };
410
- _VideoBufferInfo_ComponentInfo.runtime = proto2;
411
- _VideoBufferInfo_ComponentInfo.typeName = "livekit.proto.VideoBufferInfo.ComponentInfo";
412
- _VideoBufferInfo_ComponentInfo.fields = proto2.util.newFieldList(() => [
413
- { no: 1, name: "data_ptr", kind: "scalar", T: 4, req: true },
414
- { no: 2, name: "stride", kind: "scalar", T: 13, req: true },
415
- { no: 3, name: "size", kind: "scalar", T: 13, req: true }
416
- ]);
417
- let VideoBufferInfo_ComponentInfo = _VideoBufferInfo_ComponentInfo;
418
- const _OwnedVideoBuffer = class _OwnedVideoBuffer extends Message {
419
- constructor(data) {
420
- super();
421
- proto2.util.initPartial(data, this);
422
- }
423
- static fromBinary(bytes, options) {
424
- return new _OwnedVideoBuffer().fromBinary(bytes, options);
425
- }
426
- static fromJson(jsonValue, options) {
427
- return new _OwnedVideoBuffer().fromJson(jsonValue, options);
428
- }
429
- static fromJsonString(jsonString, options) {
430
- return new _OwnedVideoBuffer().fromJsonString(jsonString, options);
431
- }
432
- static equals(a, b) {
433
- return proto2.util.equals(_OwnedVideoBuffer, a, b);
434
- }
435
- };
436
- _OwnedVideoBuffer.runtime = proto2;
437
- _OwnedVideoBuffer.typeName = "livekit.proto.OwnedVideoBuffer";
438
- _OwnedVideoBuffer.fields = proto2.util.newFieldList(() => [
439
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
440
- { no: 2, name: "info", kind: "message", T: VideoBufferInfo, req: true }
441
- ]);
442
- let OwnedVideoBuffer = _OwnedVideoBuffer;
443
- const _VideoStreamInfo = class _VideoStreamInfo extends Message {
444
- constructor(data) {
445
- super();
446
- proto2.util.initPartial(data, this);
447
- }
448
- static fromBinary(bytes, options) {
449
- return new _VideoStreamInfo().fromBinary(bytes, options);
450
- }
451
- static fromJson(jsonValue, options) {
452
- return new _VideoStreamInfo().fromJson(jsonValue, options);
453
- }
454
- static fromJsonString(jsonString, options) {
455
- return new _VideoStreamInfo().fromJsonString(jsonString, options);
456
- }
457
- static equals(a, b) {
458
- return proto2.util.equals(_VideoStreamInfo, a, b);
459
- }
460
- };
461
- _VideoStreamInfo.runtime = proto2;
462
- _VideoStreamInfo.typeName = "livekit.proto.VideoStreamInfo";
463
- _VideoStreamInfo.fields = proto2.util.newFieldList(() => [
464
- { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoStreamType), req: true }
465
- ]);
466
- let VideoStreamInfo = _VideoStreamInfo;
467
- const _OwnedVideoStream = class _OwnedVideoStream extends Message {
468
- constructor(data) {
469
- super();
470
- proto2.util.initPartial(data, this);
471
- }
472
- static fromBinary(bytes, options) {
473
- return new _OwnedVideoStream().fromBinary(bytes, options);
474
- }
475
- static fromJson(jsonValue, options) {
476
- return new _OwnedVideoStream().fromJson(jsonValue, options);
477
- }
478
- static fromJsonString(jsonString, options) {
479
- return new _OwnedVideoStream().fromJsonString(jsonString, options);
480
- }
481
- static equals(a, b) {
482
- return proto2.util.equals(_OwnedVideoStream, a, b);
483
- }
484
- };
485
- _OwnedVideoStream.runtime = proto2;
486
- _OwnedVideoStream.typeName = "livekit.proto.OwnedVideoStream";
487
- _OwnedVideoStream.fields = proto2.util.newFieldList(() => [
488
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
489
- { no: 2, name: "info", kind: "message", T: VideoStreamInfo, req: true }
490
- ]);
491
- let OwnedVideoStream = _OwnedVideoStream;
492
- const _VideoStreamEvent = class _VideoStreamEvent extends Message {
493
- constructor(data) {
494
- super();
495
- /**
496
- * @generated from oneof livekit.proto.VideoStreamEvent.message
497
- */
498
- this.message = { case: void 0 };
499
- proto2.util.initPartial(data, this);
500
- }
501
- static fromBinary(bytes, options) {
502
- return new _VideoStreamEvent().fromBinary(bytes, options);
503
- }
504
- static fromJson(jsonValue, options) {
505
- return new _VideoStreamEvent().fromJson(jsonValue, options);
506
- }
507
- static fromJsonString(jsonString, options) {
508
- return new _VideoStreamEvent().fromJsonString(jsonString, options);
509
- }
510
- static equals(a, b) {
511
- return proto2.util.equals(_VideoStreamEvent, a, b);
512
- }
513
- };
514
- _VideoStreamEvent.runtime = proto2;
515
- _VideoStreamEvent.typeName = "livekit.proto.VideoStreamEvent";
516
- _VideoStreamEvent.fields = proto2.util.newFieldList(() => [
517
- { no: 1, name: "stream_handle", kind: "scalar", T: 4, req: true },
518
- { no: 2, name: "frame_received", kind: "message", T: VideoFrameReceived, oneof: "message" },
519
- { no: 3, name: "eos", kind: "message", T: VideoStreamEOS, oneof: "message" }
520
- ]);
521
- let VideoStreamEvent = _VideoStreamEvent;
522
- const _VideoFrameReceived = class _VideoFrameReceived extends Message {
523
- constructor(data) {
524
- super();
525
- proto2.util.initPartial(data, this);
526
- }
527
- static fromBinary(bytes, options) {
528
- return new _VideoFrameReceived().fromBinary(bytes, options);
529
- }
530
- static fromJson(jsonValue, options) {
531
- return new _VideoFrameReceived().fromJson(jsonValue, options);
532
- }
533
- static fromJsonString(jsonString, options) {
534
- return new _VideoFrameReceived().fromJsonString(jsonString, options);
535
- }
536
- static equals(a, b) {
537
- return proto2.util.equals(_VideoFrameReceived, a, b);
538
- }
539
- };
540
- _VideoFrameReceived.runtime = proto2;
541
- _VideoFrameReceived.typeName = "livekit.proto.VideoFrameReceived";
542
- _VideoFrameReceived.fields = proto2.util.newFieldList(() => [
543
- { no: 1, name: "buffer", kind: "message", T: OwnedVideoBuffer, req: true },
544
- { no: 2, name: "timestamp_us", kind: "scalar", T: 3, req: true },
545
- { no: 3, name: "rotation", kind: "enum", T: proto2.getEnumType(VideoRotation), req: true }
546
- ]);
547
- let VideoFrameReceived = _VideoFrameReceived;
548
- const _VideoStreamEOS = class _VideoStreamEOS extends Message {
549
- constructor(data) {
550
- super();
551
- proto2.util.initPartial(data, this);
552
- }
553
- static fromBinary(bytes, options) {
554
- return new _VideoStreamEOS().fromBinary(bytes, options);
555
- }
556
- static fromJson(jsonValue, options) {
557
- return new _VideoStreamEOS().fromJson(jsonValue, options);
558
- }
559
- static fromJsonString(jsonString, options) {
560
- return new _VideoStreamEOS().fromJsonString(jsonString, options);
561
- }
562
- static equals(a, b) {
563
- return proto2.util.equals(_VideoStreamEOS, a, b);
564
- }
565
- };
566
- _VideoStreamEOS.runtime = proto2;
567
- _VideoStreamEOS.typeName = "livekit.proto.VideoStreamEOS";
568
- _VideoStreamEOS.fields = proto2.util.newFieldList(() => []);
569
- let VideoStreamEOS = _VideoStreamEOS;
570
- const _VideoSourceResolution = class _VideoSourceResolution extends Message {
571
- constructor(data) {
572
- super();
573
- proto2.util.initPartial(data, this);
574
- }
575
- static fromBinary(bytes, options) {
576
- return new _VideoSourceResolution().fromBinary(bytes, options);
577
- }
578
- static fromJson(jsonValue, options) {
579
- return new _VideoSourceResolution().fromJson(jsonValue, options);
580
- }
581
- static fromJsonString(jsonString, options) {
582
- return new _VideoSourceResolution().fromJsonString(jsonString, options);
583
- }
584
- static equals(a, b) {
585
- return proto2.util.equals(_VideoSourceResolution, a, b);
586
- }
587
- };
588
- _VideoSourceResolution.runtime = proto2;
589
- _VideoSourceResolution.typeName = "livekit.proto.VideoSourceResolution";
590
- _VideoSourceResolution.fields = proto2.util.newFieldList(() => [
591
- { no: 1, name: "width", kind: "scalar", T: 13, req: true },
592
- { no: 2, name: "height", kind: "scalar", T: 13, req: true }
593
- ]);
594
- let VideoSourceResolution = _VideoSourceResolution;
595
- const _VideoSourceInfo = class _VideoSourceInfo extends Message {
596
- constructor(data) {
597
- super();
598
- proto2.util.initPartial(data, this);
599
- }
600
- static fromBinary(bytes, options) {
601
- return new _VideoSourceInfo().fromBinary(bytes, options);
602
- }
603
- static fromJson(jsonValue, options) {
604
- return new _VideoSourceInfo().fromJson(jsonValue, options);
605
- }
606
- static fromJsonString(jsonString, options) {
607
- return new _VideoSourceInfo().fromJsonString(jsonString, options);
608
- }
609
- static equals(a, b) {
610
- return proto2.util.equals(_VideoSourceInfo, a, b);
611
- }
612
- };
613
- _VideoSourceInfo.runtime = proto2;
614
- _VideoSourceInfo.typeName = "livekit.proto.VideoSourceInfo";
615
- _VideoSourceInfo.fields = proto2.util.newFieldList(() => [
616
- { no: 1, name: "type", kind: "enum", T: proto2.getEnumType(VideoSourceType), req: true }
617
- ]);
618
- let VideoSourceInfo = _VideoSourceInfo;
619
- const _OwnedVideoSource = class _OwnedVideoSource extends Message {
620
- constructor(data) {
621
- super();
622
- proto2.util.initPartial(data, this);
623
- }
624
- static fromBinary(bytes, options) {
625
- return new _OwnedVideoSource().fromBinary(bytes, options);
626
- }
627
- static fromJson(jsonValue, options) {
628
- return new _OwnedVideoSource().fromJson(jsonValue, options);
629
- }
630
- static fromJsonString(jsonString, options) {
631
- return new _OwnedVideoSource().fromJsonString(jsonString, options);
632
- }
633
- static equals(a, b) {
634
- return proto2.util.equals(_OwnedVideoSource, a, b);
635
- }
636
- };
637
- _OwnedVideoSource.runtime = proto2;
638
- _OwnedVideoSource.typeName = "livekit.proto.OwnedVideoSource";
639
- _OwnedVideoSource.fields = proto2.util.newFieldList(() => [
640
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
641
- { no: 2, name: "info", kind: "message", T: VideoSourceInfo, req: true }
642
- ]);
643
- let OwnedVideoSource = _OwnedVideoSource;
644
- export {
645
- CaptureVideoFrameRequest,
646
- CaptureVideoFrameResponse,
647
- NewVideoSourceRequest,
648
- NewVideoSourceResponse,
649
- NewVideoStreamRequest,
650
- NewVideoStreamResponse,
651
- OwnedVideoBuffer,
652
- OwnedVideoSource,
653
- OwnedVideoStream,
654
- VideoBufferInfo,
655
- VideoBufferInfo_ComponentInfo,
656
- VideoBufferType,
657
- VideoCodec,
658
- VideoConvertRequest,
659
- VideoConvertResponse,
660
- VideoFrameReceived,
661
- VideoResolution,
662
- VideoRotation,
663
- VideoSourceInfo,
664
- VideoSourceResolution,
665
- VideoSourceType,
666
- VideoStreamEOS,
667
- VideoStreamEvent,
668
- VideoStreamFromParticipantRequest,
669
- VideoStreamFromParticipantResponse,
670
- VideoStreamInfo,
671
- VideoStreamType
672
- };
673
- //# sourceMappingURL=video_frame_pb.js.map