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
+9 -2
View File
@@ -175,6 +175,7 @@ export class BufferTargetWriter extends Writer {
async finalize() {
this.ensureSize(this.pos);
this.target.buffer = this.buffer.slice(0, Math.max(this.maxPos, this.pos));
this.target.onfinalized?.();
}
async close() {}
@@ -470,7 +471,9 @@ export class StreamTargetWriter extends Writer {
assert(this.writer);
await this.writer.ready;
return this.writer.close();
await this.writer.close();
this.target.onfinalized?.();
}
async close() {
@@ -500,6 +503,10 @@ export class NullTargetWriter extends Writer {
}
async flush() {}
async finalize() {}
async finalize() {
this.target.onfinalized?.();
}
async close() {}
}