mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 10:53:50 +02:00
Start work on HlsOutputFormat
This commit is contained in:
@@ -33,7 +33,7 @@ const STREAMINFO_SIZE = 38;
|
||||
const STREAMINFO_BLOCK_SIZE = 34;
|
||||
|
||||
export class FlacMuxer extends Muxer {
|
||||
private writer: Writer;
|
||||
private writer!: Writer;
|
||||
private metadataWritten = false;
|
||||
|
||||
private blockSizes: number[] = [];
|
||||
@@ -48,12 +48,16 @@ export class FlacMuxer extends Muxer {
|
||||
constructor(output: Output, format: FlacOutputFormat) {
|
||||
super(output);
|
||||
|
||||
this.writer = output._writer;
|
||||
this.format = format;
|
||||
}
|
||||
|
||||
async start() {
|
||||
const release = await this.mutex.acquire();
|
||||
|
||||
this.writer = await this.output._getRootWriter();
|
||||
this.writer.write(FLAC_HEADER);
|
||||
|
||||
release();
|
||||
}
|
||||
|
||||
writeHeader({
|
||||
|
||||
Reference in New Issue
Block a user