How maloxmusique-ux/lecteur-iptv works
Canalix is a cross-platform IPTV player. Its main workflow is adding a user-supplied playlist or Xtream account, loading channel/catalogue and guide data, then watching or recording content. The README also describes licensing and purchase services plus a separate TV JavaScript client. The Flutter application’s lib/ sources are documented in the README but absent from the supplied file tree; those paths and links are therefore based on that documentation, not inspected implementation. Platform entry points and backend relationships are included only where the supplied excerpts or index show them.
Main entry points: repository.dart Content repository · index.ts License endpoint · CanalixApp.kt Android host · app_state.dart Application state
Components 28
Content and guide
- Sources UI
lib/ui - M3U parser
lib/services/m3u_parser.dart - Xtream client
lib/services/xtream_api.dart - Content repository
lib/services/repository.dart - Catalog models
lib/models/models.dart - XMLTV parser
lib/services/epg_parser.dart - Application state
lib/state/app_state.dart - Home and guide UI
lib/ui
Viewing and control
- Player UI
lib/ui - Playback engine
lib/player/player_engine.dart - Recording support
android/app/src/main/kotlin/com/canalixtv/app/RecordingService.kt
Licensing services
- License endpoint
supabase/functions/license/index.ts - Security helpers
supabase/functions/_shared/security.ts - Store verification
supabase/functions/_shared/stores.ts - Admin portal API
supabase/functions/admin/index.ts - Stripe webhook
supabase/functions/stripe-webhook/index.ts - Store notifications
supabase/functions/store-notifications/index.ts
Client platforms
- TV client
tv/js/app.js - Android host
android/app/src/main/kotlin/com/canalixtv/app/CanalixApp.kt - Android activity
android/app/src/main/kotlin/com/canalixtv/app/MainActivity.kt - Recording alarm
android/app/src/main/kotlin/com/canalixtv/app/RecordingAlarm.kt - iOS host
ios/Runner/AppDelegate.swift - Linux plugin registry
linux/flutter/generated_plugin_registrant.h - Linux host
linux/runner/my_application.h - macOS plugin registry
macos/Flutter/GeneratedPluginRegistrant.swift - Windows window
windows/runner/win32_window.h - Windows host
windows/runner/win32_window.cpp
Other components
- Viewer
Connections 26
- Viewer → Sources UI: adds sources
- Sources UI → Application state: manages sources
- Application state → Content repository: loads catalog
- Content repository → M3U parser: parses playlists
- Content repository → Xtream client: fetches catalog
- Content repository → XMLTV parser: parses guide
- Content repository → Catalog models: builds catalog
- Application state → Catalog models: tracks catalog
- Viewer → Home and guide UI: browses catalog
- Home and guide UI → Application state: reads state
- Viewer → Player UI: selects content
- Player UI → Playback engine: controls playback
- Viewer → Recording support: schedules recording
- Android host → Android activity: provides engine
android/app/src/main/kotlin/com/canalixtv/app/MainActivity.kt - Android host → Recording support: keeps service alive
android/app/src/main/kotlin/com/canalixtv/app/CanalixApp.kt - Android host → Recording alarm: uses alarm
android/app/src/main/kotlin/com/canalixtv/app/CanalixApp.kt - Android activity → Android host: reuses engine
android/app/src/main/kotlin/com/canalixtv/app/MainActivity.kt - Viewer → License endpoint: checks license
- License endpoint → Security helpers: signs license
supabase/functions/license/index.ts - License endpoint → Store verification: verifies purchases
supabase/functions/license/index.ts - Admin portal API → Security helpers: checks identity
supabase/functions/admin/index.ts - Stripe webhook → License endpoint: updates entitlement
- Store notifications → License endpoint: updates entitlement
- Viewer → TV client: uses TV client
- Linux host → Linux plugin registry: registers plugins
- Windows host → Windows window: uses window
windows/runner/win32_window.cpp