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.
22 lines (21 loc) • 577 B
TypeScript
import type { Asset, AssetSource } from '../../assets.js';
export declare function transform(asset: Asset): Asset | {
sources: AssetSource[];
status: "sourced" | "pending" | "uploading" | "processing" | "ready" | "error";
originalFilePath: string;
provider: string;
providerMetadata?: {
[provider: string]: {
[key: string]: any;
};
};
poster?: string;
blurDataURL?: string;
size?: number;
error?: any;
createdAt: number;
updatedAt: number;
externalIds?: {
[key: string]: string;
};
};