Commit Graph
96 Commits
Author SHA1 Message Date
MichaelandClaude Fable 5 969d40dec5 fix(ci): exclude bin/ from root analyzer and clean remaining warnings
The frontend CI job ran `flutter analyze` from the repo root, which also
analyzed the bin/ server package without its dependencies resolved
(shelf_router, sqlite3, bcrypt, test), producing hundreds of
uri_does_not_exist errors. bin/ is a standalone package covered by the
backend job, so it is now excluded from root analysis.

Also:
- Remove all unused fields/variables flagged as analyzer warnings
  (api_client, cache_service, player_screen, subtitle_service,
  live_tv_tab, mobile screens)
- Run `flutter analyze --no-fatal-infos` in CI: pre-existing deprecation
  infos (withOpacity, dart:html) stay non-fatal while errors and warnings
  still fail the build

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 10:17:40 +02:00
MichaelandClaude Fable 5 60d3f42901 feat: security hardening, streaming overhaul, design polish, tests
Security:
- Replace unsalted SHA-256 password hashing with bcrypt (lazy rehash on login)
- Add authenticated /api/xtream-api gateway: Xtream credentials are injected
  server-side and never sent to the frontend; /api/playlists no longer
  returns passwords
- Redact credentials from all logs (login body, proxy/FFmpeg/scheduler URLs)
- Add auth to recordings, EPG, season-passes and streaming routes
  (HttpOnly session cookie for hls.js; loopback bypass for local FFmpeg)
- Lock player postMessage to same-origin in both directions
- Vendor and pin hls.js 1.6.7 / mpegts.js 1.7.3 (drop CDN @latest)
- Fix rate limiter (client IP was never resolved), add login rate limit,
  restrict CORS, add CSP Report-Only, block private-IP SSRF targets,
  fix path traversal in recording log retrieval, chmod 777 -> 770
- Remove dead HiveService (seeded admin/admin into IndexedDB with SHA-256)
- Fix authMiddleware not populating 'user' context (getPlaylist ignored the
  logged-in user; admin purge always returned 403)

Streaming:
- New FfmpegSessionManager: process registry, idle reaper (4 min live /
  15 min VOD), orphan cleanup at startup, clean SIGTERM shutdown,
  fast-fail with stderr instead of 30 s timeout
- Quality selection (source/high/medium/low) for live and VOD; source mode
  streams with -c:v copy (zero transcoding); selector wired into the player
- Concurrent recordings (MAX_CONCURRENT_RECORDINGS, default 2); conflicts
  retry on the next tick instead of silently failing
- Lower live latency (HLS window 20 -> 10 segments, liveSync 10 -> 3)
- Fix recording log lookup (.mp4 vs .mkv mismatch)

Design:
- Replace hardcoded colors with AppColors tokens (12 files)
- web/theme.css syncs HTML players with the Flutter palette
- DPAD/keyboard navigation (arrow-key focus, player shortcuts)
- Tooltips on player icon buttons, Semantics on content cards
- Remove 7 dead widgets broken since the Stitch merge

Quality:
- bin/test/: 21 unit tests (bcrypt, redaction, traversal, SSRF, recording
  conflicts) plus a quality-selector widget test
- GitHub Actions CI (analyze + test + build web)
- Archive stale status docs into docs/archive/

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 10:07:18 +02:00
MichaelandClaude Opus 4.7 60228f5576 fix: resolve GlassContainer API mismatch and broken remote files
- Replace deprecated GlassContainer(opacity:/hasBorder:) calls in
  dashboard_screen.dart and player_screen.dart with .glass() constructor.
