UNPKG

next-video

Version:

A React component for adding video to your Next.js application. It extends both the video element and your Next app with features for automatic video optimization.

5 lines (4 loc) 437 B
import type { Asset } from '../assets.js'; import type { VideoLoaderProps, VideoLoaderPropsWithConfig, VideoLoaderWithConfig } from './types'; export declare function defaultLoader({ config, src, width, height }: VideoLoaderPropsWithConfig): Promise<string>; export declare function createVideoRequest(loader: VideoLoaderWithConfig, props: VideoLoaderProps, callback: (json: Asset) => void): (abortSignal: AbortSignal) => Promise<void>;