@livekit/rtc-node 0.13.24 → 0.13.25
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 +2 -2
- package/dist/audio_filter.cjs.map +1 -1
- package/dist/audio_filter.js +1 -1
- package/dist/audio_filter.js.map +1 -1
- package/dist/audio_frame.cjs +9 -5
- package/dist/audio_frame.cjs.map +1 -1
- package/dist/audio_frame.d.cts +2 -7
- package/dist/audio_frame.d.ts +2 -7
- package/dist/audio_frame.d.ts.map +1 -1
- package/dist/audio_frame.js +8 -4
- package/dist/audio_frame.js.map +1 -1
- package/dist/audio_mixer.cjs +1 -1
- package/dist/audio_mixer.cjs.map +1 -1
- package/dist/audio_mixer.d.cts +1 -6
- package/dist/audio_mixer.d.ts +1 -6
- package/dist/audio_mixer.js +1 -1
- package/dist/audio_mixer.js.map +1 -1
- package/dist/audio_resampler.cjs +20 -12
- package/dist/audio_resampler.cjs.map +1 -1
- package/dist/audio_resampler.d.cts +6 -6
- package/dist/audio_resampler.d.ts +6 -6
- package/dist/audio_resampler.d.ts.map +1 -1
- package/dist/audio_resampler.js +12 -4
- package/dist/audio_resampler.js.map +1 -1
- package/dist/audio_source.cjs +11 -7
- package/dist/audio_source.cjs.map +1 -1
- package/dist/audio_source.d.cts +1 -7
- package/dist/audio_source.d.ts +1 -7
- package/dist/audio_source.d.ts.map +1 -1
- package/dist/audio_source.js +8 -3
- package/dist/audio_source.js.map +1 -1
- package/dist/audio_stream.cjs +16 -6
- package/dist/audio_stream.cjs.map +1 -1
- package/dist/audio_stream.d.cts +1 -14
- package/dist/audio_stream.d.ts +1 -14
- 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/data_streams/index.d.cts +2 -10
- package/dist/data_streams/index.d.ts +2 -10
- package/dist/data_streams/stream_reader.cjs +8 -0
- package/dist/data_streams/stream_reader.cjs.map +1 -1
- package/dist/data_streams/stream_reader.d.cts +2 -10
- package/dist/data_streams/stream_reader.d.ts +2 -10
- package/dist/data_streams/stream_reader.d.ts.map +1 -1
- package/dist/data_streams/stream_reader.js +8 -0
- package/dist/data_streams/stream_reader.js.map +1 -1
- package/dist/data_streams/stream_writer.d.cts +2 -10
- package/dist/data_streams/stream_writer.d.ts +2 -10
- package/dist/data_streams/types.cjs.map +1 -1
- package/dist/data_streams/types.d.cts +2 -10
- package/dist/data_streams/types.d.ts +2 -10
- package/dist/data_streams/types.d.ts.map +1 -1
- package/dist/e2ee.cjs +21 -21
- package/dist/e2ee.cjs.map +1 -1
- package/dist/e2ee.d.cts +1 -2
- package/dist/e2ee.d.ts +1 -2
- package/dist/e2ee.d.ts.map +1 -1
- package/dist/e2ee.js +2 -2
- package/dist/e2ee.js.map +1 -1
- package/dist/ffi_client.cjs +11 -12
- package/dist/ffi_client.cjs.map +1 -1
- package/dist/ffi_client.d.cts +3 -16
- package/dist/ffi_client.d.ts +3 -16
- package/dist/ffi_client.d.ts.map +1 -1
- package/dist/ffi_client.js +5 -3
- package/dist/ffi_client.js.map +1 -1
- package/dist/frame_processor.cjs +13 -2
- package/dist/frame_processor.cjs.map +1 -1
- package/dist/frame_processor.d.cts +5 -8
- package/dist/frame_processor.d.ts +5 -8
- package/dist/frame_processor.d.ts.map +1 -1
- package/dist/frame_processor.js +10 -1
- package/dist/frame_processor.js.map +1 -1
- package/dist/index.cjs +25 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -16
- package/dist/index.d.ts +3 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/participant.cjs +38 -38
- package/dist/participant.cjs.map +1 -1
- package/dist/participant.d.cts +2 -15
- package/dist/participant.d.ts +2 -15
- package/dist/participant.d.ts.map +1 -1
- package/dist/participant.js +12 -12
- package/dist/participant.js.map +1 -1
- package/dist/room.cjs +14 -14
- package/dist/room.cjs.map +1 -1
- package/dist/room.d.cts +2 -15
- package/dist/room.d.ts +2 -15
- package/dist/room.d.ts.map +1 -1
- package/dist/room.js +10 -10
- package/dist/room.js.map +1 -1
- package/dist/rpc.cjs.map +1 -1
- package/dist/rpc.d.cts +1 -2
- package/dist/rpc.d.ts +1 -2
- package/dist/rpc.d.ts.map +1 -1
- package/dist/rpc.js.map +1 -1
- package/dist/{stream_reader-Ch2zvjU3.d.cts → stream_reader-CuG4b8Y-.d.cts} +1 -1
- package/dist/{stream_reader-DRyR29vo.d.ts → stream_reader-CuG4b8Y-.d.ts} +1 -1
- package/dist/track.cjs +3 -3
- package/dist/track.cjs.map +1 -1
- package/dist/track.d.cts +1 -14
- package/dist/track.d.ts +1 -14
- package/dist/track.d.ts.map +1 -1
- package/dist/track.js +1 -1
- package/dist/track.js.map +1 -1
- package/dist/track_publication.cjs +4 -4
- package/dist/track_publication.cjs.map +1 -1
- package/dist/track_publication.d.cts +1 -14
- package/dist/track_publication.d.ts +1 -14
- package/dist/track_publication.d.ts.map +1 -1
- package/dist/track_publication.js +2 -2
- package/dist/track_publication.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.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/video_frame.cjs +42 -42
- package/dist/video_frame.cjs.map +1 -1
- package/dist/video_frame.d.cts +1 -6
- package/dist/video_frame.d.ts +1 -6
- package/dist/video_frame.d.ts.map +1 -1
- package/dist/video_frame.js +2 -2
- package/dist/video_frame.js.map +1 -1
- package/dist/video_source.cjs +5 -5
- package/dist/video_source.cjs.map +1 -1
- package/dist/video_source.d.cts +1 -14
- package/dist/video_source.d.ts +1 -14
- package/dist/video_source.d.ts.map +1 -1
- package/dist/video_source.js +2 -2
- package/dist/video_source.js.map +1 -1
- package/dist/video_stream.cjs +12 -4
- package/dist/video_stream.cjs.map +1 -1
- package/dist/video_stream.d.cts +1 -14
- package/dist/video_stream.d.ts +1 -14
- package/dist/video_stream.d.ts.map +1 -1
- package/dist/video_stream.js +10 -2
- package/dist/video_stream.js.map +1 -1
- package/package.json +7 -37
- package/src/audio_filter.ts +2 -2
- package/src/audio_frame.ts +17 -5
- package/src/audio_mixer.ts +1 -1
- package/src/audio_resampler.ts +14 -4
- package/src/audio_source.ts +13 -5
- package/src/audio_stream.ts +21 -6
- package/src/data_streams/stream_reader.ts +19 -1
- package/src/data_streams/types.ts +1 -1
- package/src/e2ee.ts +3 -3
- package/src/ffi_client.ts +7 -5
- package/src/frame_processor.ts +21 -0
- package/src/index.ts +6 -5
- package/src/participant.ts +17 -17
- package/src/room.ts +22 -22
- package/src/rpc.ts +1 -1
- package/src/tests/e2e.test.ts +11 -8
- package/src/track.ts +4 -4
- package/src/track_publication.ts +6 -6
- package/src/version.ts +1 -1
- package/src/video_frame.ts +3 -3
- package/src/video_source.ts +3 -3
- package/src/video_stream.ts +15 -3
- package/Cargo.toml +0 -25
- package/build.rs +0 -9
- package/dist/napi/native.cjs +0 -301
- package/dist/napi/native.d.cjs +0 -17
- package/dist/napi/native.d.cjs.map +0 -1
- package/dist/napi/native.d.d.cts +0 -21
- package/dist/napi/native.d.d.ts +0 -21
- package/dist/napi/native.d.js +0 -1
- package/dist/napi/native.d.js.map +0 -1
- package/dist/napi/native.d.ts +0 -19
- package/dist/napi/native.js +0 -15
- package/dist/native.cjs +0 -301
- package/dist/native.d.ts +0 -19
- package/dist/native.js +0 -15
- package/dist/proto/audio_frame_pb.cjs +0 -1357
- package/dist/proto/audio_frame_pb.cjs.map +0 -1
- package/dist/proto/audio_frame_pb.d.cts +0 -1183
- package/dist/proto/audio_frame_pb.d.ts +0 -1183
- package/dist/proto/audio_frame_pb.d.ts.map +0 -1
- package/dist/proto/audio_frame_pb.js +0 -1283
- package/dist/proto/audio_frame_pb.js.map +0 -1
- package/dist/proto/data_stream_pb.cjs +0 -1638
- package/dist/proto/data_stream_pb.cjs.map +0 -1
- package/dist/proto/data_stream_pb.d.cts +0 -1449
- package/dist/proto/data_stream_pb.d.ts +0 -1449
- package/dist/proto/data_stream_pb.d.ts.map +0 -1
- package/dist/proto/data_stream_pb.js +0 -1559
- package/dist/proto/data_stream_pb.js.map +0 -1
- package/dist/proto/e2ee_pb.cjs +0 -746
- package/dist/proto/e2ee_pb.cjs.map +0 -1
- package/dist/proto/e2ee_pb.d.cts +0 -653
- package/dist/proto/e2ee_pb.d.ts +0 -653
- package/dist/proto/e2ee_pb.d.ts.map +0 -1
- package/dist/proto/e2ee_pb.js +0 -696
- package/dist/proto/e2ee_pb.js.map +0 -1
- package/dist/proto/ffi_pb.cjs +0 -477
- package/dist/proto/ffi_pb.cjs.map +0 -1
- package/dist/proto/ffi_pb.d.cts +0 -1321
- package/dist/proto/ffi_pb.d.ts +0 -1321
- package/dist/proto/ffi_pb.d.ts.map +0 -1
- package/dist/proto/ffi_pb.js +0 -444
- package/dist/proto/ffi_pb.js.map +0 -1
- package/dist/proto/handle_pb.cjs +0 -53
- package/dist/proto/handle_pb.cjs.map +0 -1
- package/dist/proto/handle_pb.d.cts +0 -31
- package/dist/proto/handle_pb.d.ts +0 -31
- package/dist/proto/handle_pb.d.ts.map +0 -1
- package/dist/proto/handle_pb.js +0 -29
- package/dist/proto/handle_pb.js.map +0 -1
- package/dist/proto/participant_pb.cjs +0 -173
- package/dist/proto/participant_pb.cjs.map +0 -1
- package/dist/proto/participant_pb.d.cts +0 -218
- package/dist/proto/participant_pb.d.ts +0 -218
- package/dist/proto/participant_pb.d.ts.map +0 -1
- package/dist/proto/participant_pb.js +0 -145
- package/dist/proto/participant_pb.js.map +0 -1
- package/dist/proto/room_pb.cjs +0 -3374
- package/dist/proto/room_pb.cjs.map +0 -1
- package/dist/proto/room_pb.d.cts +0 -3028
- package/dist/proto/room_pb.d.ts +0 -3028
- package/dist/proto/room_pb.d.ts.map +0 -1
- package/dist/proto/room_pb.js +0 -3232
- package/dist/proto/room_pb.js.map +0 -1
- package/dist/proto/rpc_pb.cjs +0 -328
- package/dist/proto/rpc_pb.cjs.map +0 -1
- package/dist/proto/rpc_pb.d.cts +0 -267
- package/dist/proto/rpc_pb.d.ts +0 -267
- package/dist/proto/rpc_pb.d.ts.map +0 -1
- package/dist/proto/rpc_pb.js +0 -294
- package/dist/proto/rpc_pb.js.map +0 -1
- package/dist/proto/stats_pb.cjs +0 -1370
- package/dist/proto/stats_pb.cjs.map +0 -1
- package/dist/proto/stats_pb.d.cts +0 -1764
- package/dist/proto/stats_pb.d.ts +0 -1764
- package/dist/proto/stats_pb.d.ts.map +0 -1
- package/dist/proto/stats_pb.js +0 -1300
- package/dist/proto/stats_pb.js.map +0 -1
- package/dist/proto/track_pb.cjs +0 -630
- package/dist/proto/track_pb.cjs.map +0 -1
- package/dist/proto/track_pb.d.cts +0 -542
- package/dist/proto/track_pb.d.ts +0 -542
- package/dist/proto/track_pb.d.ts.map +0 -1
- package/dist/proto/track_pb.js +0 -584
- package/dist/proto/track_pb.js.map +0 -1
- package/dist/proto/track_publication_pb.cjs +0 -194
- package/dist/proto/track_publication_pb.cjs.map +0 -1
- package/dist/proto/track_publication_pb.d.cts +0 -135
- package/dist/proto/track_publication_pb.d.ts +0 -135
- package/dist/proto/track_publication_pb.d.ts.map +0 -1
- package/dist/proto/track_publication_pb.js +0 -164
- package/dist/proto/track_publication_pb.js.map +0 -1
- package/dist/proto/video_frame_pb.cjs +0 -723
- package/dist/proto/video_frame_pb.cjs.map +0 -1
- package/dist/proto/video_frame_pb.d.cts +0 -667
- package/dist/proto/video_frame_pb.d.ts +0 -667
- package/dist/proto/video_frame_pb.d.ts.map +0 -1
- package/dist/proto/video_frame_pb.js +0 -673
- package/dist/proto/video_frame_pb.js.map +0 -1
- package/src/lib.rs +0 -9
- package/src/napi/native.cjs +0 -301
- package/src/napi/native.d.ts +0 -19
- package/src/napi/native.js +0 -15
- package/src/nodejs.rs +0 -134
- package/src/proto/audio_frame_pb.ts +0 -2270
- package/src/proto/data_stream_pb.ts +0 -2674
- package/src/proto/e2ee_pb.ts +0 -1231
- package/src/proto/ffi_pb.ts +0 -1700
- package/src/proto/handle_pb.ts +0 -69
- package/src/proto/participant_pb.ts +0 -351
- package/src/proto/room_pb.ts +0 -5661
- package/src/proto/rpc_pb.ts +0 -539
- package/src/proto/stats_pb.ts +0 -3050
- package/src/proto/track_pb.ts +0 -1040
- package/src/proto/track_publication_pb.ts +0 -284
- package/src/proto/video_frame_pb.ts +0 -1236
package/dist/napi/native.cjs
DELETED
|
@@ -1,301 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/* prettier-ignore */
|
|
4
|
-
|
|
5
|
-
/* auto-generated by NAPI-RS */
|
|
6
|
-
|
|
7
|
-
const { existsSync, readFileSync } = require('fs')
|
|
8
|
-
const { join } = require('path');
|
|
9
|
-
|
|
10
|
-
const { platform, arch } = process;
|
|
11
|
-
|
|
12
|
-
let nativeBinding = null;
|
|
13
|
-
let localFileExisted = false;
|
|
14
|
-
let loadError = null;
|
|
15
|
-
|
|
16
|
-
function isMusl() {
|
|
17
|
-
// For Node 10
|
|
18
|
-
if (!process.report || typeof process.report.getReport !== 'function') {
|
|
19
|
-
try {
|
|
20
|
-
const lddPath = require('child_process').execSync('which ldd').toString().trim();
|
|
21
|
-
return readFileSync(lddPath, 'utf8').includes('musl');
|
|
22
|
-
} catch (e) {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
} else {
|
|
26
|
-
const { glibcVersionRuntime } = process.report.getReport().header;
|
|
27
|
-
return !glibcVersionRuntime;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
switch (platform) {
|
|
32
|
-
case 'android':
|
|
33
|
-
switch (arch) {
|
|
34
|
-
case 'arm64':
|
|
35
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.android-arm64.node'));
|
|
36
|
-
try {
|
|
37
|
-
if (localFileExisted) {
|
|
38
|
-
nativeBinding = require('./rtc-node.android-arm64.node');
|
|
39
|
-
} else {
|
|
40
|
-
nativeBinding = require('@livekit/rtc-node-android-arm64');
|
|
41
|
-
}
|
|
42
|
-
} catch (e) {
|
|
43
|
-
loadError = e;
|
|
44
|
-
}
|
|
45
|
-
break;
|
|
46
|
-
case 'arm':
|
|
47
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.android-arm-eabi.node'));
|
|
48
|
-
try {
|
|
49
|
-
if (localFileExisted) {
|
|
50
|
-
nativeBinding = require('./rtc-node.android-arm-eabi.node');
|
|
51
|
-
} else {
|
|
52
|
-
nativeBinding = require('@livekit/rtc-node-android-arm-eabi');
|
|
53
|
-
}
|
|
54
|
-
} catch (e) {
|
|
55
|
-
loadError = e;
|
|
56
|
-
}
|
|
57
|
-
break;
|
|
58
|
-
default:
|
|
59
|
-
throw new Error(`Unsupported architecture on Android ${arch}`);
|
|
60
|
-
}
|
|
61
|
-
break;
|
|
62
|
-
case 'win32':
|
|
63
|
-
switch (arch) {
|
|
64
|
-
case 'x64':
|
|
65
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.win32-x64-msvc.node'));
|
|
66
|
-
try {
|
|
67
|
-
if (localFileExisted) {
|
|
68
|
-
nativeBinding = require('./rtc-node.win32-x64-msvc.node');
|
|
69
|
-
} else {
|
|
70
|
-
nativeBinding = require('@livekit/rtc-node-win32-x64-msvc');
|
|
71
|
-
}
|
|
72
|
-
} catch (e) {
|
|
73
|
-
loadError = e;
|
|
74
|
-
}
|
|
75
|
-
break;
|
|
76
|
-
case 'ia32':
|
|
77
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.win32-ia32-msvc.node'));
|
|
78
|
-
try {
|
|
79
|
-
if (localFileExisted) {
|
|
80
|
-
nativeBinding = require('./rtc-node.win32-ia32-msvc.node');
|
|
81
|
-
} else {
|
|
82
|
-
nativeBinding = require('@livekit/rtc-node-win32-ia32-msvc');
|
|
83
|
-
}
|
|
84
|
-
} catch (e) {
|
|
85
|
-
loadError = e;
|
|
86
|
-
}
|
|
87
|
-
break;
|
|
88
|
-
case 'arm64':
|
|
89
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.win32-arm64-msvc.node'));
|
|
90
|
-
try {
|
|
91
|
-
if (localFileExisted) {
|
|
92
|
-
nativeBinding = require('./rtc-node.win32-arm64-msvc.node');
|
|
93
|
-
} else {
|
|
94
|
-
nativeBinding = require('@livekit/rtc-node-win32-arm64-msvc');
|
|
95
|
-
}
|
|
96
|
-
} catch (e) {
|
|
97
|
-
loadError = e;
|
|
98
|
-
}
|
|
99
|
-
break;
|
|
100
|
-
default:
|
|
101
|
-
throw new Error(`Unsupported architecture on Windows: ${arch}`);
|
|
102
|
-
}
|
|
103
|
-
break;
|
|
104
|
-
case 'darwin':
|
|
105
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.darwin-universal.node'));
|
|
106
|
-
try {
|
|
107
|
-
if (localFileExisted) {
|
|
108
|
-
nativeBinding = require('./rtc-node.darwin-universal.node');
|
|
109
|
-
} else {
|
|
110
|
-
nativeBinding = require('@livekit/rtc-node-darwin-universal');
|
|
111
|
-
}
|
|
112
|
-
break;
|
|
113
|
-
} catch {}
|
|
114
|
-
switch (arch) {
|
|
115
|
-
case 'x64':
|
|
116
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.darwin-x64.node'));
|
|
117
|
-
try {
|
|
118
|
-
if (localFileExisted) {
|
|
119
|
-
nativeBinding = require('./rtc-node.darwin-x64.node');
|
|
120
|
-
} else {
|
|
121
|
-
nativeBinding = require('@livekit/rtc-node-darwin-x64');
|
|
122
|
-
}
|
|
123
|
-
} catch (e) {
|
|
124
|
-
loadError = e;
|
|
125
|
-
}
|
|
126
|
-
break;
|
|
127
|
-
case 'arm64':
|
|
128
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.darwin-arm64.node'));
|
|
129
|
-
try {
|
|
130
|
-
if (localFileExisted) {
|
|
131
|
-
nativeBinding = require('./rtc-node.darwin-arm64.node');
|
|
132
|
-
} else {
|
|
133
|
-
nativeBinding = require('@livekit/rtc-node-darwin-arm64');
|
|
134
|
-
}
|
|
135
|
-
} catch (e) {
|
|
136
|
-
loadError = e;
|
|
137
|
-
}
|
|
138
|
-
break;
|
|
139
|
-
default:
|
|
140
|
-
throw new Error(`Unsupported architecture on macOS: ${arch}`);
|
|
141
|
-
}
|
|
142
|
-
break;
|
|
143
|
-
case 'freebsd':
|
|
144
|
-
if (arch !== 'x64') {
|
|
145
|
-
throw new Error(`Unsupported architecture on FreeBSD: ${arch}`);
|
|
146
|
-
}
|
|
147
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.freebsd-x64.node'));
|
|
148
|
-
try {
|
|
149
|
-
if (localFileExisted) {
|
|
150
|
-
nativeBinding = require('./rtc-node.freebsd-x64.node');
|
|
151
|
-
} else {
|
|
152
|
-
nativeBinding = require('@livekit/rtc-node-freebsd-x64');
|
|
153
|
-
}
|
|
154
|
-
} catch (e) {
|
|
155
|
-
loadError = e;
|
|
156
|
-
}
|
|
157
|
-
break;
|
|
158
|
-
case 'linux':
|
|
159
|
-
switch (arch) {
|
|
160
|
-
case 'x64':
|
|
161
|
-
if (isMusl()) {
|
|
162
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.linux-x64-musl.node'));
|
|
163
|
-
try {
|
|
164
|
-
if (localFileExisted) {
|
|
165
|
-
nativeBinding = require('./rtc-node.linux-x64-musl.node');
|
|
166
|
-
} else {
|
|
167
|
-
nativeBinding = require('@livekit/rtc-node-linux-x64-musl');
|
|
168
|
-
}
|
|
169
|
-
} catch (e) {
|
|
170
|
-
loadError = e;
|
|
171
|
-
}
|
|
172
|
-
} else {
|
|
173
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.linux-x64-gnu.node'));
|
|
174
|
-
try {
|
|
175
|
-
if (localFileExisted) {
|
|
176
|
-
nativeBinding = require('./rtc-node.linux-x64-gnu.node');
|
|
177
|
-
} else {
|
|
178
|
-
nativeBinding = require('@livekit/rtc-node-linux-x64-gnu');
|
|
179
|
-
}
|
|
180
|
-
} catch (e) {
|
|
181
|
-
loadError = e;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
break;
|
|
185
|
-
case 'arm64':
|
|
186
|
-
if (isMusl()) {
|
|
187
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.linux-arm64-musl.node'));
|
|
188
|
-
try {
|
|
189
|
-
if (localFileExisted) {
|
|
190
|
-
nativeBinding = require('./rtc-node.linux-arm64-musl.node');
|
|
191
|
-
} else {
|
|
192
|
-
nativeBinding = require('@livekit/rtc-node-linux-arm64-musl');
|
|
193
|
-
}
|
|
194
|
-
} catch (e) {
|
|
195
|
-
loadError = e;
|
|
196
|
-
}
|
|
197
|
-
} else {
|
|
198
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.linux-arm64-gnu.node'));
|
|
199
|
-
try {
|
|
200
|
-
if (localFileExisted) {
|
|
201
|
-
nativeBinding = require('./rtc-node.linux-arm64-gnu.node');
|
|
202
|
-
} else {
|
|
203
|
-
nativeBinding = require('@livekit/rtc-node-linux-arm64-gnu');
|
|
204
|
-
}
|
|
205
|
-
} catch (e) {
|
|
206
|
-
loadError = e;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
break;
|
|
210
|
-
case 'arm':
|
|
211
|
-
if (isMusl()) {
|
|
212
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.linux-arm-musleabihf.node'));
|
|
213
|
-
try {
|
|
214
|
-
if (localFileExisted) {
|
|
215
|
-
nativeBinding = require('./rtc-node.linux-arm-musleabihf.node');
|
|
216
|
-
} else {
|
|
217
|
-
nativeBinding = require('@livekit/rtc-node-linux-arm-musleabihf');
|
|
218
|
-
}
|
|
219
|
-
} catch (e) {
|
|
220
|
-
loadError = e;
|
|
221
|
-
}
|
|
222
|
-
} else {
|
|
223
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.linux-arm-gnueabihf.node'));
|
|
224
|
-
try {
|
|
225
|
-
if (localFileExisted) {
|
|
226
|
-
nativeBinding = require('./rtc-node.linux-arm-gnueabihf.node');
|
|
227
|
-
} else {
|
|
228
|
-
nativeBinding = require('@livekit/rtc-node-linux-arm-gnueabihf');
|
|
229
|
-
}
|
|
230
|
-
} catch (e) {
|
|
231
|
-
loadError = e;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
break;
|
|
235
|
-
case 'riscv64':
|
|
236
|
-
if (isMusl()) {
|
|
237
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.linux-riscv64-musl.node'));
|
|
238
|
-
try {
|
|
239
|
-
if (localFileExisted) {
|
|
240
|
-
nativeBinding = require('./rtc-node.linux-riscv64-musl.node');
|
|
241
|
-
} else {
|
|
242
|
-
nativeBinding = require('@livekit/rtc-node-linux-riscv64-musl');
|
|
243
|
-
}
|
|
244
|
-
} catch (e) {
|
|
245
|
-
loadError = e;
|
|
246
|
-
}
|
|
247
|
-
} else {
|
|
248
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.linux-riscv64-gnu.node'));
|
|
249
|
-
try {
|
|
250
|
-
if (localFileExisted) {
|
|
251
|
-
nativeBinding = require('./rtc-node.linux-riscv64-gnu.node');
|
|
252
|
-
} else {
|
|
253
|
-
nativeBinding = require('@livekit/rtc-node-linux-riscv64-gnu');
|
|
254
|
-
}
|
|
255
|
-
} catch (e) {
|
|
256
|
-
loadError = e;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
break;
|
|
260
|
-
case 's390x':
|
|
261
|
-
localFileExisted = existsSync(join(__dirname, 'rtc-node.linux-s390x-gnu.node'));
|
|
262
|
-
try {
|
|
263
|
-
if (localFileExisted) {
|
|
264
|
-
nativeBinding = require('./rtc-node.linux-s390x-gnu.node');
|
|
265
|
-
} else {
|
|
266
|
-
nativeBinding = require('@livekit/rtc-node-linux-s390x-gnu');
|
|
267
|
-
}
|
|
268
|
-
} catch (e) {
|
|
269
|
-
loadError = e;
|
|
270
|
-
}
|
|
271
|
-
break;
|
|
272
|
-
default:
|
|
273
|
-
throw new Error(`Unsupported architecture on Linux: ${arch}`);
|
|
274
|
-
}
|
|
275
|
-
break;
|
|
276
|
-
default:
|
|
277
|
-
throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
if (!nativeBinding) {
|
|
281
|
-
if (loadError) {
|
|
282
|
-
throw loadError;
|
|
283
|
-
}
|
|
284
|
-
throw new Error(`Failed to load native binding`);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
const {
|
|
288
|
-
livekitInitialize,
|
|
289
|
-
livekitFfiRequest,
|
|
290
|
-
livekitRetrievePtr,
|
|
291
|
-
livekitCopyBuffer,
|
|
292
|
-
livekitDispose,
|
|
293
|
-
FfiHandle,
|
|
294
|
-
} = nativeBinding;
|
|
295
|
-
|
|
296
|
-
module.exports.livekitInitialize = livekitInitialize;
|
|
297
|
-
module.exports.livekitFfiRequest = livekitFfiRequest;
|
|
298
|
-
module.exports.livekitRetrievePtr = livekitRetrievePtr;
|
|
299
|
-
module.exports.livekitCopyBuffer = livekitCopyBuffer;
|
|
300
|
-
module.exports.livekitDispose = livekitDispose;
|
|
301
|
-
module.exports.FfiHandle = FfiHandle;
|
package/dist/napi/native.d.cjs
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
var native_d_exports = {};
|
|
16
|
-
module.exports = __toCommonJS(native_d_exports);
|
|
17
|
-
//# sourceMappingURL=native.d.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/napi/native.d.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n\n/* auto-generated by NAPI-RS */\n\nexport declare function livekitInitialize(\n callback: (data: Uint8Array) => void,\n captureLogs: boolean,\n sdkVersion: string,\n): void;\nexport declare function livekitFfiRequest(data: Uint8Array): Uint8Array;\nexport declare function livekitRetrievePtr(handle: Uint8Array): bigint;\nexport declare function livekitCopyBuffer(ptr: bigint, len: number): Uint8Array;\nexport declare function livekitDispose(): Promise<void>;\nexport declare class FfiHandle {\n constructor(handle: bigint);\n dispose(): void;\n get handle(): bigint;\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/napi/native.d.d.cts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
/* auto-generated by NAPI-RS */
|
|
5
|
-
|
|
6
|
-
declare function livekitInitialize(
|
|
7
|
-
callback: (data: Uint8Array) => void,
|
|
8
|
-
captureLogs: boolean,
|
|
9
|
-
sdkVersion: string,
|
|
10
|
-
): void;
|
|
11
|
-
declare function livekitFfiRequest(data: Uint8Array): Uint8Array;
|
|
12
|
-
declare function livekitRetrievePtr(handle: Uint8Array): bigint;
|
|
13
|
-
declare function livekitCopyBuffer(ptr: bigint, len: number): Uint8Array;
|
|
14
|
-
declare function livekitDispose(): Promise<void>;
|
|
15
|
-
declare class FfiHandle {
|
|
16
|
-
constructor(handle: bigint);
|
|
17
|
-
dispose(): void;
|
|
18
|
-
get handle(): bigint;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { FfiHandle, livekitCopyBuffer, livekitDispose, livekitFfiRequest, livekitInitialize, livekitRetrievePtr };
|
package/dist/napi/native.d.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
/* auto-generated by NAPI-RS */
|
|
5
|
-
|
|
6
|
-
declare function livekitInitialize(
|
|
7
|
-
callback: (data: Uint8Array) => void,
|
|
8
|
-
captureLogs: boolean,
|
|
9
|
-
sdkVersion: string,
|
|
10
|
-
): void;
|
|
11
|
-
declare function livekitFfiRequest(data: Uint8Array): Uint8Array;
|
|
12
|
-
declare function livekitRetrievePtr(handle: Uint8Array): bigint;
|
|
13
|
-
declare function livekitCopyBuffer(ptr: bigint, len: number): Uint8Array;
|
|
14
|
-
declare function livekitDispose(): Promise<void>;
|
|
15
|
-
declare class FfiHandle {
|
|
16
|
-
constructor(handle: bigint);
|
|
17
|
-
dispose(): void;
|
|
18
|
-
get handle(): bigint;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { FfiHandle, livekitCopyBuffer, livekitDispose, livekitFfiRequest, livekitInitialize, livekitRetrievePtr };
|
package/dist/napi/native.d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=native.d.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/napi/native.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
/* auto-generated by NAPI-RS */
|
|
5
|
-
|
|
6
|
-
export declare function livekitInitialize(
|
|
7
|
-
callback: (data: Uint8Array) => void,
|
|
8
|
-
captureLogs: boolean,
|
|
9
|
-
sdkVersion: string,
|
|
10
|
-
): void;
|
|
11
|
-
export declare function livekitFfiRequest(data: Uint8Array): Uint8Array;
|
|
12
|
-
export declare function livekitRetrievePtr(handle: Uint8Array): bigint;
|
|
13
|
-
export declare function livekitCopyBuffer(ptr: bigint, len: number): Uint8Array;
|
|
14
|
-
export declare function livekitDispose(): Promise<void>;
|
|
15
|
-
export declare class FfiHandle {
|
|
16
|
-
constructor(handle: bigint);
|
|
17
|
-
dispose(): void;
|
|
18
|
-
get handle(): bigint;
|
|
19
|
-
}
|
package/dist/napi/native.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// SPDX-FileCopyrightText: 2024 LiveKit, Inc.
|
|
2
|
-
//
|
|
3
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
// this file exists to smoothly translate the autogenerated CommonJS code
|
|
5
|
-
// to an ES module that plays better with TypeScript.
|
|
6
|
-
import native from './native.cjs';
|
|
7
|
-
|
|
8
|
-
export const {
|
|
9
|
-
livekitDispose,
|
|
10
|
-
livekitInitialize,
|
|
11
|
-
livekitCopyBuffer,
|
|
12
|
-
livekitRetrievePtr,
|
|
13
|
-
livekitFfiRequest,
|
|
14
|
-
FfiHandle,
|
|
15
|
-
} = native;
|