@mediabunny/mp3-encoder 1.6.1
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/LICENSE +373 -0
- package/README.md +154 -0
- package/dist/bundles/mediabunny-mp3-encoder.js +334 -0
- package/dist/bundles/mediabunny-mp3-encoder.min.js +9 -0
- package/dist/bundles/mediabunny-mp3-encoder.min.mjs +8 -0
- package/dist/bundles/mediabunny-mp3-encoder.mjs +291 -0
- package/dist/mediabunny-mp3-encoder.d.ts +21 -0
- package/dist/modules/build/lame.d.ts +3 -0
- package/dist/modules/build/lame.d.ts.map +1 -0
- package/dist/modules/build/lame.js +311 -0
- package/dist/modules/src/encode.worker.d.ts +9 -0
- package/dist/modules/src/encode.worker.d.ts.map +1 -0
- package/dist/modules/src/encode.worker.js +152 -0
- package/dist/modules/src/index.d.ts +26 -0
- package/dist/modules/src/index.d.ts.map +1 -0
- package/dist/modules/src/index.js +185 -0
- package/dist/modules/src/shared.d.ts +40 -0
- package/dist/modules/src/shared.d.ts.map +1 -0
- package/dist/modules/src/shared.js +9 -0
- package/package.json +51 -0
- package/src/encode.worker.ts +212 -0
- package/src/index.ts +213 -0
- package/src/lame-bridge.c +40 -0
- package/src/shared.ts +42 -0
- package/src/tsconfig.json +23 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registers the LAME MP3 encoder, which Mediabunny will then use automatically when applicable. Make sure to call this
|
|
3
|
+
* function before starting any encoding task.
|
|
4
|
+
*
|
|
5
|
+
* Preferably, wrap the call in a condition to avoid overriding any native MP3 encoder:
|
|
6
|
+
*
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { canEncodeAudio } from 'mediabunny';
|
|
9
|
+
* import { registerMp3Encoder } from '@mediabunny/mp3-encoder';
|
|
10
|
+
*
|
|
11
|
+
* if (!(await canEncodeAudio('mp3'))) {
|
|
12
|
+
* registerMp3Encoder();
|
|
13
|
+
* }
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export declare const registerMp3Encoder: () => void;
|
|
19
|
+
|
|
20
|
+
export { }
|
|
21
|
+
export as namespace MediabunnyMp3Encoder;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lame.d.ts","sourceRoot":"","sources":["../../../build/lame.js"],"names":[],"mappings":";AAAA,qDACkB"}
|