Skip to content

Commit

Permalink
fix(proto): don't crash on plain JavaScript (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbsp authored Nov 4, 2024
1 parent 3b5194e commit 3874322
Show file tree
Hide file tree
Showing 12 changed files with 78 additions and 72 deletions.
5 changes: 5 additions & 0 deletions .changeset/itchy-walls-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@livekit/rtc-node": patch
---

fix(proto): don't crash on plain JavaScript
1 change: 1 addition & 0 deletions packages/livekit-rtc/generate_proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ PATH=$PATH:$(pwd)/node_modules/.bin \
-I=$FFI_PROTOCOL \
--es_out $FFI_OUT_NODE \
--es_opt target=ts \
--es_opt import_extension=js \
$FFI_PROTOCOL/audio_frame.proto \
$FFI_PROTOCOL/ffi.proto \
$FFI_PROTOCOL/handle.proto \
Expand Down
24 changes: 12 additions & 12 deletions packages/livekit-rtc/src/proto/audio_frame_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// @generated by protoc-gen-es v2.2.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.2.0 with parameter "target=ts,import_extension=js"
// @generated from file audio_frame.proto (package livekit.proto, syntax proto2)
/* eslint-disable */

import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
import type { FfiOwnedHandle } from "./handle_pb";
import { file_handle } from "./handle_pb";
import type { TrackSource } from "./track_pb";
import { file_track } from "./track_pb";
import type { FfiOwnedHandle } from "./handle_pb.js";
import { file_handle } from "./handle_pb.js";
import type { TrackSource } from "./track_pb.js";
import { file_track } from "./track_pb.js";
import type { Message } from "@bufbuild/protobuf";

/**
* Describes the file audio_frame.proto.
*/
export const file_audio_frame: GenFile = /*@__PURE__*/
fileDesc("ChFhdWRpb19mcmFtZS5wcm90bxINbGl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V9JTlQxNkkQABIYChRTT1hSX0RBVEFUWVBFX0lOVDE2UxABKosBChBTb3hRdWFsaXR5UmVjaXBlEhYKElNPWFJfUVVBTElUWV9RVUlDSxAAEhQKEFNPWFJfUVVBTElUWV9MT1cQARIXChNTT1hSX1FVQUxJVFlfTUVESVVNEAISFQoRU09YUl9RVUFMSVRZX0hJR0gQAxIZChVTT1hSX1FVQUxJVFlfVkVSWUhJR0gQBCqXAQoLU294RmxhZ0JpdHMSFgoSU09YUl9ST0xMT0ZGX1NNQUxMEAASFwoTU09YUl9ST0xMT0ZGX01FRElVTRABEhUKEVNPWFJfUk9MTE9GRl9OT05FEAISGAoUU09YUl9ISUdIX1BSRUNfQ0xPQ0sQAxIZChVTT1hSX0RPVUJMRV9QUkVDSVNJT04QBBILCgdTT1hSX1ZSEAUqQQoPQXVkaW9TdHJlYW1UeXBlEhcKE0FVRElPX1NUUkVBTV9OQVRJVkUQABIVChFBVURJT19TVFJFQU1fSFRNTBABKioKD0F1ZGlvU291cmNlVHlwZRIXChNBVURJT19TT1VSQ0VfTkFUSVZFEABCEKoCDUxpdmVLaXQuUHJvdG8", [file_handle, file_track]);

/**
* Create a new AudioStream
Expand All @@ -48,12 +48,12 @@ export type NewAudioStreamRequest = Message<"livekit.proto.NewAudioStreamRequest
type: AudioStreamType;

/**
* @generated from field: required uint32 sample_rate = 3;
* @generated from field: optional uint32 sample_rate = 3;
*/
sampleRate: number;

/**
* @generated from field: required uint32 num_channels = 4;
* @generated from field: optional uint32 num_channels = 4;
*/
numChannels: number;
};
Expand Down Expand Up @@ -102,12 +102,12 @@ export type AudioStreamFromParticipantRequest = Message<"livekit.proto.AudioStre
trackSource: TrackSource;

/**
* @generated from field: required uint32 sample_rate = 5;
* @generated from field: optional uint32 sample_rate = 5;
*/
sampleRate: number;

