@livekit/rtc-node
Advanced tools
Comparing version 0.0.4 to 0.0.5
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; | ||
import { Message, proto3 } from "@bufbuild/protobuf"; | ||
import { ConnectCallback, ConnectRequest, ConnectResponse, DisconnectCallback, DisconnectRequest, DisconnectResponse, PublishDataCallback, PublishDataRequest, PublishDataResponse, PublishTrackCallback, PublishTrackRequest, PublishTrackResponse, RoomEvent, SetSubscribedRequest, SetSubscribedResponse, UnpublishTrackCallback, UnpublishTrackRequest, UnpublishTrackResponse, UpdateLocalMetadataCallback, UpdateLocalMetadataRequest, UpdateLocalMetadataResponse, UpdateLocalNameCallback, UpdateLocalNameRequest, UpdateLocalNameResponse } from "./room_pb.js"; | ||
import { ConnectCallback, ConnectRequest, ConnectResponse, DisconnectCallback, DisconnectRequest, DisconnectResponse, GetSessionStatsCallback, GetSessionStatsRequest, GetSessionStatsResponse, PublishDataCallback, PublishDataRequest, PublishDataResponse, PublishTrackCallback, PublishTrackRequest, PublishTrackResponse, RoomEvent, SetSubscribedRequest, SetSubscribedResponse, UnpublishTrackCallback, UnpublishTrackRequest, UnpublishTrackResponse, UpdateLocalMetadataCallback, UpdateLocalMetadataRequest, UpdateLocalMetadataResponse, UpdateLocalNameCallback, UpdateLocalNameRequest, UpdateLocalNameResponse } from "./room_pb.js"; | ||
import { CreateAudioTrackRequest, CreateAudioTrackResponse, CreateVideoTrackRequest, CreateVideoTrackResponse, GetStatsCallback, GetStatsRequest, GetStatsResponse, TrackEvent } from "./track_pb.js"; | ||
@@ -45,8 +45,2 @@ import { AllocVideoBufferRequest, AllocVideoBufferResponse, CaptureVideoFrameRequest, CaptureVideoFrameResponse, NewVideoSourceRequest, NewVideoSourceResponse, NewVideoStreamRequest, NewVideoStreamResponse, ToArgbRequest, ToArgbResponse, ToI420Request, ToI420Response, VideoStreamEvent } from "./video_frame_pb.js"; | ||
/** | ||
* @generated from field: livekit.proto.InitializeRequest initialize = 1; | ||
*/ | ||
value: InitializeRequest; | ||
case: "initialize"; | ||
} | { | ||
/** | ||
* @generated from field: livekit.proto.DisposeRequest dispose = 2; | ||
@@ -108,5 +102,11 @@ */ | ||
/** | ||
* @generated from field: livekit.proto.GetSessionStatsRequest get_session_stats = 11; | ||
*/ | ||
value: GetSessionStatsRequest; | ||
case: "getSessionStats"; | ||
} | { | ||
/** | ||
* Track | ||
* | ||
* @generated from field: livekit.proto.CreateVideoTrackRequest create_video_track = 11; | ||
* @generated from field: livekit.proto.CreateVideoTrackRequest create_video_track = 12; | ||
*/ | ||
@@ -117,3 +117,3 @@ value: CreateVideoTrackRequest; | ||
/** | ||
* @generated from field: livekit.proto.CreateAudioTrackRequest create_audio_track = 12; | ||
* @generated from field: livekit.proto.CreateAudioTrackRequest create_audio_track = 13; | ||
*/ | ||
@@ -124,3 +124,3 @@ value: CreateAudioTrackRequest; | ||
/** | ||
* @generated from field: livekit.proto.GetStatsRequest get_stats = 13; | ||
* @generated from field: livekit.proto.GetStatsRequest get_stats = 14; | ||
*/ | ||
@@ -133,3 +133,3 @@ value: GetStatsRequest; | ||
* | ||
* @generated from field: livekit.proto.AllocVideoBufferRequest alloc_video_buffer = 14; | ||
* @generated from field: livekit.proto.AllocVideoBufferRequest alloc_video_buffer = 15; | ||
*/ | ||
@@ -140,3 +140,3 @@ value: AllocVideoBufferRequest; | ||
/** | ||
* @generated from field: livekit.proto.NewVideoStreamRequest new_video_stream = 15; | ||
* @generated from field: livekit.proto.NewVideoStreamRequest new_video_stream = 16; | ||
*/ | ||
@@ -147,3 +147,3 @@ value: NewVideoStreamRequest; | ||
/** | ||
* @generated from field: livekit.proto.NewVideoSourceRequest new_video_source = 16; | ||
* @generated from field: livekit.proto.NewVideoSourceRequest new_video_source = 17; | ||
*/ | ||
@@ -154,3 +154,3 @@ value: NewVideoSourceRequest; | ||
/** | ||
* @generated from field: livekit.proto.CaptureVideoFrameRequest capture_video_frame = 17; | ||
* @generated from field: livekit.proto.CaptureVideoFrameRequest capture_video_frame = 18; | ||
*/ | ||
@@ -161,3 +161,3 @@ value: CaptureVideoFrameRequest; | ||
/** | ||
* @generated from field: livekit.proto.ToI420Request to_i420 = 18; | ||
* @generated from field: livekit.proto.ToI420Request to_i420 = 19; | ||
*/ | ||
@@ -168,3 +168,3 @@ value: ToI420Request; | ||
/** | ||
* @generated from field: livekit.proto.ToArgbRequest to_argb = 19; | ||
* @generated from field: livekit.proto.ToArgbRequest to_argb = 20; | ||
*/ | ||
@@ -177,3 +177,3 @@ value: ToArgbRequest; | ||
* | ||
* @generated from field: livekit.proto.AllocAudioBufferRequest alloc_audio_buffer = 20; | ||
* @generated from field: livekit.proto.AllocAudioBufferRequest alloc_audio_buffer = 21; | ||
*/ | ||
@@ -184,3 +184,3 @@ value: AllocAudioBufferRequest; | ||
/** | ||
* @generated from field: livekit.proto.NewAudioStreamRequest new_audio_stream = 21; | ||
* @generated from field: livekit.proto.NewAudioStreamRequest new_audio_stream = 22; | ||
*/ | ||
@@ -191,3 +191,3 @@ value: NewAudioStreamRequest; | ||
/** | ||
* @generated from field: livekit.proto.NewAudioSourceRequest new_audio_source = 22; | ||
* @generated from field: livekit.proto.NewAudioSourceRequest new_audio_source = 23; | ||
*/ | ||
@@ -198,3 +198,3 @@ value: NewAudioSourceRequest; | ||
/** | ||
* @generated from field: livekit.proto.CaptureAudioFrameRequest capture_audio_frame = 23; | ||
* @generated from field: livekit.proto.CaptureAudioFrameRequest capture_audio_frame = 24; | ||
*/ | ||
@@ -205,3 +205,3 @@ value: CaptureAudioFrameRequest; | ||
/** | ||
* @generated from field: livekit.proto.NewAudioResamplerRequest new_audio_resampler = 24; | ||
* @generated from field: livekit.proto.NewAudioResamplerRequest new_audio_resampler = 25; | ||
*/ | ||
@@ -212,3 +212,3 @@ value: NewAudioResamplerRequest; | ||
/** | ||
* @generated from field: livekit.proto.RemixAndResampleRequest remix_and_resample = 25; | ||
* @generated from field: livekit.proto.RemixAndResampleRequest remix_and_resample = 26; | ||
*/ | ||
@@ -219,3 +219,3 @@ value: RemixAndResampleRequest; | ||
/** | ||
* @generated from field: livekit.proto.E2eeRequest e2ee = 26; | ||
* @generated from field: livekit.proto.E2eeRequest e2ee = 27; | ||
*/ | ||
@@ -248,8 +248,2 @@ value: E2eeRequest; | ||
/** | ||
* @generated from field: livekit.proto.InitializeResponse initialize = 1; | ||
*/ | ||
value: InitializeResponse; | ||
case: "initialize"; | ||
} | { | ||
/** | ||
* @generated from field: livekit.proto.DisposeResponse dispose = 2; | ||
@@ -311,5 +305,11 @@ */ | ||
/** | ||
* @generated from field: livekit.proto.GetSessionStatsResponse get_session_stats = 11; | ||
*/ | ||
value: GetSessionStatsResponse; | ||
case: "getSessionStats"; | ||
} | { | ||
/** | ||
* Track | ||
* | ||
* @generated from field: livekit.proto.CreateVideoTrackResponse create_video_track = 11; | ||
* @generated from field: livekit.proto.CreateVideoTrackResponse create_video_track = 12; | ||
*/ | ||
@@ -320,3 +320,3 @@ value: CreateVideoTrackResponse; | ||
/** | ||
* @generated from field: livekit.proto.CreateAudioTrackResponse create_audio_track = 12; | ||
* @generated from field: livekit.proto.CreateAudioTrackResponse create_audio_track = 13; | ||
*/ | ||
@@ -327,3 +327,3 @@ value: CreateAudioTrackResponse; | ||
/** | ||
* @generated from field: livekit.proto.GetStatsResponse get_stats = 13; | ||
* @generated from field: livekit.proto.GetStatsResponse get_stats = 14; | ||
*/ | ||
@@ -336,3 +336,3 @@ value: GetStatsResponse; | ||
* | ||
* @generated from field: livekit.proto.AllocVideoBufferResponse alloc_video_buffer = 14; | ||
* @generated from field: livekit.proto.AllocVideoBufferResponse alloc_video_buffer = 15; | ||
*/ | ||
@@ -343,3 +343,3 @@ value: AllocVideoBufferResponse; | ||
/** | ||
* @generated from field: livekit.proto.NewVideoStreamResponse new_video_stream = 15; | ||
* @generated from field: livekit.proto.NewVideoStreamResponse new_video_stream = 16; | ||
*/ | ||
@@ -350,3 +350,3 @@ value: NewVideoStreamResponse; | ||
/** | ||
* @generated from field: livekit.proto.NewVideoSourceResponse new_video_source = 16; | ||
* @generated from field: livekit.proto.NewVideoSourceResponse new_video_source = 17; | ||
*/ | ||
@@ -357,3 +357,3 @@ value: NewVideoSourceResponse; | ||
/** | ||
* @generated from field: livekit.proto.CaptureVideoFrameResponse capture_video_frame = 17; | ||
* @generated from field: livekit.proto.CaptureVideoFrameResponse capture_video_frame = 18; | ||
*/ | ||
@@ -364,3 +364,3 @@ value: CaptureVideoFrameResponse; | ||
/** | ||
* @generated from field: livekit.proto.ToI420Response to_i420 = 18; | ||
* @generated from field: livekit.proto.ToI420Response to_i420 = 19; | ||
*/ | ||
@@ -371,3 +371,3 @@ value: ToI420Response; | ||
/** | ||
* @generated from field: livekit.proto.ToArgbResponse to_argb = 19; | ||
* @generated from field: livekit.proto.ToArgbResponse to_argb = 20; | ||
*/ | ||
@@ -380,3 +380,3 @@ value: ToArgbResponse; | ||
* | ||
* @generated from field: livekit.proto.AllocAudioBufferResponse alloc_audio_buffer = 20; | ||
* @generated from field: livekit.proto.AllocAudioBufferResponse alloc_audio_buffer = 21; | ||
*/ | ||
@@ -387,3 +387,3 @@ value: AllocAudioBufferResponse; | ||
/** | ||
* @generated from field: livekit.proto.NewAudioStreamResponse new_audio_stream = 21; | ||
* @generated from field: livekit.proto.NewAudioStreamResponse new_audio_stream = 22; | ||
*/ | ||
@@ -394,3 +394,3 @@ value: NewAudioStreamResponse; | ||
/** | ||
* @generated from field: livekit.proto.NewAudioSourceResponse new_audio_source = 22; | ||
* @generated from field: livekit.proto.NewAudioSourceResponse new_audio_source = 23; | ||
*/ | ||
@@ -401,3 +401,3 @@ value: NewAudioSourceResponse; | ||
/** | ||
* @generated from field: livekit.proto.CaptureAudioFrameResponse capture_audio_frame = 23; | ||
* @generated from field: livekit.proto.CaptureAudioFrameResponse capture_audio_frame = 24; | ||
*/ | ||
@@ -408,3 +408,3 @@ value: CaptureAudioFrameResponse; | ||
/** | ||
* @generated from field: livekit.proto.NewAudioResamplerResponse new_audio_resampler = 24; | ||
* @generated from field: livekit.proto.NewAudioResamplerResponse new_audio_resampler = 25; | ||
*/ | ||
@@ -415,3 +415,3 @@ value: NewAudioResamplerResponse; | ||
/** | ||
* @generated from field: livekit.proto.RemixAndResampleResponse remix_and_resample = 25; | ||
* @generated from field: livekit.proto.RemixAndResampleResponse remix_and_resample = 26; | ||
*/ | ||
@@ -422,3 +422,3 @@ value: RemixAndResampleResponse; | ||
/** | ||
* @generated from field: livekit.proto.E2eeResponse e2ee = 26; | ||
* @generated from field: livekit.proto.E2eeResponse e2ee = 27; | ||
*/ | ||
@@ -542,2 +542,8 @@ value: E2eeResponse; | ||
} | { | ||
/** | ||
* @generated from field: livekit.proto.GetSessionStatsCallback get_session_stats = 16; | ||
*/ | ||
value: GetSessionStatsCallback; | ||
case: "getSessionStats"; | ||
} | { | ||
case: undefined; | ||
@@ -556,41 +562,2 @@ value?: undefined; | ||
/** | ||
* Setup the callback where the foreign language can receive events | ||
* and responses to asynchronous requests | ||
* | ||
* @generated from message livekit.proto.InitializeRequest | ||
*/ | ||
export declare class InitializeRequest extends Message<InitializeRequest> { | ||
/** | ||
* @generated from field: uint64 event_callback_ptr = 1; | ||
*/ | ||
eventCallbackPtr: bigint; | ||
/** | ||
* When true, the FfiServer will forward logs using LogRecord | ||
* | ||
* @generated from field: bool capture_logs = 2; | ||
*/ | ||
captureLogs: boolean; | ||
constructor(data?: PartialMessage<InitializeRequest>); | ||
static readonly runtime: typeof proto3; | ||
static readonly typeName = "livekit.proto.InitializeRequest"; | ||
static readonly fields: FieldList; | ||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InitializeRequest; | ||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InitializeRequest; | ||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InitializeRequest; | ||
static equals(a: InitializeRequest | PlainMessage<InitializeRequest> | undefined, b: InitializeRequest | PlainMessage<InitializeRequest> | undefined): boolean; | ||
} | ||
/** | ||
* @generated from message livekit.proto.InitializeResponse | ||
*/ | ||
export declare class InitializeResponse extends Message<InitializeResponse> { | ||
constructor(data?: PartialMessage<InitializeResponse>); | ||
static readonly runtime: typeof proto3; | ||
static readonly typeName = "livekit.proto.InitializeResponse"; | ||
static readonly fields: FieldList; | ||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InitializeResponse; | ||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InitializeResponse; | ||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InitializeResponse; | ||
static equals(a: InitializeResponse | PlainMessage<InitializeResponse> | undefined, b: InitializeResponse | PlainMessage<InitializeResponse> | undefined): boolean; | ||
} | ||
/** | ||
* Stop all rooms synchronously (Do we need async here?). | ||
@@ -597,0 +564,0 @@ * e.g: This is used for the Unity Editor after each assemblies reload. |
@@ -16,3 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LogBatch = exports.LogRecord = exports.DisposeCallback = exports.DisposeResponse = exports.DisposeRequest = exports.InitializeResponse = exports.InitializeRequest = exports.FfiEvent = exports.FfiResponse = exports.FfiRequest = exports.LogLevel = void 0; | ||
exports.LogBatch = exports.LogRecord = exports.DisposeCallback = exports.DisposeResponse = exports.DisposeRequest = exports.FfiEvent = exports.FfiResponse = exports.FfiRequest = exports.LogLevel = void 0; | ||
const protobuf_1 = require("@bufbuild/protobuf"); | ||
@@ -90,3 +90,2 @@ const room_pb_js_1 = require("./room_pb.js"); | ||
FfiRequest.fields = protobuf_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "initialize", kind: "message", T: InitializeRequest, oneof: "message" }, | ||
{ no: 2, name: "dispose", kind: "message", T: DisposeRequest, oneof: "message" }, | ||
@@ -101,18 +100,19 @@ { no: 3, name: "connect", kind: "message", T: room_pb_js_1.ConnectRequest, oneof: "message" }, | ||
{ no: 10, name: "update_local_name", kind: "message", T: room_pb_js_1.UpdateLocalNameRequest, oneof: "message" }, | ||
{ no: 11, name: "create_video_track", kind: "message", T: track_pb_js_1.CreateVideoTrackRequest, oneof: "message" }, | ||
{ no: 12, name: "create_audio_track", kind: "message", T: track_pb_js_1.CreateAudioTrackRequest, oneof: "message" }, | ||
{ no: 13, name: "get_stats", kind: "message", T: track_pb_js_1.GetStatsRequest, oneof: "message" }, | ||
{ no: 14, name: "alloc_video_buffer", kind: "message", T: video_frame_pb_js_1.AllocVideoBufferRequest, oneof: "message" }, | ||
{ no: 15, name: "new_video_stream", kind: "message", T: video_frame_pb_js_1.NewVideoStreamRequest, oneof: "message" }, | ||
{ no: 16, name: "new_video_source", kind: "message", T: video_frame_pb_js_1.NewVideoSourceRequest, oneof: "message" }, | ||
{ no: 17, name: "capture_video_frame", kind: "message", T: video_frame_pb_js_1.CaptureVideoFrameRequest, oneof: "message" }, | ||
{ no: 18, name: "to_i420", kind: "message", T: video_frame_pb_js_1.ToI420Request, oneof: "message" }, | ||
{ no: 19, name: "to_argb", kind: "message", T: video_frame_pb_js_1.ToArgbRequest, oneof: "message" }, | ||
{ no: 20, name: "alloc_audio_buffer", kind: "message", T: audio_frame_pb_js_1.AllocAudioBufferRequest, oneof: "message" }, | ||
{ no: 21, name: "new_audio_stream", kind: "message", T: audio_frame_pb_js_1.NewAudioStreamRequest, oneof: "message" }, | ||
{ no: 22, name: "new_audio_source", kind: "message", T: audio_frame_pb_js_1.NewAudioSourceRequest, oneof: "message" }, | ||
{ no: 23, name: "capture_audio_frame", kind: "message", T: audio_frame_pb_js_1.CaptureAudioFrameRequest, oneof: "message" }, | ||
{ no: 24, name: "new_audio_resampler", kind: "message", T: audio_frame_pb_js_1.NewAudioResamplerRequest, oneof: "message" }, | ||
{ no: 25, name: "remix_and_resample", kind: "message", T: audio_frame_pb_js_1.RemixAndResampleRequest, oneof: "message" }, | ||
{ no: 26, name: "e2ee", kind: "message", T: e2ee_pb_js_1.E2eeRequest, oneof: "message" }, | ||
{ no: 11, name: "get_session_stats", kind: "message", T: room_pb_js_1.GetSessionStatsRequest, oneof: "message" }, | ||
{ no: 12, name: "create_video_track", kind: "message", T: track_pb_js_1.CreateVideoTrackRequest, oneof: "message" }, | ||
{ no: 13, name: "create_audio_track", kind: "message", T: track_pb_js_1.CreateAudioTrackRequest, oneof: "message" }, | ||
{ no: 14, name: "get_stats", kind: "message", T: track_pb_js_1.GetStatsRequest, oneof: "message" }, | ||
{ no: 15, name: "alloc_video_buffer", kind: "message", T: video_frame_pb_js_1.AllocVideoBufferRequest, oneof: "message" }, | ||
{ no: 16, name: "new_video_stream", kind: "message", T: video_frame_pb_js_1.NewVideoStreamRequest, oneof: "message" }, | ||
{ no: 17, name: "new_video_source", kind: "message", T: video_frame_pb_js_1.NewVideoSourceRequest, oneof: "message" }, | ||
{ no: 18, name: "capture_video_frame", kind: "message", T: video_frame_pb_js_1.CaptureVideoFrameRequest, oneof: "message" }, | ||
{ no: 19, name: "to_i420", kind: "message", T: video_frame_pb_js_1.ToI420Request, oneof: "message" }, | ||
{ no: 20, name: "to_argb", kind: "message", T: video_frame_pb_js_1.ToArgbRequest, oneof: "message" }, | ||
{ no: 21, name: "alloc_audio_buffer", kind: "message", T: audio_frame_pb_js_1.AllocAudioBufferRequest, oneof: "message" }, | ||
{ no: 22, name: "new_audio_stream", kind: "message", T: audio_frame_pb_js_1.NewAudioStreamRequest, oneof: "message" }, | ||
{ no: 23, name: "new_audio_source", kind: "message", T: audio_frame_pb_js_1.NewAudioSourceRequest, oneof: "message" }, | ||
{ no: 24, name: "capture_audio_frame", kind: "message", T: audio_frame_pb_js_1.CaptureAudioFrameRequest, oneof: "message" }, | ||
{ no: 25, name: "new_audio_resampler", kind: "message", T: audio_frame_pb_js_1.NewAudioResamplerRequest, oneof: "message" }, | ||
{ no: 26, name: "remix_and_resample", kind: "message", T: audio_frame_pb_js_1.RemixAndResampleRequest, oneof: "message" }, | ||
{ no: 27, name: "e2ee", kind: "message", T: e2ee_pb_js_1.E2eeRequest, oneof: "message" }, | ||
]); | ||
@@ -150,3 +150,2 @@ /** | ||
FfiResponse.fields = protobuf_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "initialize", kind: "message", T: InitializeResponse, oneof: "message" }, | ||
{ no: 2, name: "dispose", kind: "message", T: DisposeResponse, oneof: "message" }, | ||
@@ -161,18 +160,19 @@ { no: 3, name: "connect", kind: "message", T: room_pb_js_1.ConnectResponse, oneof: "message" }, | ||
{ no: 10, name: "update_local_name", kind: "message", T: room_pb_js_1.UpdateLocalNameResponse, oneof: "message" }, | ||
{ no: 11, name: "create_video_track", kind: "message", T: track_pb_js_1.CreateVideoTrackResponse, oneof: "message" }, | ||
{ no: 12, name: "create_audio_track", kind: "message", T: track_pb_js_1.CreateAudioTrackResponse, oneof: "message" }, | ||
{ no: 13, name: "get_stats", kind: "message", T: track_pb_js_1.GetStatsResponse, oneof: "message" }, | ||
{ no: 14, name: "alloc_video_buffer", kind: "message", T: video_frame_pb_js_1.AllocVideoBufferResponse, oneof: "message" }, | ||
{ no: 15, name: "new_video_stream", kind: "message", T: video_frame_pb_js_1.NewVideoStreamResponse, oneof: "message" }, | ||
{ no: 16, name: "new_video_source", kind: "message", T: video_frame_pb_js_1.NewVideoSourceResponse, oneof: "message" }, | ||
{ no: 17, name: "capture_video_frame", kind: "message", T: video_frame_pb_js_1.CaptureVideoFrameResponse, oneof: "message" }, | ||
{ no: 18, name: "to_i420", kind: "message", T: video_frame_pb_js_1.ToI420Response, oneof: "message" }, | ||
{ no: 19, name: "to_argb", kind: "message", T: video_frame_pb_js_1.ToArgbResponse, oneof: "message" }, | ||
{ no: 20, name: "alloc_audio_buffer", kind: "message", T: audio_frame_pb_js_1.AllocAudioBufferResponse, oneof: "message" }, | ||
{ no: 21, name: "new_audio_stream", kind: "message", T: audio_frame_pb_js_1.NewAudioStreamResponse, oneof: "message" }, | ||
{ no: 22, name: "new_audio_source", kind: "message", T: audio_frame_pb_js_1.NewAudioSourceResponse, oneof: "message" }, | ||
{ no: 23, name: "capture_audio_frame", kind: "message", T: audio_frame_pb_js_1.CaptureAudioFrameResponse, oneof: "message" }, | ||
{ no: 24, name: "new_audio_resampler", kind: "message", T: audio_frame_pb_js_1.NewAudioResamplerResponse, oneof: "message" }, | ||
{ no: 25, name: "remix_and_resample", kind: "message", T: audio_frame_pb_js_1.RemixAndResampleResponse, oneof: "message" }, | ||
{ no: 26, name: "e2ee", kind: "message", T: e2ee_pb_js_1.E2eeResponse, oneof: "message" }, | ||
{ no: 11, name: "get_session_stats", kind: "message", T: room_pb_js_1.GetSessionStatsResponse, oneof: "message" }, | ||
{ no: 12, name: "create_video_track", kind: "message", T: track_pb_js_1.CreateVideoTrackResponse, oneof: "message" }, | ||
{ no: 13, name: "create_audio_track", kind: "message", T: track_pb_js_1.CreateAudioTrackResponse, oneof: "message" }, | ||
{ no: 14, name: "get_stats", kind: "message", T: track_pb_js_1.GetStatsResponse, oneof: "message" }, | ||
{ no: 15, name: "alloc_video_buffer", kind: "message", T: video_frame_pb_js_1.AllocVideoBufferResponse, oneof: "message" }, | ||
{ no: 16, name: "new_video_stream", kind: "message", T: video_frame_pb_js_1.NewVideoStreamResponse, oneof: "message" }, | ||
{ no: 17, name: "new_video_source", kind: "message", T: video_frame_pb_js_1.NewVideoSourceResponse, oneof: "message" }, | ||
{ no: 18, name: "capture_video_frame", kind: "message", T: video_frame_pb_js_1.CaptureVideoFrameResponse, oneof: "message" }, | ||
{ no: 19, name: "to_i420", kind: "message", T: video_frame_pb_js_1.ToI420Response, oneof: "message" }, | ||
{ no: 20, name: "to_argb", kind: "message", T: video_frame_pb_js_1.ToArgbResponse, oneof: "message" }, | ||
{ no: 21, name: "alloc_audio_buffer", kind: "message", T: audio_frame_pb_js_1.AllocAudioBufferResponse, oneof: "message" }, | ||
{ no: 22, name: "new_audio_stream", kind: "message", T: audio_frame_pb_js_1.NewAudioStreamResponse, oneof: "message" }, | ||
{ no: 23, name: "new_audio_source", kind: "message", T: audio_frame_pb_js_1.NewAudioSourceResponse, oneof: "message" }, | ||
{ no: 24, name: "capture_audio_frame", kind: "message", T: audio_frame_pb_js_1.CaptureAudioFrameResponse, oneof: "message" }, | ||
{ no: 25, name: "new_audio_resampler", kind: "message", T: audio_frame_pb_js_1.NewAudioResamplerResponse, oneof: "message" }, | ||
{ no: 26, name: "remix_and_resample", kind: "message", T: audio_frame_pb_js_1.RemixAndResampleResponse, oneof: "message" }, | ||
{ no: 27, name: "e2ee", kind: "message", T: e2ee_pb_js_1.E2eeResponse, oneof: "message" }, | ||
]); | ||
@@ -227,70 +227,5 @@ /** | ||
{ no: 15, name: "logs", kind: "message", T: LogBatch, oneof: "message" }, | ||
{ no: 16, name: "get_session_stats", kind: "message", T: room_pb_js_1.GetSessionStatsCallback, oneof: "message" }, | ||
]); | ||
/** | ||
* Setup the callback where the foreign language can receive events | ||
* and responses to asynchronous requests | ||
* | ||
* @generated from message livekit.proto.InitializeRequest | ||
*/ | ||
class InitializeRequest extends protobuf_1.Message { | ||
constructor(data) { | ||
super(); | ||
/** | ||
* @generated from field: uint64 event_callback_ptr = 1; | ||
*/ | ||
this.eventCallbackPtr = protobuf_1.protoInt64.zero; | ||
/** | ||
* When true, the FfiServer will forward logs using LogRecord | ||
* | ||
* @generated from field: bool capture_logs = 2; | ||
*/ | ||
this.captureLogs = false; | ||
protobuf_1.proto3.util.initPartial(data, this); | ||
} | ||
static fromBinary(bytes, options) { | ||
return new InitializeRequest().fromBinary(bytes, options); | ||
} | ||
static fromJson(jsonValue, options) { | ||
return new InitializeRequest().fromJson(jsonValue, options); | ||
} | ||
static fromJsonString(jsonString, options) { | ||
return new InitializeRequest().fromJsonString(jsonString, options); | ||
} | ||
static equals(a, b) { | ||
return protobuf_1.proto3.util.equals(InitializeRequest, a, b); | ||
} | ||
} | ||
exports.InitializeRequest = InitializeRequest; | ||
InitializeRequest.runtime = protobuf_1.proto3; | ||
InitializeRequest.typeName = "livekit.proto.InitializeRequest"; | ||
InitializeRequest.fields = protobuf_1.proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "event_callback_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, | ||
{ no: 2, name: "capture_logs", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, | ||
]); | ||
/** | ||
* @generated from message livekit.proto.InitializeResponse | ||
*/ | ||
class InitializeResponse extends protobuf_1.Message { | ||
constructor(data) { | ||
super(); | ||
protobuf_1.proto3.util.initPartial(data, this); | ||
} | ||
static fromBinary(bytes, options) { | ||
return new InitializeResponse().fromBinary(bytes, options); | ||
} | ||
static fromJson(jsonValue, options) { | ||
return new InitializeResponse().fromJson(jsonValue, options); | ||
} | ||
static fromJsonString(jsonString, options) { | ||
return new InitializeResponse().fromJsonString(jsonString, options); | ||
} | ||
static equals(a, b) { | ||
return protobuf_1.proto3.util.equals(InitializeResponse, a, b); | ||
} | ||
} | ||
exports.InitializeResponse = InitializeResponse; | ||
InitializeResponse.runtime = protobuf_1.proto3; | ||
InitializeResponse.typeName = "livekit.proto.InitializeResponse"; | ||
InitializeResponse.fields = protobuf_1.proto3.util.newFieldList(() => []); | ||
/** | ||
* Stop all rooms synchronously (Do we need async here?). | ||
@@ -297,0 +232,0 @@ * e.g: This is used for the Unity Editor after each assemblies reload. |
@@ -19,3 +19,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; | ||
*/ | ||
AV1 = 2 | ||
AV1 = 2, | ||
/** | ||
* @generated from enum value: VP9 = 3; | ||
*/ | ||
VP9 = 3 | ||
} | ||
@@ -22,0 +26,0 @@ /** |
@@ -36,2 +36,6 @@ "use strict"; | ||
VideoCodec[VideoCodec["AV1"] = 2] = "AV1"; | ||
/** | ||
* @generated from enum value: VP9 = 3; | ||
*/ | ||
VideoCodec[VideoCodec["VP9"] = 3] = "VP9"; | ||
})(VideoCodec || (exports.VideoCodec = VideoCodec = {})); | ||
@@ -43,2 +47,3 @@ // Retrieve enum metadata with: proto3.getEnumType(VideoCodec) | ||
{ no: 2, name: "AV1" }, | ||
{ no: 3, name: "VP9" }, | ||
]); | ||
@@ -45,0 +50,0 @@ /** |
@@ -5,3 +5,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"main": "dist/index.js", | ||
@@ -52,8 +52,8 @@ "types": "dist/index.d.ts", | ||
"optionalDependencies": { | ||
"@livekit/rtc-node-darwin-arm64": "0.0.4", | ||
"@livekit/rtc-node-darwin-x64": "0.0.4", | ||
"@livekit/rtc-node-linux-arm64-gnu": "0.0.4", | ||
"@livekit/rtc-node-linux-x64-gnu": "0.0.4", | ||
"@livekit/rtc-node-win32-x64-msvc": "0.0.4" | ||
"@livekit/rtc-node-darwin-arm64": "0.0.5", | ||
"@livekit/rtc-node-darwin-x64": "0.0.5", | ||
"@livekit/rtc-node-linux-arm64-gnu": "0.0.5", | ||
"@livekit/rtc-node-linux-x64-gnu": "0.0.5", | ||
"@livekit/rtc-node-win32-x64-msvc": "0.0.5" | ||
} | ||
} |
@@ -22,3 +22,3 @@ // Copyright 2023 LiveKit, Inc. | ||
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; | ||
import { ConnectCallback, ConnectRequest, ConnectResponse, DisconnectCallback, DisconnectRequest, DisconnectResponse, PublishDataCallback, PublishDataRequest, PublishDataResponse, PublishTrackCallback, PublishTrackRequest, PublishTrackResponse, RoomEvent, SetSubscribedRequest, SetSubscribedResponse, UnpublishTrackCallback, UnpublishTrackRequest, UnpublishTrackResponse, UpdateLocalMetadataCallback, UpdateLocalMetadataRequest, UpdateLocalMetadataResponse, UpdateLocalNameCallback, UpdateLocalNameRequest, UpdateLocalNameResponse } from "./room_pb.js"; | ||
import { ConnectCallback, ConnectRequest, ConnectResponse, DisconnectCallback, DisconnectRequest, DisconnectResponse, GetSessionStatsCallback, GetSessionStatsRequest, GetSessionStatsResponse, PublishDataCallback, PublishDataRequest, PublishDataResponse, PublishTrackCallback, PublishTrackRequest, PublishTrackResponse, RoomEvent, SetSubscribedRequest, SetSubscribedResponse, UnpublishTrackCallback, UnpublishTrackRequest, UnpublishTrackResponse, UpdateLocalMetadataCallback, UpdateLocalMetadataRequest, UpdateLocalMetadataResponse, UpdateLocalNameCallback, UpdateLocalNameRequest, UpdateLocalNameResponse } from "./room_pb.js"; | ||
import { CreateAudioTrackRequest, CreateAudioTrackResponse, CreateVideoTrackRequest, CreateVideoTrackResponse, GetStatsCallback, GetStatsRequest, GetStatsResponse, TrackEvent } from "./track_pb.js"; | ||
@@ -79,8 +79,2 @@ import { AllocVideoBufferRequest, AllocVideoBufferResponse, CaptureVideoFrameRequest, CaptureVideoFrameResponse, NewVideoSourceRequest, NewVideoSourceResponse, NewVideoStreamRequest, NewVideoStreamResponse, ToArgbRequest, ToArgbResponse, ToI420Request, ToI420Response, VideoStreamEvent } from "./video_frame_pb.js"; | ||
/** | ||
* @generated from field: livekit.proto.InitializeRequest initialize = 1; | ||
*/ | ||
value: InitializeRequest; | ||
case: "initialize"; | ||
} | { | ||
/** | ||
* @generated from field: livekit.proto.DisposeRequest dispose = 2; | ||
@@ -142,5 +136,11 @@ */ | ||
/** | ||
* @generated from field: livekit.proto.GetSessionStatsRequest get_session_stats = 11; | ||
*/ | ||
value: GetSessionStatsRequest; | ||
case: "getSessionStats"; | ||
} | { | ||
/** | ||
* Track | ||
* | ||
* @generated from field: livekit.proto.CreateVideoTrackRequest create_video_track = 11; | ||
* @generated from field: livekit.proto.CreateVideoTrackRequest create_video_track = 12; | ||
*/ | ||
@@ -151,3 +151,3 @@ value: CreateVideoTrackRequest; | ||
/** | ||
* @generated from field: livekit.proto.CreateAudioTrackRequest create_audio_track = 12; | ||
* @generated from field: livekit.proto.CreateAudioTrackRequest create_audio_track = 13; | ||
*/ | ||
@@ -158,3 +158,3 @@ value: CreateAudioTrackRequest; | ||
/** | ||
* @generated from field: livekit.proto.GetStatsRequest get_stats = 13; | ||
* @generated from field: livekit.proto.GetStatsRequest get_stats = 14; | ||
*/ | ||
@@ -167,3 +167,3 @@ value: GetStatsRequest; | ||
* | ||
* @generated from field: livekit.proto.AllocVideoBufferRequest alloc_video_buffer = 14; | ||
* @generated from field: livekit.proto.AllocVideoBufferRequest alloc_video_buffer = 15; | ||
*/ | ||
@@ -174,3 +174,3 @@ value: AllocVideoBufferRequest; | ||
/** | ||
* @generated from field: livekit.proto.NewVideoStreamRequest new_video_stream = 15; | ||
* @generated from field: livekit.proto.NewVideoStreamRequest new_video_stream = 16; | ||
*/ | ||
@@ -181,3 +181,3 @@ value: NewVideoStreamRequest; | ||
/** | ||
* @generated from field: livekit.proto.NewVideoSourceRequest new_video_source = 16; | ||
* @generated from field: livekit.proto.NewVideoSourceRequest new_video_source = 17; | ||
*/ | ||
@@ -188,3 +188,3 @@ value: NewVideoSourceRequest; | ||
/** | ||
* @generated from field: livekit.proto.CaptureVideoFrameRequest capture_video_frame = 17; | ||
* @generated from field: livekit.proto.CaptureVideoFrameRequest capture_video_frame = 18; | ||
*/ | ||
@@ -195,3 +195,3 @@ value: CaptureVideoFrameRequest; | ||
/** | ||
* @generated from field: livekit.proto.ToI420Request to_i420 = 18; | ||
* @generated from field: livekit.proto.ToI420Request to_i420 = 19; | ||
*/ | ||
@@ -202,3 +202,3 @@ value: ToI420Request; | ||
/** | ||
* @generated from field: livekit.proto.ToArgbRequest to_argb = 19; | ||
* @generated from field: livekit.proto.ToArgbRequest to_argb = 20; | ||
*/ | ||
@@ -211,3 +211,3 @@ value: ToArgbRequest; | ||
* | ||
* @generated from field: livekit.proto.AllocAudioBufferRequest alloc_audio_buffer = 20; | ||
* @generated from field: livekit.proto.AllocAudioBufferRequest alloc_audio_buffer = 21; | ||
*/ | ||
@@ -218,3 +218,3 @@ value: AllocAudioBufferRequest; | ||
/** | ||
* @generated from field: livekit.proto.NewAudioStreamRequest new_audio_stream = 21; | ||
* @generated from field: livekit.proto.NewAudioStreamRequest new_audio_stream = 22; | ||
*/ | ||
@@ -225,3 +225,3 @@ value: NewAudioStreamRequest; | ||
/** | ||
* @generated from field: livekit.proto.NewAudioSourceRequest new_audio_source = 22; | ||
* @generated from field: livekit.proto.NewAudioSourceRequest new_audio_source = 23; | ||
*/ | ||
@@ -232,3 +232,3 @@ value: NewAudioSourceRequest; | ||
/** | ||
* @generated from field: livekit.proto.CaptureAudioFrameRequest capture_audio_frame = 23; | ||
* @generated from field: livekit.proto.CaptureAudioFrameRequest capture_audio_frame = 24; | ||
*/ | ||
@@ -239,3 +239,3 @@ value: CaptureAudioFrameRequest; | ||
/** | ||
* @generated from field: livekit.proto.NewAudioResamplerRequest new_audio_resampler = 24; | ||
* @generated from field: livekit.proto.NewAudioResamplerRequest new_audio_resampler = 25; | ||
*/ | ||
@@ -246,3 +246,3 @@ value: NewAudioResamplerRequest; | ||
/** | ||
* @generated from field: livekit.proto.RemixAndResampleRequest remix_and_resample = 25; | ||
* @generated from field: livekit.proto.RemixAndResampleRequest remix_and_resample = 26; | ||
*/ | ||
@@ -253,3 +253,3 @@ value: RemixAndResampleRequest; | ||
/** | ||
* @generated from field: livekit.proto.E2eeRequest e2ee = 26; | ||
* @generated from field: livekit.proto.E2eeRequest e2ee = 27; | ||
*/ | ||
@@ -268,3 +268,2 @@ value: E2eeRequest; | ||
static readonly fields: FieldList = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "initialize", kind: "message", T: InitializeRequest, oneof: "message" }, | ||
{ no: 2, name: "dispose", kind: "message", T: DisposeRequest, oneof: "message" }, | ||
@@ -279,18 +278,19 @@ { no: 3, name: "connect", kind: "message", T: ConnectRequest, oneof: "message" }, | ||
{ no: 10, name: "update_local_name", kind: "message", T: UpdateLocalNameRequest, oneof: "message" }, | ||
{ no: 11, name: "create_video_track", kind: "message", T: CreateVideoTrackRequest, oneof: "message" }, | ||
{ no: 12, name: "create_audio_track", kind: "message", T: CreateAudioTrackRequest, oneof: "message" }, | ||
{ no: 13, name: "get_stats", kind: "message", T: GetStatsRequest, oneof: "message" }, | ||
{ no: 14, name: "alloc_video_buffer", kind: "message", T: AllocVideoBufferRequest, oneof: "message" }, | ||
{ no: 15, name: "new_video_stream", kind: "message", T: NewVideoStreamRequest, oneof: "message" }, | ||
{ no: 16, name: "new_video_source", kind: "message", T: NewVideoSourceRequest, oneof: "message" }, | ||
{ no: 17, name: "capture_video_frame", kind: "message", T: CaptureVideoFrameRequest, oneof: "message" }, | ||
{ no: 18, name: "to_i420", kind: "message", T: ToI420Request, oneof: "message" }, | ||
{ no: 19, name: "to_argb", kind: "message", T: ToArgbRequest, oneof: "message" }, | ||
{ no: 20, name: "alloc_audio_buffer", kind: "message", T: AllocAudioBufferRequest, oneof: "message" }, | ||
{ no: 21, name: "new_audio_stream", kind: "message", T: NewAudioStreamRequest, oneof: "message" }, | ||
{ no: 22, name: "new_audio_source", kind: "message", T: NewAudioSourceRequest, oneof: "message" }, | ||
{ no: 23, name: "capture_audio_frame", kind: "message", T: CaptureAudioFrameRequest, oneof: "message" }, | ||
{ no: 24, name: "new_audio_resampler", kind: "message", T: NewAudioResamplerRequest, oneof: "message" }, | ||
{ no: 25, name: "remix_and_resample", kind: "message", T: RemixAndResampleRequest, oneof: "message" }, | ||
{ no: 26, name: "e2ee", kind: "message", T: E2eeRequest, oneof: "message" }, | ||
{ no: 11, name: "get_session_stats", kind: "message", T: GetSessionStatsRequest, oneof: "message" }, | ||
{ no: 12, name: "create_video_track", kind: "message", T: CreateVideoTrackRequest, oneof: "message" }, | ||
{ no: 13, name: "create_audio_track", kind: "message", T: CreateAudioTrackRequest, oneof: "message" }, | ||
{ no: 14, name: "get_stats", kind: "message", T: GetStatsRequest, oneof: "message" }, | ||
{ no: 15, name: "alloc_video_buffer", kind: "message", T: AllocVideoBufferRequest, oneof: "message" }, | ||
{ no: 16, name: "new_video_stream", kind: "message", T: NewVideoStreamRequest, oneof: "message" }, | ||
{ no: 17, name: "new_video_source", kind: "message", T: NewVideoSourceRequest, oneof: "message" }, | ||
{ no: 18, name: "capture_video_frame", kind: "message", T: CaptureVideoFrameRequest, oneof: "message" }, | ||
{ no: 19, name: "to_i420", kind: "message", T: ToI420Request, oneof: "message" }, | ||
{ no: 20, name: "to_argb", kind: "message", T: ToArgbRequest, oneof: "message" }, | ||
{ no: 21, name: "alloc_audio_buffer", kind: "message", T: AllocAudioBufferRequest, oneof: "message" }, | ||
{ no: 22, name: "new_audio_stream", kind: "message", T: NewAudioStreamRequest, oneof: "message" }, | ||
{ no: 23, name: "new_audio_source", kind: "message", T: NewAudioSourceRequest, oneof: "message" }, | ||
{ no: 24, name: "capture_audio_frame", kind: "message", T: CaptureAudioFrameRequest, oneof: "message" }, | ||
{ no: 25, name: "new_audio_resampler", kind: "message", T: NewAudioResamplerRequest, oneof: "message" }, | ||
{ no: 26, name: "remix_and_resample", kind: "message", T: RemixAndResampleRequest, oneof: "message" }, | ||
{ no: 27, name: "e2ee", kind: "message", T: E2eeRequest, oneof: "message" }, | ||
]); | ||
@@ -326,8 +326,2 @@ | ||
/** | ||
* @generated from field: livekit.proto.InitializeResponse initialize = 1; | ||
*/ | ||
value: InitializeResponse; | ||
case: "initialize"; | ||
} | { | ||
/** | ||
* @generated from field: livekit.proto.DisposeResponse dispose = 2; | ||
@@ -389,5 +383,11 @@ */ | ||
/** | ||
* @generated from field: livekit.proto.GetSessionStatsResponse get_session_stats = 11; | ||
*/ | ||
value: GetSessionStatsResponse; | ||
case: "getSessionStats"; | ||
} | { | ||
/** | ||
* Track | ||
* | ||
* @generated from field: livekit.proto.CreateVideoTrackResponse create_video_track = 11; | ||
* @generated from field: livekit.proto.CreateVideoTrackResponse create_video_track = 12; | ||
*/ | ||
@@ -398,3 +398,3 @@ value: CreateVideoTrackResponse; | ||
/** | ||
* @generated from field: livekit.proto.CreateAudioTrackResponse create_audio_track = 12; | ||
* @generated from field: livekit.proto.CreateAudioTrackResponse create_audio_track = 13; | ||
*/ | ||
@@ -405,3 +405,3 @@ value: CreateAudioTrackResponse; | ||
/** | ||
* @generated from field: livekit.proto.GetStatsResponse get_stats = 13; | ||
* @generated from field: livekit.proto.GetStatsResponse get_stats = 14; | ||
*/ | ||
@@ -414,3 +414,3 @@ value: GetStatsResponse; | ||
* | ||
* @generated from field: livekit.proto.AllocVideoBufferResponse alloc_video_buffer = 14; | ||
* @generated from field: livekit.proto.AllocVideoBufferResponse alloc_video_buffer = 15; | ||
*/ | ||
@@ -421,3 +421,3 @@ value: AllocVideoBufferResponse; | ||
/** | ||
* @generated from field: livekit.proto.NewVideoStreamResponse new_video_stream = 15; | ||
* @generated from field: livekit.proto.NewVideoStreamResponse new_video_stream = 16; | ||
*/ | ||
@@ -428,3 +428,3 @@ value: NewVideoStreamResponse; | ||
/** | ||
* @generated from field: livekit.proto.NewVideoSourceResponse new_video_source = 16; | ||
* @generated from field: livekit.proto.NewVideoSourceResponse new_video_source = 17; | ||
*/ | ||
@@ -435,3 +435,3 @@ value: NewVideoSourceResponse; | ||
/** | ||
* @generated from field: livekit.proto.CaptureVideoFrameResponse capture_video_frame = 17; | ||
* @generated from field: livekit.proto.CaptureVideoFrameResponse capture_video_frame = 18; | ||
*/ | ||
@@ -442,3 +442,3 @@ value: CaptureVideoFrameResponse; | ||
/** | ||
* @generated from field: livekit.proto.ToI420Response to_i420 = 18; | ||
* @generated from field: livekit.proto.ToI420Response to_i420 = 19; | ||
*/ | ||
@@ -449,3 +449,3 @@ value: ToI420Response; | ||
/** | ||
* @generated from field: livekit.proto.ToArgbResponse to_argb = 19; | ||
* @generated from field: livekit.proto.ToArgbResponse to_argb = 20; | ||
*/ | ||
@@ -458,3 +458,3 @@ value: ToArgbResponse; | ||
* | ||
* @generated from field: livekit.proto.AllocAudioBufferResponse alloc_audio_buffer = 20; | ||
* @generated from field: livekit.proto.AllocAudioBufferResponse alloc_audio_buffer = 21; | ||
*/ | ||
@@ -465,3 +465,3 @@ value: AllocAudioBufferResponse; | ||
/** | ||
* @generated from field: livekit.proto.NewAudioStreamResponse new_audio_stream = 21; | ||
* @generated from field: livekit.proto.NewAudioStreamResponse new_audio_stream = 22; | ||
*/ | ||
@@ -472,3 +472,3 @@ value: NewAudioStreamResponse; | ||
/** | ||
* @generated from field: livekit.proto.NewAudioSourceResponse new_audio_source = 22; | ||
* @generated from field: livekit.proto.NewAudioSourceResponse new_audio_source = 23; | ||
*/ | ||
@@ -479,3 +479,3 @@ value: NewAudioSourceResponse; | ||
/** | ||
* @generated from field: livekit.proto.CaptureAudioFrameResponse capture_audio_frame = 23; | ||
* @generated from field: livekit.proto.CaptureAudioFrameResponse capture_audio_frame = 24; | ||
*/ | ||
@@ -486,3 +486,3 @@ value: CaptureAudioFrameResponse; | ||
/** | ||
* @generated from field: livekit.proto.NewAudioResamplerResponse new_audio_resampler = 24; | ||
* @generated from field: livekit.proto.NewAudioResamplerResponse new_audio_resampler = 25; | ||
*/ | ||
@@ -493,3 +493,3 @@ value: NewAudioResamplerResponse; | ||
/** | ||
* @generated from field: livekit.proto.RemixAndResampleResponse remix_and_resample = 25; | ||
* @generated from field: livekit.proto.RemixAndResampleResponse remix_and_resample = 26; | ||
*/ | ||
@@ -500,3 +500,3 @@ value: RemixAndResampleResponse; | ||
/** | ||
* @generated from field: livekit.proto.E2eeResponse e2ee = 26; | ||
* @generated from field: livekit.proto.E2eeResponse e2ee = 27; | ||
*/ | ||
@@ -515,3 +515,2 @@ value: E2eeResponse; | ||
static readonly fields: FieldList = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "initialize", kind: "message", T: InitializeResponse, oneof: "message" }, | ||
{ no: 2, name: "dispose", kind: "message", T: DisposeResponse, oneof: "message" }, | ||
@@ -526,18 +525,19 @@ { no: 3, name: "connect", kind: "message", T: ConnectResponse, oneof: "message" }, | ||
{ no: 10, name: "update_local_name", kind: "message", T: UpdateLocalNameResponse, oneof: "message" }, | ||
{ no: 11, name: "create_video_track", kind: "message", T: CreateVideoTrackResponse, oneof: "message" }, | ||
{ no: 12, name: "create_audio_track", kind: "message", T: CreateAudioTrackResponse, oneof: "message" }, | ||
{ no: 13, name: "get_stats", kind: "message", T: GetStatsResponse, oneof: "message" }, | ||
{ no: 14, name: "alloc_video_buffer", kind: "message", T: AllocVideoBufferResponse, oneof: "message" }, | ||
{ no: 15, name: "new_video_stream", kind: "message", T: NewVideoStreamResponse, oneof: "message" }, | ||
{ no: 16, name: "new_video_source", kind: "message", T: NewVideoSourceResponse, oneof: "message" }, | ||
{ no: 17, name: "capture_video_frame", kind: "message", T: CaptureVideoFrameResponse, oneof: "message" }, | ||
{ no: 18, name: "to_i420", kind: "message", T: ToI420Response, oneof: "message" }, | ||
{ no: 19, name: "to_argb", kind: "message", T: ToArgbResponse, oneof: "message" }, | ||
{ no: 20, name: "alloc_audio_buffer", kind: "message", T: AllocAudioBufferResponse, oneof: "message" }, | ||
{ no: 21, name: "new_audio_stream", kind: "message", T: NewAudioStreamResponse, oneof: "message" }, | ||
{ no: 22, name: "new_audio_source", kind: "message", T: NewAudioSourceResponse, oneof: "message" }, | ||
{ no: 23, name: "capture_audio_frame", kind: "message", T: CaptureAudioFrameResponse, oneof: "message" }, | ||
{ no: 24, name: "new_audio_resampler", kind: "message", T: NewAudioResamplerResponse, oneof: "message" }, | ||
{ no: 25, name: "remix_and_resample", kind: "message", T: RemixAndResampleResponse, oneof: "message" }, | ||
{ no: 26, name: "e2ee", kind: "message", T: E2eeResponse, oneof: "message" }, | ||
{ no: 11, name: "get_session_stats", kind: "message", T: GetSessionStatsResponse, oneof: "message" }, | ||
{ no: 12, name: "create_video_track", kind: "message", T: CreateVideoTrackResponse, oneof: "message" }, | ||
{ no: 13, name: "create_audio_track", kind: "message", T: CreateAudioTrackResponse, oneof: "message" }, | ||
{ no: 14, name: "get_stats", kind: "message", T: GetStatsResponse, oneof: "message" }, | ||
{ no: 15, name: "alloc_video_buffer", kind: "message", T: AllocVideoBufferResponse, oneof: "message" }, | ||
{ no: 16, name: "new_video_stream", kind: "message", T: NewVideoStreamResponse, oneof: "message" }, | ||
{ no: 17, name: "new_video_source", kind: "message", T: NewVideoSourceResponse, oneof: "message" }, | ||
{ no: 18, name: "capture_video_frame", kind: "message", T: CaptureVideoFrameResponse, oneof: "message" }, | ||
{ no: 19, name: "to_i420", kind: "message", T: ToI420Response, oneof: "message" }, | ||
{ no: 20, name: "to_argb", kind: "message", T: ToArgbResponse, oneof: "message" }, | ||
{ no: 21, name: "alloc_audio_buffer", kind: "message", T: AllocAudioBufferResponse, oneof: "message" }, | ||
{ no: 22, name: "new_audio_stream", kind: "message", T: NewAudioStreamResponse, oneof: "message" }, | ||
{ no: 23, name: "new_audio_source", kind: "message", T: NewAudioSourceResponse, oneof: "message" }, | ||
{ no: 24, name: "capture_audio_frame", kind: "message", T: CaptureAudioFrameResponse, oneof: "message" }, | ||
{ no: 25, name: "new_audio_resampler", kind: "message", T: NewAudioResamplerResponse, oneof: "message" }, | ||
{ no: 26, name: "remix_and_resample", kind: "message", T: RemixAndResampleResponse, oneof: "message" }, | ||
{ no: 27, name: "e2ee", kind: "message", T: E2eeResponse, oneof: "message" }, | ||
]); | ||
@@ -663,2 +663,8 @@ | ||
case: "logs"; | ||
} | { | ||
/** | ||
* @generated from field: livekit.proto.GetSessionStatsCallback get_session_stats = 16; | ||
*/ | ||
value: GetSessionStatsCallback; | ||
case: "getSessionStats"; | ||
} | { case: undefined; value?: undefined } = { case: undefined }; | ||
@@ -689,2 +695,3 @@ | ||
{ no: 15, name: "logs", kind: "message", T: LogBatch, oneof: "message" }, | ||
{ no: 16, name: "get_session_stats", kind: "message", T: GetSessionStatsCallback, oneof: "message" }, | ||
]); | ||
@@ -710,81 +717,2 @@ | ||
/** | ||
* Setup the callback where the foreign language can receive events | ||
* and responses to asynchronous requests | ||
* | ||
* @generated from message livekit.proto.InitializeRequest | ||
*/ | ||
export class InitializeRequest extends Message<InitializeRequest> { | ||
/** | ||
* @generated from field: uint64 event_callback_ptr = 1; | ||
*/ | ||
eventCallbackPtr = protoInt64.zero; | ||
/** | ||
* When true, the FfiServer will forward logs using LogRecord | ||
* | ||
* @generated from field: bool capture_logs = 2; | ||
*/ | ||
captureLogs = false; | ||
constructor(data?: PartialMessage<InitializeRequest>) { | ||
super(); | ||
proto3.util.initPartial(data, this); | ||
} | ||
static readonly runtime: typeof proto3 = proto3; | ||
static readonly typeName = "livekit.proto.InitializeRequest"; | ||
static readonly fields: FieldList = proto3.util.newFieldList(() => [ | ||
{ no: 1, name: "event_callback_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, | ||
{ no: 2, name: "capture_logs", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, | ||
]); | ||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InitializeRequest { | ||
return new InitializeRequest().fromBinary(bytes, options); | ||
} | ||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InitializeRequest { | ||
return new InitializeRequest().fromJson(jsonValue, options); | ||
} | ||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InitializeRequest { | ||
return new InitializeRequest().fromJsonString(jsonString, options); | ||
} | ||
static equals(a: InitializeRequest | PlainMessage<InitializeRequest> | undefined, b: InitializeRequest | PlainMessage<InitializeRequest> | undefined): boolean { | ||
return proto3.util.equals(InitializeRequest, a, b); | ||
} | ||
} | ||
/** | ||
* @generated from message livekit.proto.InitializeResponse | ||
*/ | ||
export class InitializeResponse extends Message<InitializeResponse> { | ||
constructor(data?: PartialMessage<InitializeResponse>) { | ||
super(); | ||
proto3.util.initPartial(data, this); | ||
} | ||
static readonly runtime: typeof proto3 = proto3; | ||
static readonly typeName = "livekit.proto.InitializeResponse"; | ||
static readonly fields: FieldList = proto3.util.newFieldList(() => [ | ||
]); | ||
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): InitializeResponse { | ||
return new InitializeResponse().fromBinary(bytes, options); | ||
} | ||
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): InitializeResponse { | ||
return new InitializeResponse().fromJson(jsonValue, options); | ||
} | ||
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): InitializeResponse { | ||
return new InitializeResponse().fromJsonString(jsonString, options); | ||
} | ||
static equals(a: InitializeResponse | PlainMessage<InitializeResponse> | undefined, b: InitializeResponse | PlainMessage<InitializeResponse> | undefined): boolean { | ||
return proto3.util.equals(InitializeResponse, a, b); | ||
} | ||
} | ||
/** | ||
* Stop all rooms synchronously (Do we need async here?). | ||
@@ -791,0 +719,0 @@ * e.g: This is used for the Unity Editor after each assemblies reload. |
@@ -42,2 +42,7 @@ // Copyright 2023 LiveKit, Inc. | ||
AV1 = 2, | ||
/** | ||
* @generated from enum value: VP9 = 3; | ||
*/ | ||
VP9 = 3, | ||
} | ||
@@ -49,2 +54,3 @@ // Retrieve enum metadata with: proto3.getEnumType(VideoCodec) | ||
{ no: 2, name: "AV1" }, | ||
{ no: 3, name: "VP9" }, | ||
]); | ||
@@ -51,0 +57,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1707634
29161