mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-10 21:06:15 -08:00
Remove debugging border from the websr plugin's styling Enhance canvas sizing logic in artplayer-plugin-websr - Updated canvas positioning to center it within the player. - Introduced a new function to calculate canvas size based on the video aspect ratio. - Adjusted canvas dimensions during initialization and on resize events to maintain aspect ratio. - Ensured canvas styles are updated to reflect the calculated dimensions. feat: add comparison mode to artplayer-plugin-websr - Updated README.md to reflect new comparison feature and simplified content. - Modified package.json to remove unnecessary keywords. - Enhanced index.js to implement comparison functionality, allowing users to compare original and upscaled video. - Added new methods for enabling, disabling, and toggling comparison mode, as well as setting and getting the comparison position. - Updated TypeScript definitions to include new comparison options and methods.
41 lines
1.2 KiB
JSON
41 lines
1.2 KiB
JSON
{
|
|
"name": "artplayer-plugin-websr",
|
|
"version": "1.0.0",
|
|
"description": "AI upscaling plugin for ArtPlayer using WebSR - real-time video super-resolution with WebGPU",
|
|
"author": "Harvey Zack <laozhaochaguan@gmail.com>",
|
|
"license": "MIT",
|
|
"homepage": "https://artplayer.org",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/zhw2590582/ArtPlayer.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/zhw2590582/ArtPlayer/issues"
|
|
},
|
|
"keywords": [
|
|
"html5",
|
|
"video",
|
|
"player"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"types": "./types/artplayer-plugin-websr.d.ts",
|
|
"import": "./dist/artplayer-plugin-websr.mjs",
|
|
"require": "./dist/artplayer-plugin-websr.js"
|
|
},
|
|
"./legacy": {
|
|
"types": "./types/artplayer-plugin-websr.d.ts",
|
|
"import": "./dist/artplayer-plugin-websr.legacy.js",
|
|
"require": "./dist/artplayer-plugin-websr.legacy.js"
|
|
}
|
|
},
|
|
"main": "dist/artplayer-plugin-websr.js",
|
|
"module": "./dist/artplayer-plugin-websr.mjs",
|
|
"types": "types/artplayer-plugin-websr.d.ts",
|
|
"legacy": "dist/artplayer-plugin-websr.legacy.js",
|
|
"browserslist": "last 1 Chrome version",
|
|
"dependencies": {
|
|
"@websr/websr": "^0.0.14"
|
|
}
|
|
}
|