Files
ersatztv/web/package.json
T
timothyandClaude Fable 5 6d9619a3bc feat(web): add hls.js and reusable HlsPlayer component
Adds hls.js as a web dependency and a small HlsPlayer wrapper that attaches
hls.js when MSE is available (config mirrors the legacy _Host.cshtml
previewChannel: liveDurationInfinity + unbounded manifest time-to-first-byte,
since the troubleshooting playback.m3u8 endpoint blocks until segments exist)
and falls back to native HLS on Safari. Tears down the instance on src change
and unmount.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-09 00:03:21 +02:00

40 lines
1.1 KiB
JSON

{
"name": "@chicorytv/web",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite --host 0.0.0.0",
"build": "tsc -b && vite build",
"generate:api": "node scripts/generate-openapi-types.mjs",
"check:api": "npm run generate:api && git diff --exit-code -- src/api/generated/v1.d.ts",
"lint": "eslint .",
"test": "vitest",
"typecheck": "tsc -b --pretty false"
},
"dependencies": {
"@vitejs/plugin-react": "6.0.3",
"hls.js": "^1.6.16",
"lucide-react": "1.23.0",
"react": "19.2.7",
"react-dom": "19.2.7",
"typescript": "6.0.3",
"vite": "8.1.3"
},
"devDependencies": {
"@eslint/js": "10.0.1",
"@testing-library/jest-dom": "6.9.1",
"@testing-library/react": "16.3.2",
"@types/node": "26.1.0",
"@types/react": "19.2.17",
"@types/react-dom": "19.2.3",
"eslint": "10.6.0",
"eslint-plugin-react-hooks": "7.1.1",
"eslint-plugin-react-refresh": "0.5.3",
"globals": "17.7.0",
"jsdom": "29.1.1",
"typescript-eslint": "8.62.1",
"vitest": "4.1.9"
}
}