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.

13 lines (12 loc) 344 B
import * as providers from "../providers/providers.js"; import { camelCase } from "../utils/utils.js"; async function uploadLocalFile(asset, config) { for (let [key, provider] of Object.entries(providers)) { if (key === camelCase(config.provider)) { return provider.uploadLocalFile(asset); } } } export { uploadLocalFile };