/**
* @generated from field: required uint32 num_channels = 6;
* @generated from field: optional uint32 num_channels = 6;
*/
numChannels: number;
};
Expand Down Expand Up @@ -163,7 +163,7 @@ export type NewAudioSourceRequest = Message<"livekit.proto.NewAudioSourceRequest
numChannels: number;

/**
* @generated from field: required uint32 queue_size_ms = 5;
* @generated from field: optional uint32 queue_size_ms = 5;
*/
queueSizeMs: number;
};
Expand Down Expand Up @@ -404,7 +404,7 @@ export type NewSoxResamplerRequest = Message<"livekit.proto.NewSoxResamplerReque
qualityRecipe: SoxQualityRecipe;

/**
* @generated from field: required uint32 flags = 7;
* @generated from field: optional uint32 flags = 7;
*/
flags: number;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/livekit-rtc/src/proto/e2ee_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// @generated by protoc-gen-es v2.2.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.2.0 with parameter "target=ts,import_extension=js"
// @generated from file e2ee.proto (package livekit.proto, syntax proto2)
/* eslint-disable */

Expand Down
26 changes: 13 additions & 13 deletions packages/livekit-rtc/src/proto/ffi_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// @generated by protoc-gen-es v2.2.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.2.0 with parameter "target=ts,import_extension=js"
// @generated from file ffi.proto (package livekit.proto, syntax proto2)
/* eslint-disable */

