UNPKG

@diffusionstudio/core-v4

Version:

A fast, browser based video compositing engine powered by WebCodecs

34 lines (33 loc) 1.04 kB
import { AudioSource } from '../audio'; import { InputVideoTrack } from 'mediabunny'; import { Time } from '../../types'; declare const VideoSource_base: { new (...args: any[]): { height: import('../..').int; width: import('../..').int; get aspectRatio(): number; id: string; mimeType: string; input: import('../..').MediaInput; name: string; createdAt: string; init(): Promise<void>; arrayBuffer(): Promise<ArrayBuffer>; toJSON(): string; fromJSON<K = {}>(obj: K extends string ? never : K): /*elided*/ any; }; } & typeof AudioSource; export declare class VideoSource extends VideoSource_base { videoTrack: InputVideoTrack; fps: number; bitrate: number; init(): Promise<void>; thumbnailsInRange(options: { start: Time; end: Time; count: number; width: number; height: number; }): AsyncGenerator<import('mediabunny').WrappedCanvas | null, void, unknown>; } export {};