@livekit/rtc-node 0.13.9 → 0.13.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/audio_filter.cjs +48 -0
- package/dist/audio_filter.cjs.map +1 -0
- package/dist/audio_filter.d.cts +5 -0
- package/dist/audio_filter.d.ts +5 -0
- package/dist/audio_filter.d.ts.map +1 -0
- package/dist/audio_filter.js +27 -0
- package/dist/audio_filter.js.map +1 -0
- package/dist/audio_stream.cjs +15 -5
- package/dist/audio_stream.cjs.map +1 -1
- package/dist/audio_stream.d.cts +15 -2
- package/dist/audio_stream.d.ts +15 -2
- package/dist/audio_stream.d.ts.map +1 -1
- package/dist/audio_stream.js +15 -5
- package/dist/audio_stream.js.map +1 -1
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/proto/audio_frame_pb.cjs +312 -2
- package/dist/proto/audio_frame_pb.cjs.map +1 -1
- package/dist/proto/audio_frame_pb.d.cts +278 -1
- package/dist/proto/audio_frame_pb.d.ts +278 -1
- package/dist/proto/audio_frame_pb.d.ts.map +1 -1
- package/dist/proto/audio_frame_pb.js +301 -2
- package/dist/proto/audio_frame_pb.js.map +1 -1
- package/dist/proto/ffi_pb.cjs +12 -2
- package/dist/proto/ffi_pb.cjs.map +1 -1
- package/dist/proto/ffi_pb.d.cts +65 -1
- package/dist/proto/ffi_pb.d.ts +65 -1
- package/dist/proto/ffi_pb.d.ts.map +1 -1
- package/dist/proto/ffi_pb.js +13 -3
- package/dist/proto/ffi_pb.js.map +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.d.cts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/video_frame.cjs +3 -1
- package/dist/video_frame.cjs.map +1 -1
- package/dist/video_frame.d.ts.map +1 -1
- package/dist/video_frame.js +4 -2
- package/dist/video_frame.js.map +1 -1
- package/package.json +6 -6
- package/src/audio_filter.ts +29 -0
- package/src/audio_stream.ts +38 -5
- package/src/index.ts +2 -0
- package/src/proto/audio_frame_pb.ts +533 -0
- package/src/proto/ffi_pb.ts +75 -1
- package/src/version.ts +1 -1
- package/src/video_frame.ts +5 -2
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.13.
|
|
1
|
+
export const SDK_VERSION = "0.13.11";
|
package/src/video_frame.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// SPDX-FileCopyrightText: 2024 LiveKit, Inc.
|
|
2
2
|
//
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
import { FfiClient, FfiRequest } from './ffi_client.js';
|
|
4
|
+
import { FfiClient, FfiHandle, FfiRequest } from './ffi_client.js';
|
|
5
5
|
import type { OwnedVideoBuffer, VideoConvertResponse } from './proto/video_frame_pb.js';
|
|
6
6
|
import {
|
|
7
7
|
VideoBufferInfo,
|
|
@@ -58,7 +58,7 @@ export class VideoFrame {
|
|
|
58
58
|
/** @internal */
|
|
59
59
|
static fromOwnedInfo(owned: OwnedVideoBuffer): VideoFrame {
|
|
60
60
|
const info = owned.info!;
|
|
61
|
-
|
|
61
|
+
const frame = new VideoFrame(
|
|
62
62
|
FfiClient.instance.copyBuffer(
|
|
63
63
|
info.dataPtr!,
|
|
64
64
|
getPlaneLength(info.type!, info.width!, info.height!),
|
|
@@ -67,6 +67,9 @@ export class VideoFrame {
|
|
|
67
67
|
info.height!,
|
|
68
68
|
info.type!,
|
|
69
69
|
);
|
|
70
|
+
// Dispose of the handle to prevent memory leaks
|
|
71
|
+
new FfiHandle(owned.handle!.id!).dispose();
|
|
72
|
+
return frame;
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
getPlane(planeNth: number): Uint8Array | void {
|