mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-01 21:03:46 +02:00
Add AppendOnlyStreamSource, adjust examples to use it
This commit is contained in:
+2
-2
@@ -580,11 +580,11 @@ export class Output<
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
_getRootWriter() {
|
||||
_getRootWriter(isMonotonic: boolean | ((target: Target) => boolean)) {
|
||||
return this._rootWriterPromise ??= (async () => {
|
||||
const target = await this._getRootTarget();
|
||||
|
||||
const writer = new Writer(target);
|
||||
const writer = new Writer(target, typeof isMonotonic === 'boolean' ? isMonotonic : isMonotonic(target));
|
||||
writer.start();
|
||||
return writer;
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user