ntgcalls 3.0.6 → 3.1.0-alpha01

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/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
@@ -114,6 +114,7 @@ export interface AudioDescription {
114
114
  channelCount: number;
115
115
  input: string;
116
116
  keepOpen: boolean;
117
+ bitrate?: number;
117
118
  }
118
119
 
119
120
  export interface CallInfo {
package/index.js CHANGED
@@ -2,16 +2,23 @@
2
2
 
3
3
  const { platform, arch } = process;
4
4
 
5
+ function libcSuffix() {
6
+ if (platform !== 'linux') return '';
7
+ return process.report.getReport().header.glibcVersionRuntime ? '' : '-musl';
8
+ }
9
+
10
+ const name = `${platform}-${arch}${libcSuffix()}`;
11
+
5
12
  function load() {
6
13
  try {
7
- return require(`@ntgcalls/${platform}-${arch}`);
14
+ return require(`@ntgcalls/${name}`);
8
15
  } catch (_) {
9
16
  try {
10
17
  return require('./build/Release/ntgcalls.node');
11
18
  } catch (_) {
12
19
  throw new Error(
13
- `ntgcalls: no prebuilt binary for ${platform}-${arch}. ` +
14
- `Install the matching @ntgcalls/${platform}-${arch} package ` +
20
+ `ntgcalls: no prebuilt binary for ${name}. ` +
21
+ `Install the matching @ntgcalls/${name} package ` +
15
22
  `or build from source with "npm run build".`
16
23
  );
17
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ntgcalls",
3
- "version": "3.0.6",
3
+ "version": "3.1.0-alpha01",
4
4
  "description": "A Library for creating group calls and P2P calls with WebRTC and MTProto",
5
5
  "keywords": [
6
6
  "telegram",
@@ -44,10 +44,12 @@
44
44
  "build": "cmake-js compile"
45
45
  },
46
46
  "optionalDependencies": {
47
- "@ntgcalls/linux-x64": "3.0.6",
48
- "@ntgcalls/linux-arm64": "3.0.6",
49
- "@ntgcalls/darwin-arm64": "3.0.6",
50
- "@ntgcalls/win32-x64": "3.0.6"
47
+ "@ntgcalls/linux-x64": "3.1.0-alpha01",
48
+ "@ntgcalls/linux-x64-musl": "3.1.0-alpha01",
49
+ "@ntgcalls/linux-arm64": "3.1.0-alpha01",
50
+ "@ntgcalls/linux-arm64-musl": "3.1.0-alpha01",
51
+ "@ntgcalls/darwin-arm64": "3.1.0-alpha01",
52
+ "@ntgcalls/win32-x64": "3.1.0-alpha01"
51
53
  },
52
54
  "devDependencies": {
53
55
  "@types/node": "^26.1.1",