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 -5
View File
@@ -59,7 +59,7 @@ type Packet = {
export class OggMuxer extends Muxer {
private format: OggOutputFormat;
private writer: Writer;
private writer!: Writer;
private trackDatas: OggTrackData[] = [];
private bosPagesWritten = false;
@@ -72,13 +72,15 @@ export class OggMuxer extends Muxer {
super(output);
this.format = format;
this.writer = output._writer;
this.writer.ensureMonotonicity = true; // Ogg is always monotonically written!
}
async start() {
// Nothin'
const release = await this.mutex.acquire();
this.writer = await this.output._getRootWriter();
this.writer.ensureMonotonicity = true; // Ogg is always monotonically written!
release();
}
async getMimeType() {