Files
ArtPlayer/docs/assets/example/websr.js
T
Harvey Zhao 210eb94b75 feat: add Upscaler class for image and video upscaling with Web Workers
- Implemented methods for initializing the upscaling process, loading weights, and processing images and videos.
- Added support for real-time video upscaling using OffscreenCanvas and Web Workers.
- Included utility functions for loading image and video metadata, handling blob responses, and managing network configurations.
- Introduced methods for downloading upscaled content and managing GPU capabilities.
- Added error handling and progress tracking for the upscaling process.
2026-02-11 22:54:13 +08:00

17 lines
456 B
JavaScript

// npm i artplayer-plugin-websr
// import artplayerPluginWebsr from 'artplayer-plugin-websr';
var art = new Artplayer({
container: ".artplayer-app",
url: "/assets/sample/video3.mp4",
fullscreenWeb: true,
plugins: [
artplayerPluginWebsr({
networkSize: 'medium',
weightsBaseUrl: '/assets/websr/weights',
workerUrl: '/assets/websr/worker/main.js',
compare: true,
}),
],
});