- Fix epg_grid_screen.dart missing provider import and Playlist type mismatch.
- Delete broken/unreferenced files: network_service.dart, epg_grid_screen.dart.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-28 07:24:41 +02:00
Michael e641d04a3a feat: implement streaming handler with FFmpeg-based live and VOD HLS transcoding support 2026-04-01 21:35:25 +02:00
Michael f08fccc0d1 feat: implement HLS streaming handler with FFmpeg transcoding and add IPTV player screen UI 2026-04-01 21:28:47 +02:00
Michael e4301077b0 feat: implement HLS live streaming and VOD transcoding handler with FFmpeg and NVIDIA GPU support 2026-04-01 21:14:33 +02:00
Michael 6a4a642611 feat: implement IPTV player screen with iframe-based stream support and recordings tab widget 2026-04-01 20:19:40 +02:00
Michael fa6ae90d8d feat: add mobile-optimized IPTV player with HLS and MpegTS support 2026-03-29 10:19:36 +02:00
GitHub CopilotandClaude Haiku 4.5 a3a4b6f0f2 refactor(theme): replace hardcoded colors with AppColors system
- Unify color palette across login, dashboard, admin, and player screens
- Replace Colors.white/black with AppColors semantic colors
- Use AppColors.backgroundGradient instead of hardcoded gradients
- Apply primary teal accent (#00A0D2) consistently
- Fix text hierarchy with textPrimary/Secondary/Tertiary
- Improve visual consistency with Apple TV theme

Changes:
- login_screen.dart: gradient, icon, text colors
- dashboard_screen.dart: border, text, background colors
- admin_panel.dart: all Colors.white/white70 → AppColors
- player_screen.dart: background, overlay, text colors

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-26 11:49:46 +01:00
GitHub Copilot 863e5ddad4 refactor(theme): update card and dialog themes to use CardThemeData and DialogThemeData
refactor(ui_components): adjust animation durations for smoother transitions
fix(dashboard): rename border property to hasBorder for clarity
fix(player): rename border property to hasBorder for consistency
2026-03-26 11:20:31 +01:00
Michael df4bcfd07f fix: stabilize IPTV playback and implement request throttling
- Add playback lock to XtreamService to delay EPG during stream init
- Increase MPEG-TS stash buffer to 512KB for better stability
- Enable liveBufferLatencyChasing to prevent stream drift
- Tune HLS parameters for balanced speed and reliability
2026-03-10 18:54:44 +01:00
Michael 0ca6f96710 feat: implement Turbo-Start stream acceleration
- Add direct MPEG-TS support and optimized HLS tuning
- Implement low-latency sync and instant bitrate selection
- Achieve TiviMate-like zapping speed by reducing initial buffers
2026-03-10 18:41:46 +01:00
Michael 3ef4884336 feat(player): remove non-functional fullscreen button as requested 2026-03-09 22:52:05 +01:00
Michael 7a338db981 fix(player): remove duplicate declarations causing build failure 2026-03-09 22:34:26 +01:00
Michael 19a0755e01 feat(mobile): dedicated mobile player and responsive UI improvements 2026-03-09 22:14:33 +01:00
Michael 29a0d04b21 fix(mobile): apply responsive LayoutBuilder to player bottom bar 2026-03-09 22:01:57 +01:00
Michael b69e9d1812 fix(mobile): optimize player UI for mobile portrait and tune HLS buffering 2026-03-09 21:56:56 +01:00
Michael 441597354e fix(mobile): fix orientation reset with IndexedStack, support HLS in Lite player, and optimize fullscreen 2026-03-09 21:35:00 +01:00
Michael 13647a35da feat: Implement TV recording management with API endpoints, a data model, and a scheduling service that uses FFmpeg to record streams. 2026-03-09 16:46:45 +01:00
Michael 7e5d50f258 feat: Add IPTV player screen for live, VOD, and series streams with comprehensive playback controls. 2026-01-03 10:57:22 +01:00
Michael 71630d75e8 feat: Install FFmpeg with NVIDIA NVENC/NVDEC support via apt-get instead of a static build. 2026-01-03 10:26:17 +01:00
Michael d93d638b1b Unified Live TV control bar - EPG + buttons in single bar 2026-01-02 09:14:57 +01:00
Michael f6d5ae7764 UI fixes: remove center play button from Native player, align EPG/controls in Live TV, match background colors 2026-01-02 08:59:52 +01:00
Michael cd3a49ce63 Fix GPU transcoding timeout - use CBR mode, increase timeouts, add keyframe interval 2026-01-01 23:27:04 +01:00
Michael 72e28a398a feat: add IPTV player screen with HTML iframe integration for live, VOD, and series streams 2026-01-01 20:10:14 +01:00
Michael e27fa6fec3 feat: Add IPTV player screen supporting live, VOD, and series playback with interactive controls. 2026-01-01 19:56:31 +01:00
Michael aa75347d0a feat: implement IPTV player screen with web-based video playback, controls, and EPG overlay. 2026-01-01 19:43:14 +01:00
Michael 440f15faa6 feat: add IPTV player screen with support for live, VOD, and series streams using iframe-based playback. 2026-01-01 19:27:32 +01:00
Michael b6a0016c00 feat: implement IPTV PlayerScreen with embedded web player for live, VOD, and series streams. 2026-01-01 19:19:52 +01:00
Michael e74aa822ad feat: add IPTV player screen supporting live, VOD, and series stream playback via embedded web players. 2026-01-01 19:16:51 +01:00
Michael 1547b376e0 feat: Implement web-based video player screen with playback controls and stream type handling. 2026-01-01 19:04:11 +01:00
Michael 4ecfd4f48c feat: Implement IPTV player screen supporting live and VOD streams via iframe. 2026-01-01 18:48:26 +01:00
Michael e19f0638f7 feat: add PlayerScreen for IPTV playback with web player integration and controls. 2026-01-01 18:44:29 +01:00
Michael 83e43b9da8 feat: Implement IPTV player screen with playback controls and stream type handling. 2026-01-01 18:41:02 +01:00
Michael c165ff5d40 feat: Implement IPTV player screen with web iframe integration for live and VOD streams, utilizing player_lite.html for live TV. 2026-01-01 18:26:05 +01:00
Michael be51118dc2 feat: add LiveTVTab for browsing live channels with search and favorites, and PlayerScreen for channel playback. 2026-01-01 18:17:35 +01:00
Michael a1a8810ddc feat: introduce streaming handlers for live TV proxy and VOD HLS transcoding using FFmpeg. 2026-01-01 18:12:45 +01:00
Michael 37f6ab08db feat: remove video_player_win dependency 2025-12-16 07:46:14 +01:00
Michael 8c3a143f46 feat: add initial Windows desktop platform support files and configuration. 2025-12-16 07:41:08 +01:00
Michael 57b7acbead feat: Implement streaming handlers for live MPEG-TS proxy and VOD HLS transcoding via FFmpeg, and add a release build script. 2025-12-16 07:39:33 +01:00
Michael b9d6d715d7 feat: Add initial IPTV support with a dedicated player, series detail screen, Xtream API service, and a streaming API handler. 2025-12-15 22:09:21 +01:00
Michael 6d69617e40 feat: Add local Docker test environment setup with PowerShell script and Docker Compose. 2025-12-15 20:56:17 +01:00
Michael 6bae2d9535 feat: Add IPTV player screen with comprehensive playback controls, channel navigation, and web platform view integration. 2025-12-15 17:01:11 +01:00
Michael 2c0725590e feat: Add initial IPTV player with web-based playback and streaming API. 2025-12-15 13:01:24 +01:00
Michael 2ca8f5e969 feat: introduce server with API, HLS streaming, Xtream proxy, and player UI 2025-12-14 22:32:15 +01:00
Michael ee707d3cf9 feat: implement IPTV player screen for live, VOD, and series streams with integrated controls and state management. 2025-12-14 18:47:00 +01:00
Michael b2298a9bf4 feat: Add initial IPTV player with HLS.js and mpegts.js support, including UI and parent communication. 2025-12-14 16:05:30 +01:00
Michael 4825745be7 feat: implement IPTV player using a web-based lite player and a dedicated Flutter screen. 2025-12-14 00:01:50 +01:00
Michael ddc0ea64e0 feat: Add IPTV player screen for stream playback with controls, EPG integration, and channel switching. 2025-12-13 13:51:04 +01:00
Michael 67e59b804c feat: add IPTV player screen for stream playback and controls. 2025-12-13 11:41:14 +01:00