@livekit/rtc-node 0.13.18 → 0.13.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/audio_frame.d.ts.map +1 -1
  2. package/dist/audio_source.cjs +1 -1
  3. package/dist/audio_source.cjs.map +1 -1
  4. package/dist/audio_source.js +1 -1
  5. package/dist/audio_source.js.map +1 -1
  6. package/dist/data_streams/stream_reader.cjs +2 -2
  7. package/dist/data_streams/stream_reader.cjs.map +1 -1
  8. package/dist/data_streams/stream_reader.js +2 -2
  9. package/dist/data_streams/stream_reader.js.map +1 -1
  10. package/dist/proto/audio_frame_pb.cjs.map +1 -1
  11. package/dist/proto/audio_frame_pb.js.map +1 -1
  12. package/dist/proto/data_stream_pb.cjs.map +1 -1
  13. package/dist/proto/data_stream_pb.js.map +1 -1
  14. package/dist/proto/e2ee_pb.cjs.map +1 -1
  15. package/dist/proto/e2ee_pb.js.map +1 -1
  16. package/dist/proto/ffi_pb.cjs.map +1 -1
  17. package/dist/proto/ffi_pb.js.map +1 -1
  18. package/dist/proto/handle_pb.cjs.map +1 -1
  19. package/dist/proto/handle_pb.js.map +1 -1
  20. package/dist/proto/participant_pb.cjs.map +1 -1
  21. package/dist/proto/participant_pb.js.map +1 -1
  22. package/dist/proto/room_pb.cjs.map +1 -1
  23. package/dist/proto/room_pb.js.map +1 -1
  24. package/dist/proto/rpc_pb.cjs.map +1 -1
  25. package/dist/proto/rpc_pb.js.map +1 -1
  26. package/dist/proto/stats_pb.cjs.map +1 -1
  27. package/dist/proto/stats_pb.js.map +1 -1
  28. package/dist/proto/track_pb.cjs.map +1 -1
  29. package/dist/proto/track_pb.js.map +1 -1
  30. package/dist/proto/track_publication_pb.cjs.map +1 -1
  31. package/dist/proto/track_publication_pb.js.map +1 -1
  32. package/dist/proto/video_frame_pb.cjs.map +1 -1
  33. package/dist/proto/video_frame_pb.js.map +1 -1
  34. package/dist/room.cjs +11 -2
  35. package/dist/room.cjs.map +1 -1
  36. package/dist/room.d.ts.map +1 -1
  37. package/dist/room.js +11 -2
  38. package/dist/room.js.map +1 -1
  39. package/dist/version.cjs +1 -1
  40. package/dist/version.cjs.map +1 -1
  41. package/dist/version.d.cts +1 -1
  42. package/dist/version.d.ts +1 -1
  43. package/dist/version.js +1 -1
  44. package/dist/version.js.map +1 -1
  45. package/package.json +9 -9
  46. package/src/audio_source.ts +1 -1
  47. package/src/data_streams/stream_reader.ts +4 -4
  48. package/src/proto/audio_frame_pb.ts +1 -1
  49. package/src/proto/data_stream_pb.ts +1 -1
  50. package/src/proto/e2ee_pb.ts +1 -1
  51. package/src/proto/ffi_pb.ts +1 -1
  52. package/src/proto/handle_pb.ts +1 -1
  53. package/src/proto/participant_pb.ts +1 -1
  54. package/src/proto/room_pb.ts +1 -1
  55. package/src/proto/rpc_pb.ts +1 -1
  56. package/src/proto/stats_pb.ts +1 -1
  57. package/src/proto/track_pb.ts +1 -1
  58. package/src/proto/track_publication_pb.ts +1 -1
  59. package/src/proto/video_frame_pb.ts +1 -1
  60. package/src/room.ts +11 -2
  61. package/src/version.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/proto/video_frame_pb.ts"],"sourcesContent":["// Copyright 2023 LiveKit, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n// @generated by protoc-gen-es v1.10.0 with parameter \"target=ts,import_extension=.js\"\n// @generated from file video_frame.proto (package livekit.proto, syntax proto2)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from \"@bufbuild/protobuf\";\nimport { Message, proto2 } from \"@bufbuild/protobuf\";\nimport { TrackSource } from \"./track_pb.js\";\nimport { FfiOwnedHandle } from \"./handle_pb.js\";\n\n/**\n * @generated from enum livekit.proto.VideoCodec\n */\nexport enum VideoCodec {\n /**\n * @generated from enum value: VP8 = 0;\n */\n VP8 = 0,\n\n /**\n * @generated from enum value: H264 = 1;\n */\n H264 = 1,\n\n /**\n * @generated from enum value: AV1 = 2;\n */\n AV1 = 2,\n\n /**\n * @generated from enum value: VP9 = 3;\n */\n VP9 = 3,\n}\n// Retrieve enum metadata with: proto2.getEnumType(VideoCodec)\nproto2.util.setEnumType(VideoCodec, \"livekit.proto.VideoCodec\", [\n { no: 0, name: \"VP8\" },\n { no: 1, name: \"H264\" },\n { no: 2, name: \"AV1\" },\n { no: 3, name: \"VP9\" },\n]);\n\n/**\n * @generated from enum livekit.proto.VideoRotation\n */\nexport enum VideoRotation {\n /**\n * @generated from enum value: VIDEO_ROTATION_0 = 0;\n */\n VIDEO_ROTATION_0 = 0,\n\n /**\n * @generated from enum value: VIDEO_ROTATION_90 = 1;\n */\n VIDEO_ROTATION_90 = 1,\n\n /**\n * @generated from enum value: VIDEO_ROTATION_180 = 2;\n */\n VIDEO_ROTATION_180 = 2,\n\n /**\n * @generated from enum value: VIDEO_ROTATION_270 = 3;\n */\n VIDEO_ROTATION_270 = 3,\n}\n// Retrieve enum metadata with: proto2.getEnumType(VideoRotation)\nproto2.util.setEnumType(VideoRotation, \"livekit.proto.VideoRotation\", [\n { no: 0, name: \"VIDEO_ROTATION_0\" },\n { no: 1, name: \"VIDEO_ROTATION_90\" },\n { no: 2, name: \"VIDEO_ROTATION_180\" },\n { no: 3, name: \"VIDEO_ROTATION_270\" },\n]);\n\n/**\n * Values of this enum must not be changed\n * It is used to serialize a rtc.VideoFrame on Python\n *\n * @generated from enum livekit.proto.VideoBufferType\n */\nexport enum VideoBufferType {\n /**\n * @generated from enum value: RGBA = 0;\n */\n RGBA = 0,\n\n /**\n * @generated from enum value: ABGR = 1;\n */\n ABGR = 1,\n\n /**\n * @generated from enum value: ARGB = 2;\n */\n ARGB = 2,\n\n /**\n * @generated from enum value: BGRA = 3;\n */\n BGRA = 3,\n\n /**\n * @generated from enum value: RGB24 = 4;\n */\n RGB24 = 4,\n\n /**\n * @generated from enum value: I420 = 5;\n */\n I420 = 5,\n\n /**\n * @generated from enum value: I420A = 6;\n */\n I420A = 6,\n\n /**\n * @generated from enum value: I422 = 7;\n */\n I422 = 7,\n\n /**\n * @generated from enum value: I444 = 8;\n */\n I444 = 8,\n\n /**\n * @generated from enum value: I010 = 9;\n */\n I010 = 9,\n\n /**\n * @generated from enum value: NV12 = 10;\n */\n NV12 = 10,\n}\n// Retrieve enum metadata with: proto2.getEnumType(VideoBufferType)\nproto2.util.setEnumType(VideoBufferType, \"livekit.proto.VideoBufferType\", [\n { no: 0, name: \"RGBA\" },\n { no: 1, name: \"ABGR\" },\n { no: 2, name: \"ARGB\" },\n { no: 3, name: \"BGRA\" },\n { no: 4, name: \"RGB24\" },\n { no: 5, name: \"I420\" },\n { no: 6, name: \"I420A\" },\n { no: 7, name: \"I422\" },\n { no: 8, name: \"I444\" },\n { no: 9, name: \"I010\" },\n { no: 10, name: \"NV12\" },\n]);\n\n/**\n * @generated from enum livekit.proto.VideoStreamType\n */\nexport enum VideoStreamType {\n /**\n * @generated from enum value: VIDEO_STREAM_NATIVE = 0;\n */\n VIDEO_STREAM_NATIVE = 0,\n\n /**\n * @generated from enum value: VIDEO_STREAM_WEBGL = 1;\n */\n VIDEO_STREAM_WEBGL = 1,\n\n /**\n * @generated from enum value: VIDEO_STREAM_HTML = 2;\n */\n VIDEO_STREAM_HTML = 2,\n}\n// Retrieve enum metadata with: proto2.getEnumType(VideoStreamType)\nproto2.util.setEnumType(VideoStreamType, \"livekit.proto.VideoStreamType\", [\n { no: 0, name: \"VIDEO_STREAM_NATIVE\" },\n { no: 1, name: \"VIDEO_STREAM_WEBGL\" },\n { no: 2, name: \"VIDEO_STREAM_HTML\" },\n]);\n\n/**\n * @generated from enum livekit.proto.VideoSourceType\n */\nexport enum VideoSourceType {\n /**\n * @generated from enum value: VIDEO_SOURCE_NATIVE = 0;\n */\n VIDEO_SOURCE_NATIVE = 0,\n}\n// Retrieve enum metadata with: proto2.getEnumType(VideoSourceType)\nproto2.util.setEnumType(VideoSourceType, \"livekit.proto.VideoSourceType\", [\n { no: 0, name: \"VIDEO_SOURCE_NATIVE\" },\n]);\n\n/**\n * Create a new VideoStream\n * VideoStream is used to receive video frames from a track\n *\n * @generated from message livekit.proto.NewVideoStreamRequest\n */\nexport class NewVideoStreamRequest extends Message<NewVideoStreamRequest> {\n /**\n * @generated from field: required uint64 track_handle = 1;\n */\n trackHandle?: bigint;\n\n /**\n * @generated from field: required livekit.proto.VideoStreamType type = 2;\n */\n type?: VideoStreamType;\n\n /**\n * Get the frame on a specific format\n *\n * @generated from field: optional livekit.proto.VideoBufferType format = 3;\n */\n format?: VideoBufferType;\n\n /**\n * if true, stride will be set to width/chroma_width\n *\n * @generated from field: optional bool normalize_stride = 4;\n */\n normalizeStride?: boolean;\n\n constructor(data?: PartialMessage<NewVideoStreamRequest>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.NewVideoStreamRequest\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"track_handle\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"type\", kind: \"enum\", T: proto2.getEnumType(VideoStreamType), req: true },\n { no: 3, name: \"format\", kind: \"enum\", T: proto2.getEnumType(VideoBufferType), opt: true },\n { no: 4, name: \"normalize_stride\", kind: \"scalar\", T: 8 /* ScalarType.BOOL */, opt: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoStreamRequest {\n return new NewVideoStreamRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoStreamRequest {\n return new NewVideoStreamRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoStreamRequest {\n return new NewVideoStreamRequest().fromJsonString(jsonString, options);\n }\n\n static equals(a: NewVideoStreamRequest | PlainMessage<NewVideoStreamRequest> | undefined, b: NewVideoStreamRequest | PlainMessage<NewVideoStreamRequest> | undefined): boolean {\n return proto2.util.equals(NewVideoStreamRequest, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.NewVideoStreamResponse\n */\nexport class NewVideoStreamResponse extends Message<NewVideoStreamResponse> {\n /**\n * @generated from field: required livekit.proto.OwnedVideoStream stream = 1;\n */\n stream?: OwnedVideoStream;\n\n constructor(data?: PartialMessage<NewVideoStreamResponse>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.NewVideoStreamResponse\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"stream\", kind: \"message\", T: OwnedVideoStream, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoStreamResponse {\n return new NewVideoStreamResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoStreamResponse {\n return new NewVideoStreamResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoStreamResponse {\n return new NewVideoStreamResponse().fromJsonString(jsonString, options);\n }\n\n static equals(a: NewVideoStreamResponse | PlainMessage<NewVideoStreamResponse> | undefined, b: NewVideoStreamResponse | PlainMessage<NewVideoStreamResponse> | undefined): boolean {\n return proto2.util.equals(NewVideoStreamResponse, a, b);\n }\n}\n\n/**\n * Request a video stream from a participant\n *\n * @generated from message livekit.proto.VideoStreamFromParticipantRequest\n */\nexport class VideoStreamFromParticipantRequest extends Message<VideoStreamFromParticipantRequest> {\n /**\n * @generated from field: required uint64 participant_handle = 1;\n */\n participantHandle?: bigint;\n\n /**\n * @generated from field: required livekit.proto.VideoStreamType type = 2;\n */\n type?: VideoStreamType;\n\n /**\n * @generated from field: required livekit.proto.TrackSource track_source = 3;\n */\n trackSource?: TrackSource;\n\n /**\n * @generated from field: optional livekit.proto.VideoBufferType format = 4;\n */\n format?: VideoBufferType;\n\n /**\n * @generated from field: optional bool normalize_stride = 5;\n */\n normalizeStride?: boolean;\n\n constructor(data?: PartialMessage<VideoStreamFromParticipantRequest>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoStreamFromParticipantRequest\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"participant_handle\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"type\", kind: \"enum\", T: proto2.getEnumType(VideoStreamType), req: true },\n { no: 3, name: \"track_source\", kind: \"enum\", T: proto2.getEnumType(TrackSource), req: true },\n { no: 4, name: \"format\", kind: \"enum\", T: proto2.getEnumType(VideoBufferType), opt: true },\n { no: 5, name: \"normalize_stride\", kind: \"scalar\", T: 8 /* ScalarType.BOOL */, opt: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamFromParticipantRequest {\n return new VideoStreamFromParticipantRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantRequest {\n return new VideoStreamFromParticipantRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantRequest {\n return new VideoStreamFromParticipantRequest().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoStreamFromParticipantRequest | PlainMessage<VideoStreamFromParticipantRequest> | undefined, b: VideoStreamFromParticipantRequest | PlainMessage<VideoStreamFromParticipantRequest> | undefined): boolean {\n return proto2.util.equals(VideoStreamFromParticipantRequest, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoStreamFromParticipantResponse\n */\nexport class VideoStreamFromParticipantResponse extends Message<VideoStreamFromParticipantResponse> {\n /**\n * @generated from field: required livekit.proto.OwnedVideoStream stream = 1;\n */\n stream?: OwnedVideoStream;\n\n constructor(data?: PartialMessage<VideoStreamFromParticipantResponse>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoStreamFromParticipantResponse\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"stream\", kind: \"message\", T: OwnedVideoStream, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamFromParticipantResponse {\n return new VideoStreamFromParticipantResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantResponse {\n return new VideoStreamFromParticipantResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantResponse {\n return new VideoStreamFromParticipantResponse().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoStreamFromParticipantResponse | PlainMessage<VideoStreamFromParticipantResponse> | undefined, b: VideoStreamFromParticipantResponse | PlainMessage<VideoStreamFromParticipantResponse> | undefined): boolean {\n return proto2.util.equals(VideoStreamFromParticipantResponse, a, b);\n }\n}\n\n/**\n * Create a new VideoSource\n * VideoSource is used to send video frame to a track\n *\n * @generated from message livekit.proto.NewVideoSourceRequest\n */\nexport class NewVideoSourceRequest extends Message<NewVideoSourceRequest> {\n /**\n * @generated from field: required livekit.proto.VideoSourceType type = 1;\n */\n type?: VideoSourceType;\n\n /**\n * Used to determine which encodings to use + simulcast layers\n * Most of the time it corresponds to the source resolution \n *\n * @generated from field: required livekit.proto.VideoSourceResolution resolution = 2;\n */\n resolution?: VideoSourceResolution;\n\n constructor(data?: PartialMessage<NewVideoSourceRequest>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.NewVideoSourceRequest\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"type\", kind: \"enum\", T: proto2.getEnumType(VideoSourceType), req: true },\n { no: 2, name: \"resolution\", kind: \"message\", T: VideoSourceResolution, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoSourceRequest {\n return new NewVideoSourceRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoSourceRequest {\n return new NewVideoSourceRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoSourceRequest {\n return new NewVideoSourceRequest().fromJsonString(jsonString, options);\n }\n\n static equals(a: NewVideoSourceRequest | PlainMessage<NewVideoSourceRequest> | undefined, b: NewVideoSourceRequest | PlainMessage<NewVideoSourceRequest> | undefined): boolean {\n return proto2.util.equals(NewVideoSourceRequest, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.NewVideoSourceResponse\n */\nexport class NewVideoSourceResponse extends Message<NewVideoSourceResponse> {\n /**\n * @generated from field: required livekit.proto.OwnedVideoSource source = 1;\n */\n source?: OwnedVideoSource;\n\n constructor(data?: PartialMessage<NewVideoSourceResponse>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.NewVideoSourceResponse\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"source\", kind: \"message\", T: OwnedVideoSource, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoSourceResponse {\n return new NewVideoSourceResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoSourceResponse {\n return new NewVideoSourceResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoSourceResponse {\n return new NewVideoSourceResponse().fromJsonString(jsonString, options);\n }\n\n static equals(a: NewVideoSourceResponse | PlainMessage<NewVideoSourceResponse> | undefined, b: NewVideoSourceResponse | PlainMessage<NewVideoSourceResponse> | undefined): boolean {\n return proto2.util.equals(NewVideoSourceResponse, a, b);\n }\n}\n\n/**\n * Push a frame to a VideoSource\n *\n * @generated from message livekit.proto.CaptureVideoFrameRequest\n */\nexport class CaptureVideoFrameRequest extends Message<CaptureVideoFrameRequest> {\n /**\n * @generated from field: required uint64 source_handle = 1;\n */\n sourceHandle?: bigint;\n\n /**\n * @generated from field: required livekit.proto.VideoBufferInfo buffer = 2;\n */\n buffer?: VideoBufferInfo;\n\n /**\n * In microseconds\n *\n * @generated from field: required int64 timestamp_us = 3;\n */\n timestampUs?: bigint;\n\n /**\n * @generated from field: required livekit.proto.VideoRotation rotation = 4;\n */\n rotation?: VideoRotation;\n\n constructor(data?: PartialMessage<CaptureVideoFrameRequest>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.CaptureVideoFrameRequest\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"source_handle\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"buffer\", kind: \"message\", T: VideoBufferInfo, req: true },\n { no: 3, name: \"timestamp_us\", kind: \"scalar\", T: 3 /* ScalarType.INT64 */, req: true },\n { no: 4, name: \"rotation\", kind: \"enum\", T: proto2.getEnumType(VideoRotation), req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureVideoFrameRequest {\n return new CaptureVideoFrameRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureVideoFrameRequest {\n return new CaptureVideoFrameRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureVideoFrameRequest {\n return new CaptureVideoFrameRequest().fromJsonString(jsonString, options);\n }\n\n static equals(a: CaptureVideoFrameRequest | PlainMessage<CaptureVideoFrameRequest> | undefined, b: CaptureVideoFrameRequest | PlainMessage<CaptureVideoFrameRequest> | undefined): boolean {\n return proto2.util.equals(CaptureVideoFrameRequest, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.CaptureVideoFrameResponse\n */\nexport class CaptureVideoFrameResponse extends Message<CaptureVideoFrameResponse> {\n constructor(data?: PartialMessage<CaptureVideoFrameResponse>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.CaptureVideoFrameResponse\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureVideoFrameResponse {\n return new CaptureVideoFrameResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureVideoFrameResponse {\n return new CaptureVideoFrameResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureVideoFrameResponse {\n return new CaptureVideoFrameResponse().fromJsonString(jsonString, options);\n }\n\n static equals(a: CaptureVideoFrameResponse | PlainMessage<CaptureVideoFrameResponse> | undefined, b: CaptureVideoFrameResponse | PlainMessage<CaptureVideoFrameResponse> | undefined): boolean {\n return proto2.util.equals(CaptureVideoFrameResponse, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoConvertRequest\n */\nexport class VideoConvertRequest extends Message<VideoConvertRequest> {\n /**\n * @generated from field: optional bool flip_y = 1;\n */\n flipY?: boolean;\n\n /**\n * @generated from field: required livekit.proto.VideoBufferInfo buffer = 2;\n */\n buffer?: VideoBufferInfo;\n\n /**\n * @generated from field: required livekit.proto.VideoBufferType dst_type = 3;\n */\n dstType?: VideoBufferType;\n\n constructor(data?: PartialMessage<VideoConvertRequest>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoConvertRequest\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"flip_y\", kind: \"scalar\", T: 8 /* ScalarType.BOOL */, opt: true },\n { no: 2, name: \"buffer\", kind: \"message\", T: VideoBufferInfo, req: true },\n { no: 3, name: \"dst_type\", kind: \"enum\", T: proto2.getEnumType(VideoBufferType), req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConvertRequest {\n return new VideoConvertRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConvertRequest {\n return new VideoConvertRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConvertRequest {\n return new VideoConvertRequest().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoConvertRequest | PlainMessage<VideoConvertRequest> | undefined, b: VideoConvertRequest | PlainMessage<VideoConvertRequest> | undefined): boolean {\n return proto2.util.equals(VideoConvertRequest, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoConvertResponse\n */\nexport class VideoConvertResponse extends Message<VideoConvertResponse> {\n /**\n * @generated from oneof livekit.proto.VideoConvertResponse.message\n */\n message: {\n /**\n * @generated from field: string error = 1;\n */\n value: string;\n case: \"error\";\n } | {\n /**\n * @generated from field: livekit.proto.OwnedVideoBuffer buffer = 2;\n */\n value: OwnedVideoBuffer;\n case: \"buffer\";\n } | { case: undefined; value?: undefined } = { case: undefined };\n\n constructor(data?: PartialMessage<VideoConvertResponse>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoConvertResponse\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"error\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, oneof: \"message\" },\n { no: 2, name: \"buffer\", kind: \"message\", T: OwnedVideoBuffer, oneof: \"message\" },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConvertResponse {\n return new VideoConvertResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConvertResponse {\n return new VideoConvertResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConvertResponse {\n return new VideoConvertResponse().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoConvertResponse | PlainMessage<VideoConvertResponse> | undefined, b: VideoConvertResponse | PlainMessage<VideoConvertResponse> | undefined): boolean {\n return proto2.util.equals(VideoConvertResponse, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoResolution\n */\nexport class VideoResolution extends Message<VideoResolution> {\n /**\n * @generated from field: required uint32 width = 1;\n */\n width?: number;\n\n /**\n * @generated from field: required uint32 height = 2;\n */\n height?: number;\n\n /**\n * @generated from field: required double frame_rate = 3;\n */\n frameRate?: number;\n\n constructor(data?: PartialMessage<VideoResolution>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoResolution\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"width\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n { no: 2, name: \"height\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n { no: 3, name: \"frame_rate\", kind: \"scalar\", T: 1 /* ScalarType.DOUBLE */, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoResolution {\n return new VideoResolution().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoResolution {\n return new VideoResolution().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoResolution {\n return new VideoResolution().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoResolution | PlainMessage<VideoResolution> | undefined, b: VideoResolution | PlainMessage<VideoResolution> | undefined): boolean {\n return proto2.util.equals(VideoResolution, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoBufferInfo\n */\nexport class VideoBufferInfo extends Message<VideoBufferInfo> {\n /**\n * @generated from field: required livekit.proto.VideoBufferType type = 1;\n */\n type?: VideoBufferType;\n\n /**\n * @generated from field: required uint32 width = 2;\n */\n width?: number;\n\n /**\n * @generated from field: required uint32 height = 3;\n */\n height?: number;\n\n /**\n * @generated from field: required uint64 data_ptr = 4;\n */\n dataPtr?: bigint;\n\n /**\n * only for packed formats\n *\n * @generated from field: optional uint32 stride = 6;\n */\n stride?: number;\n\n /**\n * @generated from field: repeated livekit.proto.VideoBufferInfo.ComponentInfo components = 7;\n */\n components: VideoBufferInfo_ComponentInfo[] = [];\n\n constructor(data?: PartialMessage<VideoBufferInfo>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoBufferInfo\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"type\", kind: \"enum\", T: proto2.getEnumType(VideoBufferType), req: true },\n { no: 2, name: \"width\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n { no: 3, name: \"height\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n { no: 4, name: \"data_ptr\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 6, name: \"stride\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, opt: true },\n { no: 7, name: \"components\", kind: \"message\", T: VideoBufferInfo_ComponentInfo, repeated: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoBufferInfo {\n return new VideoBufferInfo().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoBufferInfo {\n return new VideoBufferInfo().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoBufferInfo {\n return new VideoBufferInfo().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoBufferInfo | PlainMessage<VideoBufferInfo> | undefined, b: VideoBufferInfo | PlainMessage<VideoBufferInfo> | undefined): boolean {\n return proto2.util.equals(VideoBufferInfo, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoBufferInfo.ComponentInfo\n */\nexport class VideoBufferInfo_ComponentInfo extends Message<VideoBufferInfo_ComponentInfo> {\n /**\n * @generated from field: required uint64 data_ptr = 1;\n */\n dataPtr?: bigint;\n\n /**\n * @generated from field: required uint32 stride = 2;\n */\n stride?: number;\n\n /**\n * @generated from field: required uint32 size = 3;\n */\n size?: number;\n\n constructor(data?: PartialMessage<VideoBufferInfo_ComponentInfo>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoBufferInfo.ComponentInfo\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"data_ptr\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"stride\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n { no: 3, name: \"size\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoBufferInfo_ComponentInfo {\n return new VideoBufferInfo_ComponentInfo().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoBufferInfo_ComponentInfo {\n return new VideoBufferInfo_ComponentInfo().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoBufferInfo_ComponentInfo {\n return new VideoBufferInfo_ComponentInfo().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoBufferInfo_ComponentInfo | PlainMessage<VideoBufferInfo_ComponentInfo> | undefined, b: VideoBufferInfo_ComponentInfo | PlainMessage<VideoBufferInfo_ComponentInfo> | undefined): boolean {\n return proto2.util.equals(VideoBufferInfo_ComponentInfo, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.OwnedVideoBuffer\n */\nexport class OwnedVideoBuffer extends Message<OwnedVideoBuffer> {\n /**\n * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;\n */\n handle?: FfiOwnedHandle;\n\n /**\n * @generated from field: required livekit.proto.VideoBufferInfo info = 2;\n */\n info?: VideoBufferInfo;\n\n constructor(data?: PartialMessage<OwnedVideoBuffer>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.OwnedVideoBuffer\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"handle\", kind: \"message\", T: FfiOwnedHandle, req: true },\n { no: 2, name: \"info\", kind: \"message\", T: VideoBufferInfo, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoBuffer {\n return new OwnedVideoBuffer().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoBuffer {\n return new OwnedVideoBuffer().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoBuffer {\n return new OwnedVideoBuffer().fromJsonString(jsonString, options);\n }\n\n static equals(a: OwnedVideoBuffer | PlainMessage<OwnedVideoBuffer> | undefined, b: OwnedVideoBuffer | PlainMessage<OwnedVideoBuffer> | undefined): boolean {\n return proto2.util.equals(OwnedVideoBuffer, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoStreamInfo\n */\nexport class VideoStreamInfo extends Message<VideoStreamInfo> {\n /**\n * @generated from field: required livekit.proto.VideoStreamType type = 1;\n */\n type?: VideoStreamType;\n\n constructor(data?: PartialMessage<VideoStreamInfo>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoStreamInfo\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"type\", kind: \"enum\", T: proto2.getEnumType(VideoStreamType), req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamInfo {\n return new VideoStreamInfo().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamInfo {\n return new VideoStreamInfo().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamInfo {\n return new VideoStreamInfo().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoStreamInfo | PlainMessage<VideoStreamInfo> | undefined, b: VideoStreamInfo | PlainMessage<VideoStreamInfo> | undefined): boolean {\n return proto2.util.equals(VideoStreamInfo, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.OwnedVideoStream\n */\nexport class OwnedVideoStream extends Message<OwnedVideoStream> {\n /**\n * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;\n */\n handle?: FfiOwnedHandle;\n\n /**\n * @generated from field: required livekit.proto.VideoStreamInfo info = 2;\n */\n info?: VideoStreamInfo;\n\n constructor(data?: PartialMessage<OwnedVideoStream>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.OwnedVideoStream\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"handle\", kind: \"message\", T: FfiOwnedHandle, req: true },\n { no: 2, name: \"info\", kind: \"message\", T: VideoStreamInfo, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoStream {\n return new OwnedVideoStream().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoStream {\n return new OwnedVideoStream().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoStream {\n return new OwnedVideoStream().fromJsonString(jsonString, options);\n }\n\n static equals(a: OwnedVideoStream | PlainMessage<OwnedVideoStream> | undefined, b: OwnedVideoStream | PlainMessage<OwnedVideoStream> | undefined): boolean {\n return proto2.util.equals(OwnedVideoStream, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoStreamEvent\n */\nexport class VideoStreamEvent extends Message<VideoStreamEvent> {\n /**\n * @generated from field: required uint64 stream_handle = 1;\n */\n streamHandle?: bigint;\n\n /**\n * @generated from oneof livekit.proto.VideoStreamEvent.message\n */\n message: {\n /**\n * @generated from field: livekit.proto.VideoFrameReceived frame_received = 2;\n */\n value: VideoFrameReceived;\n case: \"frameReceived\";\n } | {\n /**\n * @generated from field: livekit.proto.VideoStreamEOS eos = 3;\n */\n value: VideoStreamEOS;\n case: \"eos\";\n } | { case: undefined; value?: undefined } = { case: undefined };\n\n constructor(data?: PartialMessage<VideoStreamEvent>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoStreamEvent\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"stream_handle\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"frame_received\", kind: \"message\", T: VideoFrameReceived, oneof: \"message\" },\n { no: 3, name: \"eos\", kind: \"message\", T: VideoStreamEOS, oneof: \"message\" },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamEvent {\n return new VideoStreamEvent().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamEvent {\n return new VideoStreamEvent().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamEvent {\n return new VideoStreamEvent().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoStreamEvent | PlainMessage<VideoStreamEvent> | undefined, b: VideoStreamEvent | PlainMessage<VideoStreamEvent> | undefined): boolean {\n return proto2.util.equals(VideoStreamEvent, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoFrameReceived\n */\nexport class VideoFrameReceived extends Message<VideoFrameReceived> {\n /**\n * @generated from field: required livekit.proto.OwnedVideoBuffer buffer = 1;\n */\n buffer?: OwnedVideoBuffer;\n\n /**\n * In microseconds\n *\n * @generated from field: required int64 timestamp_us = 2;\n */\n timestampUs?: bigint;\n\n /**\n * @generated from field: required livekit.proto.VideoRotation rotation = 3;\n */\n rotation?: VideoRotation;\n\n constructor(data?: PartialMessage<VideoFrameReceived>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoFrameReceived\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"buffer\", kind: \"message\", T: OwnedVideoBuffer, req: true },\n { no: 2, name: \"timestamp_us\", kind: \"scalar\", T: 3 /* ScalarType.INT64 */, req: true },\n { no: 3, name: \"rotation\", kind: \"enum\", T: proto2.getEnumType(VideoRotation), req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoFrameReceived {\n return new VideoFrameReceived().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoFrameReceived {\n return new VideoFrameReceived().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoFrameReceived {\n return new VideoFrameReceived().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoFrameReceived | PlainMessage<VideoFrameReceived> | undefined, b: VideoFrameReceived | PlainMessage<VideoFrameReceived> | undefined): boolean {\n return proto2.util.equals(VideoFrameReceived, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoStreamEOS\n */\nexport class VideoStreamEOS extends Message<VideoStreamEOS> {\n constructor(data?: PartialMessage<VideoStreamEOS>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoStreamEOS\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamEOS {\n return new VideoStreamEOS().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamEOS {\n return new VideoStreamEOS().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamEOS {\n return new VideoStreamEOS().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoStreamEOS | PlainMessage<VideoStreamEOS> | undefined, b: VideoStreamEOS | PlainMessage<VideoStreamEOS> | undefined): boolean {\n return proto2.util.equals(VideoStreamEOS, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoSourceResolution\n */\nexport class VideoSourceResolution extends Message<VideoSourceResolution> {\n /**\n * @generated from field: required uint32 width = 1;\n */\n width?: number;\n\n /**\n * @generated from field: required uint32 height = 2;\n */\n height?: number;\n\n constructor(data?: PartialMessage<VideoSourceResolution>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoSourceResolution\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"width\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n { no: 2, name: \"height\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoSourceResolution {\n return new VideoSourceResolution().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoSourceResolution {\n return new VideoSourceResolution().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoSourceResolution {\n return new VideoSourceResolution().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoSourceResolution | PlainMessage<VideoSourceResolution> | undefined, b: VideoSourceResolution | PlainMessage<VideoSourceResolution> | undefined): boolean {\n return proto2.util.equals(VideoSourceResolution, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoSourceInfo\n */\nexport class VideoSourceInfo extends Message<VideoSourceInfo> {\n /**\n * @generated from field: required livekit.proto.VideoSourceType type = 1;\n */\n type?: VideoSourceType;\n\n constructor(data?: PartialMessage<VideoSourceInfo>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoSourceInfo\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"type\", kind: \"enum\", T: proto2.getEnumType(VideoSourceType), req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoSourceInfo {\n return new VideoSourceInfo().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoSourceInfo {\n return new VideoSourceInfo().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoSourceInfo {\n return new VideoSourceInfo().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoSourceInfo | PlainMessage<VideoSourceInfo> | undefined, b: VideoSourceInfo | PlainMessage<VideoSourceInfo> | undefined): boolean {\n return proto2.util.equals(VideoSourceInfo, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.OwnedVideoSource\n */\nexport class OwnedVideoSource extends Message<OwnedVideoSource> {\n /**\n * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;\n */\n handle?: FfiOwnedHandle;\n\n /**\n * @generated from field: required livekit.proto.VideoSourceInfo info = 2;\n */\n info?: VideoSourceInfo;\n\n constructor(data?: PartialMessage<OwnedVideoSource>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.OwnedVideoSource\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"handle\", kind: \"message\", T: FfiOwnedHandle, req: true },\n { no: 2, name: \"info\", kind: \"message\", T: VideoSourceInfo, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoSource {\n return new OwnedVideoSource().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoSource {\n return new OwnedVideoSource().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoSource {\n return new OwnedVideoSource().fromJsonString(jsonString, options);\n }\n\n static equals(a: OwnedVideoSource | PlainMessage<OwnedVideoSource> | undefined, b: OwnedVideoSource | PlainMessage<OwnedVideoSource> | undefined): boolean {\n return proto2.util.equals(OwnedVideoSource, a, b);\n }\n}\n\n"],"mappings":"AAoBA,SAAS,SAAS,cAAc;AAChC,SAAS,mBAAmB;AAC5B,SAAS,sBAAsB;AAKxB,IAAK,aAAL,kBAAKA,gBAAL;AAIL,EAAAA,wBAAA,SAAM,KAAN;AAKA,EAAAA,wBAAA,UAAO,KAAP;AAKA,EAAAA,wBAAA,SAAM,KAAN;AAKA,EAAAA,wBAAA,SAAM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O,OAAO,KAAK,OAAO,mBAAkB,GAAG,CAAC;AAAA,EAClD;AACF;AAtCa,kBAgBK,UAAyB;AAhB9B,kBAiBK,WAAW;AAjBhB,kBAkBK,SAAoB,OAAO,KAAK,aAAa,MAAM;AAAA,EACjE,EAAE,IAAI,GAAG,MAAM,UAAU,MAAM,WAAW,GAAG,gBAAgB,KAAK,KAAK;AAAA,EACvE,EAAE,IAAI,GAAG,MAAM,QAAQ,MAAM,WAAW,GAAG,iBAAiB,KAAK,KAAK;AACxE,CAAC;AArBI,IAAM,mBAAN;","names":["VideoCodec","VideoRotation","VideoBufferType","VideoStreamType","VideoSourceType"]}
