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.

10 lines (9 loc) 334 B
import handler, { GET, POST } from './request-handler.js'; import type { VideoConfig } from './config.js'; import type { NextConfig } from 'next'; export declare function NextVideo(config?: VideoConfig): { GET: typeof GET; POST: typeof POST; handler: typeof handler; withNextVideo: (nextConfig: NextConfig) => any; };