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