1
+ {"version":3,"sources":["../../src/proto/video_frame_pb.ts"],"sourcesContent":["// Copyright 2023 LiveKit, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n// @generated by protoc-gen-es v1.10.1 with parameter \"target=ts,import_extension=.js\"\n// @generated from file video_frame.proto (package livekit.proto, syntax proto2)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from \"@bufbuild/protobuf\";\nimport { Message, proto2 } from \"@bufbuild/protobuf\";\nimport { TrackSource } from \"./track_pb.js\";\nimport { FfiOwnedHandle } from \"./handle_pb.js\";\n\n/**\n * @generated from enum livekit.proto.VideoCodec\n */\nexport enum VideoCodec {\n /**\n * @generated from enum value: VP8 = 0;\n */\n VP8 = 0,\n\n /**\n * @generated from enum value: H264 = 1;\n */\n H264 = 1,\n\n /**\n * @generated from enum value: AV1 = 2;\n */\n AV1 = 2,\n\n /**\n * @generated from enum value: VP9 = 3;\n */\n VP9 = 3,\n}\n// Retrieve enum metadata with: proto2.getEnumType(VideoCodec)\nproto2.util.setEnumType(VideoCodec, \"livekit.proto.VideoCodec\", [\n { no: 0, name: \"VP8\" },\n { no: 1, name: \"H264\" },\n { no: 2, name: \"AV1\" },\n { no: 3, name: \"VP9\" },\n]);\n\n/**\n * @generated from enum livekit.proto.VideoRotation\n */\nexport enum VideoRotation {\n /**\n * @generated from enum value: VIDEO_ROTATION_0 = 0;\n */\n VIDEO_ROTATION_0 = 0,\n\n /**\n * @generated from enum value: VIDEO_ROTATION_90 = 1;\n */\n VIDEO_ROTATION_90 = 1,\n\n /**\n * @generated from enum value: VIDEO_ROTATION_180 = 2;\n */\n VIDEO_ROTATION_180 = 2,\n\n /**\n * @generated from enum value: VIDEO_ROTATION_270 = 3;\n */\n VIDEO_ROTATION_270 = 3,\n}\n// Retrieve enum metadata with: proto2.getEnumType(VideoRotation)\nproto2.util.setEnumType(VideoRotation, \"livekit.proto.VideoRotation\", [\n { no: 0, name: \"VIDEO_ROTATION_0\" },\n { no: 1, name: \"VIDEO_ROTATION_90\" },\n { no: 2, name: \"VIDEO_ROTATION_180\" },\n { no: 3, name: \"VIDEO_ROTATION_270\" },\n]);\n\n/**\n * Values of this enum must not be changed\n * It is used to serialize a rtc.VideoFrame on Python\n *\n * @generated from enum livekit.proto.VideoBufferType\n */\nexport enum VideoBufferType {\n /**\n * @generated from enum value: RGBA = 0;\n */\n RGBA = 0,\n\n /**\n * @generated from enum value: ABGR = 1;\n */\n ABGR = 1,\n\n /**\n * @generated from enum value: ARGB = 2;\n */\n ARGB = 2,\n\n /**\n * @generated from enum value: BGRA = 3;\n */\n BGRA = 3,\n\n /**\n * @generated from enum value: RGB24 = 4;\n */\n RGB24 = 4,\n\n /**\n * @generated from enum value: I420 = 5;\n */\n I420 = 5,\n\n /**\n * @generated from enum value: I420A = 6;\n */\n I420A = 6,\n\n /**\n * @generated from enum value: I422 = 7;\n */\n I422 = 7,\n\n /**\n * @generated from enum value: I444 = 8;\n */\n I444 = 8,\n\n /**\n * @generated from enum value: I010 = 9;\n */\n I010 = 9,\n\n /**\n * @generated from enum value: NV12 = 10;\n */\n NV12 = 10,\n}\n// Retrieve enum metadata with: proto2.getEnumType(VideoBufferType)\nproto2.util.setEnumType(VideoBufferType, \"livekit.proto.VideoBufferType\", [\n { no: 0, name: \"RGBA\" },\n { no: 1, name: \"ABGR\" },\n { no: 2, name: \"ARGB\" },\n { no: 3, name: \"BGRA\" },\n { no: 4, name: \"RGB24\" },\n { no: 5, name: \"I420\" },\n { no: 6, name: \"I420A\" },\n { no: 7, name: \"I422\" },\n { no: 8, name: \"I444\" },\n { no: 9, name: \"I010\" },\n { no: 10, name: \"NV12\" },\n]);\n\n/**\n * @generated from enum livekit.proto.VideoStreamType\n */\nexport enum VideoStreamType {\n /**\n * @generated from enum value: VIDEO_STREAM_NATIVE = 0;\n */\n VIDEO_STREAM_NATIVE = 0,\n\n /**\n * @generated from enum value: VIDEO_STREAM_WEBGL = 1;\n */\n VIDEO_STREAM_WEBGL = 1,\n\n /**\n * @generated from enum value: VIDEO_STREAM_HTML = 2;\n */\n VIDEO_STREAM_HTML = 2,\n}\n// Retrieve enum metadata with: proto2.getEnumType(VideoStreamType)\nproto2.util.setEnumType(VideoStreamType, \"livekit.proto.VideoStreamType\", [\n { no: 0, name: \"VIDEO_STREAM_NATIVE\" },\n { no: 1, name: \"VIDEO_STREAM_WEBGL\" },\n { no: 2, name: \"VIDEO_STREAM_HTML\" },\n]);\n\n/**\n * @generated from enum livekit.proto.VideoSourceType\n */\nexport enum VideoSourceType {\n /**\n * @generated from enum value: VIDEO_SOURCE_NATIVE = 0;\n */\n VIDEO_SOURCE_NATIVE = 0,\n}\n// Retrieve enum metadata with: proto2.getEnumType(VideoSourceType)\nproto2.util.setEnumType(VideoSourceType, \"livekit.proto.VideoSourceType\", [\n { no: 0, name: \"VIDEO_SOURCE_NATIVE\" },\n]);\n\n/**\n * Create a new VideoStream\n * VideoStream is used to receive video frames from a track\n *\n * @generated from message livekit.proto.NewVideoStreamRequest\n */\nexport class NewVideoStreamRequest extends Message<NewVideoStreamRequest> {\n /**\n * @generated from field: required uint64 track_handle = 1;\n */\n trackHandle?: bigint;\n\n /**\n * @generated from field: required livekit.proto.VideoStreamType type = 2;\n */\n type?: VideoStreamType;\n\n /**\n * Get the frame on a specific format\n *\n * @generated from field: optional livekit.proto.VideoBufferType format = 3;\n */\n format?: VideoBufferType;\n\n /**\n * if true, stride will be set to width/chroma_width\n *\n * @generated from field: optional bool normalize_stride = 4;\n */\n normalizeStride?: boolean;\n\n constructor(data?: PartialMessage<NewVideoStreamRequest>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.NewVideoStreamRequest\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"track_handle\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"type\", kind: \"enum\", T: proto2.getEnumType(VideoStreamType), req: true },\n { no: 3, name: \"format\", kind: \"enum\", T: proto2.getEnumType(VideoBufferType), opt: true },\n { no: 4, name: \"normalize_stride\", kind: \"scalar\", T: 8 /* ScalarType.BOOL */, opt: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoStreamRequest {\n return new NewVideoStreamRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoStreamRequest {\n return new NewVideoStreamRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoStreamRequest {\n return new NewVideoStreamRequest().fromJsonString(jsonString, options);\n }\n\n static equals(a: NewVideoStreamRequest | PlainMessage<NewVideoStreamRequest> | undefined, b: NewVideoStreamRequest | PlainMessage<NewVideoStreamRequest> | undefined): boolean {\n return proto2.util.equals(NewVideoStreamRequest, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.NewVideoStreamResponse\n */\nexport class NewVideoStreamResponse extends Message<NewVideoStreamResponse> {\n /**\n * @generated from field: required livekit.proto.OwnedVideoStream stream = 1;\n */\n stream?: OwnedVideoStream;\n\n constructor(data?: PartialMessage<NewVideoStreamResponse>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.NewVideoStreamResponse\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"stream\", kind: \"message\", T: OwnedVideoStream, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoStreamResponse {\n return new NewVideoStreamResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoStreamResponse {\n return new NewVideoStreamResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoStreamResponse {\n return new NewVideoStreamResponse().fromJsonString(jsonString, options);\n }\n\n static equals(a: NewVideoStreamResponse | PlainMessage<NewVideoStreamResponse> | undefined, b: NewVideoStreamResponse | PlainMessage<NewVideoStreamResponse> | undefined): boolean {\n return proto2.util.equals(NewVideoStreamResponse, a, b);\n }\n}\n\n/**\n * Request a video stream from a participant\n *\n * @generated from message livekit.proto.VideoStreamFromParticipantRequest\n */\nexport class VideoStreamFromParticipantRequest extends Message<VideoStreamFromParticipantRequest> {\n /**\n * @generated from field: required uint64 participant_handle = 1;\n */\n participantHandle?: bigint;\n\n /**\n * @generated from field: required livekit.proto.VideoStreamType type = 2;\n */\n type?: VideoStreamType;\n\n /**\n * @generated from field: required livekit.proto.TrackSource track_source = 3;\n */\n trackSource?: TrackSource;\n\n /**\n * @generated from field: optional livekit.proto.VideoBufferType format = 4;\n */\n format?: VideoBufferType;\n\n /**\n * @generated from field: optional bool normalize_stride = 5;\n */\n normalizeStride?: boolean;\n\n constructor(data?: PartialMessage<VideoStreamFromParticipantRequest>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoStreamFromParticipantRequest\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"participant_handle\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"type\", kind: \"enum\", T: proto2.getEnumType(VideoStreamType), req: true },\n { no: 3, name: \"track_source\", kind: \"enum\", T: proto2.getEnumType(TrackSource), req: true },\n { no: 4, name: \"format\", kind: \"enum\", T: proto2.getEnumType(VideoBufferType), opt: true },\n { no: 5, name: \"normalize_stride\", kind: \"scalar\", T: 8 /* ScalarType.BOOL */, opt: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamFromParticipantRequest {\n return new VideoStreamFromParticipantRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantRequest {\n return new VideoStreamFromParticipantRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantRequest {\n return new VideoStreamFromParticipantRequest().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoStreamFromParticipantRequest | PlainMessage<VideoStreamFromParticipantRequest> | undefined, b: VideoStreamFromParticipantRequest | PlainMessage<VideoStreamFromParticipantRequest> | undefined): boolean {\n return proto2.util.equals(VideoStreamFromParticipantRequest, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoStreamFromParticipantResponse\n */\nexport class VideoStreamFromParticipantResponse extends Message<VideoStreamFromParticipantResponse> {\n /**\n * @generated from field: required livekit.proto.OwnedVideoStream stream = 1;\n */\n stream?: OwnedVideoStream;\n\n constructor(data?: PartialMessage<VideoStreamFromParticipantResponse>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoStreamFromParticipantResponse\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"stream\", kind: \"message\", T: OwnedVideoStream, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamFromParticipantResponse {\n return new VideoStreamFromParticipantResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantResponse {\n return new VideoStreamFromParticipantResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamFromParticipantResponse {\n return new VideoStreamFromParticipantResponse().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoStreamFromParticipantResponse | PlainMessage<VideoStreamFromParticipantResponse> | undefined, b: VideoStreamFromParticipantResponse | PlainMessage<VideoStreamFromParticipantResponse> | undefined): boolean {\n return proto2.util.equals(VideoStreamFromParticipantResponse, a, b);\n }\n}\n\n/**\n * Create a new VideoSource\n * VideoSource is used to send video frame to a track\n *\n * @generated from message livekit.proto.NewVideoSourceRequest\n */\nexport class NewVideoSourceRequest extends Message<NewVideoSourceRequest> {\n /**\n * @generated from field: required livekit.proto.VideoSourceType type = 1;\n */\n type?: VideoSourceType;\n\n /**\n * Used to determine which encodings to use + simulcast layers\n * Most of the time it corresponds to the source resolution \n *\n * @generated from field: required livekit.proto.VideoSourceResolution resolution = 2;\n */\n resolution?: VideoSourceResolution;\n\n constructor(data?: PartialMessage<NewVideoSourceRequest>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.NewVideoSourceRequest\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"type\", kind: \"enum\", T: proto2.getEnumType(VideoSourceType), req: true },\n { no: 2, name: \"resolution\", kind: \"message\", T: VideoSourceResolution, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoSourceRequest {\n return new NewVideoSourceRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoSourceRequest {\n return new NewVideoSourceRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoSourceRequest {\n return new NewVideoSourceRequest().fromJsonString(jsonString, options);\n }\n\n static equals(a: NewVideoSourceRequest | PlainMessage<NewVideoSourceRequest> | undefined, b: NewVideoSourceRequest | PlainMessage<NewVideoSourceRequest> | undefined): boolean {\n return proto2.util.equals(NewVideoSourceRequest, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.NewVideoSourceResponse\n */\nexport class NewVideoSourceResponse extends Message<NewVideoSourceResponse> {\n /**\n * @generated from field: required livekit.proto.OwnedVideoSource source = 1;\n */\n source?: OwnedVideoSource;\n\n constructor(data?: PartialMessage<NewVideoSourceResponse>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.NewVideoSourceResponse\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"source\", kind: \"message\", T: OwnedVideoSource, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewVideoSourceResponse {\n return new NewVideoSourceResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): NewVideoSourceResponse {\n return new NewVideoSourceResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): NewVideoSourceResponse {\n return new NewVideoSourceResponse().fromJsonString(jsonString, options);\n }\n\n static equals(a: NewVideoSourceResponse | PlainMessage<NewVideoSourceResponse> | undefined, b: NewVideoSourceResponse | PlainMessage<NewVideoSourceResponse> | undefined): boolean {\n return proto2.util.equals(NewVideoSourceResponse, a, b);\n }\n}\n\n/**\n * Push a frame to a VideoSource\n *\n * @generated from message livekit.proto.CaptureVideoFrameRequest\n */\nexport class CaptureVideoFrameRequest extends Message<CaptureVideoFrameRequest> {\n /**\n * @generated from field: required uint64 source_handle = 1;\n */\n sourceHandle?: bigint;\n\n /**\n * @generated from field: required livekit.proto.VideoBufferInfo buffer = 2;\n */\n buffer?: VideoBufferInfo;\n\n /**\n * In microseconds\n *\n * @generated from field: required int64 timestamp_us = 3;\n */\n timestampUs?: bigint;\n\n /**\n * @generated from field: required livekit.proto.VideoRotation rotation = 4;\n */\n rotation?: VideoRotation;\n\n constructor(data?: PartialMessage<CaptureVideoFrameRequest>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.CaptureVideoFrameRequest\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"source_handle\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"buffer\", kind: \"message\", T: VideoBufferInfo, req: true },\n { no: 3, name: \"timestamp_us\", kind: \"scalar\", T: 3 /* ScalarType.INT64 */, req: true },\n { no: 4, name: \"rotation\", kind: \"enum\", T: proto2.getEnumType(VideoRotation), req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureVideoFrameRequest {\n return new CaptureVideoFrameRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureVideoFrameRequest {\n return new CaptureVideoFrameRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureVideoFrameRequest {\n return new CaptureVideoFrameRequest().fromJsonString(jsonString, options);\n }\n\n static equals(a: CaptureVideoFrameRequest | PlainMessage<CaptureVideoFrameRequest> | undefined, b: CaptureVideoFrameRequest | PlainMessage<CaptureVideoFrameRequest> | undefined): boolean {\n return proto2.util.equals(CaptureVideoFrameRequest, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.CaptureVideoFrameResponse\n */\nexport class CaptureVideoFrameResponse extends Message<CaptureVideoFrameResponse> {\n constructor(data?: PartialMessage<CaptureVideoFrameResponse>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.CaptureVideoFrameResponse\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CaptureVideoFrameResponse {\n return new CaptureVideoFrameResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CaptureVideoFrameResponse {\n return new CaptureVideoFrameResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CaptureVideoFrameResponse {\n return new CaptureVideoFrameResponse().fromJsonString(jsonString, options);\n }\n\n static equals(a: CaptureVideoFrameResponse | PlainMessage<CaptureVideoFrameResponse> | undefined, b: CaptureVideoFrameResponse | PlainMessage<CaptureVideoFrameResponse> | undefined): boolean {\n return proto2.util.equals(CaptureVideoFrameResponse, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoConvertRequest\n */\nexport class VideoConvertRequest extends Message<VideoConvertRequest> {\n /**\n * @generated from field: optional bool flip_y = 1;\n */\n flipY?: boolean;\n\n /**\n * @generated from field: required livekit.proto.VideoBufferInfo buffer = 2;\n */\n buffer?: VideoBufferInfo;\n\n /**\n * @generated from field: required livekit.proto.VideoBufferType dst_type = 3;\n */\n dstType?: VideoBufferType;\n\n constructor(data?: PartialMessage<VideoConvertRequest>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoConvertRequest\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"flip_y\", kind: \"scalar\", T: 8 /* ScalarType.BOOL */, opt: true },\n { no: 2, name: \"buffer\", kind: \"message\", T: VideoBufferInfo, req: true },\n { no: 3, name: \"dst_type\", kind: \"enum\", T: proto2.getEnumType(VideoBufferType), req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConvertRequest {\n return new VideoConvertRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConvertRequest {\n return new VideoConvertRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConvertRequest {\n return new VideoConvertRequest().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoConvertRequest | PlainMessage<VideoConvertRequest> | undefined, b: VideoConvertRequest | PlainMessage<VideoConvertRequest> | undefined): boolean {\n return proto2.util.equals(VideoConvertRequest, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoConvertResponse\n */\nexport class VideoConvertResponse extends Message<VideoConvertResponse> {\n /**\n * @generated from oneof livekit.proto.VideoConvertResponse.message\n */\n message: {\n /**\n * @generated from field: string error = 1;\n */\n value: string;\n case: \"error\";\n } | {\n /**\n * @generated from field: livekit.proto.OwnedVideoBuffer buffer = 2;\n */\n value: OwnedVideoBuffer;\n case: \"buffer\";\n } | { case: undefined; value?: undefined } = { case: undefined };\n\n constructor(data?: PartialMessage<VideoConvertResponse>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoConvertResponse\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"error\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, oneof: \"message\" },\n { no: 2, name: \"buffer\", kind: \"message\", T: OwnedVideoBuffer, oneof: \"message\" },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoConvertResponse {\n return new VideoConvertResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoConvertResponse {\n return new VideoConvertResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoConvertResponse {\n return new VideoConvertResponse().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoConvertResponse | PlainMessage<VideoConvertResponse> | undefined, b: VideoConvertResponse | PlainMessage<VideoConvertResponse> | undefined): boolean {\n return proto2.util.equals(VideoConvertResponse, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoResolution\n */\nexport class VideoResolution extends Message<VideoResolution> {\n /**\n * @generated from field: required uint32 width = 1;\n */\n width?: number;\n\n /**\n * @generated from field: required uint32 height = 2;\n */\n height?: number;\n\n /**\n * @generated from field: required double frame_rate = 3;\n */\n frameRate?: number;\n\n constructor(data?: PartialMessage<VideoResolution>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoResolution\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"width\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n { no: 2, name: \"height\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n { no: 3, name: \"frame_rate\", kind: \"scalar\", T: 1 /* ScalarType.DOUBLE */, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoResolution {\n return new VideoResolution().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoResolution {\n return new VideoResolution().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoResolution {\n return new VideoResolution().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoResolution | PlainMessage<VideoResolution> | undefined, b: VideoResolution | PlainMessage<VideoResolution> | undefined): boolean {\n return proto2.util.equals(VideoResolution, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoBufferInfo\n */\nexport class VideoBufferInfo extends Message<VideoBufferInfo> {\n /**\n * @generated from field: required livekit.proto.VideoBufferType type = 1;\n */\n type?: VideoBufferType;\n\n /**\n * @generated from field: required uint32 width = 2;\n */\n width?: number;\n\n /**\n * @generated from field: required uint32 height = 3;\n */\n height?: number;\n\n /**\n * @generated from field: required uint64 data_ptr = 4;\n */\n dataPtr?: bigint;\n\n /**\n * only for packed formats\n *\n * @generated from field: optional uint32 stride = 6;\n */\n stride?: number;\n\n /**\n * @generated from field: repeated livekit.proto.VideoBufferInfo.ComponentInfo components = 7;\n */\n components: VideoBufferInfo_ComponentInfo[] = [];\n\n constructor(data?: PartialMessage<VideoBufferInfo>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoBufferInfo\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"type\", kind: \"enum\", T: proto2.getEnumType(VideoBufferType), req: true },\n { no: 2, name: \"width\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n { no: 3, name: \"height\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n { no: 4, name: \"data_ptr\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 6, name: \"stride\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, opt: true },\n { no: 7, name: \"components\", kind: \"message\", T: VideoBufferInfo_ComponentInfo, repeated: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoBufferInfo {\n return new VideoBufferInfo().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoBufferInfo {\n return new VideoBufferInfo().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoBufferInfo {\n return new VideoBufferInfo().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoBufferInfo | PlainMessage<VideoBufferInfo> | undefined, b: VideoBufferInfo | PlainMessage<VideoBufferInfo> | undefined): boolean {\n return proto2.util.equals(VideoBufferInfo, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoBufferInfo.ComponentInfo\n */\nexport class VideoBufferInfo_ComponentInfo extends Message<VideoBufferInfo_ComponentInfo> {\n /**\n * @generated from field: required uint64 data_ptr = 1;\n */\n dataPtr?: bigint;\n\n /**\n * @generated from field: required uint32 stride = 2;\n */\n stride?: number;\n\n /**\n * @generated from field: required uint32 size = 3;\n */\n size?: number;\n\n constructor(data?: PartialMessage<VideoBufferInfo_ComponentInfo>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoBufferInfo.ComponentInfo\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"data_ptr\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"stride\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n { no: 3, name: \"size\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoBufferInfo_ComponentInfo {\n return new VideoBufferInfo_ComponentInfo().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoBufferInfo_ComponentInfo {\n return new VideoBufferInfo_ComponentInfo().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoBufferInfo_ComponentInfo {\n return new VideoBufferInfo_ComponentInfo().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoBufferInfo_ComponentInfo | PlainMessage<VideoBufferInfo_ComponentInfo> | undefined, b: VideoBufferInfo_ComponentInfo | PlainMessage<VideoBufferInfo_ComponentInfo> | undefined): boolean {\n return proto2.util.equals(VideoBufferInfo_ComponentInfo, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.OwnedVideoBuffer\n */\nexport class OwnedVideoBuffer extends Message<OwnedVideoBuffer> {\n /**\n * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;\n */\n handle?: FfiOwnedHandle;\n\n /**\n * @generated from field: required livekit.proto.VideoBufferInfo info = 2;\n */\n info?: VideoBufferInfo;\n\n constructor(data?: PartialMessage<OwnedVideoBuffer>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.OwnedVideoBuffer\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"handle\", kind: \"message\", T: FfiOwnedHandle, req: true },\n { no: 2, name: \"info\", kind: \"message\", T: VideoBufferInfo, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoBuffer {\n return new OwnedVideoBuffer().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoBuffer {\n return new OwnedVideoBuffer().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoBuffer {\n return new OwnedVideoBuffer().fromJsonString(jsonString, options);\n }\n\n static equals(a: OwnedVideoBuffer | PlainMessage<OwnedVideoBuffer> | undefined, b: OwnedVideoBuffer | PlainMessage<OwnedVideoBuffer> | undefined): boolean {\n return proto2.util.equals(OwnedVideoBuffer, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoStreamInfo\n */\nexport class VideoStreamInfo extends Message<VideoStreamInfo> {\n /**\n * @generated from field: required livekit.proto.VideoStreamType type = 1;\n */\n type?: VideoStreamType;\n\n constructor(data?: PartialMessage<VideoStreamInfo>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoStreamInfo\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"type\", kind: \"enum\", T: proto2.getEnumType(VideoStreamType), req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamInfo {\n return new VideoStreamInfo().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamInfo {\n return new VideoStreamInfo().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamInfo {\n return new VideoStreamInfo().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoStreamInfo | PlainMessage<VideoStreamInfo> | undefined, b: VideoStreamInfo | PlainMessage<VideoStreamInfo> | undefined): boolean {\n return proto2.util.equals(VideoStreamInfo, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.OwnedVideoStream\n */\nexport class OwnedVideoStream extends Message<OwnedVideoStream> {\n /**\n * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;\n */\n handle?: FfiOwnedHandle;\n\n /**\n * @generated from field: required livekit.proto.VideoStreamInfo info = 2;\n */\n info?: VideoStreamInfo;\n\n constructor(data?: PartialMessage<OwnedVideoStream>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.OwnedVideoStream\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"handle\", kind: \"message\", T: FfiOwnedHandle, req: true },\n { no: 2, name: \"info\", kind: \"message\", T: VideoStreamInfo, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoStream {\n return new OwnedVideoStream().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoStream {\n return new OwnedVideoStream().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoStream {\n return new OwnedVideoStream().fromJsonString(jsonString, options);\n }\n\n static equals(a: OwnedVideoStream | PlainMessage<OwnedVideoStream> | undefined, b: OwnedVideoStream | PlainMessage<OwnedVideoStream> | undefined): boolean {\n return proto2.util.equals(OwnedVideoStream, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoStreamEvent\n */\nexport class VideoStreamEvent extends Message<VideoStreamEvent> {\n /**\n * @generated from field: required uint64 stream_handle = 1;\n */\n streamHandle?: bigint;\n\n /**\n * @generated from oneof livekit.proto.VideoStreamEvent.message\n */\n message: {\n /**\n * @generated from field: livekit.proto.VideoFrameReceived frame_received = 2;\n */\n value: VideoFrameReceived;\n case: \"frameReceived\";\n } | {\n /**\n * @generated from field: livekit.proto.VideoStreamEOS eos = 3;\n */\n value: VideoStreamEOS;\n case: \"eos\";\n } | { case: undefined; value?: undefined } = { case: undefined };\n\n constructor(data?: PartialMessage<VideoStreamEvent>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoStreamEvent\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"stream_handle\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"frame_received\", kind: \"message\", T: VideoFrameReceived, oneof: \"message\" },\n { no: 3, name: \"eos\", kind: \"message\", T: VideoStreamEOS, oneof: \"message\" },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamEvent {\n return new VideoStreamEvent().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamEvent {\n return new VideoStreamEvent().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamEvent {\n return new VideoStreamEvent().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoStreamEvent | PlainMessage<VideoStreamEvent> | undefined, b: VideoStreamEvent | PlainMessage<VideoStreamEvent> | undefined): boolean {\n return proto2.util.equals(VideoStreamEvent, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoFrameReceived\n */\nexport class VideoFrameReceived extends Message<VideoFrameReceived> {\n /**\n * @generated from field: required livekit.proto.OwnedVideoBuffer buffer = 1;\n */\n buffer?: OwnedVideoBuffer;\n\n /**\n * In microseconds\n *\n * @generated from field: required int64 timestamp_us = 2;\n */\n timestampUs?: bigint;\n\n /**\n * @generated from field: required livekit.proto.VideoRotation rotation = 3;\n */\n rotation?: VideoRotation;\n\n constructor(data?: PartialMessage<VideoFrameReceived>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoFrameReceived\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"buffer\", kind: \"message\", T: OwnedVideoBuffer, req: true },\n { no: 2, name: \"timestamp_us\", kind: \"scalar\", T: 3 /* ScalarType.INT64 */, req: true },\n { no: 3, name: \"rotation\", kind: \"enum\", T: proto2.getEnumType(VideoRotation), req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoFrameReceived {\n return new VideoFrameReceived().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoFrameReceived {\n return new VideoFrameReceived().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoFrameReceived {\n return new VideoFrameReceived().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoFrameReceived | PlainMessage<VideoFrameReceived> | undefined, b: VideoFrameReceived | PlainMessage<VideoFrameReceived> | undefined): boolean {\n return proto2.util.equals(VideoFrameReceived, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoStreamEOS\n */\nexport class VideoStreamEOS extends Message<VideoStreamEOS> {\n constructor(data?: PartialMessage<VideoStreamEOS>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoStreamEOS\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoStreamEOS {\n return new VideoStreamEOS().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoStreamEOS {\n return new VideoStreamEOS().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoStreamEOS {\n return new VideoStreamEOS().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoStreamEOS | PlainMessage<VideoStreamEOS> | undefined, b: VideoStreamEOS | PlainMessage<VideoStreamEOS> | undefined): boolean {\n return proto2.util.equals(VideoStreamEOS, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoSourceResolution\n */\nexport class VideoSourceResolution extends Message<VideoSourceResolution> {\n /**\n * @generated from field: required uint32 width = 1;\n */\n width?: number;\n\n /**\n * @generated from field: required uint32 height = 2;\n */\n height?: number;\n\n constructor(data?: PartialMessage<VideoSourceResolution>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoSourceResolution\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"width\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n { no: 2, name: \"height\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoSourceResolution {\n return new VideoSourceResolution().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoSourceResolution {\n return new VideoSourceResolution().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoSourceResolution {\n return new VideoSourceResolution().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoSourceResolution | PlainMessage<VideoSourceResolution> | undefined, b: VideoSourceResolution | PlainMessage<VideoSourceResolution> | undefined): boolean {\n return proto2.util.equals(VideoSourceResolution, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.VideoSourceInfo\n */\nexport class VideoSourceInfo extends Message<VideoSourceInfo> {\n /**\n * @generated from field: required livekit.proto.VideoSourceType type = 1;\n */\n type?: VideoSourceType;\n\n constructor(data?: PartialMessage<VideoSourceInfo>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.VideoSourceInfo\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"type\", kind: \"enum\", T: proto2.getEnumType(VideoSourceType), req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoSourceInfo {\n return new VideoSourceInfo().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoSourceInfo {\n return new VideoSourceInfo().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoSourceInfo {\n return new VideoSourceInfo().fromJsonString(jsonString, options);\n }\n\n static equals(a: VideoSourceInfo | PlainMessage<VideoSourceInfo> | undefined, b: VideoSourceInfo | PlainMessage<VideoSourceInfo> | undefined): boolean {\n return proto2.util.equals(VideoSourceInfo, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.OwnedVideoSource\n */\nexport class OwnedVideoSource extends Message<OwnedVideoSource> {\n /**\n * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;\n */\n handle?: FfiOwnedHandle;\n\n /**\n * @generated from field: required livekit.proto.VideoSourceInfo info = 2;\n */\n info?: VideoSourceInfo;\n\n constructor(data?: PartialMessage<OwnedVideoSource>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.OwnedVideoSource\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"handle\", kind: \"message\", T: FfiOwnedHandle, req: true },\n { no: 2, name: \"info\", kind: \"message\", T: VideoSourceInfo, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedVideoSource {\n return new OwnedVideoSource().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedVideoSource {\n return new OwnedVideoSource().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedVideoSource {\n return new OwnedVideoSource().fromJsonString(jsonString, options);\n }\n\n static equals(a: OwnedVideoSource | PlainMessage<OwnedVideoSource> | undefined, b: OwnedVideoSource | PlainMessage<OwnedVideoSource> | undefined): boolean {\n return proto2.util.equals(OwnedVideoSource, a, b);\n }\n}\n\n"],"mappings":"AAoBA,SAAS,SAAS,cAAc;AAChC,SAAS,mBAAmB;AAC5B,SAAS,sBAAsB;AAKxB,IAAK,aAAL,kBAAKA,gBAAL;AAIL,EAAAA,wBAAA,SAAM,KAAN;AAKA,EAAAA,wBAAA,UAAO,KAAP;AAKA,EAAAA,wBAAA,SAAM,KAAN;AAKA,EAAAA,wBAAA,SAAM,KAAN;AAnBU,SAAAA;AAAA,GAAA;AAsBZ,OAAO,KAAK,YAAY,YAAY,4BAA4B;AAAA,EAC9D,EAAE,IAAI,GAAG,MAAM,MAAM;AAAA,EACrB,EAAE,IAAI,GAAG,MAAM,OAAO;AAAA,EACtB,EAAE,IAAI,GAAG,MAAM,MAAM;AAAA,EACrB,EAAE,IAAI,GAAG,MAAM,MAAM;AACvB,CAAC;AAKM,IAAK,gBAAL,kBAAKC,mBAAL;AAIL,EAAAA,8BAAA,sBAA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xE,CAAC;AArBI,IAAM,mBAAN;","names":["VideoCodec","VideoRotation","VideoBufferType","VideoStreamType","VideoSourceType"]}
package/dist/room.cjs CHANGED
@@ -101,6 +101,9 @@ class Room extends import_events.default {
101
101
  return;
102
102
  }
103
103
  const ev = ffiEvent.message.value.message;
104
+ if (process.env.LIVEKIT_DEBUG_LOG_ROOM_EVENTS) {
105
+ console.log("Room event:", ev);
106
+ }
104
107
  if (ev.case == "participantConnected") {
105
108
  const participant = this.createRemoteParticipant(ev.value.info);
106
109
  this.remoteParticipants.set(participant.identity, participant);
@@ -511,7 +514,10 @@ class Room extends import_events.default {
511
514
  if (streamHeader.contentHeader.case === "byteHeader") {
512
515
  const streamHandlerCallback = this.byteStreamHandlers.get(streamHeader.topic ?? "");
513
516
  if (!streamHandlerCallback) {
514
- import_log.log.debug("ignoring incoming byte stream due to no handler for topic", streamHeader.topic);
517
+ import_log.log.debug(
518
+ "ignoring incoming byte stream due to no handler for topic: %s",
519
+ streamHeader.topic ?? "undefined"
520
+ );
515
521
  return;
516
522
  }
517
523
  let streamController;
@@ -541,7 +547,10 @@ class Room extends import_events.default {
541
547
  } else if (streamHeader.contentHeader.case === "textHeader") {
542
548
  const streamHandlerCallback = this.textStreamHandlers.get(streamHeader.topic ?? "");
543
549
  if (!streamHandlerCallback) {
544
- import_log.log.debug("ignoring incoming text stream due to no handler for topic", streamHeader.topic);
550
+ import_log.log.debug(
551
+ "ignoring incoming text stream due to no handler for topic: %s",
552
+ streamHeader.topic ?? "undefined"
553
+ );
545
554
  return;
546
555
  }
547
556
  let streamController;
package/dist/room.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/room.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport type { TypedEventEmitter as TypedEmitter } from '@livekit/typed-emitter';\nimport EventEmitter from 'events';\nimport { ByteStreamReader, TextStreamReader } from './data_streams/stream_reader.js';\nimport type {\n ByteStreamHandler,\n ByteStreamInfo,\n StreamController,\n TextStreamHandler,\n TextStreamInfo,\n} from './data_streams/types.js';\nimport type { E2EEOptions } from './e2ee.js';\nimport { E2EEManager, defaultE2EEOptions } from './e2ee.js';\nimport { FfiClient, FfiClientEvent, FfiHandle } from './ffi_client.js';\nimport { log } from './log.js';\nimport type { Participant } from './participant.js';\nimport { LocalParticipant, RemoteParticipant } from './participant.js';\nimport { EncryptionState } from './proto/e2ee_pb.js';\nimport type { FfiEvent } from './proto/ffi_pb.js';\nimport type { DisconnectReason, OwnedParticipant } from './proto/participant_pb.js';\nimport type { DataStream_Trailer } from './proto/room_pb.js';\nimport {\n type ConnectCallback,\n ConnectRequest,\n type ConnectResponse,\n type ConnectionQuality,\n ConnectionState,\n ContinualGatheringPolicy,\n type DataPacketKind,\n type DataStream_Chunk,\n type DataStream_Header,\n type DisconnectResponse,\n RoomOptions as FfiRoomOptions,\n type IceServer,\n IceTransportType,\n type RoomInfo,\n} from './proto/room_pb.js';\nimport { TrackKind } from './proto/track_pb.js';\nimport type { LocalTrack, RemoteTrack } from './track.js';\nimport { RemoteAudioTrack, RemoteVideoTrack } from './track.js';\nimport type { LocalTrackPublication, TrackPublication } from './track_publication.js';\nimport { RemoteTrackPublication } from './track_publication.js';\nimport type { ChatMessage } from './types.js';\nimport { bigIntToNumber } from './utils.js';\n\nexport interface RtcConfiguration {\n iceTransportType: IceTransportType;\n continualGatheringPolicy: ContinualGatheringPolicy;\n iceServers: IceServer[];\n}\n\nexport const defaultRtcConfiguration: RtcConfiguration = {\n iceTransportType: IceTransportType.TRANSPORT_ALL,\n continualGatheringPolicy: ContinualGatheringPolicy.GATHER_CONTINUALLY,\n iceServers: [],\n};\n\nexport interface RoomOptions {\n autoSubscribe: boolean;\n dynacast: boolean;\n e2ee?: E2EEOptions;\n rtcConfig?: RtcConfiguration;\n}\n\nexport const defaultRoomOptions = new FfiRoomOptions({\n autoSubscribe: true,\n dynacast: false,\n e2ee: undefined,\n rtcConfig: undefined,\n adaptiveStream: false,\n joinRetries: 1,\n});\n\nexport class Room extends (EventEmitter as new () => TypedEmitter<RoomCallbacks>) {\n private info?: RoomInfo;\n private ffiHandle?: FfiHandle;\n\n private byteStreamControllers = new Map<string, StreamController<DataStream_Chunk>>();\n private textStreamControllers = new Map<string, StreamController<DataStream_Chunk>>();\n private byteStreamHandlers = new Map<string, ByteStreamHandler>();\n private textStreamHandlers = new Map<string, TextStreamHandler>();\n\n private preConnectEvents: FfiEvent[] = [];\n\n e2eeManager?: E2EEManager;\n connectionState: ConnectionState = ConnectionState.CONN_DISCONNECTED;\n\n remoteParticipants: Map<string, RemoteParticipant> = new Map();\n localParticipant?: LocalParticipant;\n\n constructor() {\n super();\n }\n\n get name(): string | undefined {\n return this.info?.name;\n }\n\n get metadata(): string | undefined {\n return this.info?.metadata;\n }\n\n get isConnected(): boolean {\n return this.ffiHandle != undefined && this.connectionState != ConnectionState.CONN_DISCONNECTED;\n }\n\n /**\n * Gets the room's server ID. This ID is assigned by the LiveKit server\n * and is unique for each room session.\n * SID is assigned asynchronously after connection.\n * @returns Promise that resolves to the room's server ID, or empty string if not connected\n */\n async getSid(): Promise<string> {\n if (!this.isConnected) {\n return '';\n }\n if (this.info?.sid && this.info.sid !== '') {\n return this.info.sid;\n }\n return new Promise((resolve, reject) => {\n const handleRoomUpdate = (sid: string) => {\n if (sid !== '') {\n this.off(RoomEvent.RoomSidChanged, handleRoomUpdate);\n resolve(sid);\n }\n };\n this.on(RoomEvent.RoomSidChanged, handleRoomUpdate);\n this.once(RoomEvent.Disconnected, () => {\n this.off(RoomEvent.RoomSidChanged, handleRoomUpdate);\n reject('Room disconnected before room server id was available');\n });\n });\n }\n\n get numParticipants(): number {\n return this.info?.numParticipants ?? 0;\n }\n\n get numPublishers(): number {\n return this.info?.numPublishers ?? 0;\n }\n\n get creationTime(): Date {\n return new Date(Number(this.info?.creationTime ?? 0));\n }\n\n get isRecording(): boolean {\n return this.info?.activeRecording ?? false;\n }\n\n /**\n * The time in seconds after which a room will be closed after the last\n * participant has disconnected.\n */\n get departureTimeout(): number {\n return this.info?.departureTimeout ?? 0;\n }\n\n /**\n * The time in seconds after which an empty room will be automatically closed.\n */\n get emptyTimeout(): number {\n return this.info?.emptyTimeout ?? 0;\n }\n\n /**\n * Connects to a LiveKit room using the provided URL and access token.\n * @param url The WebSocket URL of the LiveKit server\n * @param token A valid LiveKit access token for authentication\n * @param opts Optional room configuration options\n * @throws ConnectError if connection fails\n */\n async connect(url: string, token: string, opts?: RoomOptions) {\n const options = { ...defaultRoomOptions, ...opts };\n const e2eeOptions = { ...defaultE2EEOptions, ...options.e2ee };\n\n const req = new ConnectRequest({\n url: url,\n token: token,\n options,\n });\n\n FfiClient.instance.on(FfiClientEvent.FfiEvent, this.onFfiEvent);\n\n const res = FfiClient.instance.request<ConnectResponse>({\n message: {\n case: 'connect',\n value: req,\n },\n });\n\n const cb = await FfiClient.instance.waitFor<ConnectCallback>((ev: FfiEvent) => {\n return ev.message.case == 'connect' && ev.message.value.asyncId == res.asyncId;\n });\n\n log.debug('Connect callback received');\n\n switch (cb.message.case) {\n case 'result':\n this.ffiHandle = new FfiHandle(cb.message.value.room!.handle!.id!);\n this.e2eeManager = options.e2ee && new E2EEManager(this.ffiHandle.handle, e2eeOptions);\n\n this.info = cb.message.value.room!.info;\n this.connectionState = ConnectionState.CONN_CONNECTED;\n this.localParticipant = new LocalParticipant(cb.message.value.localParticipant!);\n\n for (const pt of cb.message.value.participants) {\n const rp = this.createRemoteParticipant(pt.participant!);\n\n for (const pub of pt.publications) {\n const publication = new RemoteTrackPublication(pub);\n rp.trackPublications.set(publication.sid!, publication);\n }\n }\n break;\n case 'error':\n default:\n throw new ConnectError(cb.message.value || '');\n }\n }\n\n /**\n * Disconnects from the room and cleans up all resources.\n * This will stop all tracks and close the connection.\n */\n async disconnect() {\n if (!this.isConnected) {\n return;\n }\n\n FfiClient.instance.request<DisconnectResponse>({\n message: {\n case: 'disconnect',\n value: {\n roomHandle: this.ffiHandle?.handle,\n },\n },\n });\n\n FfiClient.instance.removeListener(FfiClientEvent.FfiEvent, this.onFfiEvent);\n this.removeAllListeners();\n }\n\n /**\n * Registers a handler for incoming text data streams on a specific topic.\n * Text streams are used for receiving structured text data from other participants.\n * @param topic The topic to listen for text streams on\n * @param callback Function to handle incoming text stream data\n * @throws Error if a handler for this topic is already registered\n */\n registerTextStreamHandler(topic: string, callback: TextStreamHandler) {\n if (this.textStreamHandlers.has(topic)) {\n throw new Error(`A text stream handler for topic \"${topic}\" has already been set.`);\n }\n this.textStreamHandlers.set(topic, callback);\n }\n\n unregisterTextStreamHandler(topic: string) {\n this.textStreamHandlers.delete(topic);\n }\n\n /**\n * Registers a handler for incoming byte data streams on a specific topic.\n * Byte streams are used for receiving binary data like files from other participants.\n * @param topic The topic to listen for byte streams on\n * @param callback Function to handle incoming byte stream data\n * @throws Error if a handler for this topic is already registered\n */\n registerByteStreamHandler(topic: string, callback: ByteStreamHandler) {\n if (this.byteStreamHandlers.has(topic)) {\n throw new Error(`A byte stream handler for topic \"${topic}\" has already been set.`);\n }\n this.byteStreamHandlers.set(topic, callback);\n }\n\n unregisterByteStreamHandler(topic: string) {\n this.byteStreamHandlers.delete(topic);\n }\n\n private onFfiEvent = (ffiEvent: FfiEvent) => {\n if (!this.localParticipant || !this.ffiHandle || !this.info) {\n this.preConnectEvents.push(ffiEvent);\n return;\n }\n\n // process preConnectEvents if we received the connectCallback after the events were queued\n for (const ev of this.preConnectEvents) {\n this.processFfiEvent(ev);\n }\n this.preConnectEvents = [];\n\n this.processFfiEvent(ffiEvent);\n };\n\n private processFfiEvent = (ffiEvent: FfiEvent) => {\n if (!this.localParticipant || !this.ffiHandle || !this.info) {\n throw new Error('processFfiEvent called before connect');\n }\n\n if (ffiEvent.message.case == 'rpcMethodInvocation') {\n if (\n ffiEvent.message.value.localParticipantHandle == this.localParticipant.ffi_handle.handle\n ) {\n this.localParticipant.handleRpcMethodInvocation(\n ffiEvent.message.value.invocationId!,\n ffiEvent.message.value.method!,\n ffiEvent.message.value.requestId!,\n ffiEvent.message.value.callerIdentity!,\n ffiEvent.message.value.payload!,\n ffiEvent.message.value.responseTimeoutMs!,\n );\n }\n return;\n } else if (\n ffiEvent.message.case != 'roomEvent' ||\n ffiEvent.message.value.roomHandle != this.ffiHandle.handle\n ) {\n return;\n }\n\n const ev = ffiEvent.message.value.message;\n if (ev.case == 'participantConnected') {\n const participant = this.createRemoteParticipant(ev.value.info!);\n this.remoteParticipants.set(participant.identity!, participant);\n this.emit(RoomEvent.ParticipantConnected, participant);\n } else if (ev.case == 'participantDisconnected') {\n const participant = this.remoteParticipants.get(ev.value.participantIdentity!);\n this.remoteParticipants.delete(participant!.identity);\n participant!.info.disconnectReason = ev.value.disconnectReason;\n this.emit(RoomEvent.ParticipantDisconnected, participant!);\n } else if (ev.case == 'localTrackPublished') {\n const publication = this.localParticipant!.trackPublications.get(ev.value.trackSid!);\n this.emit(RoomEvent.LocalTrackPublished, publication!, this.localParticipant!);\n } else if (ev.case == 'localTrackUnpublished') {\n const publication = this.localParticipant!.trackPublications.get(ev.value.publicationSid!);\n this.localParticipant!.trackPublications.delete(ev.value.publicationSid!);\n this.emit(RoomEvent.LocalTrackUnpublished, publication!, this.localParticipant!);\n } else if (ev.case == 'localTrackSubscribed') {\n const publication = this.localParticipant!.trackPublications.get(ev.value.trackSid!);\n publication!.resolveFirstSubscription();\n this.emit(RoomEvent.LocalTrackSubscribed, publication!.track!);\n } else if (ev.case == 'trackPublished') {\n const participant = this.remoteParticipants.get(ev.value.participantIdentity!);\n const publication = new RemoteTrackPublication(ev.value.publication!);\n participant!.trackPublications.set(publication.sid!, publication);\n this.emit(RoomEvent.TrackPublished, publication, participant!);\n } else if (ev.case == 'trackUnpublished') {\n const participant = this.requireRemoteParticipant(ev.value.participantIdentity!);\n const publication = participant.trackPublications.get(ev.value.publicationSid!);\n participant.trackPublications.delete(ev.value.publicationSid!);\n if (publication) {\n this.emit(RoomEvent.TrackUnpublished, publication, participant);\n }\n } else if (ev.case == 'trackSubscribed') {\n const ownedTrack = ev.value.track!;\n const trackInfo = ownedTrack.info!;\n const { participant, publication } = this.requirePublicationOfRemoteParticipant(\n ev.value.participantIdentity!,\n trackInfo.sid!,\n );\n publication.subscribed = true;\n if (trackInfo.kind == TrackKind.KIND_VIDEO) {\n publication.track = new RemoteVideoTrack(ownedTrack);\n } else if (trackInfo.kind == TrackKind.KIND_AUDIO) {\n publication.track = new RemoteAudioTrack(ownedTrack);\n }\n\n this.emit(RoomEvent.TrackSubscribed, publication.track!, publication, participant);\n } else if (ev.case == 'trackUnsubscribed') {\n const { participant, publication } = this.requirePublicationOfRemoteParticipant(\n ev.value.participantIdentity!,\n ev.value.trackSid!,\n );\n const track = publication.track!;\n publication.track = undefined;\n publication.subscribed = false;\n this.emit(RoomEvent.TrackUnsubscribed, track, publication, participant);\n } else if (ev.case == 'trackSubscriptionFailed') {\n const participant = this.requireRemoteParticipant(ev.value.participantIdentity!);\n this.emit(RoomEvent.TrackSubscriptionFailed, ev.value.trackSid!, participant, ev.value.error);\n } else if (ev.case == 'trackMuted') {\n const { participant, publication } = this.requirePublicationOfParticipant(\n ev.value.participantIdentity!,\n ev.value.trackSid!,\n );\n publication.info!.muted = true;\n if (publication.track) {\n publication.track.info!.muted = true;\n }\n this.emit(RoomEvent.TrackMuted, publication, participant);\n } else if (ev.case == 'trackUnmuted') {\n const { participant, publication } = this.requirePublicationOfParticipant(\n ev.value.participantIdentity!,\n ev.value.trackSid!,\n );\n publication.info!.muted = false;\n if (publication.track) {\n publication.track.info!.muted = false;\n }\n this.emit(RoomEvent.TrackUnmuted, publication, participant);\n } else if (ev.case == 'activeSpeakersChanged') {\n const activeSpeakers = ev.value.participantIdentities.map((identity) =>\n this.requireParticipantByIdentity(identity),\n );\n this.emit(RoomEvent.ActiveSpeakersChanged, activeSpeakers);\n } else if (ev.case == 'roomMetadataChanged') {\n this.info!.metadata = ev.value.metadata;\n this.emit(RoomEvent.RoomMetadataChanged, this.info!.metadata!);\n } else if (ev.case == 'participantMetadataChanged') {\n const participant = this.requireParticipantByIdentity(ev.value.participantIdentity!);\n participant.info.metadata = ev.value.metadata;\n this.emit(RoomEvent.ParticipantMetadataChanged, participant.metadata, participant);\n } else if (ev.case == 'participantNameChanged') {\n const participant = this.requireParticipantByIdentity(ev.value.participantIdentity!);\n participant.info.name = ev.value.name;\n this.emit(RoomEvent.ParticipantNameChanged, participant.name!, participant);\n } else if (ev.case == 'participantAttributesChanged') {\n const participant = this.requireParticipantByIdentity(ev.value.participantIdentity!);\n participant.info.attributes = ev.value.attributes.reduce(\n (acc, value) => {\n acc[value.key!] = value.value!;\n return acc;\n },\n {} as Record<string, string>,\n );\n if (Object.keys(ev.value.changedAttributes).length > 0) {\n const changedAttributes = ev.value.changedAttributes.reduce(\n (acc, value) => {\n acc[value.key!] = value.value!;\n return acc;\n },\n {} as Record<string, string>,\n );\n this.emit(RoomEvent.ParticipantAttributesChanged, changedAttributes, participant);\n }\n } else if (ev.case == 'connectionQualityChanged') {\n const participant = this.requireParticipantByIdentity(ev.value.participantIdentity!);\n this.emit(RoomEvent.ConnectionQualityChanged, ev.value.quality!, participant);\n } else if (ev.case == 'chatMessage') {\n const participant = this.retrieveParticipantByIdentity(ev.value.participantIdentity!);\n const { id, message: messageText, timestamp, editTimestamp, generated } = ev.value.message!;\n const message: ChatMessage = {\n id: id!,\n message: messageText!,\n timestamp: Number(timestamp),\n editTimestamp: Number(editTimestamp),\n generated,\n };\n this.emit(RoomEvent.ChatMessage, message, participant);\n } else if (ev.case == 'dataPacketReceived') {\n // Can be undefined if the data is sent from a Server SDK\n const participant = this.remoteParticipants.get(ev.value.participantIdentity!);\n const dataPacket = ev.value.value;\n switch (dataPacket.case) {\n case 'user':\n const buffer = FfiClient.instance.copyBuffer(\n dataPacket.value.data!.data!.dataPtr!,\n Number(dataPacket.value.data!.data!.dataLen),\n );\n new FfiHandle(dataPacket.value.data!.handle!.id!).dispose();\n this.emit(\n RoomEvent.DataReceived,\n buffer,\n participant,\n ev.value.kind,\n dataPacket.value.topic,\n );\n break;\n case 'sipDtmf':\n const { code, digit } = dataPacket.value;\n this.emit(RoomEvent.DtmfReceived, code!, digit!, participant!);\n break;\n default:\n break;\n }\n } else if (ev.case == 'e2eeStateChanged') {\n if (ev.value.state == EncryptionState.INTERNAL_ERROR) {\n // throw generic error until Rust SDK is updated to supply the error alongside INTERNAL_ERROR\n this.emit(RoomEvent.EncryptionError, new Error('internal server error'));\n }\n } else if (ev.case == 'connectionStateChanged') {\n this.connectionState = ev.value.state!;\n this.emit(RoomEvent.ConnectionStateChanged, this.connectionState);\n /*} else if (ev.case == 'connected') {\n this.emit(RoomEvent.Connected);*/\n } else if (ev.case == 'disconnected') {\n this.emit(RoomEvent.Disconnected, ev.value.reason!);\n } else if (ev.case == 'reconnecting') {\n this.emit(RoomEvent.Reconnecting);\n } else if (ev.case == 'reconnected') {\n this.emit(RoomEvent.Reconnected);\n } else if (ev.case == 'roomSidChanged') {\n this.emit(RoomEvent.RoomSidChanged, ev.value.sid!);\n } else if (ev.case === 'streamHeaderReceived' && ev.value.header) {\n this.handleStreamHeader(ev.value.header, ev.value.participantIdentity!);\n } else if (ev.case === 'streamChunkReceived' && ev.value.chunk) {\n this.handleStreamChunk(ev.value.chunk);\n } else if (ev.case === 'streamTrailerReceived' && ev.value.trailer) {\n this.handleStreamTrailer(ev.value.trailer);\n } else if (ev.case === 'roomUpdated') {\n this.info = ev.value;\n this.emit(RoomEvent.RoomUpdated);\n } else if (ev.case === 'moved') {\n this.info = ev.value;\n this.emit(RoomEvent.Moved);\n } else if (ev.case === 'participantsUpdated') {\n for (const info of ev.value.participants) {\n const participant = this.retrieveParticipantByIdentity(info.identity!);\n if (participant) {\n participant.info = info;\n }\n }\n }\n };\n\n private retrieveParticipantByIdentity(identity: string): Participant | undefined {\n if (this.localParticipant?.identity === identity) {\n return this.localParticipant;\n } else {\n return this.remoteParticipants.get(identity);\n }\n }\n\n private requireParticipantByIdentity(identity: string): Participant {\n if (this.localParticipant?.identity === identity) {\n return this.localParticipant;\n } else if (this.remoteParticipants.has(identity)) {\n return this.remoteParticipants.get(identity)!;\n } else {\n throw new TypeError(`participant ${identity} not found`);\n }\n }\n\n private requireRemoteParticipant(identity: string) {\n const participant = this.remoteParticipants.get(identity);\n if (!participant) {\n throw new TypeError(`participant ${identity} not found`);\n }\n return participant;\n }\n\n private requirePublicationOfParticipant(identity: string, trackSid: string) {\n const participant = this.requireParticipantByIdentity(identity);\n const publication = participant.trackPublications.get(trackSid);\n if (!publication) {\n throw new TypeError(`publication ${trackSid} not found`);\n }\n return { participant, publication };\n }\n\n private requirePublicationOfRemoteParticipant(identity: string, trackSid: string) {\n const participant = this.requireRemoteParticipant(identity);\n const publication = participant.trackPublications.get(trackSid);\n if (!publication) {\n throw new TypeError(`publication ${trackSid} not found`);\n }\n return { participant, publication };\n }\n\n private createRemoteParticipant(ownedInfo: OwnedParticipant) {\n if (this.remoteParticipants.has(ownedInfo.info!.identity!)) {\n throw new Error('Participant already exists');\n }\n\n const participant = new RemoteParticipant(ownedInfo);\n this.remoteParticipants.set(ownedInfo.info!.identity!, participant);\n return participant;\n }\n\n private handleStreamHeader(streamHeader: DataStream_Header, participantIdentity: string) {\n if (streamHeader.contentHeader.case === 'byteHeader') {\n const streamHandlerCallback = this.byteStreamHandlers.get(streamHeader.topic ?? '');\n\n if (!streamHandlerCallback) {\n log.debug('ignoring incoming byte stream due to no handler for topic', streamHeader.topic);\n return;\n }\n let streamController: ReadableStreamDefaultController<DataStream_Chunk>;\n const stream = new ReadableStream({\n start: (controller) => {\n streamController = controller;\n this.byteStreamControllers.set(streamHeader.streamId!, {\n header: streamHeader,\n controller: streamController,\n startTime: Date.now(),\n });\n },\n });\n const info: ByteStreamInfo = {\n streamId: streamHeader.streamId!,\n name: streamHeader.contentHeader.value.name ?? 'unknown',\n mimeType: streamHeader.mimeType!,\n totalSize: streamHeader.totalLength ? Number(streamHeader.totalLength) : undefined,\n topic: streamHeader.topic!,\n timestamp: bigIntToNumber(streamHeader.timestamp!),\n attributes: streamHeader.attributes,\n };\n streamHandlerCallback(\n new ByteStreamReader(info, stream, bigIntToNumber(streamHeader.totalLength)),\n { identity: participantIdentity },\n );\n } else if (streamHeader.contentHeader.case === 'textHeader') {\n const streamHandlerCallback = this.textStreamHandlers.get(streamHeader.topic ?? '');\n\n if (!streamHandlerCallback) {\n log.debug('ignoring incoming text stream due to no handler for topic', streamHeader.topic);\n return;\n }\n let streamController: ReadableStreamDefaultController<DataStream_Chunk>;\n const stream = new ReadableStream<DataStream_Chunk>({\n start: (controller) => {\n streamController = controller;\n this.textStreamControllers.set(streamHeader.streamId!, {\n header: streamHeader,\n controller: streamController,\n startTime: Date.now(),\n });\n },\n });\n const info: TextStreamInfo = {\n streamId: streamHeader.streamId!,\n mimeType: streamHeader.mimeType!,\n totalSize: streamHeader.totalLength ? Number(streamHeader.totalLength) : undefined,\n topic: streamHeader.topic!,\n timestamp: Number(streamHeader.timestamp),\n attributes: streamHeader.attributes,\n };\n streamHandlerCallback(\n new TextStreamReader(info, stream, bigIntToNumber(streamHeader.totalLength)),\n { identity: participantIdentity },\n );\n }\n }\n\n private handleStreamChunk(chunk: DataStream_Chunk) {\n const fileBuffer = this.byteStreamControllers.get(chunk.streamId!);\n if (fileBuffer) {\n if (chunk.content!.length > 0) {\n fileBuffer.controller.enqueue(chunk);\n }\n }\n const textBuffer = this.textStreamControllers.get(chunk.streamId!);\n if (textBuffer) {\n if (chunk.content!.length > 0) {\n textBuffer.controller.enqueue(chunk);\n }\n }\n }\n\n private handleStreamTrailer(trailer: DataStream_Trailer) {\n const streamId = trailer.streamId!;\n const fileBuffer = this.byteStreamControllers.get(streamId);\n if (fileBuffer) {\n fileBuffer.controller.close();\n this.byteStreamControllers.delete(streamId);\n }\n const textBuffer = this.textStreamControllers.get(streamId);\n if (textBuffer) {\n textBuffer.controller.close();\n this.byteStreamControllers.delete(streamId);\n }\n }\n}\n\nexport class ConnectError extends Error {\n constructor(message: string) {\n super(message);\n }\n}\n\nexport type RoomCallbacks = {\n participantConnected: (participant: RemoteParticipant) => void;\n participantDisconnected: (participant: RemoteParticipant) => void;\n localTrackPublished: (publication: LocalTrackPublication, participant: LocalParticipant) => void;\n localTrackUnpublished: (\n publication: LocalTrackPublication,\n participant: LocalParticipant,\n ) => void;\n localTrackSubscribed: (track: LocalTrack) => void;\n trackPublished: (publication: RemoteTrackPublication, participant: RemoteParticipant) => void;\n trackUnpublished: (publication: RemoteTrackPublication, participant: RemoteParticipant) => void;\n trackSubscribed: (\n track: RemoteTrack,\n publication: RemoteTrackPublication,\n participant: RemoteParticipant,\n ) => void;\n trackUnsubscribed: (\n track: RemoteTrack,\n publication: RemoteTrackPublication,\n participant: RemoteParticipant,\n ) => void;\n trackSubscriptionFailed: (\n trackSid: string,\n participant: RemoteParticipant,\n reason?: string,\n ) => void;\n trackMuted: (publication: TrackPublication, participant: Participant) => void;\n trackUnmuted: (publication: TrackPublication, participant: Participant) => void;\n activeSpeakersChanged: (speakers: Participant[]) => void;\n roomMetadataChanged: (metadata: string) => void;\n roomInfoUpdated: (info: RoomInfo) => void;\n participantMetadataChanged: (metadata: string | undefined, participant: Participant) => void;\n participantNameChanged: (name: string, participant: Participant) => void;\n participantAttributesChanged: (\n changedAttributes: Record<string, string>,\n participant: Participant,\n ) => void;\n connectionQualityChanged: (quality: ConnectionQuality, participant: Participant) => void;\n dataReceived: (\n payload: Uint8Array,\n participant?: RemoteParticipant,\n kind?: DataPacketKind,\n topic?: string,\n ) => void;\n chatMessage: (message: ChatMessage, participant?: Participant) => void;\n dtmfReceived: (code: number, digit: string, participant: RemoteParticipant) => void;\n encryptionError: (error: Error) => void;\n connectionStateChanged: (state: ConnectionState) => void;\n connected: () => void;\n disconnected: (reason: DisconnectReason) => void;\n reconnecting: () => void;\n reconnected: () => void;\n roomSidChanged: (sid: string) => void;\n roomUpdated: () => void;\n moved: () => void;\n};\n\nexport enum RoomEvent {\n ParticipantConnected = 'participantConnected',\n ParticipantDisconnected = 'participantDisconnected',\n LocalTrackPublished = 'localTrackPublished',\n LocalTrackUnpublished = 'localTrackUnpublished',\n LocalTrackSubscribed = 'localTrackSubscribed',\n TrackPublished = 'trackPublished',\n TrackUnpublished = 'trackUnpublished',\n TrackSubscribed = 'trackSubscribed',\n TrackUnsubscribed = 'trackUnsubscribed',\n TrackSubscriptionFailed = 'trackSubscriptionFailed',\n TrackMuted = 'trackMuted',\n TrackUnmuted = 'trackUnmuted',\n ActiveSpeakersChanged = 'activeSpeakersChanged',\n RoomMetadataChanged = 'roomMetadataChanged',\n RoomSidChanged = 'roomSidChanged',\n ParticipantMetadataChanged = 'participantMetadataChanged',\n ParticipantNameChanged = 'participantNameChanged',\n ParticipantAttributesChanged = 'participantAttributesChanged',\n ConnectionQualityChanged = 'connectionQualityChanged',\n DataReceived = 'dataReceived',\n ChatMessage = 'chatMessage',\n DtmfReceived = 'dtmfReceived',\n EncryptionError = 'encryptionError',\n ConnectionStateChanged = 'connectionStateChanged',\n Connected = 'connected',\n Disconnected = 'disconnected',\n Reconnecting = 'reconnecting',\n Reconnected = 'reconnected',\n RoomUpdated = 'roomUpdated',\n Moved = 'moved',\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,oBAAyB;AACzB,2BAAmD;AASnD,kBAAgD;AAChD,wBAAqD;AACrD,iBAAoB;AAEpB,yBAAoD;AACpD,qBAAgC;AAIhC,qBAeO;AACP,sBAA0B;AAE1B,mBAAmD;AAEnD,+BAAuC;AAEvC,mBAA+B;AAQxB,MAAM,0BAA4C;AAAA,EACvD,kBAAkB,gCAAiB;AAAA,EACnC,0BAA0B,wCAAyB;AAAA,EACnD,YAAY,CAAC;AACf;AASO,MAAM,qBAAqB,IAAI,eAAAA,YAAe;AAAA,EACnD,eAAe;AAAA,EACf,UAAU;AAAA,EACV,MAAM;AAAA,EACN,W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Aa,KAAK,sBAAsB,IAAI,QAAQ;AAC1D,QAAI,YAAY;AACd,iBAAW,WAAW,MAAM;AAC5B,WAAK,sBAAsB,OAAO,QAAQ;AAAA,IAC5C;AAAA,EACF;AACF;AAEO,MAAM,qBAAqB,MAAM;AAAA,EACtC,YAAY,SAAiB;AAC3B,UAAM,OAAO;AAAA,EACf;AACF;AA2DO,IAAK,YAAL,kBAAKC,eAAL;AACL,EAAAA,WAAA,0BAAuB;AACvB,EAAAA,WAAA,6BAA0B;AAC1B,EAAAA,WAAA,yBAAsB;AACtB,EAAAA,WAAA,2BAAwB;AACxB,EAAAA,WAAA,0BAAuB;AACvB,EAAAA,WAAA,oBAAiB;AACjB,EAAAA,WAAA,sBAAmB;AACnB,EAAAA,WAAA,qBAAkB;AAClB,EAAAA,WAAA,uBAAoB;AACpB,EAAAA,WAAA,6BAA0B;AAC1B,EAAAA,WAAA,gBAAa;AACb,EAAAA,WAAA,kBAAe;AACf,EAAAA,WAAA,2BAAwB;AACxB,EAAAA,WAAA,yBAAsB;AACtB,EAAAA,WAAA,oBAAiB;AACjB,EAAAA,WAAA,gCAA6B;AAC7B,EAAAA,WAAA,4BAAyB;AACzB,EAAAA,WAAA,kCAA+B;AAC/B,EAAAA,WAAA,8BAA2B;AAC3B,EAAAA,WAAA,kBAAe;AACf,EAAAA,WAAA,iBAAc;AACd,EAAAA,WAAA,kBAAe;AACf,EAAAA,WAAA,qBAAkB;AAClB,EAAAA,WAAA,4BAAyB;AACzB,EAAAA,WAAA,eAAY;AACZ,EAAAA,WAAA,kBAAe;AACf,EAAAA,WAAA,kBAAe;AACf,EAAAA,WAAA,iBAAc;AACd,EAAAA,WAAA,iBAAc;AACd,EAAAA,WAAA,WAAQ;AA9BE,SAAAA;AAAA,GAAA;","names":["FfiRoomOptions","EventEmitter","RoomEvent"]}
1
+ {"version":3,"sources":["../src/room.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2024 LiveKit, Inc.\n//\n// SPDX-License-Identifier: Apache-2.0\nimport type { TypedEventEmitter as TypedEmitter } from '@livekit/typed-emitter';\nimport EventEmitter from 'events';\nimport { ByteStreamReader, TextStreamReader } from './data_streams/stream_reader.js';\nimport type {\n ByteStreamHandler,\n ByteStreamInfo,\n StreamController,\n TextStreamHandler,\n TextStreamInfo,\n} from './data_streams/types.js';\nimport type { E2EEOptions } from './e2ee.js';\nimport { E2EEManager, defaultE2EEOptions } from './e2ee.js';\nimport { FfiClient, FfiClientEvent, FfiHandle } from './ffi_client.js';\nimport { log } from './log.js';\nimport type { Participant } from './participant.js';\nimport { LocalParticipant, RemoteParticipant } from './participant.js';\nimport { EncryptionState } from './proto/e2ee_pb.js';\nimport type { FfiEvent } from './proto/ffi_pb.js';\nimport type { DisconnectReason, OwnedParticipant } from './proto/participant_pb.js';\nimport type { DataStream_Trailer } from './proto/room_pb.js';\nimport {\n type ConnectCallback,\n ConnectRequest,\n type ConnectResponse,\n type ConnectionQuality,\n ConnectionState,\n ContinualGatheringPolicy,\n type DataPacketKind,\n type DataStream_Chunk,\n type DataStream_Header,\n type DisconnectResponse,\n RoomOptions as FfiRoomOptions,\n type IceServer,\n IceTransportType,\n type RoomInfo,\n} from './proto/room_pb.js';\nimport { TrackKind } from './proto/track_pb.js';\nimport type { LocalTrack, RemoteTrack } from './track.js';\nimport { RemoteAudioTrack, RemoteVideoTrack } from './track.js';\nimport type { LocalTrackPublication, TrackPublication } from './track_publication.js';\nimport { RemoteTrackPublication } from './track_publication.js';\nimport type { ChatMessage } from './types.js';\nimport { bigIntToNumber } from './utils.js';\n\nexport interface RtcConfiguration {\n iceTransportType: IceTransportType;\n continualGatheringPolicy: ContinualGatheringPolicy;\n iceServers: IceServer[];\n}\n\nexport const defaultRtcConfiguration: RtcConfiguration = {\n iceTransportType: IceTransportType.TRANSPORT_ALL,\n continualGatheringPolicy: ContinualGatheringPolicy.GATHER_CONTINUALLY,\n iceServers: [],\n};\n\nexport interface RoomOptions {\n autoSubscribe: boolean;\n dynacast: boolean;\n e2ee?: E2EEOptions;\n rtcConfig?: RtcConfiguration;\n}\n\nexport const defaultRoomOptions = new FfiRoomOptions({\n autoSubscribe: true,\n dynacast: false,\n e2ee: undefined,\n rtcConfig: undefined,\n adaptiveStream: false,\n joinRetries: 1,\n});\n\nexport class Room extends (EventEmitter as new () => TypedEmitter<RoomCallbacks>) {\n private info?: RoomInfo;\n private ffiHandle?: FfiHandle;\n\n private byteStreamControllers = new Map<string, StreamController<DataStream_Chunk>>();\n private textStreamControllers = new Map<string, StreamController<DataStream_Chunk>>();\n private byteStreamHandlers = new Map<string, ByteStreamHandler>();\n private textStreamHandlers = new Map<string, TextStreamHandler>();\n\n private preConnectEvents: FfiEvent[] = [];\n\n e2eeManager?: E2EEManager;\n connectionState: ConnectionState = ConnectionState.CONN_DISCONNECTED;\n\n remoteParticipants: Map<string, RemoteParticipant> = new Map();\n localParticipant?: LocalParticipant;\n\n constructor() {\n super();\n }\n\n get name(): string | undefined {\n return this.info?.name;\n }\n\n get metadata(): string | undefined {\n return this.info?.metadata;\n }\n\n get isConnected(): boolean {\n return this.ffiHandle != undefined && this.connectionState != ConnectionState.CONN_DISCONNECTED;\n }\n\n /**\n * Gets the room's server ID. This ID is assigned by the LiveKit server\n * and is unique for each room session.\n * SID is assigned asynchronously after connection.\n * @returns Promise that resolves to the room's server ID, or empty string if not connected\n */\n async getSid(): Promise<string> {\n if (!this.isConnected) {\n return '';\n }\n if (this.info?.sid && this.info.sid !== '') {\n return this.info.sid;\n }\n return new Promise((resolve, reject) => {\n const handleRoomUpdate = (sid: string) => {\n if (sid !== '') {\n this.off(RoomEvent.RoomSidChanged, handleRoomUpdate);\n resolve(sid);\n }\n };\n this.on(RoomEvent.RoomSidChanged, handleRoomUpdate);\n this.once(RoomEvent.Disconnected, () => {\n this.off(RoomEvent.RoomSidChanged, handleRoomUpdate);\n reject('Room disconnected before room server id was available');\n });\n });\n }\n\n get numParticipants(): number {\n return this.info?.numParticipants ?? 0;\n }\n\n get numPublishers(): number {\n return this.info?.numPublishers ?? 0;\n }\n\n get creationTime(): Date {\n return new Date(Number(this.info?.creationTime ?? 0));\n }\n\n get isRecording(): boolean {\n return this.info?.activeRecording ?? false;\n }\n\n /**\n * The time in seconds after which a room will be closed after the last\n * participant has disconnected.\n */\n get departureTimeout(): number {\n return this.info?.departureTimeout ?? 0;\n }\n\n /**\n * The time in seconds after which an empty room will be automatically closed.\n */\n get emptyTimeout(): number {\n return this.info?.emptyTimeout ?? 0;\n }\n\n /**\n * Connects to a LiveKit room using the provided URL and access token.\n * @param url The WebSocket URL of the LiveKit server\n * @param token A valid LiveKit access token for authentication\n * @param opts Optional room configuration options\n * @throws ConnectError if connection fails\n */\n async connect(url: string, token: string, opts?: RoomOptions) {\n const options = { ...defaultRoomOptions, ...opts };\n const e2eeOptions = { ...defaultE2EEOptions, ...options.e2ee };\n\n const req = new ConnectRequest({\n url: url,\n token: token,\n options,\n });\n\n FfiClient.instance.on(FfiClientEvent.FfiEvent, this.onFfiEvent);\n\n const res = FfiClient.instance.request<ConnectResponse>({\n message: {\n case: 'connect',\n value: req,\n },\n });\n\n const cb = await FfiClient.instance.waitFor<ConnectCallback>((ev: FfiEvent) => {\n return ev.message.case == 'connect' && ev.message.value.asyncId == res.asyncId;\n });\n\n log.debug('Connect callback received');\n\n switch (cb.message.case) {\n case 'result':\n this.ffiHandle = new FfiHandle(cb.message.value.room!.handle!.id!);\n this.e2eeManager = options.e2ee && new E2EEManager(this.ffiHandle.handle, e2eeOptions);\n\n this.info = cb.message.value.room!.info;\n this.connectionState = ConnectionState.CONN_CONNECTED;\n this.localParticipant = new LocalParticipant(cb.message.value.localParticipant!);\n\n for (const pt of cb.message.value.participants) {\n const rp = this.createRemoteParticipant(pt.participant!);\n\n for (const pub of pt.publications) {\n const publication = new RemoteTrackPublication(pub);\n rp.trackPublications.set(publication.sid!, publication);\n }\n }\n break;\n case 'error':\n default:\n throw new ConnectError(cb.message.value || '');\n }\n }\n\n /**\n * Disconnects from the room and cleans up all resources.\n * This will stop all tracks and close the connection.\n */\n async disconnect() {\n if (!this.isConnected) {\n return;\n }\n\n FfiClient.instance.request<DisconnectResponse>({\n message: {\n case: 'disconnect',\n value: {\n roomHandle: this.ffiHandle?.handle,\n },\n },\n });\n\n FfiClient.instance.removeListener(FfiClientEvent.FfiEvent, this.onFfiEvent);\n this.removeAllListeners();\n }\n\n /**\n * Registers a handler for incoming text data streams on a specific topic.\n * Text streams are used for receiving structured text data from other participants.\n * @param topic The topic to listen for text streams on\n * @param callback Function to handle incoming text stream data\n * @throws Error if a handler for this topic is already registered\n */\n registerTextStreamHandler(topic: string, callback: TextStreamHandler) {\n if (this.textStreamHandlers.has(topic)) {\n throw new Error(`A text stream handler for topic \"${topic}\" has already been set.`);\n }\n this.textStreamHandlers.set(topic, callback);\n }\n\n unregisterTextStreamHandler(topic: string) {\n this.textStreamHandlers.delete(topic);\n }\n\n /**\n * Registers a handler for incoming byte data streams on a specific topic.\n * Byte streams are used for receiving binary data like files from other participants.\n * @param topic The topic to listen for byte streams on\n * @param callback Function to handle incoming byte stream data\n * @throws Error if a handler for this topic is already registered\n */\n registerByteStreamHandler(topic: string, callback: ByteStreamHandler) {\n if (this.byteStreamHandlers.has(topic)) {\n throw new Error(`A byte stream handler for topic \"${topic}\" has already been set.`);\n }\n this.byteStreamHandlers.set(topic, callback);\n }\n\n unregisterByteStreamHandler(topic: string) {\n this.byteStreamHandlers.delete(topic);\n }\n\n private onFfiEvent = (ffiEvent: FfiEvent) => {\n if (!this.localParticipant || !this.ffiHandle || !this.info) {\n this.preConnectEvents.push(ffiEvent);\n return;\n }\n\n // process preConnectEvents if we received the connectCallback after the events were queued\n for (const ev of this.preConnectEvents) {\n this.processFfiEvent(ev);\n }\n this.preConnectEvents = [];\n\n this.processFfiEvent(ffiEvent);\n };\n\n private processFfiEvent = (ffiEvent: FfiEvent) => {\n if (!this.localParticipant || !this.ffiHandle || !this.info) {\n throw new Error('processFfiEvent called before connect');\n }\n\n if (ffiEvent.message.case == 'rpcMethodInvocation') {\n if (\n ffiEvent.message.value.localParticipantHandle == this.localParticipant.ffi_handle.handle\n ) {\n this.localParticipant.handleRpcMethodInvocation(\n ffiEvent.message.value.invocationId!,\n ffiEvent.message.value.method!,\n ffiEvent.message.value.requestId!,\n ffiEvent.message.value.callerIdentity!,\n ffiEvent.message.value.payload!,\n ffiEvent.message.value.responseTimeoutMs!,\n );\n }\n return;\n } else if (\n ffiEvent.message.case != 'roomEvent' ||\n ffiEvent.message.value.roomHandle != this.ffiHandle.handle\n ) {\n return;\n }\n\n const ev = ffiEvent.message.value.message;\n if (process.env.LIVEKIT_DEBUG_LOG_ROOM_EVENTS) {\n console.log('Room event:', ev);\n }\n if (ev.case == 'participantConnected') {\n const participant = this.createRemoteParticipant(ev.value.info!);\n this.remoteParticipants.set(participant.identity!, participant);\n this.emit(RoomEvent.ParticipantConnected, participant);\n } else if (ev.case == 'participantDisconnected') {\n const participant = this.remoteParticipants.get(ev.value.participantIdentity!);\n this.remoteParticipants.delete(participant!.identity);\n participant!.info.disconnectReason = ev.value.disconnectReason;\n this.emit(RoomEvent.ParticipantDisconnected, participant!);\n } else if (ev.case == 'localTrackPublished') {\n const publication = this.localParticipant!.trackPublications.get(ev.value.trackSid!);\n this.emit(RoomEvent.LocalTrackPublished, publication!, this.localParticipant!);\n } else if (ev.case == 'localTrackUnpublished') {\n const publication = this.localParticipant!.trackPublications.get(ev.value.publicationSid!);\n this.localParticipant!.trackPublications.delete(ev.value.publicationSid!);\n this.emit(RoomEvent.LocalTrackUnpublished, publication!, this.localParticipant!);\n } else if (ev.case == 'localTrackSubscribed') {\n const publication = this.localParticipant!.trackPublications.get(ev.value.trackSid!);\n publication!.resolveFirstSubscription();\n this.emit(RoomEvent.LocalTrackSubscribed, publication!.track!);\n } else if (ev.case == 'trackPublished') {\n const participant = this.remoteParticipants.get(ev.value.participantIdentity!);\n const publication = new RemoteTrackPublication(ev.value.publication!);\n participant!.trackPublications.set(publication.sid!, publication);\n this.emit(RoomEvent.TrackPublished, publication, participant!);\n } else if (ev.case == 'trackUnpublished') {\n const participant = this.requireRemoteParticipant(ev.value.participantIdentity!);\n const publication = participant.trackPublications.get(ev.value.publicationSid!);\n participant.trackPublications.delete(ev.value.publicationSid!);\n if (publication) {\n this.emit(RoomEvent.TrackUnpublished, publication, participant);\n }\n } else if (ev.case == 'trackSubscribed') {\n const ownedTrack = ev.value.track!;\n const trackInfo = ownedTrack.info!;\n const { participant, publication } = this.requirePublicationOfRemoteParticipant(\n ev.value.participantIdentity!,\n trackInfo.sid!,\n );\n publication.subscribed = true;\n if (trackInfo.kind == TrackKind.KIND_VIDEO) {\n publication.track = new RemoteVideoTrack(ownedTrack);\n } else if (trackInfo.kind == TrackKind.KIND_AUDIO) {\n publication.track = new RemoteAudioTrack(ownedTrack);\n }\n\n this.emit(RoomEvent.TrackSubscribed, publication.track!, publication, participant);\n } else if (ev.case == 'trackUnsubscribed') {\n const { participant, publication } = this.requirePublicationOfRemoteParticipant(\n ev.value.participantIdentity!,\n ev.value.trackSid!,\n );\n const track = publication.track!;\n publication.track = undefined;\n publication.subscribed = false;\n this.emit(RoomEvent.TrackUnsubscribed, track, publication, participant);\n } else if (ev.case == 'trackSubscriptionFailed') {\n const participant = this.requireRemoteParticipant(ev.value.participantIdentity!);\n this.emit(RoomEvent.TrackSubscriptionFailed, ev.value.trackSid!, participant, ev.value.error);\n } else if (ev.case == 'trackMuted') {\n const { participant, publication } = this.requirePublicationOfParticipant(\n ev.value.participantIdentity!,\n ev.value.trackSid!,\n );\n publication.info!.muted = true;\n if (publication.track) {\n publication.track.info!.muted = true;\n }\n this.emit(RoomEvent.TrackMuted, publication, participant);\n } else if (ev.case == 'trackUnmuted') {\n const { participant, publication } = this.requirePublicationOfParticipant(\n ev.value.participantIdentity!,\n ev.value.trackSid!,\n );\n publication.info!.muted = false;\n if (publication.track) {\n publication.track.info!.muted = false;\n }\n this.emit(RoomEvent.TrackUnmuted, publication, participant);\n } else if (ev.case == 'activeSpeakersChanged') {\n const activeSpeakers = ev.value.participantIdentities.map((identity) =>\n this.requireParticipantByIdentity(identity),\n );\n this.emit(RoomEvent.ActiveSpeakersChanged, activeSpeakers);\n } else if (ev.case == 'roomMetadataChanged') {\n this.info!.metadata = ev.value.metadata;\n this.emit(RoomEvent.RoomMetadataChanged, this.info!.metadata!);\n } else if (ev.case == 'participantMetadataChanged') {\n const participant = this.requireParticipantByIdentity(ev.value.participantIdentity!);\n participant.info.metadata = ev.value.metadata;\n this.emit(RoomEvent.ParticipantMetadataChanged, participant.metadata, participant);\n } else if (ev.case == 'participantNameChanged') {\n const participant = this.requireParticipantByIdentity(ev.value.participantIdentity!);\n participant.info.name = ev.value.name;\n this.emit(RoomEvent.ParticipantNameChanged, participant.name!, participant);\n } else if (ev.case == 'participantAttributesChanged') {\n const participant = this.requireParticipantByIdentity(ev.value.participantIdentity!);\n participant.info.attributes = ev.value.attributes.reduce(\n (acc, value) => {\n acc[value.key!] = value.value!;\n return acc;\n },\n {} as Record<string, string>,\n );\n if (Object.keys(ev.value.changedAttributes).length > 0) {\n const changedAttributes = ev.value.changedAttributes.reduce(\n (acc, value) => {\n acc[value.key!] = value.value!;\n return acc;\n },\n {} as Record<string, string>,\n );\n this.emit(RoomEvent.ParticipantAttributesChanged, changedAttributes, participant);\n }\n } else if (ev.case == 'connectionQualityChanged') {\n const participant = this.requireParticipantByIdentity(ev.value.participantIdentity!);\n this.emit(RoomEvent.ConnectionQualityChanged, ev.value.quality!, participant);\n } else if (ev.case == 'chatMessage') {\n const participant = this.retrieveParticipantByIdentity(ev.value.participantIdentity!);\n const { id, message: messageText, timestamp, editTimestamp, generated } = ev.value.message!;\n const message: ChatMessage = {\n id: id!,\n message: messageText!,\n timestamp: Number(timestamp),\n editTimestamp: Number(editTimestamp),\n generated,\n };\n this.emit(RoomEvent.ChatMessage, message, participant);\n } else if (ev.case == 'dataPacketReceived') {\n // Can be undefined if the data is sent from a Server SDK\n const participant = this.remoteParticipants.get(ev.value.participantIdentity!);\n const dataPacket = ev.value.value;\n switch (dataPacket.case) {\n case 'user':\n const buffer = FfiClient.instance.copyBuffer(\n dataPacket.value.data!.data!.dataPtr!,\n Number(dataPacket.value.data!.data!.dataLen),\n );\n new FfiHandle(dataPacket.value.data!.handle!.id!).dispose();\n this.emit(\n RoomEvent.DataReceived,\n buffer,\n participant,\n ev.value.kind,\n dataPacket.value.topic,\n );\n break;\n case 'sipDtmf':\n const { code, digit } = dataPacket.value;\n this.emit(RoomEvent.DtmfReceived, code!, digit!, participant!);\n break;\n default:\n break;\n }\n } else if (ev.case == 'e2eeStateChanged') {\n if (ev.value.state == EncryptionState.INTERNAL_ERROR) {\n // throw generic error until Rust SDK is updated to supply the error alongside INTERNAL_ERROR\n this.emit(RoomEvent.EncryptionError, new Error('internal server error'));\n }\n } else if (ev.case == 'connectionStateChanged') {\n this.connectionState = ev.value.state!;\n this.emit(RoomEvent.ConnectionStateChanged, this.connectionState);\n /*} else if (ev.case == 'connected') {\n this.emit(RoomEvent.Connected);*/\n } else if (ev.case == 'disconnected') {\n this.emit(RoomEvent.Disconnected, ev.value.reason!);\n } else if (ev.case == 'reconnecting') {\n this.emit(RoomEvent.Reconnecting);\n } else if (ev.case == 'reconnected') {\n this.emit(RoomEvent.Reconnected);\n } else if (ev.case == 'roomSidChanged') {\n this.emit(RoomEvent.RoomSidChanged, ev.value.sid!);\n } else if (ev.case === 'streamHeaderReceived' && ev.value.header) {\n this.handleStreamHeader(ev.value.header, ev.value.participantIdentity!);\n } else if (ev.case === 'streamChunkReceived' && ev.value.chunk) {\n this.handleStreamChunk(ev.value.chunk);\n } else if (ev.case === 'streamTrailerReceived' && ev.value.trailer) {\n this.handleStreamTrailer(ev.value.trailer);\n } else if (ev.case === 'roomUpdated') {\n this.info = ev.value;\n this.emit(RoomEvent.RoomUpdated);\n } else if (ev.case === 'moved') {\n this.info = ev.value;\n this.emit(RoomEvent.Moved);\n } else if (ev.case === 'participantsUpdated') {\n for (const info of ev.value.participants) {\n const participant = this.retrieveParticipantByIdentity(info.identity!);\n if (participant) {\n participant.info = info;\n }\n }\n }\n };\n\n private retrieveParticipantByIdentity(identity: string): Participant | undefined {\n if (this.localParticipant?.identity === identity) {\n return this.localParticipant;\n } else {\n return this.remoteParticipants.get(identity);\n }\n }\n\n private requireParticipantByIdentity(identity: string): Participant {\n if (this.localParticipant?.identity === identity) {\n return this.localParticipant;\n } else if (this.remoteParticipants.has(identity)) {\n return this.remoteParticipants.get(identity)!;\n } else {\n throw new TypeError(`participant ${identity} not found`);\n }\n }\n\n private requireRemoteParticipant(identity: string) {\n const participant = this.remoteParticipants.get(identity);\n if (!participant) {\n throw new TypeError(`participant ${identity} not found`);\n }\n return participant;\n }\n\n private requirePublicationOfParticipant(identity: string, trackSid: string) {\n const participant = this.requireParticipantByIdentity(identity);\n const publication = participant.trackPublications.get(trackSid);\n if (!publication) {\n throw new TypeError(`publication ${trackSid} not found`);\n }\n return { participant, publication };\n }\n\n private requirePublicationOfRemoteParticipant(identity: string, trackSid: string) {\n const participant = this.requireRemoteParticipant(identity);\n const publication = participant.trackPublications.get(trackSid);\n if (!publication) {\n throw new TypeError(`publication ${trackSid} not found`);\n }\n return { participant, publication };\n }\n\n private createRemoteParticipant(ownedInfo: OwnedParticipant) {\n if (this.remoteParticipants.has(ownedInfo.info!.identity!)) {\n throw new Error('Participant already exists');\n }\n\n const participant = new RemoteParticipant(ownedInfo);\n this.remoteParticipants.set(ownedInfo.info!.identity!, participant);\n return participant;\n }\n\n private handleStreamHeader(streamHeader: DataStream_Header, participantIdentity: string) {\n if (streamHeader.contentHeader.case === 'byteHeader') {\n const streamHandlerCallback = this.byteStreamHandlers.get(streamHeader.topic ?? '');\n\n if (!streamHandlerCallback) {\n log.debug(\n 'ignoring incoming byte stream due to no handler for topic: %s',\n streamHeader.topic ?? 'undefined',\n );\n return;\n }\n let streamController: ReadableStreamDefaultController<DataStream_Chunk>;\n const stream = new ReadableStream({\n start: (controller) => {\n streamController = controller;\n this.byteStreamControllers.set(streamHeader.streamId!, {\n header: streamHeader,\n controller: streamController,\n startTime: Date.now(),\n });\n },\n });\n const info: ByteStreamInfo = {\n streamId: streamHeader.streamId!,\n name: streamHeader.contentHeader.value.name ?? 'unknown',\n mimeType: streamHeader.mimeType!,\n totalSize: streamHeader.totalLength ? Number(streamHeader.totalLength) : undefined,\n topic: streamHeader.topic!,\n timestamp: bigIntToNumber(streamHeader.timestamp!),\n attributes: streamHeader.attributes,\n };\n streamHandlerCallback(\n new ByteStreamReader(info, stream, bigIntToNumber(streamHeader.totalLength)),\n { identity: participantIdentity },\n );\n } else if (streamHeader.contentHeader.case === 'textHeader') {\n const streamHandlerCallback = this.textStreamHandlers.get(streamHeader.topic ?? '');\n\n if (!streamHandlerCallback) {\n log.debug(\n 'ignoring incoming text stream due to no handler for topic: %s',\n streamHeader.topic ?? 'undefined',\n );\n return;\n }\n let streamController: ReadableStreamDefaultController<DataStream_Chunk>;\n const stream = new ReadableStream<DataStream_Chunk>({\n start: (controller) => {\n streamController = controller;\n this.textStreamControllers.set(streamHeader.streamId!, {\n header: streamHeader,\n controller: streamController,\n startTime: Date.now(),\n });\n },\n });\n const info: TextStreamInfo = {\n streamId: streamHeader.streamId!,\n mimeType: streamHeader.mimeType!,\n totalSize: streamHeader.totalLength ? Number(streamHeader.totalLength) : undefined,\n topic: streamHeader.topic!,\n timestamp: Number(streamHeader.timestamp),\n attributes: streamHeader.attributes,\n };\n streamHandlerCallback(\n new TextStreamReader(info, stream, bigIntToNumber(streamHeader.totalLength)),\n { identity: participantIdentity },\n );\n }\n }\n\n private handleStreamChunk(chunk: DataStream_Chunk) {\n const fileBuffer = this.byteStreamControllers.get(chunk.streamId!);\n if (fileBuffer) {\n if (chunk.content!.length > 0) {\n fileBuffer.controller.enqueue(chunk);\n }\n }\n const textBuffer = this.textStreamControllers.get(chunk.streamId!);\n if (textBuffer) {\n if (chunk.content!.length > 0) {\n textBuffer.controller.enqueue(chunk);\n }\n }\n }\n\n private handleStreamTrailer(trailer: DataStream_Trailer) {\n const streamId = trailer.streamId!;\n const fileBuffer = this.byteStreamControllers.get(streamId);\n if (fileBuffer) {\n fileBuffer.controller.close();\n this.byteStreamControllers.delete(streamId);\n }\n const textBuffer = this.textStreamControllers.get(streamId);\n if (textBuffer) {\n textBuffer.controller.close();\n this.byteStreamControllers.delete(streamId);\n }\n }\n}\n\nexport class ConnectError extends Error {\n constructor(message: string) {\n super(message);\n }\n}\n\nexport type RoomCallbacks = {\n participantConnected: (participant: RemoteParticipant) => void;\n participantDisconnected: (participant: RemoteParticipant) => void;\n localTrackPublished: (publication: LocalTrackPublication, participant: LocalParticipant) => void;\n localTrackUnpublished: (\n publication: LocalTrackPublication,\n participant: LocalParticipant,\n ) => void;\n localTrackSubscribed: (track: LocalTrack) => void;\n trackPublished: (publication: RemoteTrackPublication, participant: RemoteParticipant) => void;\n trackUnpublished: (publication: RemoteTrackPublication, participant: RemoteParticipant) => void;\n trackSubscribed: (\n track: RemoteTrack,\n publication: RemoteTrackPublication,\n participant: RemoteParticipant,\n ) => void;\n trackUnsubscribed: (\n track: RemoteTrack,\n publication: RemoteTrackPublication,\n participant: RemoteParticipant,\n ) => void;\n trackSubscriptionFailed: (\n trackSid: string,\n participant: RemoteParticipant,\n reason?: string,\n ) => void;\n trackMuted: (publication: TrackPublication, participant: Participant) => void;\n trackUnmuted: (publication: TrackPublication, participant: Participant) => void;\n activeSpeakersChanged: (speakers: Participant[]) => void;\n roomMetadataChanged: (metadata: string) => void;\n roomInfoUpdated: (info: RoomInfo) => void;\n participantMetadataChanged: (metadata: string | undefined, participant: Participant) => void;\n participantNameChanged: (name: string, participant: Participant) => void;\n participantAttributesChanged: (\n changedAttributes: Record<string, string>,\n participant: Participant,\n ) => void;\n connectionQualityChanged: (quality: ConnectionQuality, participant: Participant) => void;\n dataReceived: (\n payload: Uint8Array,\n participant?: RemoteParticipant,\n kind?: DataPacketKind,\n topic?: string,\n ) => void;\n chatMessage: (message: ChatMessage, participant?: Participant) => void;\n dtmfReceived: (code: number, digit: string, participant: RemoteParticipant) => void;\n encryptionError: (error: Error) => void;\n connectionStateChanged: (state: ConnectionState) => void;\n connected: () => void;\n disconnected: (reason: DisconnectReason) => void;\n reconnecting: () => void;\n reconnected: () => void;\n roomSidChanged: (sid: string) => void;\n roomUpdated: () => void;\n moved: () => void;\n};\n\nexport enum RoomEvent {\n ParticipantConnected = 'participantConnected',\n ParticipantDisconnected = 'participantDisconnected',\n LocalTrackPublished = 'localTrackPublished',\n LocalTrackUnpublished = 'localTrackUnpublished',\n LocalTrackSubscribed = 'localTrackSubscribed',\n TrackPublished = 'trackPublished',\n TrackUnpublished = 'trackUnpublished',\n TrackSubscribed = 'trackSubscribed',\n TrackUnsubscribed = 'trackUnsubscribed',\n TrackSubscriptionFailed = 'trackSubscriptionFailed',\n TrackMuted = 'trackMuted',\n TrackUnmuted = 'trackUnmuted',\n ActiveSpeakersChanged = 'activeSpeakersChanged',\n RoomMetadataChanged = 'roomMetadataChanged',\n RoomSidChanged = 'roomSidChanged',\n ParticipantMetadataChanged = 'participantMetadataChanged',\n ParticipantNameChanged = 'participantNameChanged',\n ParticipantAttributesChanged = 'participantAttributesChanged',\n ConnectionQualityChanged = 'connectionQualityChanged',\n DataReceived = 'dataReceived',\n ChatMessage = 'chatMessage',\n DtmfReceived = 'dtmfReceived',\n EncryptionError = 'encryptionError',\n ConnectionStateChanged = 'connectionStateChanged',\n Connected = 'connected',\n Disconnected = 'disconnected',\n Reconnecting = 'reconnecting',\n Reconnected = 'reconnected',\n RoomUpdated = 'roomUpdated',\n Moved = 'moved',\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,oBAAyB;AACzB,2BAAmD;AASnD,kBAAgD;AAChD,wBAAqD;AACrD,iBAAoB;AAEpB,yBAAoD;AACpD,qBAAgC;AAIhC,qBAeO;AACP,sBAA0B;AAE1B,mBAAmD;AAEn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