New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@livekit/rtc-node

Package Overview
Dependencies
Maintainers
20
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@livekit/rtc-node - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0-rc.1

5

dist/video_frame.d.ts

@@ -7,5 +7,6 @@ import { OwnedVideoBuffer, VideoBufferInfo, VideoBufferType } from './proto/video_frame_pb.js';

type: VideoBufferType;
dataPtr: bigint;
constructor(data: Uint8Array, width: number, height: number, type: VideoBufferType, dataPtr: bigint);
constructor(data: Uint8Array, width: number, height: number, type: VideoBufferType);
/** @internal */
get dataPtr(): bigint;
/** @internal */
protoInfo(): VideoBufferInfo;

@@ -12,0 +13,0 @@ /** @internal */

@@ -7,3 +7,3 @@ // SPDX-FileCopyrightText: 2024 LiveKit, Inc.

export class VideoFrame {
constructor(data, width, height, type, dataPtr) {
constructor(data, width, height, type) {
this.data = data;

@@ -13,5 +13,8 @@ this.width = width;

this.type = type;
this.dataPtr = dataPtr;
}
/** @internal */
get dataPtr() {
return FfiClient.instance.retrievePtr(new Uint8Array(this.data.buffer));
}
/** @internal */
protoInfo() {

@@ -22,3 +25,2 @@ const info = new VideoBufferInfo({

type: this.type,
dataPtr: this.dataPtr,
});

@@ -40,3 +42,3 @@ switch (this.type) {

let info = owned.info;
return new VideoFrame(FfiClient.instance.copyBuffer(info.dataPtr, getPlaneLength(info.type, info.width, info.height)), info.width, info.height, info.type, info.dataPtr);
return new VideoFrame(FfiClient.instance.copyBuffer(info.dataPtr, getPlaneLength(info.type, info.width, info.height)), info.width, info.height, info.type);
}

@@ -43,0 +45,0 @@ getPlane(planeNth) {

12

package.json

@@ -5,3 +5,3 @@ {

"license": "Apache-2.0",
"version": "0.2.0",
"version": "0.3.0-rc.1",
"main": "dist/index.js",

@@ -44,7 +44,7 @@ "types": "dist/index.d.ts",

"optionalDependencies": {
"@livekit/rtc-node-darwin-arm64": "0.2.0",
"@livekit/rtc-node-darwin-x64": "0.2.0",
"@livekit/rtc-node-linux-arm64-gnu": "0.2.0",
"@livekit/rtc-node-linux-x64-gnu": "0.2.0",
"@livekit/rtc-node-win32-x64-msvc": "0.2.0"
"@livekit/rtc-node-darwin-arm64": "0.3.0-rc.1",
"@livekit/rtc-node-darwin-x64": "0.3.0-rc.1",
"@livekit/rtc-node-linux-arm64-gnu": "0.3.0-rc.1",
"@livekit/rtc-node-linux-x64-gnu": "0.3.0-rc.1",
"@livekit/rtc-node-win32-x64-msvc": "0.3.0-rc.1"
},

@@ -51,0 +51,0 @@ "scripts": {

@@ -19,3 +19,2 @@ // SPDX-FileCopyrightText: 2024 LiveKit, Inc.

type: VideoBufferType;
dataPtr: bigint;

@@ -27,3 +26,2 @@ constructor(

type: VideoBufferType,
dataPtr: bigint,
) {

@@ -34,6 +32,10 @@ this.data = data;

this.type = type;
this.dataPtr = dataPtr;
}
/** @internal */
get dataPtr(): bigint {
return FfiClient.instance.retrievePtr(new Uint8Array(this.data.buffer))
}
/** @internal */
protoInfo(): VideoBufferInfo {

@@ -44,3 +46,2 @@ const info = new VideoBufferInfo({

type: this.type,
dataPtr: this.dataPtr,
});

@@ -74,3 +75,2 @@

info.type,
info.dataPtr,
);

@@ -77,0 +77,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc