@diffusionstudio/core-v4
Version:
2D motion graphics and video rendering engine
38 lines (37 loc) • 1.31 kB
TypeScript
import { AudioSource } from '../audio';
import { Time } from '../../types';
import { ClipType } from '../../clips';
import { SourceInitOptions } from '../source';
declare const VideoSource_base: {
new (...args: any[]): {
height: import('../..').int;
width: import('../..').int;
readonly aspectRatio: number;
id: string;
data: Record<string, unknown>;
readonly type: ClipType;
mimeType: string;
input: import('../..').MediaInput;
name: string;
createdAt: Date;
file?: import('../..').RemoteFile;
init(options?: SourceInitOptions): Promise<void>;
arrayBuffer(): Promise<ArrayBuffer>;
createCheckpoint(): Promise<unknown>;
toJSON(exclude?: string[]): unknown;
fromJSON<K = {}>(obj: K extends string ? never : K): /*elided*/ any;
};
} & typeof AudioSource;
export declare class VideoSource extends VideoSource_base {
readonly type: ClipType;
element: HTMLVideoElement;
init(options?: SourceInitOptions): Promise<void>;
thumbnailsInRange(options: {
startTime: Time;
endTime: Time;
count: number;
width: number;
height: number;
}): AsyncGenerator<import('mediabunny').WrappedCanvas | null, void, unknown>;
}
export {};