ntgcalls 3.0.7 → 3.1.0-beta01

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 (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +10 -1
  3. package/package.json +7 -7
package/README.md CHANGED
@@ -54,7 +54,7 @@ NTgCalls is a lightweight open-source library for media streaming in Telegram ca
54
54
  | ARM64 | ![BUILD](https://img.shields.io/badge/build-unsupported-dark_green?logo=windows11&logoColor=%23959DA5&labelColor=%23282f37&color=%23959DA5) | ![BUILD](https://img.shields.io/badge/build-passing-dark_green?logo=linux&logoColor=%23959DA5&labelColor=%23282f37&color=%2328A745) | ![BUILD](https://img.shields.io/badge/build-passing-dark_green?logo=apple&logoColor=%23959DA5&labelColor=%23282f37&color=%2328A745) |
55
55
 
56
56
  ## Features
57
- - Pre-built binaries for macOS (arm64-v8a), Linux (x86_64, arm64-v8a), Windows (x86_64), and Android (x86, 86_64, arm64-v8a, armv7)
57
+ - Pre-built binaries for macOS (arm64-v8a), Linux (x86_64, arm64-v8a, glibc and musl), Windows (x86_64), and Android (x86, 86_64, arm64-v8a, armv7)
58
58
  - Call flexibility: Group and private call support
59
59
  - Media controls: pause/resume and mute/unmute
60
60
  - Codec compatibility: H.264, HEVC (H.265), VP8, VP9, AV1, AAC, MP3, Opus
package/index.d.ts CHANGED
@@ -3,7 +3,6 @@ export enum MediaSource {
3
3
  UNKNOWN,
4
4
  FILE,
5
5
  SHELL,
6
- FFMPEG,
7
6
  DEVICE,
8
7
  DESKTOP,
9
8
  EXTERNAL,
@@ -114,6 +113,7 @@ export interface AudioDescription {
114
113
  channelCount: number;
115
114
  input: string;
116
115
  keepOpen: boolean;
116
+ bitrate?: number;
117
117
  }
118
118
 
119
119
  export interface CallInfo {
@@ -311,6 +311,15 @@ export class NTgCalls {
311
311
  getEmojisFingerprint(
312
312
  chatId: bigint
313
313
  ): Promise<string>;
314
+ encryptMessage(
315
+ chatId: bigint,
316
+ data: Buffer
317
+ ): Promise<Buffer>;
318
+ decryptMessage(
319
+ chatId: bigint,
320
+ userId: bigint,
321
+ data: Buffer
322
+ ): Promise<Buffer>;
314
323
  time(
315
324
  chatId: bigint,
316
325
  mode: StreamMode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ntgcalls",
3
- "version": "3.0.7",
3
+ "version": "3.1.0-beta01",
4
4
  "description": "A Library for creating group calls and P2P calls with WebRTC and MTProto",
5
5
  "keywords": [
6
6
  "telegram",
@@ -44,12 +44,12 @@
44
44
  "build": "cmake-js compile"
45
45
  },
46
46
  "optionalDependencies": {
47
- "@ntgcalls/linux-x64": "3.0.7",
48
- "@ntgcalls/linux-x64-musl": "3.0.7",
49
- "@ntgcalls/linux-arm64": "3.0.7",
50
- "@ntgcalls/linux-arm64-musl": "3.0.7",
51
- "@ntgcalls/darwin-arm64": "3.0.7",
52
- "@ntgcalls/win32-x64": "3.0.7"
47
+ "@ntgcalls/linux-x64": "3.1.0-beta01",
48
+ "@ntgcalls/linux-x64-musl": "3.1.0-beta01",
49
+ "@ntgcalls/linux-arm64": "3.1.0-beta01",
50
+ "@ntgcalls/linux-arm64-musl": "3.1.0-beta01",
51
+ "@ntgcalls/darwin-arm64": "3.1.0-beta01",
52
+ "@ntgcalls/win32-x64": "3.1.0-beta01"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/node": "^26.1.1",