Start work on HlsOutputFormat

This commit is contained in:
Vanilagy
2026-03-17 15:25:06 +01:00
parent e42fc85f19
commit dd8621b6d5
17 changed files with 619 additions and 72 deletions
+7 -7
View File
@@ -129,8 +129,8 @@ const TRACK_TYPE_MAP: Record<OutputTrack['type'], number> = {
};
export class MatroskaMuxer extends Muxer {
private writer: Writer;
private ebmlWriter: EBMLWriter;
private writer!: Writer;
private ebmlWriter!: EBMLWriter;
private format: WebMOutputFormat | MkvOutputFormat;
private trackDatas: MatroskaTrackData[] = [];
@@ -158,18 +158,18 @@ export class MatroskaMuxer extends Muxer {
constructor(output: Output, format: MkvOutputFormat) {
super(output);
this.writer = output._writer;
this.format = format;
}
async start() {
const release = await this.mutex.acquire();
this.writer = await this.output._getRootWriter();
this.ebmlWriter = new EBMLWriter(this.writer);
if (this.format._options.appendOnly) {
this.writer.ensureMonotonicity = true;
}
}
async start() {
const release = await this.mutex.acquire();
this.writeEBMLHeader();