import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
import type { E2eeRequest, E2eeResponse } from "./e2ee_pb";
import { file_e2ee } from "./e2ee_pb";
import type { CreateAudioTrackRequest, CreateAudioTrackResponse, CreateVideoTrackRequest, CreateVideoTrackResponse, EnableRemoteTrackRequest, EnableRemoteTrackResponse, GetStatsCallback, GetStatsRequest, GetStatsResponse, LocalTrackMuteRequest, LocalTrackMuteResponse, TrackEvent } from "./track_pb";
import { file_track } from "./track_pb";
import type { ConnectCallback, ConnectRequest, ConnectResponse, DisconnectCallback, DisconnectRequest, DisconnectResponse, EditChatMessageRequest, GetSessionStatsCallback, GetSessionStatsRequest, GetSessionStatsResponse, PublishDataCallback, PublishDataRequest, PublishDataResponse, PublishSipDtmfCallback, PublishSipDtmfRequest, PublishSipDtmfResponse, PublishTrackCallback, PublishTrackRequest, PublishTrackResponse, PublishTranscriptionCallback, PublishTranscriptionRequest, PublishTranscriptionResponse, RoomEvent, SendChatMessageCallback, SendChatMessageRequest, SendChatMessageResponse, SetLocalAttributesCallback, SetLocalAttributesRequest, SetLocalAttributesResponse, SetLocalMetadataCallback, SetLocalMetadataRequest, SetLocalMetadataResponse, SetLocalNameCallback, SetLocalNameRequest, SetLocalNameResponse, SetSubscribedRequest, SetSubscribedResponse, UnpublishTrackCallback, UnpublishTrackRequest, UnpublishTrackResponse } from "./room_pb";
import { file_room } from "./room_pb";
import type { CaptureVideoFrameRequest, CaptureVideoFrameResponse, NewVideoSourceRequest, NewVideoSourceResponse, NewVideoStreamRequest, NewVideoStreamResponse, VideoConvertRequest, VideoConvertResponse, VideoStreamEvent, VideoStreamFromParticipantRequest, VideoStreamFromParticipantResponse } from "./video_frame_pb";
import { file_video_frame } from "./video_frame_pb";
import type { AudioStreamEvent, AudioStreamFromParticipantRequest, AudioStreamFromParticipantResponse, CaptureAudioFrameCallback, CaptureAudioFrameRequest, CaptureAudioFrameResponse, ClearAudioBufferRequest, ClearAudioBufferResponse, FlushSoxResamplerRequest, FlushSoxResamplerResponse, NewAudioResamplerRequest, NewAudioResamplerResponse, NewAudioSourceRequest, NewAudioSourceResponse, NewAudioStreamRequest, NewAudioStreamResponse, NewSoxResamplerRequest, NewSoxResamplerResponse, PushSoxResamplerRequest, PushSoxResamplerResponse, RemixAndResampleRequest, RemixAndResampleResponse } from "./audio_frame_pb";
import { file_audio_frame } from "./audio_frame_pb";
import type { PerformRpcCallback, PerformRpcRequest, PerformRpcResponse, RegisterRpcMethodRequest, RegisterRpcMethodResponse, RpcMethodInvocationEvent, RpcMethodInvocationResponseRequest, RpcMethodInvocationResponseResponse, UnregisterRpcMethodRequest, UnregisterRpcMethodResponse } from "./rpc_pb";
import { file_rpc } from "./rpc_pb";
import type { E2eeRequest, E2eeResponse } from "./e2ee_pb.js";
import { file_e2ee } from "./e2ee_pb.js";
import type { CreateAudioTrackRequest, CreateAudioTrackResponse, CreateVideoTrackRequest, CreateVideoTrackResponse, EnableRemoteTrackRequest, EnableRemoteTrackResponse, GetStatsCallback, GetStatsRequest, GetStatsResponse, LocalTrackMuteRequest, LocalTrackMuteResponse, TrackEvent } from "./track_pb.js";
import { file_track } from "./track_pb.js";
import type { ConnectCallback, ConnectRequest, ConnectResponse, DisconnectCallback, DisconnectRequest, DisconnectResponse, EditChatMessageRequest, GetSessionStatsCallback, GetSessionStatsRequest, GetSessionStatsResponse, PublishDataCallback, PublishDataRequest, PublishDataResponse, PublishSipDtmfCallback, PublishSipDtmfRequest, PublishSipDtmfResponse, PublishTrackCallback, PublishTrackRequest, PublishTrackResponse, PublishTranscriptionCallback, PublishTranscriptionRequest, PublishTranscriptionResponse, RoomEvent, SendChatMessageCallback, SendChatMessageRequest, SendChatMessageResponse, SetLocalAttributesCallback, SetLocalAttributesRequest, SetLocalAttributesResponse, SetLocalMetadataCallback, SetLocalMetadataRequest, SetLocalMetadataResponse, SetLocalNameCallback, SetLocalNameRequest, SetLocalNameResponse, SetSubscribedRequest, SetSubscribedResponse, UnpublishTrackCallback, UnpublishTrackRequest, UnpublishTrackResponse } from "./room_pb.js";
import { file_room } from "./room_pb.js";
import type { CaptureVideoFrameRequest, CaptureVideoFrameResponse, NewVideoSourceRequest, NewVideoSourceResponse, NewVideoStreamRequest, NewVideoStreamResponse, VideoConvertRequest, VideoConvertResponse, VideoStreamEvent, VideoStreamFromParticipantRequest, VideoStreamFromParticipantResponse } from "./video_frame_pb.js";
import { file_video_frame } from "./video_frame_pb.js";
import type { AudioStreamEvent, AudioStreamFromParticipantRequest, AudioStreamFromParticipantResponse, CaptureAudioFrameCallback, CaptureAudioFrameRequest, CaptureAudioFrameResponse, ClearAudioBufferRequest, ClearAudioBufferResponse, FlushSoxResamplerRequest, FlushSoxResamplerResponse, NewAudioResamplerRequest, NewAudioResamplerResponse, NewAudioSourceRequest, NewAudioSourceResponse, NewAudioStreamRequest, NewAudioStreamResponse, NewSoxResamplerRequest, NewSoxResamplerResponse, PushSoxResamplerRequest, PushSoxResamplerResponse, RemixAndResampleRequest, RemixAndResampleResponse } from "./audio_frame_pb.js";
import { file_audio_frame } from "./audio_frame_pb.js";
import type { PerformRpcCallback, PerformRpcRequest, PerformRpcResponse, RegisterRpcMethodRequest, RegisterRpcMethodResponse, RpcMethodInvocationEvent, RpcMethodInvocationResponseRequest, RpcMethodInvocationResponseResponse, UnregisterRpcMethodRequest, UnregisterRpcMethodResponse } from "./rpc_pb.js";
import { file_rpc } from "./rpc_pb.js";
import type { Message } from "@bufbuild/protobuf";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/livekit-rtc/src/proto/handle_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// @generated by protoc-gen-es v2.2.0 with parameter "target=ts"
// @generated by protoc-gen-es v2.2.0 with parameter "target=ts,import_extension=js"
// @generated from file handle.proto (package livekit.proto, syntax proto2)
/* eslint-disable */

Expand Down
Loading

0 comments on commit 3874322

Please sign in to comment.