Skip to content

Commit 38976db

Browse files
generated protobuf
1 parent 428451a commit 38976db

2 files changed

Lines changed: 112 additions & 0 deletions

File tree

livekit-ffi-node-bindings/proto/capture_pb.d.ts

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,91 @@ export declare class GstreamerVideoSourceConfig extends Message<GstreamerVideoSo
201201
static equals(a: GstreamerVideoSourceConfig | PlainMessage<GstreamerVideoSourceConfig> | undefined, b: GstreamerVideoSourceConfig | PlainMessage<GstreamerVideoSourceConfig> | undefined): boolean;
202202
}
203203

204+
/**
205+
* Encoded ingest from an RTSP server over TCP-interleaved RTP.
206+
*
207+
* @generated from message livekit.proto.RtspVideoSourceConfig
208+
*/
209+
export declare class RtspVideoSourceConfig extends Message<RtspVideoSourceConfig> {
210+
/**
211+
* RTSP URL (rtsp://host[:port]/path, or rtsps:// when the server is built
212+
* with TLS support). URL userinfo is accepted and stripped from requests;
213+
* `username`/`password` take precedence over it.
214+
*
215+
* @generated from field: required string url = 1;
216+
*/
217+
url?: string;
218+
219+
/**
220+
* Username for RTSP authentication, overriding URL userinfo.
221+
*
222+
* @generated from field: optional string username = 2;
223+
*/
224+
username?: string;
225+
226+
/**
227+
* Password for RTSP authentication, overriding URL userinfo.
228+
*
229+
* @generated from field: optional string password = 3;
230+
*/
231+
password?: string;
232+
233+
/**
234+
* Codec required from the stream; the first supported video track offered
235+
* by the SDP is used when omitted.
236+
*
237+
* @generated from field: optional livekit.proto.VideoCodec codec = 4;
238+
*/
239+
codec?: VideoCodec;
240+
241+
/**
242+
* Encoded frame resolution. When omitted, it is discovered from the SDP
243+
* when declared there, and from the stream's first keyframe otherwise;
244+
* when set, the first keyframe is verified against it.
245+
*
246+
* @generated from field: optional livekit.proto.VideoSourceResolution resolution = 5;
247+
*/
248+
resolution?: VideoSourceResolution;
249+
250+
/**
251+
* TCP connect and RTSP handshake timeout in milliseconds (default 10000).
252+
*
253+
* @generated from field: optional uint32 connect_timeout_ms = 6;
254+
*/
255+
connectTimeoutMs?: number;
256+
257+
/**
258+
* Maximum tolerated stream silence in milliseconds (default 30000).
259+
*
260+
* @generated from field: optional uint32 idle_timeout_ms = 7;
261+
*/
262+
idleTimeoutMs?: number;
263+
264+
/**
265+
* Disables TLS certificate verification for rtsps:// URLs. Most cameras
266+
* present self-signed certificates, which fail verification against the
267+
* system roots. The connection stays encrypted but is not authenticated:
268+
* a network attacker could impersonate the camera.
269+
*
270+
* @generated from field: optional bool accept_invalid_tls_certs = 8;
271+
*/
272+
acceptInvalidTlsCerts?: boolean;
273+
274+
constructor(data?: PartialMessage<RtspVideoSourceConfig>);
275+
276+
static readonly runtime: typeof proto2;
277+
static readonly typeName = "livekit.proto.RtspVideoSourceConfig";
278+
static readonly fields: FieldList;
279+
280+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtspVideoSourceConfig;
281+
282+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtspVideoSourceConfig;
283+
284+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtspVideoSourceConfig;
285+
286+
static equals(a: RtspVideoSourceConfig | PlainMessage<RtspVideoSourceConfig> | undefined, b: RtspVideoSourceConfig | PlainMessage<RtspVideoSourceConfig> | undefined): boolean;
287+
}
288+
204289
/**
205290
* Test pattern rendered on the GPU.
206291
*
@@ -394,6 +479,12 @@ export declare class NewCaptureSourceRequest extends Message<NewCaptureSourceReq
394479
*/
395480
value: ClockVideoSourceConfig;
396481
case: "clock";
482+
} | {
483+
/**
484+
* @generated from field: livekit.proto.RtspVideoSourceConfig rtsp = 6;
485+
*/
486+
value: RtspVideoSourceConfig;
487+
case: "rtsp";
397488
} | { case: undefined; value?: undefined };
398489

399490
/**

livekit-ffi-node-bindings/proto/capture_pb.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,25 @@ const GstreamerVideoSourceConfig = /*@__PURE__*/ proto2.makeMessageType(
106106
],
107107
);
108108

109+
/**
110+
* Encoded ingest from an RTSP server over TCP-interleaved RTP.
111+
*
112+
* @generated from message livekit.proto.RtspVideoSourceConfig
113+
*/
114+
const RtspVideoSourceConfig = /*@__PURE__*/ proto2.makeMessageType(
115+
"livekit.proto.RtspVideoSourceConfig",
116+
() => [
117+
{ no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
118+
{ no: 2, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
119+
{ no: 3, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
120+
{ no: 4, name: "codec", kind: "enum", T: proto2.getEnumType(VideoCodec), opt: true },
121+
{ no: 5, name: "resolution", kind: "message", T: VideoSourceResolution, opt: true },
122+
{ no: 6, name: "connect_timeout_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
123+
{ no: 7, name: "idle_timeout_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
124+
{ no: 8, name: "accept_invalid_tls_certs", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
125+
],
126+
);
127+
109128
/**
110129
* Test pattern rendered on the GPU.
111130
*
@@ -174,6 +193,7 @@ const NewCaptureSourceRequest = /*@__PURE__*/ proto2.makeMessageType(
174193
{ no: 1, name: "gstreamer", kind: "message", T: GstreamerVideoSourceConfig, oneof: "config" },
175194
{ no: 2, name: "pattern", kind: "message", T: PatternVideoSourceConfig, oneof: "config" },
176195
{ no: 5, name: "clock", kind: "message", T: ClockVideoSourceConfig, oneof: "config" },
196+
{ no: 6, name: "rtsp", kind: "message", T: RtspVideoSourceConfig, oneof: "config" },
177197
{ no: 3, name: "request_async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
178198
],
179199
);
@@ -289,6 +309,7 @@ exports.CaptureSourceKind = CaptureSourceKind;
289309
exports.CaptureExit = CaptureExit;
290310
exports.GstreamerRateControl = GstreamerRateControl;
291311
exports.GstreamerVideoSourceConfig = GstreamerVideoSourceConfig;
312+
exports.RtspVideoSourceConfig = RtspVideoSourceConfig;
292313
exports.PatternVideoSourceConfig = PatternVideoSourceConfig;
293314
exports.ClockVideoSourceConfig = ClockVideoSourceConfig;
294315
exports.CaptureSourceInfo = CaptureSourceInfo;

0 commit comments

Comments
 (0)