Skip to content

🎥 Make videos programmatically with React

440 B
Raw Blame
import type {StreamTargetChunk} from 'mediabunny';

export type VideoLayerOutputTarget = 'arraybuffer' | 'web-fs';

export type VideoLayerOutputOptions =
	| {
			outputTarget?: VideoLayerOutputTarget;
			outputWritable?: never;
	  }
	| {
			outputTarget?: never;
			outputWritable: WritableStream<StreamTargetChunk>;
	  };

export type VideoLayerOutput = AsyncDisposable & {
	getBlob: () => Promise<Blob>;
	dispose: () => Promise<void>;
};