video-upscale
Version:
Upscale HTML5 Video using WebGL
10 lines (9 loc) • 375 B
JavaScript
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 };