How webhtv/webhtv works
WebHomeTV is an Android TV and mobile media app built on the FongMi/CatVod ecosystem. A user selects a live channel or on-demand title in the app or custom WebHome, which uses app capabilities to search, resolve and play media through the playback service and player engines. The product also includes local management and HTTP APIs, device synchronization, remote hosting, and playback-history synchronization. The graph preserves major README-described capabilities; beyond the sampled playback and drive-check code, those subsystem links are documented in the README rather than verified against their implementation.
Main entry points: activity TV and mobile UI · api CSP and Spider runtime · webhome-devkit Custom WebHome · tv Device and history sync
Components 20
App experience
- Custom WebHome
webhome-devkit - TV and mobile UI
app/src/leanback/java/com/fongmi/android/tv/ui/activity
Media runtime
- Playback service
app/src/main/java/com/fongmi/android/tv/service/PlaybackService.java - Player manager
app/src/main/java/com/fongmi/android/tv/player/PlayerManager.java - Player engines
app/src/main/java/com/fongmi/android/tv/player/engine/ExoPlayerEngine.java
WebHome and APIs
- CSP and Spider runtime
app/src/main/java/com/fongmi/android/tv/api - Native SDK
app/src/main/java/com/fongmi/android/tv/web - Local HTTP services
app/src/main/java/com/fongmi/android/tv/server - Live and VOD
app/src/main/java/com/fongmi/android/tv/api/LiveApi.java - Drive link checks
app/src/main/java/com/fongmi/android/tv/service/DriveCheckService.java - Site health ranking
app/src/main/java/com/fongmi/android/tv/api - LAN management
app/src/main/java/com/fongmi/android/tv/server
State and sync
- App state
app/src/main/java/com/fongmi/android/tv/db - Device and history sync
app/src/main/java/com/fongmi/android/tv
External services
- Remote device agent
app/src/main/java/com/fongmi/android/tv/remote/RemoteAgentService.java - Remote relay services
serverless - Git cloud providers
app/src/main/java/com/fongmi/android/tv/gitcloud
Other components
- Viewer
- Media and site sources
- Remote administrator
Connections 23
- Viewer → TV and mobile UI: browses
README.md - Viewer → Custom WebHome: opens
README.md - TV and mobile UI → CSP and Spider runtime: selects sources
README.md - Custom WebHome → Native SDK: calls capabilities
README.md - Native SDK → Local HTTP services: uses APIs
README.md - CSP and Spider runtime → Media and site sources: requests media
README.md - CSP and Spider runtime → Live and VOD: loads live and VOD
README.md - TV and mobile UI → Playback service: starts playback
README.md - Playback service → Player manager: controls playback
app/src/main/java/com/fongmi/android/tv/service/PlaybackService.java - Player manager → Player engines: selects engine
app/src/main/java/com/fongmi/android/tv/player/PlayerManager.java - Player engines → Media and site sources: plays streams
- Custom WebHome → Drive link checks: checks links
README.md - Local HTTP services → Drive link checks: checks links
README.md - CSP and Spider runtime → Site health ranking: uses site ranking
README.md - TV and mobile UI → LAN management: opens management
README.md - LAN management → App state: manages data
README.md - Device and history sync → App state: merges state
README.md - Viewer → Device and history sync: starts sync
README.md - Remote administrator → Remote relay services: manages devices
README.md - Remote relay services → Remote device agent: relays requests
README.md - Remote device agent → TV and mobile UI: triggers search and push
README.md - Device and history sync → Remote relay services: syncs playback history
README.md - TV and mobile UI → Git cloud providers: uses hosted config