@livekit/rtc-node 0.13.24 → 0.13.26

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 (283) 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 +10 -4
  13. package/dist/audio_mixer.cjs.map +1 -1
  14. package/dist/audio_mixer.d.cts +4 -7
  15. package/dist/audio_mixer.d.ts +4 -7
  16. package/dist/audio_mixer.d.ts.map +1 -1
  17. package/dist/audio_mixer.js +10 -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 +16 -6
  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 +15 -5
  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 +30 -15
  63. package/dist/ffi_client.cjs.map +1 -1
  64. package/dist/ffi_client.d.cts +6 -17
  65. package/dist/ffi_client.d.ts +6 -17
  66. package/dist/ffi_client.d.ts.map +1 -1
  67. package/dist/ffi_client.js +24 -6
  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/participant.cjs +146 -101
  84. package/dist/participant.cjs.map +1 -1
  85. package/dist/participant.d.cts +4 -16
  86. package/dist/participant.d.ts +4 -16
  87. package/dist/participant.d.ts.map +1 -1
  88. package/dist/participant.js +120 -75
  89. package/dist/participant.js.map +1 -1
  90. package/dist/room.cjs +116 -58
  91. package/dist/room.cjs.map +1 -1
  92. package/dist/room.d.cts +6 -15
  93. package/dist/room.d.ts +6 -15
  94. package/dist/room.d.ts.map +1 -1
  95. package/dist/room.js +113 -55
  96. package/dist/room.js.map +1 -1
  97. package/dist/rpc.cjs.map +1 -1
  98. package/dist/rpc.d.cts +1 -2
  99. package/dist/rpc.d.ts +1 -2
  100. package/dist/rpc.d.ts.map +1 -1
  101. package/dist/rpc.js.map +1 -1
  102. package/dist/{stream_reader-Ch2zvjU3.d.cts → stream_reader-CuG4b8Y-.d.cts} +1 -1
  103. package/dist/{stream_reader-DRyR29vo.d.ts → stream_reader-CuG4b8Y-.d.ts} +1 -1
  104. package/dist/track.cjs +3 -3
  105. package/dist/track.cjs.map +1 -1
  106. package/dist/track.d.cts +1 -14
  107. package/dist/track.d.ts +1 -14
  108. package/dist/track.d.ts.map +1 -1
  109. package/dist/track.js +1 -1
  110. package/dist/track.js.map +1 -1
  111. package/dist/track_publication.cjs +4 -4
  112. package/dist/track_publication.cjs.map +1 -1
  113. package/dist/track_publication.d.cts +1 -14
  114. package/dist/track_publication.d.ts +1 -14
  115. package/dist/track_publication.d.ts.map +1 -1
  116. package/dist/track_publication.js +2 -2
  117. package/dist/track_publication.js.map +1 -1
  118. package/dist/version.cjs +1 -1
  119. package/dist/version.cjs.map +1 -1
  120. package/dist/version.d.cts +1 -1
  121. package/dist/version.d.ts +1 -1
  122. package/dist/version.js +1 -1
  123. package/dist/version.js.map +1 -1
  124. package/dist/video_frame.cjs +42 -42
  125. package/dist/video_frame.cjs.map +1 -1
  126. package/dist/video_frame.d.cts +1 -6
  127. package/dist/video_frame.d.ts +1 -6
  128. package/dist/video_frame.d.ts.map +1 -1
  129. package/dist/video_frame.js +2 -2
  130. package/dist/video_frame.js.map +1 -1
  131. package/dist/video_source.cjs +5 -5
  132. package/dist/video_source.cjs.map +1 -1
  133. package/dist/video_source.d.cts +1 -14
  134. package/dist/video_source.d.ts +1 -14
  135. package/dist/video_source.d.ts.map +1 -1
  136. package/dist/video_source.js +2 -2
  137. package/dist/video_source.js.map +1 -1
  138. package/dist/video_stream.cjs +12 -4
  139. package/dist/video_stream.cjs.map +1 -1
  140. package/dist/video_stream.d.cts +1 -14
  141. package/dist/video_stream.d.ts +1 -14
  142. package/dist/video_stream.d.ts.map +1 -1
  143. package/dist/video_stream.js +10 -2
  144. package/dist/video_stream.js.map +1 -1
  145. package/package.json +7 -37
  146. package/src/audio_filter.ts +2 -2
  147. package/src/audio_frame.ts +17 -5
  148. package/src/audio_mixer.test.ts +102 -0
  149. package/src/audio_mixer.ts +10 -4
  150. package/src/audio_resampler.ts +14 -4
  151. package/src/audio_source.ts +13 -5
  152. package/src/audio_stream.ts +21 -6
  153. package/src/data_streams/stream_reader.ts +19 -1
  154. package/src/data_streams/types.ts +1 -1
  155. package/src/e2ee.ts +3 -3
  156. package/src/ffi_client.ts +33 -8
  157. package/src/frame_processor.ts +21 -0
  158. package/src/index.ts +6 -5
  159. package/src/participant.ts +117 -66
  160. package/src/room.ts +161 -69
  161. package/src/rpc.ts +1 -1
  162. package/src/tests/e2e.test.ts +179 -8
  163. package/src/track.ts +4 -4
  164. package/src/track_publication.ts +6 -6
  165. package/src/version.ts +1 -1
  166. package/src/video_frame.ts +3 -3
  167. package/src/video_source.ts +3 -3
  168. package/src/video_stream.ts +15 -3
  169. package/Cargo.toml +0 -25
  170. package/build.rs +0 -9
  171. package/dist/napi/native.cjs +0 -301
  172. package/dist/napi/native.d.cjs +0 -17
  173. package/dist/napi/native.d.cjs.map +0 -1
  174. package/dist/napi/native.d.d.cts +0 -21
  175. package/dist/napi/native.d.d.ts +0 -21
  176. package/dist/napi/native.d.js +0 -1
  177. package/dist/napi/native.d.js.map +0 -1
  178. package/dist/napi/native.d.ts +0 -19
  179. package/dist/napi/native.js +0 -15
  180. package/dist/native.cjs +0 -301
  181. package/dist/native.d.ts +0 -19
  182. package/dist/native.js +0 -15
  183. package/dist/proto/audio_frame_pb.cjs +0 -1357
  184. package/dist/proto/audio_frame_pb.cjs.map +0 -1
  185. package/dist/proto/audio_frame_pb.d.cts +0 -1183
  186. package/dist/proto/audio_frame_pb.d.ts +0 -1183
  187. package/dist/proto/audio_frame_pb.d.ts.map +0 -1
  188. package/dist/proto/audio_frame_pb.js +0 -1283
  189. package/dist/proto/audio_frame_pb.js.map +0 -1
  190. package/dist/proto/data_stream_pb.cjs +0 -1638
  191. package/dist/proto/data_stream_pb.cjs.map +0 -1
  192. package/dist/proto/data_stream_pb.d.cts +0 -1449
  193. package/dist/proto/data_stream_pb.d.ts +0 -1449
  194. package/dist/proto/data_stream_pb.d.ts.map +0 -1
  195. package/dist/proto/data_stream_pb.js +0 -1559
  196. package/dist/proto/data_stream_pb.js.map +0 -1
  197. package/dist/proto/e2ee_pb.cjs +0 -746
  198. package/dist/proto/e2ee_pb.cjs.map +0 -1
  199. package/dist/proto/e2ee_pb.d.cts +0 -653
  200. package/dist/proto/e2ee_pb.d.ts +0 -653
  201. package/dist/proto/e2ee_pb.d.ts.map +0 -1
  202. package/dist/proto/e2ee_pb.js +0 -696
  203. package/dist/proto/e2ee_pb.js.map +0 -1
  204. package/dist/proto/ffi_pb.cjs +0 -477
  205. package/dist/proto/ffi_pb.cjs.map +0 -1
  206. package/dist/proto/ffi_pb.d.cts +0 -1321
  207. package/dist/proto/ffi_pb.d.ts +0 -1321
  208. package/dist/proto/ffi_pb.d.ts.map +0 -1
  209. package/dist/proto/ffi_pb.js +0 -444
  210. package/dist/proto/ffi_pb.js.map +0 -1
  211. package/dist/proto/handle_pb.cjs +0 -53
  212. package/dist/proto/handle_pb.cjs.map +0 -1
  213. package/dist/proto/handle_pb.d.cts +0 -31
  214. package/dist/proto/handle_pb.d.ts +0 -31
  215. package/dist/proto/handle_pb.d.ts.map +0 -1
  216. package/dist/proto/handle_pb.js +0 -29
  217. package/dist/proto/handle_pb.js.map +0 -1
  218. package/dist/proto/participant_pb.cjs +0 -173
  219. package/dist/proto/participant_pb.cjs.map +0 -1
  220. package/dist/proto/participant_pb.d.cts +0 -218
  221. package/dist/proto/participant_pb.d.ts +0 -218
  222. package/dist/proto/participant_pb.d.ts.map +0 -1
  223. package/dist/proto/participant_pb.js +0 -145
  224. package/dist/proto/participant_pb.js.map +0 -1
  225. package/dist/proto/room_pb.cjs +0 -3374
  226. package/dist/proto/room_pb.cjs.map +0 -1
  227. package/dist/proto/room_pb.d.cts +0 -3028
  228. package/dist/proto/room_pb.d.ts +0 -3028
  229. package/dist/proto/room_pb.d.ts.map +0 -1
  230. package/dist/proto/room_pb.js +0 -3232
  231. package/dist/proto/room_pb.js.map +0 -1
  232. package/dist/proto/rpc_pb.cjs +0 -328
  233. package/dist/proto/rpc_pb.cjs.map +0 -1
  234. package/dist/proto/rpc_pb.d.cts +0 -267
  235. package/dist/proto/rpc_pb.d.ts +0 -267
  236. package/dist/proto/rpc_pb.d.ts.map +0 -1
  237. package/dist/proto/rpc_pb.js +0 -294
  238. package/dist/proto/rpc_pb.js.map +0 -1
  239. package/dist/proto/stats_pb.cjs +0 -1370
  240. package/dist/proto/stats_pb.cjs.map +0 -1
  241. package/dist/proto/stats_pb.d.cts +0 -1764
  242. package/dist/proto/stats_pb.d.ts +0 -1764
  243. package/dist/proto/stats_pb.d.ts.map +0 -1
  244. package/dist/proto/stats_pb.js +0 -1300
  245. package/dist/proto/stats_pb.js.map +0 -1
  246. package/dist/proto/track_pb.cjs +0 -630
  247. package/dist/proto/track_pb.cjs.map +0 -1
  248. package/dist/proto/track_pb.d.cts +0 -542
  249. package/dist/proto/track_pb.d.ts +0 -542
  250. package/dist/proto/track_pb.d.ts.map +0 -1
  251. package/dist/proto/track_pb.js +0 -584
  252. package/dist/proto/track_pb.js.map +0 -1
  253. package/dist/proto/track_publication_pb.cjs +0 -194
  254. package/dist/proto/track_publication_pb.cjs.map +0 -1
  255. package/dist/proto/track_publication_pb.d.cts +0 -135
  256. package/dist/proto/track_publication_pb.d.ts +0 -135
  257. package/dist/proto/track_publication_pb.d.ts.map +0 -1
  258. package/dist/proto/track_publication_pb.js +0 -164
  259. package/dist/proto/track_publication_pb.js.map +0 -1
  260. package/dist/proto/video_frame_pb.cjs +0 -723
  261. package/dist/proto/video_frame_pb.cjs.map +0 -1
  262. package/dist/proto/video_frame_pb.d.cts +0 -667
  263. package/dist/proto/video_frame_pb.d.ts +0 -667
  264. package/dist/proto/video_frame_pb.d.ts.map +0 -1
  265. package/dist/proto/video_frame_pb.js +0 -673
  266. package/dist/proto/video_frame_pb.js.map +0 -1
  267. package/src/lib.rs +0 -9
  268. package/src/napi/native.cjs +0 -301
  269. package/src/napi/native.d.ts +0 -19
  270. package/src/napi/native.js +0 -15
  271. package/src/nodejs.rs +0 -134
  272. package/src/proto/audio_frame_pb.ts +0 -2270
  273. package/src/proto/data_stream_pb.ts +0 -2674
  274. package/src/proto/e2ee_pb.ts +0 -1231
  275. package/src/proto/ffi_pb.ts +0 -1700
  276. package/src/proto/handle_pb.ts +0 -69
  277. package/src/proto/participant_pb.ts +0 -351
  278. package/src/proto/room_pb.ts +0 -5661
  279. package/src/proto/rpc_pb.ts +0 -539
  280. package/src/proto/stats_pb.ts +0 -3050
  281. package/src/proto/track_pb.ts +0 -1040
  282. package/src/proto/track_publication_pb.ts +0 -284
  283. package/src/proto/video_frame_pb.ts +0 -1236
