UNPKG

video-upscale

Version:
10 lines (9 loc) 375 B
import { isVideoUpscalerSupported } from './isVideoUpscalerSupported'; import { VideoUpscaler } from './VideoUpscaler'; function initVideoUpscaler(props) { if (!isVideoUpscalerSupported()) { throw new Error('video-upscaler is not supported in current browser'); } return new VideoUpscaler(props); } export { isVideoUpscalerSupported, initVideoUpscaler };