Add AppendOnlyStreamSource, adjust examples to use it

This commit is contained in:
Vanilagy
2026-04-21 14:58:33 +02:00
parent 2b3e5f45c6
commit 783cfa6fbe
17 changed files with 328 additions and 68 deletions
+1 -5
View File
@@ -165,13 +165,9 @@ export class MatroskaMuxer extends Muxer {
async start() {
const release = await this.mutex.acquire();
this.writer = await this.output._getRootWriter();
this.writer = await this.output._getRootWriter(!!this.format._options.appendOnly);
this.ebmlWriter = new EBMLWriter(this.writer);
if (this.format._options.appendOnly) {
this.writer.ensureMonotonicity();
}
this.writeEBMLHeader();
this.createSegmentInfo();