@@ -1,1040 +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 track.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 { RtcStats } from "./stats_pb.js";
23
- import { EncryptionType } from "./e2ee_pb.js";
24
- import { FfiOwnedHandle } from "./handle_pb.js";
25
-
26
- /**
27
- * @generated from enum livekit.proto.TrackKind
28
- */
29
- export enum TrackKind {
30
- /**
31
- * @generated from enum value: KIND_UNKNOWN = 0;
32
- */
33
- KIND_UNKNOWN = 0,
34
-
35
- /**
36
- * @generated from enum value: KIND_AUDIO = 1;
37
- */
38
- KIND_AUDIO = 1,
39
-
40
- /**
41
- * @generated from enum value: KIND_VIDEO = 2;
42
- */
43
- KIND_VIDEO = 2,
44
- }
45
- // Retrieve enum metadata with: proto2.getEnumType(TrackKind)
46
- proto2.util.setEnumType(TrackKind, "livekit.proto.TrackKind", [
47
- { no: 0, name: "KIND_UNKNOWN" },
48
- { no: 1, name: "KIND_AUDIO" },
49
- { no: 2, name: "KIND_VIDEO" },
50
- ]);
51
-
52
- /**
53
- * @generated from enum livekit.proto.TrackSource
54
- */
55
- export enum TrackSource {
56
- /**
57
- * @generated from enum value: SOURCE_UNKNOWN = 0;
58
- */
59
- SOURCE_UNKNOWN = 0,
60
-
61
- /**
62
- * @generated from enum value: SOURCE_CAMERA = 1;
63
- */
64
- SOURCE_CAMERA = 1,
65
-
66
- /**
67
- * @generated from enum value: SOURCE_MICROPHONE = 2;
68
- */
69
- SOURCE_MICROPHONE = 2,
70
-
71
- /**
72
- * @generated from enum value: SOURCE_SCREENSHARE = 3;
73
- */
74
- SOURCE_SCREENSHARE = 3,
75
-
76
- /**
77
- * @generated from enum value: SOURCE_SCREENSHARE_AUDIO = 4;
78
- */
79
- SOURCE_SCREENSHARE_AUDIO = 4,
80
- }
81
- // Retrieve enum metadata with: proto2.getEnumType(TrackSource)
82
- proto2.util.setEnumType(TrackSource, "livekit.proto.TrackSource", [
83
- { no: 0, name: "SOURCE_UNKNOWN" },
84
- { no: 1, name: "SOURCE_CAMERA" },
85
- { no: 2, name: "SOURCE_MICROPHONE" },
86
- { no: 3, name: "SOURCE_SCREENSHARE" },
87
- { no: 4, name: "SOURCE_SCREENSHARE_AUDIO" },
88
- ]);
89
-
90
- /**
91
- * @generated from enum livekit.proto.StreamState
92
- */
93
- export enum StreamState {
94
- /**
95
- * @generated from enum value: STATE_UNKNOWN = 0;
96
- */
97
- STATE_UNKNOWN = 0,
98
-
99
- /**
100
- * @generated from enum value: STATE_ACTIVE = 1;
101
- */
102
- STATE_ACTIVE = 1,
103
-
104
- /**
105
- * @generated from enum value: STATE_PAUSED = 2;
106
- */
107
- STATE_PAUSED = 2,
108
- }
109
- // Retrieve enum metadata with: proto2.getEnumType(StreamState)
110
- proto2.util.setEnumType(StreamState, "livekit.proto.StreamState", [
111
- { no: 0, name: "STATE_UNKNOWN" },
112
- { no: 1, name: "STATE_ACTIVE" },
113
- { no: 2, name: "STATE_PAUSED" },
114
- ]);
115
-
116
- /**
117
- * @generated from enum livekit.proto.AudioTrackFeature
118
- */
119
- export enum AudioTrackFeature {
120
- /**
121
- * @generated from enum value: TF_STEREO = 0;
122
- */
123
- TF_STEREO = 0,
124
-
125
- /**
126
- * @generated from enum value: TF_NO_DTX = 1;
127
- */
128
- TF_NO_DTX = 1,
129
-
130
- /**
131
- * @generated from enum value: TF_AUTO_GAIN_CONTROL = 2;
132
- */
133
- TF_AUTO_GAIN_CONTROL = 2,
134
-
135
- /**
136
- * @generated from enum value: TF_ECHO_CANCELLATION = 3;
137
- */
138
- TF_ECHO_CANCELLATION = 3,
139
-
140
- /**
141
- * @generated from enum value: TF_NOISE_SUPPRESSION = 4;
142
- */
143
- TF_NOISE_SUPPRESSION = 4,
144
-
145
- /**
146
- * @generated from enum value: TF_ENHANCED_NOISE_CANCELLATION = 5;
147
- */
148
- TF_ENHANCED_NOISE_CANCELLATION = 5,
149
-
150
- /**
151
- * client will buffer audio once available and send it to the server via bytes stream once connected
152
- *
153
- * @generated from enum value: TF_PRECONNECT_BUFFER = 6;
154
- */
155
- TF_PRECONNECT_BUFFER = 6,
156
- }
157
- // Retrieve enum metadata with: proto2.getEnumType(AudioTrackFeature)
158
- proto2.util.setEnumType(AudioTrackFeature, "livekit.proto.AudioTrackFeature", [
159
- { no: 0, name: "TF_STEREO" },
160
- { no: 1, name: "TF_NO_DTX" },
161
- { no: 2, name: "TF_AUTO_GAIN_CONTROL" },
162
- { no: 3, name: "TF_ECHO_CANCELLATION" },
163
- { no: 4, name: "TF_NOISE_SUPPRESSION" },
164
- { no: 5, name: "TF_ENHANCED_NOISE_CANCELLATION" },
165
- { no: 6, name: "TF_PRECONNECT_BUFFER" },
166
- ]);
167
-
168
- /**
169
- * Create a new VideoTrack from a VideoSource
170
- *
171
- * @generated from message livekit.proto.CreateVideoTrackRequest
172
- */
173
- export class CreateVideoTrackRequest extends Message<CreateVideoTrackRequest> {
174
- /**
175
- * @generated from field: required string name = 1;
176
- */
177
- name?: string;
178
-
179
- /**
180
- * @generated from field: required uint64 source_handle = 2;
181
- */
182
- sourceHandle?: bigint;
183
-
184
- constructor(data?: PartialMessage<CreateVideoTrackRequest>) {
185
- super();
186
- proto2.util.initPartial(data, this);
187
- }
188
-
189
- static readonly runtime: typeof proto2 = proto2;
190
- static readonly typeName = "livekit.proto.CreateVideoTrackRequest";
191
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
192
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
193
- { no: 2, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
194
- ]);
195
-
196
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateVideoTrackRequest {
197
- return new CreateVideoTrackRequest().fromBinary(bytes, options);
198
- }
199
-
200
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateVideoTrackRequest {
201
- return new CreateVideoTrackRequest().fromJson(jsonValue, options);
202
- }
203
-
204
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateVideoTrackRequest {
205
- return new CreateVideoTrackRequest().fromJsonString(jsonString, options);
206
- }
207
-
208
- static equals(a: CreateVideoTrackRequest | PlainMessage<CreateVideoTrackRequest> | undefined, b: CreateVideoTrackRequest | PlainMessage<CreateVideoTrackRequest> | undefined): boolean {
209
- return proto2.util.equals(CreateVideoTrackRequest, a, b);
210
- }
211
- }
212
-
213
- /**
214
- * @generated from message livekit.proto.CreateVideoTrackResponse
215
- */
216
- export class CreateVideoTrackResponse extends Message<CreateVideoTrackResponse> {
217
- /**
218
- * @generated from field: required livekit.proto.OwnedTrack track = 1;
219
- */
220
- track?: OwnedTrack;
221
-
222
- constructor(data?: PartialMessage<CreateVideoTrackResponse>) {
223
- super();
224
- proto2.util.initPartial(data, this);
225
- }
226
-
227
- static readonly runtime: typeof proto2 = proto2;
228
- static readonly typeName = "livekit.proto.CreateVideoTrackResponse";
229
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
230
- { no: 1, name: "track", kind: "message", T: OwnedTrack, req: true },
231
- ]);
232
-
233
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateVideoTrackResponse {
234
- return new CreateVideoTrackResponse().fromBinary(bytes, options);
235
- }
236
-
237
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateVideoTrackResponse {
238
- return new CreateVideoTrackResponse().fromJson(jsonValue, options);
239
- }
240
-
241
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateVideoTrackResponse {
242
- return new CreateVideoTrackResponse().fromJsonString(jsonString, options);
243
- }
244
-
245
- static equals(a: CreateVideoTrackResponse | PlainMessage<CreateVideoTrackResponse> | undefined, b: CreateVideoTrackResponse | PlainMessage<CreateVideoTrackResponse> | undefined): boolean {
246
- return proto2.util.equals(CreateVideoTrackResponse, a, b);
247
- }
248
- }
249
-
250
- /**
251
- * Create a new AudioTrack from a AudioSource
252
- *
253
- * @generated from message livekit.proto.CreateAudioTrackRequest
254
- */
255
- export class CreateAudioTrackRequest extends Message<CreateAudioTrackRequest> {
256
- /**
257
- * @generated from field: required string name = 1;
258
- */
259
- name?: string;
260
-
261
- /**
262
- * @generated from field: required uint64 source_handle = 2;
263
- */
264
- sourceHandle?: bigint;
265
-
266
- constructor(data?: PartialMessage<CreateAudioTrackRequest>) {
267
- super();
268
- proto2.util.initPartial(data, this);
269
- }
270
-
271
- static readonly runtime: typeof proto2 = proto2;
272
- static readonly typeName = "livekit.proto.CreateAudioTrackRequest";
273
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
274
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
275
- { no: 2, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
276
- ]);
277
-
278
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAudioTrackRequest {
279
- return new CreateAudioTrackRequest().fromBinary(bytes, options);
280
- }
281
-
282
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAudioTrackRequest {
283
- return new CreateAudioTrackRequest().fromJson(jsonValue, options);
284
- }
285
-
286
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAudioTrackRequest {
287
- return new CreateAudioTrackRequest().fromJsonString(jsonString, options);
288
- }
289
-
290
- static equals(a: CreateAudioTrackRequest | PlainMessage<CreateAudioTrackRequest> | undefined, b: CreateAudioTrackRequest | PlainMessage<CreateAudioTrackRequest> | undefined): boolean {
291
- return proto2.util.equals(CreateAudioTrackRequest, a, b);
292
- }
293
- }
294
-
295
- /**
296
- * @generated from message livekit.proto.CreateAudioTrackResponse
297
- */
298
- export class CreateAudioTrackResponse extends Message<CreateAudioTrackResponse> {
299
- /**
300
- * @generated from field: required livekit.proto.OwnedTrack track = 1;
301
- */
302
- track?: OwnedTrack;
303
-
304
- constructor(data?: PartialMessage<CreateAudioTrackResponse>) {
305
- super();
306
- proto2.util.initPartial(data, this);
307
- }
308
-
309
- static readonly runtime: typeof proto2 = proto2;
310
- static readonly typeName = "livekit.proto.CreateAudioTrackResponse";
311
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
312
- { no: 1, name: "track", kind: "message", T: OwnedTrack, req: true },
313
- ]);
314
-
315
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAudioTrackResponse {
316
- return new CreateAudioTrackResponse().fromBinary(bytes, options);
317
- }
318
-
319
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAudioTrackResponse {
320
- return new CreateAudioTrackResponse().fromJson(jsonValue, options);
321
- }
322
-
323
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAudioTrackResponse {
324
- return new CreateAudioTrackResponse().fromJsonString(jsonString, options);
325
- }
326
-
327
- static equals(a: CreateAudioTrackResponse | PlainMessage<CreateAudioTrackResponse> | undefined, b: CreateAudioTrackResponse | PlainMessage<CreateAudioTrackResponse> | undefined): boolean {
328
- return proto2.util.equals(CreateAudioTrackResponse, a, b);
329
- }
330
- }
331
-
332
- /**
333
- * @generated from message livekit.proto.GetStatsRequest
334
- */
335
- export class GetStatsRequest extends Message<GetStatsRequest> {
336
- /**
337
- * @generated from field: required uint64 track_handle = 1;
338
- */
339
- trackHandle?: bigint;
340
-
341
- constructor(data?: PartialMessage<GetStatsRequest>) {
342
- super();
343
- proto2.util.initPartial(data, this);
344
- }
345
-
346
- static readonly runtime: typeof proto2 = proto2;
347
- static readonly typeName = "livekit.proto.GetStatsRequest";
348
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
349
- { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
350
- ]);
351
-
352
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetStatsRequest {
353
- return new GetStatsRequest().fromBinary(bytes, options);
354
- }
355
-
356
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetStatsRequest {
357
- return new GetStatsRequest().fromJson(jsonValue, options);
358
- }
359
-
360
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetStatsRequest {
361
- return new GetStatsRequest().fromJsonString(jsonString, options);
362
- }
363
-
364
- static equals(a: GetStatsRequest | PlainMessage<GetStatsRequest> | undefined, b: GetStatsRequest | PlainMessage<GetStatsRequest> | undefined): boolean {
365
- return proto2.util.equals(GetStatsRequest, a, b);
366
- }
367
- }
368
-
369
- /**
370
- * @generated from message livekit.proto.GetStatsResponse
371
- */
372
- export class GetStatsResponse extends Message<GetStatsResponse> {
373
- /**
374
- * @generated from field: required uint64 async_id = 1;
375
- */
376
- asyncId?: bigint;
377
-
378
- constructor(data?: PartialMessage<GetStatsResponse>) {
379
- super();
380
- proto2.util.initPartial(data, this);
381
- }
382
-
383
- static readonly runtime: typeof proto2 = proto2;
384
- static readonly typeName = "livekit.proto.GetStatsResponse";
385
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
386
- { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
387
- ]);
388
-
389
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetStatsResponse {
390
- return new GetStatsResponse().fromBinary(bytes, options);
391
- }
392
-
393
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetStatsResponse {
394
- return new GetStatsResponse().fromJson(jsonValue, options);
395
- }
396
-
397
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetStatsResponse {
398
- return new GetStatsResponse().fromJsonString(jsonString, options);
399
- }
400
-
401
- static equals(a: GetStatsResponse | PlainMessage<GetStatsResponse> | undefined, b: GetStatsResponse | PlainMessage<GetStatsResponse> | undefined): boolean {
402
- return proto2.util.equals(GetStatsResponse, a, b);
403
- }
404
- }
405
-
406
- /**
407
- * @generated from message livekit.proto.GetStatsCallback
408
- */
409
- export class GetStatsCallback extends Message<GetStatsCallback> {
410
- /**
411
- * @generated from field: required uint64 async_id = 1;
412
- */
413
- asyncId?: bigint;
414
-
415
- /**
416
- * @generated from field: optional string error = 2;
417
- */
418
- error?: string;
419
-
420
- /**
421
- * @generated from field: repeated livekit.proto.RtcStats stats = 3;
422
- */
423
- stats: RtcStats[] = [];
424
-
425
- constructor(data?: PartialMessage<GetStatsCallback>) {
426
- super();
427
- proto2.util.initPartial(data, this);
428
- }
429
-
430
- static readonly runtime: typeof proto2 = proto2;
431
- static readonly typeName = "livekit.proto.GetStatsCallback";
432
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
433
- { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
434
- { no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
435
- { no: 3, name: "stats", kind: "message", T: RtcStats, repeated: true },
436
- ]);
437
-
438
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetStatsCallback {
439
- return new GetStatsCallback().fromBinary(bytes, options);
440
- }
441
-
442
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetStatsCallback {
443
- return new GetStatsCallback().fromJson(jsonValue, options);
444
- }
445
-
446
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetStatsCallback {
447
- return new GetStatsCallback().fromJsonString(jsonString, options);
448
- }
449
-
450
- static equals(a: GetStatsCallback | PlainMessage<GetStatsCallback> | undefined, b: GetStatsCallback | PlainMessage<GetStatsCallback> | undefined): boolean {
451
- return proto2.util.equals(GetStatsCallback, a, b);
452
- }
453
- }
454
-
455
- /**
456
- * @generated from message livekit.proto.TrackEvent
457
- */
458
- export class TrackEvent extends Message<TrackEvent> {
459
- constructor(data?: PartialMessage<TrackEvent>) {
460
- super();
461
- proto2.util.initPartial(data, this);
462
- }
463
-
464
- static readonly runtime: typeof proto2 = proto2;
465
- static readonly typeName = "livekit.proto.TrackEvent";
466
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
467
- ]);
468
-
469
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackEvent {
470
- return new TrackEvent().fromBinary(bytes, options);
471
- }
472
-
473
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackEvent {
474
- return new TrackEvent().fromJson(jsonValue, options);
475
- }
476
-
477
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackEvent {
478
- return new TrackEvent().fromJsonString(jsonString, options);
479
- }
480
-
481
- static equals(a: TrackEvent | PlainMessage<TrackEvent> | undefined, b: TrackEvent | PlainMessage<TrackEvent> | undefined): boolean {
482
- return proto2.util.equals(TrackEvent, a, b);
483
- }
484
- }
485
-
486
- /**
487
- * @generated from message livekit.proto.TrackPublicationInfo
488
- */
489
- export class TrackPublicationInfo extends Message<TrackPublicationInfo> {
490
- /**
491
- * @generated from field: required string sid = 1;
492
- */
493
- sid?: string;
494
-
495
- /**
496
- * @generated from field: required string name = 2;
497
- */
498
- name?: string;
499
-
500
- /**
501
- * @generated from field: required livekit.proto.TrackKind kind = 3;
502
- */
503
- kind?: TrackKind;
504
-
505
- /**
506
- * @generated from field: required livekit.proto.TrackSource source = 4;
507
- */
508
- source?: TrackSource;
509
-
510
- /**
511
- * @generated from field: required bool simulcasted = 5;
512
- */
513
- simulcasted?: boolean;
514
-
515
- /**
516
- * @generated from field: required uint32 width = 6;
517
- */
518
- width?: number;
519
-
520
- /**
521
- * @generated from field: required uint32 height = 7;
522
- */
523
- height?: number;
524
-
525
- /**
526
- * @generated from field: required string mime_type = 8;
527
- */
528
- mimeType?: string;
529
-
530
- /**
531
- * @generated from field: required bool muted = 9;
532
- */
533
- muted?: boolean;
534
-
535
- /**
536
- * @generated from field: required bool remote = 10;
537
- */
538
- remote?: boolean;
539
-
540
- /**
541
- * @generated from field: required livekit.proto.EncryptionType encryption_type = 11;
542
- */
543
- encryptionType?: EncryptionType;
544
-
545
- /**
546
- * @generated from field: repeated livekit.proto.AudioTrackFeature audio_features = 12;
547
- */
548
- audioFeatures: AudioTrackFeature[] = [];
549
-
550
- constructor(data?: PartialMessage<TrackPublicationInfo>) {
551
- super();
552
- proto2.util.initPartial(data, this);
553
- }
554
-
555
- static readonly runtime: typeof proto2 = proto2;
556
- static readonly typeName = "livekit.proto.TrackPublicationInfo";
557
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
558
- { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
559
- { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
560
- { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(TrackKind), req: true },
561
- { no: 4, name: "source", kind: "enum", T: proto2.getEnumType(TrackSource), req: true },
562
- { no: 5, name: "simulcasted", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
563
- { no: 6, name: "width", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
564
- { no: 7, name: "height", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
565
- { no: 8, name: "mime_type", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
566
- { no: 9, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
567
- { no: 10, name: "remote", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
568
- { no: 11, name: "encryption_type", kind: "enum", T: proto2.getEnumType(EncryptionType), req: true },
569
- { no: 12, name: "audio_features", kind: "enum", T: proto2.getEnumType(AudioTrackFeature), repeated: true },
570
- ]);
571
-
572
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackPublicationInfo {
573
- return new TrackPublicationInfo().fromBinary(bytes, options);
574
- }
575
-
576
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackPublicationInfo {
577
- return new TrackPublicationInfo().fromJson(jsonValue, options);
578
- }
579
-
580
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackPublicationInfo {
581
- return new TrackPublicationInfo().fromJsonString(jsonString, options);
582
- }
583
-
584
- static equals(a: TrackPublicationInfo | PlainMessage<TrackPublicationInfo> | undefined, b: TrackPublicationInfo | PlainMessage<TrackPublicationInfo> | undefined): boolean {
585
- return proto2.util.equals(TrackPublicationInfo, a, b);
586
- }
587
- }
588
-
589
- /**
590
- * @generated from message livekit.proto.OwnedTrackPublication
591
- */
592
- export class OwnedTrackPublication extends Message<OwnedTrackPublication> {
593
- /**
594
- * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
595
- */
596
- handle?: FfiOwnedHandle;
597
-
598
- /**
599
- * @generated from field: required livekit.proto.TrackPublicationInfo info = 2;
600
- */
601
- info?: TrackPublicationInfo;
602
-
603
- constructor(data?: PartialMessage<OwnedTrackPublication>) {
604
- super();
605
- proto2.util.initPartial(data, this);
606
- }
607
-
608
- static readonly runtime: typeof proto2 = proto2;
609
- static readonly typeName = "livekit.proto.OwnedTrackPublication";
610
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
611
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
612
- { no: 2, name: "info", kind: "message", T: TrackPublicationInfo, req: true },
613
- ]);
614
-
615
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedTrackPublication {
616
- return new OwnedTrackPublication().fromBinary(bytes, options);
617
- }
618
-
619
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedTrackPublication {
620
- return new OwnedTrackPublication().fromJson(jsonValue, options);
621
- }
622
-
623
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedTrackPublication {
624
- return new OwnedTrackPublication().fromJsonString(jsonString, options);
625
- }
626
-
627
- static equals(a: OwnedTrackPublication | PlainMessage<OwnedTrackPublication> | undefined, b: OwnedTrackPublication | PlainMessage<OwnedTrackPublication> | undefined): boolean {
628
- return proto2.util.equals(OwnedTrackPublication, a, b);
629
- }
630
- }
631
-
632
- /**
633
- * @generated from message livekit.proto.TrackInfo
634
- */
635
- export class TrackInfo extends Message<TrackInfo> {
636
- /**
637
- * @generated from field: required string sid = 1;
638
- */
639
- sid?: string;
640
-
641
- /**
642
- * @generated from field: required string name = 2;
643
- */
644
- name?: string;
645
-
646
- /**
647
- * @generated from field: required livekit.proto.TrackKind kind = 3;
648
- */
649
- kind?: TrackKind;
650
-
651
- /**
652
- * @generated from field: required livekit.proto.StreamState stream_state = 4;
653
- */
654
- streamState?: StreamState;
655
-
656
- /**
657
- * @generated from field: required bool muted = 5;
658
- */
659
- muted?: boolean;
660
-
661
- /**
662
- * @generated from field: required bool remote = 6;
663
- */
664
- remote?: boolean;
665
-
666
- constructor(data?: PartialMessage<TrackInfo>) {
667
- super();
668
- proto2.util.initPartial(data, this);
669
- }
670
-
671
- static readonly runtime: typeof proto2 = proto2;
672
- static readonly typeName = "livekit.proto.TrackInfo";
673
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
674
- { no: 1, name: "sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
675
- { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
676
- { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(TrackKind), req: true },
677
- { no: 4, name: "stream_state", kind: "enum", T: proto2.getEnumType(StreamState), req: true },
678
- { no: 5, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
679
- { no: 6, name: "remote", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
680
- ]);
681
-
682
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackInfo {
683
- return new TrackInfo().fromBinary(bytes, options);
684
- }
685
-
686
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackInfo {
687
- return new TrackInfo().fromJson(jsonValue, options);
688
- }
689
-
690
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackInfo {
691
- return new TrackInfo().fromJsonString(jsonString, options);
692
- }
693
-
694
- static equals(a: TrackInfo | PlainMessage<TrackInfo> | undefined, b: TrackInfo | PlainMessage<TrackInfo> | undefined): boolean {
695
- return proto2.util.equals(TrackInfo, a, b);
696
- }
697
- }
698
-
699
- /**
700
- * @generated from message livekit.proto.OwnedTrack
701
- */
702
- export class OwnedTrack extends Message<OwnedTrack> {
703
- /**
704
- * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
705
- */
706
- handle?: FfiOwnedHandle;
707
-
708
- /**
709
- * @generated from field: required livekit.proto.TrackInfo info = 2;
710
- */
711
- info?: TrackInfo;
712
-
713
- constructor(data?: PartialMessage<OwnedTrack>) {
714
- super();
715
- proto2.util.initPartial(data, this);
716
- }
717
-
718
- static readonly runtime: typeof proto2 = proto2;
719
- static readonly typeName = "livekit.proto.OwnedTrack";
720
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
721
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
722
- { no: 2, name: "info", kind: "message", T: TrackInfo, req: true },
723
- ]);
724
-
725
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedTrack {
726
- return new OwnedTrack().fromBinary(bytes, options);
727
- }
728
-
729
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedTrack {
730
- return new OwnedTrack().fromJson(jsonValue, options);
731
- }
732
-
733
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedTrack {
734
- return new OwnedTrack().fromJsonString(jsonString, options);
735
- }
736
-
737
- static equals(a: OwnedTrack | PlainMessage<OwnedTrack> | undefined, b: OwnedTrack | PlainMessage<OwnedTrack> | undefined): boolean {
738
- return proto2.util.equals(OwnedTrack, a, b);
739
- }
740
- }
741
-
742
- /**
743
- * Mute/UnMute a track
744
- *
745
- * @generated from message livekit.proto.LocalTrackMuteRequest
746
- */
747
- export class LocalTrackMuteRequest extends Message<LocalTrackMuteRequest> {
748
- /**
749
- * @generated from field: required uint64 track_handle = 1;
750
- */
751
- trackHandle?: bigint;
752
-
753
- /**
754
- * @generated from field: required bool mute = 2;
755
- */
756
- mute?: boolean;
757
-
758
- constructor(data?: PartialMessage<LocalTrackMuteRequest>) {
759
- super();
760
- proto2.util.initPartial(data, this);
761
- }
762
-
763
- static readonly runtime: typeof proto2 = proto2;
764
- static readonly typeName = "livekit.proto.LocalTrackMuteRequest";
765
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
766
- { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
767
- { no: 2, name: "mute", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
768
- ]);
769
-
770
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LocalTrackMuteRequest {
771
- return new LocalTrackMuteRequest().fromBinary(bytes, options);
772
- }
773
-
774
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LocalTrackMuteRequest {
775
- return new LocalTrackMuteRequest().fromJson(jsonValue, options);
776
- }
777
-
778
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LocalTrackMuteRequest {
779
- return new LocalTrackMuteRequest().fromJsonString(jsonString, options);
780
- }
781
-
782
- static equals(a: LocalTrackMuteRequest | PlainMessage<LocalTrackMuteRequest> | undefined, b: LocalTrackMuteRequest | PlainMessage<LocalTrackMuteRequest> | undefined): boolean {
783
- return proto2.util.equals(LocalTrackMuteRequest, a, b);
784
- }
785
- }
786
-
787
- /**
788
- * @generated from message livekit.proto.LocalTrackMuteResponse
789
- */
790
- export class LocalTrackMuteResponse extends Message<LocalTrackMuteResponse> {
791
- /**
792
- * @generated from field: required bool muted = 1;
793
- */
794
- muted?: boolean;
795
-
796
- constructor(data?: PartialMessage<LocalTrackMuteResponse>) {
797
- super();
798
- proto2.util.initPartial(data, this);
799
- }
800
-
801
- static readonly runtime: typeof proto2 = proto2;
802
- static readonly typeName = "livekit.proto.LocalTrackMuteResponse";
803
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
804
- { no: 1, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
805
- ]);
806
-
807
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LocalTrackMuteResponse {
808
- return new LocalTrackMuteResponse().fromBinary(bytes, options);
809
- }
810
-
811
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LocalTrackMuteResponse {
812
- return new LocalTrackMuteResponse().fromJson(jsonValue, options);
813
- }
814
-
815
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LocalTrackMuteResponse {
816
- return new LocalTrackMuteResponse().fromJsonString(jsonString, options);
817
- }
818
-
819
- static equals(a: LocalTrackMuteResponse | PlainMessage<LocalTrackMuteResponse> | undefined, b: LocalTrackMuteResponse | PlainMessage<LocalTrackMuteResponse> | undefined): boolean {
820
- return proto2.util.equals(LocalTrackMuteResponse, a, b);
821
- }
822
- }
823
-
824
- /**
825
- * Enable/Disable a remote track
826
- *
827
- * @generated from message livekit.proto.EnableRemoteTrackRequest
828
- */
829
- export class EnableRemoteTrackRequest extends Message<EnableRemoteTrackRequest> {
830
- /**
831
- * @generated from field: required uint64 track_handle = 1;
832
- */
833
- trackHandle?: bigint;
834
-
835
- /**
836
- * @generated from field: required bool enabled = 2;
837
- */
838
- enabled?: boolean;
839
-
840
- constructor(data?: PartialMessage<EnableRemoteTrackRequest>) {
841
- super();
842
- proto2.util.initPartial(data, this);
843
- }
844
-
845
- static readonly runtime: typeof proto2 = proto2;
846
- static readonly typeName = "livekit.proto.EnableRemoteTrackRequest";
847
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
848
- { no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
849
- { no: 2, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
850
- ]);
851
-
852
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnableRemoteTrackRequest {
853
- return new EnableRemoteTrackRequest().fromBinary(bytes, options);
854
- }
855
-
856
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnableRemoteTrackRequest {
857
- return new EnableRemoteTrackRequest().fromJson(jsonValue, options);
858
- }
859
-
860
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnableRemoteTrackRequest {
861
- return new EnableRemoteTrackRequest().fromJsonString(jsonString, options);
862
- }
863
-
864
- static equals(a: EnableRemoteTrackRequest | PlainMessage<EnableRemoteTrackRequest> | undefined, b: EnableRemoteTrackRequest | PlainMessage<EnableRemoteTrackRequest> | undefined): boolean {
865
- return proto2.util.equals(EnableRemoteTrackRequest, a, b);
866
- }
867
- }
868
-
869
- /**
870
- * @generated from message livekit.proto.EnableRemoteTrackResponse
871
- */
872
- export class EnableRemoteTrackResponse extends Message<EnableRemoteTrackResponse> {
873
- /**
874
- * @generated from field: required bool enabled = 1;
875
- */
876
- enabled?: boolean;
877
-
878
- constructor(data?: PartialMessage<EnableRemoteTrackResponse>) {
879
- super();
880
- proto2.util.initPartial(data, this);
881
- }
882
-
883
- static readonly runtime: typeof proto2 = proto2;
884
- static readonly typeName = "livekit.proto.EnableRemoteTrackResponse";
885
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
886
- { no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
887
- ]);
888
-
889
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnableRemoteTrackResponse {
890
- return new EnableRemoteTrackResponse().fromBinary(bytes, options);
891
- }
892
-
893
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnableRemoteTrackResponse {
894
- return new EnableRemoteTrackResponse().fromJson(jsonValue, options);
895
- }
896
-
897
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnableRemoteTrackResponse {
898
- return new EnableRemoteTrackResponse().fromJsonString(jsonString, options);
899
- }
900
-
901
- static equals(a: EnableRemoteTrackResponse | PlainMessage<EnableRemoteTrackResponse> | undefined, b: EnableRemoteTrackResponse | PlainMessage<EnableRemoteTrackResponse> | undefined): boolean {
902
- return proto2.util.equals(EnableRemoteTrackResponse, a, b);
903
- }
904
- }
905
-
906
- /**
907
- * @generated from message livekit.proto.SetTrackSubscriptionPermissionsRequest
908
- */
909
- export class SetTrackSubscriptionPermissionsRequest extends Message<SetTrackSubscriptionPermissionsRequest> {
910
- /**
911
- * @generated from field: required uint64 local_participant_handle = 1;
912
- */
913
- localParticipantHandle?: bigint;
914
-
915
- /**
916
- * @generated from field: required bool all_participants_allowed = 2;
917
- */
918
- allParticipantsAllowed?: boolean;
919
-
920
- /**
921
- * @generated from field: repeated livekit.proto.ParticipantTrackPermission permissions = 3;
922
- */
923
- permissions: ParticipantTrackPermission[] = [];
924
-
925
- constructor(data?: PartialMessage<SetTrackSubscriptionPermissionsRequest>) {
926
- super();
927
- proto2.util.initPartial(data, this);
928
- }
929
-
930
- static readonly runtime: typeof proto2 = proto2;
931
- static readonly typeName = "livekit.proto.SetTrackSubscriptionPermissionsRequest";
932
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
933
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
934
- { no: 2, name: "all_participants_allowed", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
935
- { no: 3, name: "permissions", kind: "message", T: ParticipantTrackPermission, repeated: true },
936
- ]);
937
-
938
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetTrackSubscriptionPermissionsRequest {
939
- return new SetTrackSubscriptionPermissionsRequest().fromBinary(bytes, options);
940
- }
941
-
942
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetTrackSubscriptionPermissionsRequest {
943
- return new SetTrackSubscriptionPermissionsRequest().fromJson(jsonValue, options);
944
- }
945
-
946
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetTrackSubscriptionPermissionsRequest {
947
- return new SetTrackSubscriptionPermissionsRequest().fromJsonString(jsonString, options);
948
- }
949
-
950
- static equals(a: SetTrackSubscriptionPermissionsRequest | PlainMessage<SetTrackSubscriptionPermissionsRequest> | undefined, b: SetTrackSubscriptionPermissionsRequest | PlainMessage<SetTrackSubscriptionPermissionsRequest> | undefined): boolean {
951
- return proto2.util.equals(SetTrackSubscriptionPermissionsRequest, a, b);
952
- }
953
- }
954
-
955
- /**
956
- * @generated from message livekit.proto.ParticipantTrackPermission
957
- */
958
- export class ParticipantTrackPermission extends Message<ParticipantTrackPermission> {
959
- /**
960
- * The participant identity this permission applies to.
961
- *
962
- * @generated from field: required string participant_identity = 1;
963
- */
964
- participantIdentity?: string;
965
-
966
- /**
967
- * Grant permission to all all tracks. Takes precedence over allowedTrackSids.
968
- *
969
- * @generated from field: optional bool allow_all = 2;
970
- */
971
- allowAll?: boolean;
972
-
973
- /**
974
- * List of track sids to grant permission to.
975
- *
976
- * @generated from field: repeated string allowed_track_sids = 3;
977
- */
978
- allowedTrackSids: string[] = [];
979
-
980
- constructor(data?: PartialMessage<ParticipantTrackPermission>) {
981
- super();
982
- proto2.util.initPartial(data, this);
983
- }
984
-
985
- static readonly runtime: typeof proto2 = proto2;
986
- static readonly typeName = "livekit.proto.ParticipantTrackPermission";
987
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
988
- { no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
989
- { no: 2, name: "allow_all", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
990
- { no: 3, name: "allowed_track_sids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
991
- ]);
992
-
993
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantTrackPermission {
994
- return new ParticipantTrackPermission().fromBinary(bytes, options);
995
- }
996
-
997
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantTrackPermission {
998
- return new ParticipantTrackPermission().fromJson(jsonValue, options);
999
- }
1000
-
1001
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantTrackPermission {
1002
- return new ParticipantTrackPermission().fromJsonString(jsonString, options);
1003
- }
1004
-
1005
- static equals(a: ParticipantTrackPermission | PlainMessage<ParticipantTrackPermission> | undefined, b: ParticipantTrackPermission | PlainMessage<ParticipantTrackPermission> | undefined): boolean {
1006
- return proto2.util.equals(ParticipantTrackPermission, a, b);
1007
- }
1008
- }
1009
-
1010
- /**
1011
- * @generated from message livekit.proto.SetTrackSubscriptionPermissionsResponse
1012
- */
1013
- export class SetTrackSubscriptionPermissionsResponse extends Message<SetTrackSubscriptionPermissionsResponse> {
1014
- constructor(data?: PartialMessage<SetTrackSubscriptionPermissionsResponse>) {
1015
- super();
1016
- proto2.util.initPartial(data, this);
1017
- }
1018
-
1019
- static readonly runtime: typeof proto2 = proto2;
1020
- static readonly typeName = "livekit.proto.SetTrackSubscriptionPermissionsResponse";
1021
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
1022
- ]);
1023
-
1024
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetTrackSubscriptionPermissionsResponse {
1025
- return new SetTrackSubscriptionPermissionsResponse().fromBinary(bytes, options);
1026
- }
1027
-
1028
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetTrackSubscriptionPermissionsResponse {
1029
- return new SetTrackSubscriptionPermissionsResponse().fromJson(jsonValue, options);
1030
- }
1031
-
1032
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetTrackSubscriptionPermissionsResponse {
1033
- return new SetTrackSubscriptionPermissionsResponse().fromJsonString(jsonString, options);
1034
- }
1035
-
1036
- static equals(a: SetTrackSubscriptionPermissionsResponse | PlainMessage<SetTrackSubscriptionPermissionsResponse> | undefined, b: SetTrackSubscriptionPermissionsResponse | PlainMessage<SetTrackSubscriptionPermissionsResponse> | undefined): boolean {
1037
- return proto2.util.equals(SetTrackSubscriptionPermissionsResponse, a, b);
1038
- }
1039
- }
1040
-