mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 05:43:50 +02:00
Fix missing register
This commit is contained in:
@@ -183,6 +183,8 @@ class Ac3Encoder extends CustomAudioEncoder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let registered = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers AC-3 and E-AC-3 encoders, which Mediabunny will then use automatically when applicable. Make sure to call
|
* Registers AC-3 and E-AC-3 encoders, which Mediabunny will then use automatically when applicable. Make sure to call
|
||||||
* this function before starting any encoding task.
|
* this function before starting any encoding task.
|
||||||
@@ -191,5 +193,10 @@ class Ac3Encoder extends CustomAudioEncoder {
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
export const registerAc3Encoder = () => {
|
export const registerAc3Encoder = () => {
|
||||||
|
if (registered) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
registered = true;
|
||||||
|
|
||||||
registerEncoder(Ac3Encoder);
|
registerEncoder(Ac3Encoder);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user