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
@@ -197,6 +197,8 @@ class FlacEncoder extends CustomAudioEncoder {
}
}
let registered = false;
/**
* Registers the FLAC encoder, which Mediabunny will then use automatically when applicable. Make sure to call this
* function before starting any encoding task. The FLAC encoder will automatically determine the output bit depth
@@ -217,6 +219,11 @@ class FlacEncoder extends CustomAudioEncoder {
* @public
*/
export const registerFlacEncoder = () => {
if (registered) {
return;
}
registered = true;
registerEncoder(FlacEncoder);
};