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 -4
View File
@@ -71,7 +71,7 @@ type QueuedPacket = {
export class MpegTsMuxer extends Muxer {
private format: MpegTsOutputFormat;
private writer: Writer;
private writer!: Writer;
private trackDatas: MpegTsTrackData[] = [];
private tablesWritten = false;
@@ -90,12 +90,15 @@ export class MpegTsMuxer extends Muxer {
super(output);
this.format = format;
this.writer = output._writer;
this.writer.ensureMonotonicity = true;
}
async start() {
// Nothing to do here
const release = await this.mutex.acquire();
this.writer = await this.output._getRootWriter();
this.writer.ensureMonotonicity = true;
release();
}
async getMimeType() {