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
@@ -61,6 +61,8 @@ class Ac3Decoder extends CustomAudioDecoder {
}
}
let registered = false;
/**
* Registers AC-3 and E-AC-3 decoders, which Mediabunny will then use automatically when applicable. Make sure to call
* this function before starting any decoding task.
@@ -69,5 +71,10 @@ class Ac3Decoder extends CustomAudioDecoder {
* @public
*/
export const registerAc3Decoder = () => {
if (registered) {
return;
}
registered = true;
registerDecoder(Ac3Decoder);
};