@fluxerjs/voice 1.1.1 → 1.1.2
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/chunk-EBO3CZXG.mjs +15 -0
- package/dist/dist-N4IEBIZ4.mjs +2552 -0
- package/dist/index.js +2577 -12
- package/dist/index.mjs +17 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "./chunk-EBO3CZXG.mjs";
|
|
2
|
+
|
|
1
3
|
// src/VoiceManager.ts
|
|
2
4
|
import { EventEmitter as EventEmitter3 } from "events";
|
|
3
5
|
import { Events } from "@fluxerjs/core";
|
|
@@ -690,7 +692,21 @@ var LiveKitRtcConnection = class extends EventEmitter2 {
|
|
|
690
692
|
return;
|
|
691
693
|
}
|
|
692
694
|
const { createFile } = await import("mp4box");
|
|
693
|
-
|
|
695
|
+
let VideoDecoder;
|
|
696
|
+
let EncodedVideoChunk;
|
|
697
|
+
try {
|
|
698
|
+
const webcodecs = await import("./dist-N4IEBIZ4.mjs");
|
|
699
|
+
VideoDecoder = webcodecs.VideoDecoder;
|
|
700
|
+
EncodedVideoChunk = webcodecs.EncodedVideoChunk;
|
|
701
|
+
} catch {
|
|
702
|
+
this.emit(
|
|
703
|
+
"error",
|
|
704
|
+
new Error(
|
|
705
|
+
"node-webcodecs is not available (optional dependency failed to install). Use options.useFFmpeg with a URL, or install node-webcodecs."
|
|
706
|
+
)
|
|
707
|
+
);
|
|
708
|
+
return;
|
|
709
|
+
}
|
|
694
710
|
const videoUrl = typeof urlOrBuffer === "string" ? urlOrBuffer : null;
|
|
695
711
|
let arrayBuffer;
|
|
696
712
|
if (typeof urlOrBuffer === "string") {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.1.
|
|
6
|
+
"version": "1.1.2",
|
|
7
7
|
"description": "Voice support for Fluxer bots",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -35,14 +35,13 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@livekit/rtc-node": "^0.13.24",
|
|
37
37
|
"mp4box": "^0.5.2",
|
|
38
|
-
"node-webcodecs": "^1.0.0",
|
|
39
38
|
"opus-decoder": "^0.7.0",
|
|
40
39
|
"prism-media": "^1.3.5",
|
|
41
40
|
"tweetnacl": "^1.0.3",
|
|
42
41
|
"ws": "^8.18.0",
|
|
43
|
-
"@fluxerjs/collection": "1.1.
|
|
44
|
-
"@fluxerjs/
|
|
45
|
-
"@fluxerjs/
|
|
42
|
+
"@fluxerjs/collection": "1.1.2",
|
|
43
|
+
"@fluxerjs/types": "1.1.2",
|
|
44
|
+
"@fluxerjs/core": "1.1.2"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
47
|
"@types/node": "^20.0.0",
|
|
@@ -54,7 +53,8 @@
|
|
|
54
53
|
"node": ">=18.0.0"
|
|
55
54
|
},
|
|
56
55
|
"optionalDependencies": {
|
|
57
|
-
"livekit-server-sdk": "^2.15.0"
|
|
56
|
+
"livekit-server-sdk": "^2.15.0",
|
|
57
|
+
"node-webcodecs": "^1.0.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "tsup src/index.ts --format cjs,esm --dts",
|