Add the video portion of @mediabunny/server

This commit is contained in:
Vanilagy
2026-05-05 23:38:14 +02:00
parent 6d9fb30c29
commit f5bd540863
26 changed files with 3721 additions and 38 deletions
+7
View File
@@ -212,6 +212,8 @@ class Mp3Encoder extends CustomAudioEncoder {
}
}
let registered = false;
/**
* Registers the LAME MP3 encoder, which Mediabunny will then use automatically when applicable. Make sure to call this
* function before starting any encoding task.
@@ -231,6 +233,11 @@ class Mp3Encoder extends CustomAudioEncoder {
* @public
*/
export const registerMp3Encoder = () => {
if (registered) {
return;
}
registered = true;
registerEncoder(Mp3Encoder);
};