@diffusionstudio/core-v4
Version:
A fast, browser based video compositing engine powered by WebCodecs
25 lines (24 loc) • 608 B
TypeScript
import { Serializer } from '../../services';
import { Asset, MediaInput } from '../../types';
export type SourceOptions = {
input: MediaInput;
mimeType: string;
name?: string;
};
export declare class BaseSource extends Serializer implements Asset {
/**
* Unique identifier of the source
*/
id: string;
mimeType: string;
input: MediaInput;
name: string;
createdAt: string;
constructor(options: SourceOptions);
init(): Promise<void>;
/**
* Get the source as an array buffer
*/
arrayBuffer(): Promise<ArrayBuffer>;
toJSON(): string;
}