mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-09 08:43:49 +02:00
Merge branch 'main' into hls
This commit is contained in:
@@ -929,6 +929,13 @@ export class AdtsOutputFormat extends OutputFormat {
|
||||
* @public
|
||||
*/
|
||||
export type FlacOutputFormatOptions = {
|
||||
/**
|
||||
* Configures the output to only append new data at the end, useful for live-streaming the file as it's being
|
||||
* created. When enabled, the STREAMINFO block will not be finalized with accurate min/max block sizes, frame sizes,
|
||||
* or total sample count, so don't use this option when you want to write out a clean file for later use.
|
||||
*/
|
||||
appendOnly?: boolean;
|
||||
|
||||
/**
|
||||
* Will be called for each FLAC frame that is written.
|
||||
*
|
||||
@@ -952,6 +959,9 @@ export class FlacOutputFormat extends OutputFormat {
|
||||
if (!options || typeof options !== 'object') {
|
||||
throw new TypeError('options must be an object.');
|
||||
}
|
||||
if (options.appendOnly !== undefined && typeof options.appendOnly !== 'boolean') {
|
||||
throw new TypeError('options.appendOnly, when provided, must be a boolean.');
|
||||
}
|
||||
|
||||
super();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user