mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 10:56:15 -08:00
- 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.
17 lines
456 B
JavaScript
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,
|
|
}),
|
|
],
|
|
});
|