80bd589c03
Introduces new props (volume, playbackRate, currentTime) to VideoPlayer and VideoElement components, allowing external control of volume, playback speed, and initial playback position. Also adds related event handlers (onRateChange, onFullscreenChange, onPictureInPictureChange, onProgress, onDurationChange, onWaiting, onCanPlay) and updates documentation and types accordingly.
86 lines
2.1 KiB
JSON
86 lines
2.1 KiB
JSON
{
|
|
"name": "@alper/video-player",
|
|
"version": "0.1.14",
|
|
"description": "Modern, feature-rich video player library for React",
|
|
"type": "module",
|
|
"main": "./dist/video-player.umd.cjs",
|
|
"module": "./dist/video-player.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/video-player.js",
|
|
"require": "./dist/video-player.umd.cjs"
|
|
},
|
|
"./styles.css": "./dist/video-player.css"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"build:lib": "vite build --config vite.config.lib.ts",
|
|
"preview": "vite preview",
|
|
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
|
|
"test": "vitest",
|
|
"test:ui": "vitest --ui",
|
|
"test:coverage": "vitest --coverage"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^18.0.0",
|
|
"react-dom": "^18.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.38.0",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.0",
|
|
"@testing-library/user-event": "^14.6.1",
|
|
"@types/react": "^19.2.2",
|
|
"@types/react-dom": "^19.2.2",
|
|
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
"@typescript-eslint/parser": "^8.46.2",
|
|
"@vitejs/plugin-react": "^5.1.0",
|
|
"@vitest/ui": "^4.0.4",
|
|
"eslint": "^9.38.0",
|
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
"globals": "^16.4.0",
|
|
"jsdom": "^27.0.1",
|
|
"react": "^19.2.0",
|
|
"react-dom": "^19.2.0",
|
|
"terser": "^5.44.0",
|
|
"typescript": "^5.9.3",
|
|
"vite": "^7.1.12",
|
|
"vite-plugin-dts": "^4.5.4",
|
|
"vitest": "^4.0.4"
|
|
},
|
|
"optionalDependencies": {
|
|
"hls.js": "^1.6.13",
|
|
"flv.js": "^1.6.2",
|
|
"mpegts.js": "^1.7.3"
|
|
},
|
|
"keywords": [
|
|
"react",
|
|
"video",
|
|
"player",
|
|
"video-player",
|
|
"hls",
|
|
"rtmp",
|
|
"flv",
|
|
"mpegts",
|
|
"iptv",
|
|
"streaming",
|
|
"media"
|
|
],
|
|
"author": "Alper",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://gitea.hibna.com.tr/hibna/video-player.git"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://gitea.hibna.com.tr/api/packages/hibna/npm/"
|
|
}
|
|
}
|