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
@@ -276,6 +276,8 @@ class AacEncoder extends CustomAudioEncoder {
}
}
let registered = false;
/**
* Registers the AAC encoder, which Mediabunny will then use automatically when applicable. Make sure to call this
* function before starting any encoding task.
@@ -295,6 +297,11 @@ class AacEncoder extends CustomAudioEncoder {
* @public
*/
export const registerAacEncoder = () => {
if (registered) {
return;
}
registered = true;
registerEncoder(AacEncoder);
};