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.

20 lines (19 loc) 631 B
import type { Asset } from '../../assets.js'; type Props = { customDomain?: string; thumbnailTime?: number; startTime?: number; tokens?: { thumbnail?: string; }; }; type PosterProps = { customDomain?: string; thumbnailTime?: number; token?: string; width?: number | string; }; export declare function transform(asset: Asset, props?: Props): Asset; export declare function getPlaybackId(asset: Asset): string | undefined; export declare const getPosterURLFromPlaybackId: (playbackId?: string, { token, thumbnailTime, width, customDomain }?: PosterProps) => string | undefined; export {};