Commit Graph
20 Commits
Author SHA1 Message Date
MichaelandClaude Opus 5 8d74bbb320 feat: XMLTV EPG fallback, Warm Cinema theme, background release
Align the Android app with xtremflow on three fronts.

EPG: add XmltvService, a streaming XMLTV parser (gunzip-aware, indexed to a
-3h/+18h window, JSON disk cache with a 6h TTL). XtreamServiceMobile now falls
back through the provider's xmltv.php, a user-supplied URL, then a community
guide whenever get_short_epg returns nothing. Channels are matched on
epg_channel_id first, then on a normalized name (accents, HD/FHD/4K suffixes,
"FR:" and "|FR|" prefixes). A streamId -> Channel index populated by
getLiveChannels supplies those keys, so no getShortEPG call site changed.
EPG requests are also funnelled through a 3-slot semaphore, as in xtremflow:
a 30-tile grid used to fire 30 parallel player_api.php calls, which rate-limited
panels answered with errors, emptying the guide for the whole screen.

Theme: port the Warm Cinema charter (ember/charcoal/cream, Fraunces + Karla)
into app_colors, app_theme and app_decorations. The 21 Apple TV colour names
already in use are kept as compatibility aliases. mobile_theme now derives from
AppTheme instead of duplicating its 390 lines.

Playback lifecycle: stop reacting to AppLifecycleState.inactive, which fires on
transient Android interruptions such as pulling down the notification shade and
was killing playback. Both engines now release on paused/hidden/detached via
_releasePlayback(): stream stopped, decoder released, timers cancelled, wakelock
dropped. An _isReleased latch keeps the watchdog and reconnect paths from
restarting a stream from the background.

Long-run stability: cancel the six player stream subscriptions on dispose, cap
demuxer-max-back-bytes at 8MB (mpv defaults to 50MiB, which combined with the
150MB readahead pushed the native heap toward an Android memory kill after a few
hours), rebuild on position only while the controls are visible, and dispose the
Lite player's focus nodes.

Startup: prewarmHost() pre-resolves DNS and opens then closes a bare TCP/TLS
socket before playback. No HTTP request is issued, so no provider connection
slot is consumed. Capped at 1.5s.

Verified: flutter analyze clean on all touched files; 19/19 tests, including a
run over a real 46MB/69802-programme dump (517 channels indexed in 1.1s, 5/5
name probes matched); flutter build apk --release succeeds.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11 19:25:33 +02:00
Michael a1b1363bc8 feat: add mobile Xtream service, data providers, and UI widgets for Live TV and Movies. 2026-03-27 15:15:44 +01:00
Michael 527582e21b feat: add app decorations definitions 2026-03-27 13:38:35 +01:00
Michael e1a0802a0c feat: Add mobile-specific Riverpod providers for Xtream service, live TV, movies, series, and EPG data, along with UI state management. 2026-03-27 13:34:06 +01:00
Michael b249074db1 feat: Add initial mobile dashboard screen with Xtream data and UI state providers. 2025-12-20 16:05:01 +01:00
Michael 3145af9e8d feat: Add mobile IPTV tabs for movies, series, and live TV. 2025-12-20 11:39:37 +01:00
Michael 55acbbc135 feat: Implement a web-based IPTV player with HLS/MPEG-TS support and Flutter communication. 2025-12-17 23:45:56 +01:00
Michael c791631b09 feat: introduce Apple TV-style color palette and mobile IPTV settings tab 2025-12-11 23:23:42 +01:00
Michael 9cc0f5eacb feat: add AppColors class defining an Apple TV-inspired color palette and theme schemes. 2025-12-10 23:35:05 +01:00
Michael 32af7fd920 feat: add mobile IPTV playlist management screen with auto-login functionality 2025-12-10 22:19:39 +01:00
Michael 2406b9b100 feat: introduce XtreamServiceMobile for IPTV API interactions and DnsFallbackInterceptor for network robustness. 2025-12-10 22:16:51 +01:00
Michael 12f5ddcf97 feat: implement ChannelCard widget with EPG display, interactive hover effects, and live indicator. 2025-12-07 00:16:43 +01:00
Michael f8bc8c791f feat: add IPTV data models and application color palette 2025-12-06 23:51:43 +01:00
Michael 6ee7fa178a feat: Add movies tab with pagination, search, and player integration. 2025-12-06 20:45:04 +01:00
Michael 133dd401d2 feat: implement Apple TV-inspired AppColors class with dark and light theme schemes. 2025-12-06 19:17:24 +01:00
Michael 4786ded67d feat: Implement server with API routing, static file serving, Xtream proxy, and streaming capabilities. 2025-12-06 19:13:10 +01:00
Michael 44a2edf5ae feat: add CategoryCarousel for horizontal item display and CategoryChipButton for filtering 2025-12-06 18:30:04 +01:00
Michael 3f61f70d1f feat: Introduce core IPTV features, authentication screen, web player, and application theming. 2025-12-06 18:19:21 +01:00
Michael 57e0995915 feat: Add XtremFlow color palette for light/dark themes and initial Flutter web HTML with a themed loading screen. 2025-12-06 17:20:07 +01:00
Michael d2c92215e9 feat: Establish initial application structure, theming, responsive utilities, and core feature screens. 2025-12-06 16:38:15 +01:00