mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-02 13:23:51 +02:00
Add AppendOnlyStreamSource, adjust examples to use it
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user